15f716acc933fcd6988ede6de69ee7fd1a05e0ae
[jlayton/glibc.git] / ChangeLog
1 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
2
3         * locale/programs/locarchive.c (create_archive): Inlucde fname in
4         error message.
5         (enlarge_archive): Likewise.
6
7 2013-05-28  Ben North  <ben@redfrontdoor.org>
8
9         * manual/arith.texi (frexp): It is the magnitude of the return
10         value which lies in [0.5, 1), not the return value itself.
11
12 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13
14         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15
16 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
17
18         * stdio-common/bug26.c (main): Correct fscanf template.
19
20         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
21         declare _dl_skip_args.
22
23         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
24         Don't declare.
25
26         * manual/platform.texi: Add missing @end deftypefun.
27
28 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
29
30         [BZ #15529]
31         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
32         bit of mantissa of 2^16382.
33         * math/libm-test.inc (hypot_test_data): Add more tests.
34
35         * math/libm-test.inc: Add drem and pow10 to list of tested
36         functions.
37         (pow10_test): New function.
38         (drem_test): Likewise.
39         (drem_test_tonearest): Likewise.
40         (drem_test_towardzero): Likewise.
41         (drem_test_downward): Likewise.
42         (drem_test_upward): Likewise.
43         (main): Call the new functions.
44
45         * math/libm-test.inc (finite_test_data): Remove.
46         (finite_test): Run tests from isfinite_test_data.
47         (gamma_test_data): Remove.
48         (gamma_test): Run tests from lgamma_test_data.
49         * sysdeps/i386/fpu/libm-test-ulps: Update.
50         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51
52 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53
54         * manual/platform.texi: Add PowerPC PPR function set documentation.
55         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
56         implementation.
57
58 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
59
60         * math/libm-test.inc (MAX_EXP): Define.
61         (ULPDIFF): Define.
62         (ulp): New function.
63         (check_float_internal): Use ULPDIFF.
64         (cpow_test): Disable failing test.
65         (check_ulp): Test ulp() implemetnation.
66         (main): Call check_ulp before starting tests.
67
68 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
69
70         * math/gen-libm-test.pl (generate_testfile): Do not handle
71         START_DATA and END_DATA.
72         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
73         END_DATA.
74         (acos_tonearest_test_data): Likewise.
75         (acos_towardzero_test_data): Likewise.
76         (acos_downward_test_data): Likewise.
77         (acos_upward_test_data): Likewise.
78         (acosh_test_data): Likewise.
79         (asin_test_data): Likewise.
80         (asin_tonearest_test_data): Likewise.
81         (asin_towardzero_test_data): Likewise.
82         (asin_downward_test_data): Likewise.
83         (asin_upward_test_data): Likewise.
84         (asinh_test_data): Likewise.
85         (atan_test_data): Likewise.
86         (atanh_test_data): Likewise.
87         (atan2_test_data): Likewise.
88         (cabs_test_data): Likewise.
89         (cacos_test_data): Likewise.
90         (cacosh_test_data): Likewise.
91         (carg_test_data): Likewise.
92         (casin_test_data): Likewise.
93         (casinh_test_data): Likewise.
94         (catan_test_data): Likewise.
95         (catanh_test_data): Likewise.
96         (cbrt_test_data): Likewise.
97         (ccos_test_data): Likewise.
98         (ccosh_test_data): Likewise.
99         (ceil_test_data): Likewise.
100         (cexp_test_data): Likewise.
101         (cimag_test_data): Likewise.
102         (clog_test_data): Likewise.
103         (clog10_test_data): Likewise.
104         (conj_test_data): Likewise.
105         (copysign_test_data): Likewise.
106         (cos_test_data): Likewise.
107         (cos_tonearest_test_data): Likewise.
108         (cos_towardzero_test_data): Likewise.
109         (cos_downward_test_data): Likewise.
110         (cos_upward_test_data): Likewise.
111         (cosh_test_data): Likewise.
112         (cosh_tonearest_test_data): Likewise.
113         (cosh_towardzero_test_data): Likewise.
114         (cosh_downward_test_data): Likewise.
115         (cosh_upward_test_data): Likewise.
116         (cpow_test_data): Likewise.
117         (cproj_test_data): Likewise.
118         (creal_test_data): Likewise.
119         (csin_test_data): Likewise.
120         (csinh_test_data): Likewise.
121         (csqrt_test_data): Likewise.
122         (ctan_test_data): Likewise.
123         (ctan_tonearest_test_data): Likewise.
124         (ctan_towardzero_test_data): Likewise.
125         (ctan_downward_test_data): Likewise.
126         (ctan_upward_test_data): Likewise.
127         (ctanh_test_data): Likewise.
128         (ctanh_tonearest_test_data): Likewise.
129         (ctanh_towardzero_test_data): Likewise.
130         (ctanh_downward_test_data): Likewise.
131         (ctanh_upward_test_data): Likewise.
132         (erf_test_data): Likewise.
133         (erfc_test_data): Likewise.
134         (exp_test_data): Likewise.
135         (exp_tonearest_test_data): Likewise.
136         (exp_towardzero_test_data): Likewise.
137         (exp_downward_test_data): Likewise.
138         (exp_upward_test_data): Likewise.
139         (exp10_test_data): Likewise.
140         (exp2_test_data): Likewise.
141         (expm1_test_data): Likewise.
142         (fabs_test_data): Likewise.
143         (fdim_test_data): Likewise.
144         (finite_test_data): Likewise.
145         (floor_test_data): Likewise.
146         (fma_test_data): Likewise.
147         (fma_towardzero_test_data): Likewise.
148         (fma_downward_test_data): Likewise.
149         (fma_upward_test_data): Likewise.
150         (fmax_test_data): Likewise.
151         (fmin_test_data): Likewise.
152         (fmod_test_data): Likewise.
153         (fpclassify_test_data): Likewise.
154         (frexp_test_data): Likewise.
155         (gamma_test_data): Likewise.
156         (hypot_test_data): Likewise.
157         (ilogb_test_data): Likewise.
158         (isfinite_test_data): Likewise.
159         (isgreater_test_data): Likewise.
160         (isgreaterequal_test_data): Likewise.
161         (isinf_test_data): Likewise.
162         (isless_test_data): Likewise.
163         (islessequal_test_data): Likewise.
164         (islessgreater_test_data): Likewise.
165         (isnan_test_data): Likewise.
166         (isnormal_test_data): Likewise.
167         (issignaling_test_data): Likewise.
168         (isunordered_test_data): Likewise.
169         (j0_test_data): Likewise.
170         (j1_test_data): Likewise.
171         (jn_test_data): Likewise.
172         (ldexp_test_data): Likewise.
173         (lgamma_test_data): Likewise.
174         (lrint_test_data): Likewise.
175         (lrint_tonearest_test_data): Likewise.
176         (lrint_towardzero_test_data): Likewise.
177         (lrint_downward_test_data): Likewise.
178         (lrint_upward_test_data): Likewise.
179         (llrint_test_data): Likewise.
180         (llrint_tonearest_test_data): Likewise.
181         (llrint_towardzero_test_data): Likewise.
182         (llrint_downward_test_data): Likewise.
183         (llrint_upward_test_data): Likewise.
184         (log_test_data): Likewise.
185         (log10_test_data): Likewise.
186         (log1p_test_data): Likewise.
187         (log2_test_data): Likewise.
188         (logb_test_data): Likewise.
189         (logb_downward_test_data): Likewise.
190         (lround_test_data): Likewise.
191         (llround_test_data): Likewise.
192         (modf_test_data): Likewise.
193         (nearbyint_test_data): Likewise.
194         (nextafter_test_data): Likewise.
195         (nexttoward_test_data): Likewise.
196         (pow_test_data): Likewise.
197         (pow_tonearest_test_data): Likewise.
198         (pow_towardzero_test_data): Likewise.
199         (pow_downward_test_data): Likewise.
200         (pow_upward_test_data): Likewise.
201         (remainder_test_data): Likewise.
202         (remainder_tonearest_test_data): Likewise.
203         (remainder_towardzero_test_data): Likewise.
204         (remainder_downward_test_data): Likewise.
205         (remainder_upward_test_data): Likewise.
206         (remquo_test_data): Likewise.
207         (rint_test_data): Likewise.
208         (rint_tonearest_test_data): Likewise.
209         (rint_towardzero_test_data): Likewise.
210         (rint_downward_test_data): Likewise.
211         (rint_upward_test_data): Likewise.
212         (round_test_data): Likewise.
213         (scalb_test_data): Likewise.
214         (scalbn_test_data): Likewise.
215         (scalbln_test_data): Likewise.
216         (signbit_test_data): Likewise.
217         (sin_test_data): Likewise.
218         (sin_tonearest_test_data): Likewise.
219         (sin_towardzero_test_data): Likewise.
220         (sin_downward_test_data): Likewise.
221         (sin_upward_test_data): Likewise.
222         (sincos_test_data): Likewise.
223         (sinh_test_data): Likewise.
224         (sinh_tonearest_test_data): Likewise.
225         (sinh_towardzero_test_data): Likewise.
226         (sinh_downward_test_data): Likewise.
227         (sinh_upward_test_data): Likewise.
228         (sqrt_test_data): Likewise.
229         (tan_test_data): Likewise.
230         (tan_tonearest_test_data): Likewise.
231         (tan_towardzero_test_data): Likewise.
232         (tan_downward_test_data): Likewise.
233         (tan_upward_test_data): Likewise.
234         (tanh_test_data): Likewise.
235         (tgamma_test_data): Likewise.
236         (trunc_test_data): Likewise.
237         (y0_test_data): Likewise.
238         (y1_test_data): Likewise.
239         (yn_test_data): Likewise.
240         (significand_test_data): Likewise.
241
242         * math/gen-libm-test.pl (@functions): Remove variable.
243         (generate_testfile): Don't handle START and END lines.
244         * math/libm-test.inc (START): New macro.
245         (END): Likewise.
246         (END_COMPLEX): Likewise.
247         (acos_test): Use END macro without arguments.
248         (acos_test_tonearest): Likewise.
249         (acos_test_towardzero): Likewise.
250         (acos_test_downward): Likewise.
251         (acos_test_upward): Likewise.
252         (acosh_test): Likewise.
253         (asin_test): Likewise.
254         (asin_test_tonearest): Likewise.
255         (asin_test_towardzero): Likewise.
256         (asin_test_downward): Likewise.
257         (asin_test_upward): Likewise.
258         (asinh_test): Likewise.
259         (atan_test): Likewise.
260         (atanh_test): Likewise.
261         (atan2_test): Likewise.
262         (cabs_test): Likewise.
263         (cacos_test): Use END_COMPLEX macro without arguments.
264         (cacosh_test): Likewise.
265         (carg_test): Use END macro without arguments.
266         (casin_test): Use END_COMPLEX macro without arguments.
267         (casinh_test): Likewise.
268         (catan_test): Likewise.
269         (catanh_test): Likewise.
270         (cbrt_test): Use END macro without arguments.
271         (ccos_test): Use END_COMPLEX macro without arguments.
272         (ccosh_test): Likewise.
273         (ceil_test): Use END macro without arguments.
274         (cexp_test): Use END_COMPLEX macro without arguments.
275         (cimag_test): Use END macro without arguments.
276         (clog_test): Use END_COMPLEX macro without arguments.
277         (clog10_test): Likewise.
278         (conj_test): Likewise.
279         (copysign_test): Use END macro without arguments.
280         (cos_test): Likewise.
281         (cos_test_tonearest): Likewise.
282         (cos_test_towardzero): Likewise.
283         (cos_test_downward): Likewise.
284         (cos_test_upward): Likewise.
285         (cosh_test): Likewise.
286         (cosh_test_tonearest): Likewise.
287         (cosh_test_towardzero): Likewise.
288         (cosh_test_downward): Likewise.
289         (cosh_test_upward): Likewise.
290         (cpow_test): Use END_COMPLEX macro without arguments.
291         (cproj_test): Likewise.
292         (creal_test): Use END macro without arguments.
293         (csin_test): Use END_COMPLEX macro without arguments.
294         (csinh_test): Likewise.
295         (csqrt_test): Likewise.
296         (ctan_test): Likewise.
297         (ctan_test_tonearest): Likewise.
298         (ctan_test_towardzero): Likewise.
299         (ctan_test_downward): Likewise.
300         (ctan_test_upward): Likewise.
301         (ctanh_test): Likewise.
302         (ctanh_test_tonearest): Likewise.
303         (ctanh_test_towardzero): Likewise.
304         (ctanh_test_downward): Likewise.
305         (ctanh_test_upward): Likewise.
306         (erf_test): Use END macro without arguments.
307         (erfc_test): Likewise.
308         (exp_test): Likewise.
309         (exp_test_tonearest): Likewise.
310         (exp_test_towardzero): Likewise.
311         (exp_test_downward): Likewise.
312         (exp_test_upward): Likewise.
313         (exp10_test): Likewise.
314         (exp2_test): Likewise.
315         (expm1_test): Likewise.
316         (fabs_test): Likewise.
317         (fdim_test): Likewise.
318         (finite_test): Likewise.
319         (floor_test): Likewise.
320         (fma_test): Likewise.
321         (fma_test_towardzero): Likewise.
322         (fma_test_downward): Likewise.
323         (fma_test_upward): Likewise.
324         (fmax_test): Likewise.
325         (fmin_test): Likewise.
326         (fmod_test): Likewise.
327         (fpclassify_test): Likewise.
328         (frexp_test): Likewise.
329         (gamma_test): Likewise.
330         (hypot_test): Likewise.
331         (ilogb_test): Likewise.
332         (isfinite_test): Likewise.
333         (isgreater_test): Likewise.
334         (isgreaterequal_test): Likewise.
335         (isinf_test): Likewise.
336         (isless_test): Likewise.
337         (islessequal_test): Likewise.
338         (islessgreater_test): Likewise.
339         (isnan_test): Likewise.
340         (isnormal_test): Likewise.
341         (issignaling_test): Likewise.
342         (isunordered_test): Likewise.
343         (j0_test): Likewise.
344         (j1_test): Likewise.
345         (jn_test): Likewise.
346         (ldexp_test): Likewise.
347         (lgamma_test): Likewise.
348         (lrint_test): Likewise.
349         (lrint_test_tonearest): Likewise.
350         (lrint_test_towardzero): Likewise.
351         (lrint_test_downward): Likewise.
352         (lrint_test_upward): Likewise.
353         (llrint_test): Likewise.
354         (llrint_test_tonearest): Likewise.
355         (llrint_test_towardzero): Likewise.
356         (llrint_test_downward): Likewise.
357         (llrint_test_upward): Likewise.
358         (log_test): Likewise.
359         (log10_test): Likewise.
360         (log1p_test): Likewise.
361         (log2_test): Likewise.
362         (logb_test): Likewise.
363         (logb_test_downward): Likewise.
364         (lround_test): Likewise.
365         (llround_test): Likewise.
366         (modf_test): Likewise.
367         (nearbyint_test): Likewise.
368         (nextafter_test): Likewise.
369         (nexttoward_test): Likewise.
370         (pow_test): Likewise.
371         (pow_test_tonearest): Likewise.
372         (pow_test_towardzero): Likewise.
373         (pow_test_downward): Likewise.
374         (pow_test_upward): Likewise.
375         (remainder_test): Likewise.
376         (remainder_test_tonearest): Likewise.
377         (remainder_test_towardzero): Likewise.
378         (remainder_test_downward): Likewise.
379         (remainder_test_upward): Likewise.
380         (remquo_test): Likewise.
381         (rint_test): Likewise.
382         (rint_test_tonearest): Likewise.
383         (rint_test_towardzero): Likewise.
384         (rint_test_downward): Likewise.
385         (rint_test_upward): Likewise.
386         (round_test): Likewise.
387         (scalb_test): Likewise.
388         (scalbn_test): Likewise.
389         (scalbln_test): Likewise.
390         (signbit_test): Likewise.
391         (sin_test): Likewise.
392         (sin_test_tonearest): Likewise.
393         (sin_test_towardzero): Likewise.
394         (sin_test_downward): Likewise.
395         (sin_test_upward): Likewise.
396         (sincos_test): Likewise.
397         (sinh_test): Likewise.
398         (sinh_test_tonearest): Likewise.
399         (sinh_test_towardzero): Likewise.
400         (sinh_test_downward): Likewise.
401         (sinh_test_upward): Likewise.
402         (sqrt_test): Likewise.
403         (tan_test): Likewise.
404         (tan_test_tonearest): Likewise.
405         (tan_test_towardzero): Likewise.
406         (tan_test_downward): Likewise.
407         (tan_test_upward): Likewise.
408         (tanh_test): Likewise.
409         (tgamma_test): Likewise.
410         (trunc_test): Likewise.
411         (y0_test): Likewise.
412         (y1_test): Likewise.
413         (yn_test): Likewise.
414         (significand_test): Likewise.
415
416 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
417
418         [BZ #15381]
419         * libio/genops.c (_IO_no_init): Initialize wide struct info.
420
421 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
422
423         [BZ #14894]
424         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
425         __ppc_mdoio and __ppc_mdoom.
426         * manual/platform.texi: Document new functions __ppc_yield,
427         __ppc_mdoio and __ppc_mdoom.
428
429 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
430
431         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
432         (main): Mention "tls" pseudo-hwcap is legacy.
433         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
434
435 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
436
437         * math/gen-libm-test.pl (parse_args): Output only string of
438         arguments as text for test name, not full call or descriptions of
439         tests for extra outputs.
440         (generate_testfile): Do not pass function name to parse_args.
441         Generate this_func variable from START.
442         * math/libm-test.inc (struct test_f_f_data): Rename test_name
443         field to arg_str.
444         (struct test_ff_f_data): Likewise.
445         (test_ff_f_data_nexttoward): Likewise.
446         (struct test_fi_f_data): Likewise.
447         (struct test_fl_f_data): Likewise.
448         (struct test_if_f_data): Likewise.
449         (struct test_fff_f_data): Likewise.
450         (struct test_c_f_data): Likewise.
451         (struct test_f_f1_data): Likewise.  Remove field extra_name.
452         (struct test_fF_f1_data): Likewise.
453         (struct test_ffI_f1_data): Likewise.
454         (struct test_c_c_data): Rename test_name field to arg_str.
455         (struct test_cc_c_data): Likewise.
456         (struct test_f_i_data): Likewise.
457         (struct test_ff_i_data): Likewise.
458         (struct test_f_l_data): Likewise.
459         (struct test_f_L_data): Likewise.
460         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
461         and extra2_name.
462         (COMMON_TEST_SETUP): New macro.
463         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
464         (COMMON_TEST_CLEANUP): Likewise.
465         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
466         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
467         macros.
468         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
469         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
470         macros.
471         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
472         (RUN_TEST_fff_f): Take argument string.  Call new setup and
473         cleanup macros.
474         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
475         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
476         macros.
477         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
478         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
479         macros.
480         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
481         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
482         cleanup macros.
483         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
484         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
485         cleanup macros.
486         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
487         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
488         cleanup macros.
489         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
490         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
491         macros.
492         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
493         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
494         macros.
495         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
496         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
497         macros.
498         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
499         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
500         cleanup macros.
501         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
502         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
503         cleanup macros.
504         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
505         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
506         macros.
507         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
508         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
509         cleanup macros.
510         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
511         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
512         macros.
513         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
514         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
515         macros.
516         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
517         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
518         cleanup macros.
519         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
520
521 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
522
523         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
524         to _sifields.sigfault.
525         (si_addr_lsb): Define new macro.
526         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
527         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
528         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
529
530 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
531
532         [BZ #15441]
533         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
534         returns -1.
535         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
536         null return -1.
537         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
538         loading the domain.
539
540 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
541
542         * math/gen-libm-test.pl (parse_args): Do not include expected
543         result in test name.
544         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
545         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
546         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
547         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
548         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
550
551 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
552
553         * benchtests/Makefile: Sort function entries.
554
555         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
556         tanh, asinh, acosh, atanh.
557         * benchtests/acos-inputs: New file.
558         * benchtests/acosh-inputs: New file.
559         * benchtests/asin-inputs: New file.
560         * benchtests/asinh-inputs: New file.
561         * benchtests/atanh-inputs: New file.
562         * benchtests/cosh-inputs: New file.
563         * benchtests/log-inputs: New file.
564         * benchtests/sinh-inputs: New file.
565         * benchtests/tanh-inputs: New file.
566
567 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
568
569         [BZ #15339]
570         * posix/tst-getaddrinfo4.c: New test.
571         * posix/Makefile (tests): Add it.
572
573 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
574
575         [BZ #15339]
576         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
577         when no services were used.
578         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
579         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
580
581 2013-05-21  Andreas Schwab  <schwab@suse.de>
582
583         [BZ #15014]
584         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
585         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
586         successful.
587         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
588         redundant variable declarations and reallocation of buffer when
589         parsing as IPv6 address.  Always set NSS status when called from
590         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
591         buffer too small.  Correct computation of needed size.
592         * nss/Makefile (tests): Add test-digits-dots.
593         * nss/test-digits-dots.c: New test.
594
595 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
596
597         * benchtests/Makefile: Remove instructions for adding
598         benchmark tests.
599         * benchtests/README: New file to explain how to execute and
600         enhance the benchmark tests.
601
602 2013-05-21  Andreas Schwab  <schwab@suse.de>
603
604         [BZ #15493]
605         * setjmp/Makefile (tests): Add tst-sigsetjmp.
606         * setjmp/tst-sigsetjmp.c: New test.
607
608 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
609
610         * sysdeps/x86_64/memset.S (memset): New implementation.
611         (__bzero): Likewise.
612         (__memset_tail): New function.
613
614 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
615
616         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
617         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
618         __memcpy_sse2_unaligned ifunc selection.
619         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
620         Add memcpy-sse2-unaligned.S.
621         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
622         Add: __memcpy_sse2_unaligned.
623
624 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
625
626         [BZ #15490]
627         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
628         math_force_eval before restoring floating-point envrionment.
629         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
630         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
631         Likewise.
632         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
633         <math_private.h>.
634         (__nearbyintl): Use math_force_eval before restoring
635         floating-point environment.
636         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
637
638         * math/gen-libm-test.pl (special_functions): Remove.
639         (parse_args): Don't handle TEST_extra.  Handle functions with no
640         return value.
641         * math/libm-test.inc (struct test_sincos_data): Replace with
642         struct test_fFF_11_data.
643         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
644         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
645         (sincos_test_data): Change element type to struct
646         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
647         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
648         RUN_TEST_LOOP_sincos.
649         * math/README.libm-test: Don't mention special handling of
650         individual functions.
651         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
652         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
653         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
654         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
655         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
657
658         * math/gen-libm-test.pl (get_variable): Remove function.
659         (parse_args): Don't show pointer parameters to call in test
660         names.  Use "extra output N" in test names for extra outputs
661         rather than naming variables.
662
663 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
664
665         [BZ #15488]
666         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
667         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
668         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
669         double tests.
670         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
671         disable.
672         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
673         check_long_double.
674
675         * math/gen-libm-test.pl (@tests): Remove variable.
676         ($count): Likewise.
677         (new_test): Remove function.
678         (show_exceptions): New function.
679         (special_functions): Use show_exceptions instead of new_test.
680         (parse_args): Likewise.
681         (generate_testfile): Pass only function name in generated call to
682         print_max_error or print_complex_max_error.
683         (get_ulps): Do not handle complex tests specially.
684         (output_test): Rename to ...
685         (get_all_ulps_for_test): ... this.  Return a string rather than
686         printing to a file.  Require ulps to be present.
687         (output_ulps): Generate arrays rather than #defines.
688         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
689         (struct ulp_data): New type.
690         (BUILD_COMPLEX_ULP): Remove macro.
691         (compare_ulp_data): New function.
692         (find_ulps): Likewise.
693         (find_test_ulps): Likewise.
694         (find_function_ulps): Likewise.
695         (find_complex_function_ulps): Likewise.
696         (print_max_error): Determine allowed ulps using
697         find_function_ulps.
698         (print_complex_max_error): Determine allowed ulps using
699         find_complex_function_ulps.
700         (check_float_internal): Determine max ulps using find_test_ulps.
701         (check_float): Do not take max_ulp parameter.  Update call to
702         check_float_internal.
703         (check_complex): Likewise.
704         (check_int): Do not take max_ulp parameter.
705         (check_long): Likewise.
706         (check_bool): Likewise.
707         (check_longlong): Likewise.
708         (struct test_f_f_data): Remove max_ulp field.
709         (struct test_ff_f_data): Likewise.
710         (struct test_ff_f_data_nexttoward): Likewise.
711         (struct test_fi_f_data): Likewise.
712         (struct test_fl_f_data): Likewise.
713         (struct test_if_f_data): Likewise.
714         (struct test_fff_f_data): Likewise.
715         (struct test_c_f_data): Likewise.
716         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
717         (struct test_fF_f1_data): Likewise.
718         (struct test_ffI_f1_data): Likewise.
719         (struct test_c_c_data): Remove max_ulp field.
720         (struct test_cc_c_data): Likewise.
721         (struct test_f_i_data): Likewise.
722         (struct test_ff_i_data): Likewise.
723         (struct test_f_l_data): Likewise.
724         (struct test_f_L_data): Likewise.
725         (struct test_sincos_data): Likewise.
726         (RUN_TEST_f_f): Do not handle ulps.
727         (RUN_TEST_LOOP_f_f): Likewise.
728         (RUN_TEST_2_f): Likewise.
729         (RUN_TEST_LOOP_2_f): Likewise.
730         (RUN_TEST_fff_f): Likewise.
731         (RUN_TEST_LOOP_fff_f): Likewise.
732         (RUN_TEST_c_f): Likewise.
733         (RUN_TEST_LOOP_c_f): Likewise.
734         (RUN_TEST_f_f1): Likewise.
735         (RUN_TEST_LOOP_f_f1): Likewise.
736         (RUN_TEST_fF_f1): Likewise.
737         (RUN_TEST_LOOP_fF_f1): Likewise.
738         (RUN_TEST_fI_f1): Likewise.
739         (RUN_TEST_LOOP_fI_f1): Likewise.
740         (RUN_TEST_ffI_f1): Likewise.
741         (RUN_TEST_LOOP_ffI_f1): Likewise.
742         (RUN_TEST_c_c): Likewise.
743         (RUN_TEST_LOOP_c_c): Likewise.
744         (RUN_TEST_cc_c): Likewise.
745         (RUN_TEST_LOOP_cc_c): Likewise.
746         (RUN_TEST_f_i): Likewise.
747         (RUN_TEST_LOOP_f_i): Likewise.
748         (RUN_TEST_f_i_tg): Likewise.
749         (RUN_TEST_LOOP_f_i_tg): Likewise.
750         (RUN_TEST_ff_i_tg): Likewise.
751         (RUN_TEST_LOOP_ff_i_tg): Likewise.
752         (RUN_TEST_f_b): Likewise.
753         (RUN_TEST_LOOP_f_b): Likewise.
754         (RUN_TEST_f_b_tg): Likewise.
755         (RUN_TEST_LOOP_f_b_tg): Likewise.
756         (RUN_TEST_f_l): Likewise.
757         (RUN_TEST_LOOP_f_l): Likewise.
758         (RUN_TEST_f_L): Likewise.
759         (RUN_TEST_LOOP_f_L): Likewise.
760         (RUN_TEST_sincos): Likewise.
761         (RUN_TEST_LOOP_sincos): Likewise.
762
763 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
764
765         [BZ #15480]
766         [BZ #15485]
767         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
768         main case of finite arguments, set rounding mode to FE_TONEAREST
769         and discard exceptions.
770         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
771         exceptions.
772         (remainder_tonearest_test_data): New variable.
773         (remainder_test_tonearest): New function.
774         (remainder_towardzero_test_data): New variable.
775         (remainder_test_towardzero): New function.
776         (remainder_downward_test_data): New variable.
777         (remainder_test_downward): New function.
778         (remainder_upward_test_data): New variable.
779         (remainder_test_upward): New function.
780         (main): Call the new test functions.
781
782         * math/libm-test.inc (struct test_f_f1_data): Remove field
783         extra_init.
784         (struct test_fF_f1_data): Likewise.
785         (struct test_ffI_f1_data): Likewise.
786         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
787         based on value of EXTRA_EXPECTED.
788         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
789         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
790         EXTRA_VAR based on value of EXTRA_EXPECTED.
791         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
792         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
793         EXTRA_VAR based on value of EXTRA_EXPECTED.
794         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
795         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
796         EXTRA_VAR based on value of EXTRA_EXPECTED.
797         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
798         * math/gen-libm-test.pl (parse_args): Don't output initializers
799         for extra output values.
800
801         * math/libm-test.inc (check_int): Expect result to be exactly
802         equal to expected value and do not handle ulps.
803         (check_long): Likewise.
804         (check_longlong): Likewise.
805
806         * math/libm-test.inc (ceil_test_data): Test for "inexact"
807         exceptions.
808         (cimag_test_data): Likewise.
809         (conj_test_data): Likewise.
810         (copysign_test_data): Likewise.
811         (cproj_test_data): Likewise.
812         (creal_test_data): Likewise.
813         (fabs_test_data): Likewise.
814         (fdim_test_data): Likewise.
815         (finite_test_data): Likewise.
816         (floor_test_data): Likewise.
817         (fmax_test_data): Likewise.
818         (fmin_test_data): Likewise.
819         (fmod_test_data): Likewise.
820         (fpclassify_test_data): Likewise.
821         (frexp_test_data): Likewise.
822         (ilogb_test_data): Likewise.
823         (isfinite_test_data): Likewise.
824         (isgreater_test_data): Likewise.
825         (isgreaterequal_test_data): Likewise.
826         (isinf_test_data): Likewise.
827         (isless_test_data): Likewise.
828         (islessequal_test_data): Likewise.
829         (islessgreater_test_data): Likewise.
830         (isnan_test_data): Likewise.
831         (isnormal_test_data): Likewise.
832         (issignaling_test_data): Likewise.
833         (isunordered_test_data): Likewise.
834         (ldexp_test_data): Likewise.
835         (lrint_test_data): Likewise.
836         (lrint_test_data) [TEST_FLOAT]: Disable one test.
837         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
838         (lrint_tonearest_test_data): Test for "inexact" exceptions.
839         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
840         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
841         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
842         test input.
843         (lrint_towardzero_test_data): Test for "inexact" exceptions.
844         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
845         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
846         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
847         that test input.
848         (lrint_downward_test_data): Test for "inexact" exceptions.
849         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
850         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
851         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
852         test input.
853         (lrint_upward_test_data): Test for "inexact" exceptions.
854         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
855         test input.
856         (llrint_test_data): Test for "inexact" exceptions.
857         (llrint_test_data) [TEST_FLOAT]: Disable one test.
858         (llrint_tonearest_test_data): Test for "inexact" exceptions.
859         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
860         (llrint_towardzero_test_data): Test for "inexact" exceptions.
861         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
862         (llrint_downward_test_data): Test for "inexact" exceptions.
863         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
864         (llrint_upward_test_data): Test for "inexact" exceptions.
865         (logb_test_data): Likewise.
866         (logb_downward_test_data): Likewise.
867         (nextafter_test_data): Likewise.
868         (nexttoward_test_data): Likewise.
869         (remainder_test_data): Likewise.
870         (remquo_test_data): Likewise.
871         (scalbn_test_data): Likewise.
872         (scalbln_test_data): Likewise.
873         (signbit_test_data): Likewise.
874         (sqrt_test_data): Likewise.
875         (significand_test_data): Likewise.
876
877 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
878
879         [BZ #15424]
880         * benchtests/bench-modf.c (struct args): Mark arg0 as
881         volatile.
882         * scripts/bench.pl: Mark members of struct args as volatile.
883
884 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
885
886         [BZ # 15497]
887         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
888         negative infinity on POWER6 or lower.
889         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
890
891 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
892
893         [BZ #15442]
894         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
895         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
896         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
897         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
898         (_FP_SETQNAN): New macro.
899         (_FP_SETQNAN_SEMIRAW): Likewise.
900         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
901         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
902         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
903         (FP_EXTEND): Use _FP_FRAC_SNANP.
904         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
905         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
906         into account.
907         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
908         New macro.
909         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
910         Likewise.
911
912 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
913
914         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
915         with DIVIDE_BY_ZERO_EXCEPTION.
916         (gamma_test_data): Likewise.
917         (lgamma_test_data): Likewise.
918         (log_test_data): Likewise.
919         (log10_test_data): Likewise.
920         (log2_test_data): Likewise.
921         (tgamma_test_data): Likewise.
922
923         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
924         (acos_test_tonearest): Likewise.
925         (acos_test_towardzero): Likewise.
926         (acos_test_downward): Likewise.
927         (acos_test_upward): Likewise.
928         (acosh_test): Likewise.
929         (asin_test): Likewise.
930         (asin_test_tonearest): Likewise.
931         (asin_test_towardzero): Likewise.
932         (asin_test_downward): Likewise.
933         (asin_test_upward): Likewise.
934         (asinh_test): Likewise.
935         (atan_test): Likewise.
936         (atanh_test): Likewise.
937         (atan2_test): Likewise.
938         (cabs_test): Likewise.
939         (cacos_test): Likewise.
940         (cacosh_test): Likewise.
941         (casin_test): Likewise.
942         (casinh_test): Likewise.
943         (catan_test): Likewise.
944         (catanh_test): Likewise.
945         (cbrt_test): Likewise.
946         (ccos_test): Likewise.
947         (ccosh_test): Likewise.
948         (cexp_test): Likewise.
949         (clog_test): Likewise.
950         (clog10_test): Likewise.
951         (cos_test): Likewise.
952         (cos_test_tonearest): Likewise.
953         (cos_test_towardzero): Likewise.
954         (cos_test_downward): Likewise.
955         (cos_test_upward): Likewise.
956         (cosh_test): Likewise.
957         (cosh_test_tonearest): Likewise.
958         (cosh_test_towardzero): Likewise.
959         (cosh_test_downward): Likewise.
960         (cosh_test_upward): Likewise.
961         (cpow_test): Likewise.
962         (csin_test): Likewise.
963         (csinh_test): Likewise.
964         (csqrt_test): Likewise.
965         (ctan_test): Likewise.
966         (ctan_test_tonearest): Likewise.
967         (ctan_test_towardzero): Likewise.
968         (ctan_test_downward): Likewise.
969         (ctan_test_upward): Likewise.
970         (ctanh_test): Likewise.
971         (ctanh_test_tonearest): Likewise.
972         (ctanh_test_towardzero): Likewise.
973         (ctanh_test_downward): Likewise.
974         (ctanh_test_upward): Likewise.
975         (erf_test): Likewise.
976         (erfc_test): Likewise.
977         (exp_test): Likewise.
978         (exp_test_tonearest): Likewise.
979         (exp_test_towardzero): Likewise.
980         (exp_test_downward): Likewise.
981         (exp_test_upward): Likewise.
982         (exp10_test): Likewise.
983         (exp2_test): Likewise.
984         (expm1_test): Likewise.
985         (fmod_test): Likewise.
986         (gamma_test): Likewise.
987         (hypot_test): Likewise.
988         (j0_test): Likewise.
989         (j1_test): Likewise.
990         (jn_test): Likewise.
991         (lgamma_test): Likewise.
992         (log_test): Likewise.
993         (log10_test): Likewise.
994         (log1p_test): Likewise.
995         (log2_test): Likewise.
996         (logb_test_downward): Likewise.
997         (pow_test): Likewise.
998         (pow_test_tonearest): Likewise.
999         (pow_test_towardzero): Likewise.
1000         (pow_test_downward): Likewise.
1001         (pow_test_upward): Likewise.
1002         (remainder_test): Likewise.
1003         (remquo_test): Likewise.
1004         (sin_test): Likewise.
1005         (sin_test_tonearest): Likewise.
1006         (sin_test_towardzero): Likewise.
1007         (sin_test_downward): Likewise.
1008         (sin_test_upward): Likewise.
1009         (sincos_test): Likewise.
1010         (sinh_test): Likewise.
1011         (sinh_test_tonearest): Likewise.
1012         (sinh_test_towardzero): Likewise.
1013         (sinh_test_downward): Likewise.
1014         (sinh_test_upward): Likewise.
1015         (sqrt_test): Likewise.
1016         (tan_test): Likewise.
1017         (tan_test_tonearest): Likewise.
1018         (tan_test_towardzero): Likewise.
1019         (tan_test_downward): Likewise.
1020         (tan_test_upward): Likewise.
1021         (tanh_test): Likewise.
1022         (tgamma_test): Likewise.
1023         (y0_test): Likewise.
1024         (y1_test): Likewise.
1025         (yn_test): Likewise.
1026
1027         * math/gen-libm-test.pl (adjust_arg): Remove function.
1028         (special_function): Remove argument $in_func.  Only handle
1029         generating output for tables of tests, not inside functions.
1030         (parse_args): Likewise.
1031         (generate_testfile): Remove variable $in_func.  Update call to
1032         parse_args.
1033         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
1034         (MINUS_ZERO_INIT): Rename macro to minus_zero.
1035         (PLUS_INFTY_INIT): Rename macro to plus_infty.
1036         (MINUS_INFTY_INIT): Rename macro to minus_infty.
1037         (QNAN_VALUE_INIT): Rename macro to qnan_value.
1038         (MAX_VALUE_INIT): Rename macro to max_value.
1039         (MIN_VALUE_INIT): Rename macro to min_value.
1040         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
1041         (plus_zero): Remove variable.
1042         (minus_zero): Likewise.
1043         (plus_infty): Likewise.
1044         (minus_infty): Likewise.
1045         (qnan_value): Likewise.
1046         (max_value): Likewise.
1047         (min_value): Likewise.
1048         (min_subnorm_value): Likewise.
1049
1050 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1051
1052         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
1053         uint64_t or uint32_t usage.
1054         * crypt/sha256-block.c: Likewise.
1055         * crypt/sha256-crypt.c: Likewise.
1056         * crypt/sha256.c: Likewise.
1057         * crypt/sha512-block.c: Likewise.
1058         * crypt/sha512-crypt.c: Likewise.
1059         * crypt/sha512.c: Likewise.
1060         * debug/backtrace-tst.c: Likewise.
1061         * debug/pcprofiledump.c: Likewise.
1062         * elf/cache.c: Likewise.
1063         * elf/dl-cache.c: Likewise.
1064         * elf/dl-misc.c: Likewise.
1065         * elf/dl-profile.c: Likewise.
1066         * elf/dl-support.c: Likewise.
1067         * elf/ldconfig.c: Likewise.
1068         * elf/sprof.c: Likewise.
1069         * iconv/dummy-repertoire.c: Likewise.
1070         * iconv/iconv_charmap.c: Likewise.
1071         * iconv/skeleton.c: Likewise.
1072         * iconvdata/8bit-generic.c: Likewise.
1073         * iconvdata/cp737.h: Likewise.
1074         * iconvdata/cp775.h: Likewise.
1075         * iconvdata/ibm1008.h: Likewise.
1076         * iconvdata/ibm1025.h: Likewise.
1077         * iconvdata/ibm1046.h: Likewise.
1078         * iconvdata/ibm1097.h: Likewise.
1079         * iconvdata/ibm1112.h: Likewise.
1080         * iconvdata/ibm1122.h: Likewise.
1081         * iconvdata/ibm1123.h: Likewise.
1082         * iconvdata/ibm1124.h: Likewise.
1083         * iconvdata/ibm1129.h: Likewise.
1084         * iconvdata/ibm1130.h: Likewise.
1085         * iconvdata/ibm1132.h: Likewise.
1086         * iconvdata/ibm1133.h: Likewise.
1087         * iconvdata/ibm1137.h: Likewise.
1088         * iconvdata/ibm1140.h: Likewise.
1089         * iconvdata/ibm1141.h: Likewise.
1090         * iconvdata/ibm1142.h: Likewise.
1091         * iconvdata/ibm1143.h: Likewise.
1092         * iconvdata/ibm1144.h: Likewise.
1093         * iconvdata/ibm1145.h: Likewise.
1094         * iconvdata/ibm1146.h: Likewise.
1095         * iconvdata/ibm1147.h: Likewise.
1096         * iconvdata/ibm1148.h: Likewise.
1097         * iconvdata/ibm1149.h: Likewise.
1098         * iconvdata/ibm1153.h: Likewise.
1099         * iconvdata/ibm1154.h: Likewise.
1100         * iconvdata/ibm1155.h: Likewise.
1101         * iconvdata/ibm1156.h: Likewise.
1102         * iconvdata/ibm1157.h: Likewise.
1103         * iconvdata/ibm1158.h: Likewise.
1104         * iconvdata/ibm1160.h: Likewise.
1105         * iconvdata/ibm1161.h: Likewise.
1106         * iconvdata/ibm1162.h: Likewise.
1107         * iconvdata/ibm1163.h: Likewise.
1108         * iconvdata/ibm1164.h: Likewise.
1109         * iconvdata/ibm1166.h: Likewise.
1110         * iconvdata/ibm1167.h: Likewise.
1111         * iconvdata/ibm12712.h: Likewise.
1112         * iconvdata/ibm1390.h: Likewise.
1113         * iconvdata/ibm1399.h: Likewise.
1114         * iconvdata/ibm16804.h: Likewise.
1115         * iconvdata/ibm4517.h: Likewise.
1116         * iconvdata/ibm4899.h: Likewise.
1117         * iconvdata/ibm4909.h: Likewise.
1118         * iconvdata/ibm4971.h: Likewise.
1119         * iconvdata/ibm5347.h: Likewise.
1120         * iconvdata/ibm803.h: Likewise.
1121         * iconvdata/ibm856.h: Likewise.
1122         * iconvdata/ibm901.h: Likewise.
1123         * iconvdata/ibm902.h: Likewise.
1124         * iconvdata/ibm9030.h: Likewise.
1125         * iconvdata/ibm9066.h: Likewise.
1126         * iconvdata/ibm921.h: Likewise.
1127         * iconvdata/ibm922.h: Likewise.
1128         * iconvdata/ibm9448.h: Likewise.
1129         * iconvdata/isiri-3342.h: Likewise.
1130         * iconvdata/jis0201.h: Likewise.
1131         * include/link.h: Likewise.
1132         * include/netdb.h: Likewise.
1133         * inet/check_native.c: Likewise.
1134         * inet/check_pf.c: Likewise.
1135         * inet/getipv4sourcefilter.c: Likewise.
1136         * inet/getnameinfo.c: Likewise.
1137         * inet/getsourcefilter.c: Likewise.
1138         * inet/htonl.c: Likewise.
1139         * inet/setipv4sourcefilter.c: Likewise.
1140         * inet/setsourcefilter.c: Likewise.
1141         * inet/test-inet6_opt.c: Likewise.
1142         * inet/tst-network.c: Likewise.
1143         * locale/C-collate.c: Likewise.
1144         * locale/C-ctype.c: Likewise.
1145         * locale/C-time.c: Likewise.
1146         * locale/C-translit.h: Likewise.
1147         * locale/loadarchive.c: Likewise.
1148         * locale/programs/3level.h: Likewise.
1149         * locale/programs/charmap.c: Likewise.
1150         * locale/programs/charmap.h: Likewise.
1151         * locale/programs/ld-address.c: Likewise.
1152         * locale/programs/ld-collate.c: Likewise.
1153         * locale/programs/ld-ctype.c: Likewise.
1154         * locale/programs/ld-identification.c: Likewise.
1155         * locale/programs/ld-measurement.c: Likewise.
1156         * locale/programs/ld-messages.c: Likewise.
1157         * locale/programs/ld-monetary.c: Likewise.
1158         * locale/programs/ld-name.c: Likewise.
1159         * locale/programs/ld-numeric.c: Likewise.
1160         * locale/programs/ld-paper.c: Likewise.
1161         * locale/programs/ld-telephone.c: Likewise.
1162         * locale/programs/ld-time.c: Likewise.
1163         * locale/programs/linereader.c: Likewise.
1164         * locale/programs/locale.c: Likewise.
1165         * locale/programs/locarchive.c: Likewise.
1166         * locale/programs/locfile.h: Likewise.
1167         * locale/programs/repertoire.c: Likewise.
1168         * locale/programs/simple-hash.c: Likewise.
1169         * locale/programs/simple-hash.h: Likewise.
1170         * malloc/memusage.c: Likewise.
1171         * malloc/memusagestat.c: Likewise.
1172         * nis/nis_defaults.c: Likewise.
1173         * nis/nis_hash.c: Likewise.
1174         * nis/nis_print.c: Likewise.
1175         * nis/nis_xdr.c: Likewise.
1176         * nscd/connections.c: Likewise.
1177         * nscd/hstcache.c: Likewise.
1178         * nscd/nscd_gethst_r.c: Likewise.
1179         * nscd/nscd_getserv_r.c: Likewise.
1180         * nscd/nscd_helper.c: Likewise.
1181         * nscd/servicescache.c: Likewise.
1182         * nss/makedb.c: Likewise.
1183         * nss/nss_db/db-XXX.c: Likewise.
1184         * nss/nss_db/db-initgroups.c: Likewise.
1185         * nss/nss_db/db-netgrp.c: Likewise.
1186         * nss/nss_files/files-network.c: Likewise.
1187         * nss/nss_files/files-parse.c: Likewise.
1188         * posix/bug-regex5.c: Likewise.
1189         * posix/fnmatch_loop.c: Likewise.
1190         * posix/regcomp.c: Likewise.
1191         * posix/regexec.c: Likewise.
1192         * posix/tst-rfc3484-2.c: Likewise.
1193         * posix/tst-rfc3484-3.c: Likewise.
1194         * posix/tst-rfc3484.c: Likewise.
1195         * resolv/nss_dns/dns-canon.c: Likewise.
1196         * resolv/nss_dns/dns-network.c: Likewise.
1197         * resolv/res_init.c: Likewise.
1198         * resolv/res_mkquery.c: Likewise.
1199         * resolv/tst-aton.c: Likewise.
1200         * stdlib/cxa_atexit.c: Likewise.
1201         * stdlib/cxa_finalize.c: Likewise.
1202         * stdlib/gen-fpioconst.c: Likewise.
1203         * stdlib/strtol_l.c: Likewise.
1204         * string/tst-endian.c: Likewise.
1205         * sunrpc/auth_des.c: Likewise.
1206         * sunrpc/clnt_udp.c: Likewise.
1207         * sunrpc/rtime.c: Likewise.
1208         * sunrpc/svcauth_des.c: Likewise.
1209         * sunrpc/xdr.c: Likewise.
1210         * sunrpc/xdr_intXX_t.c: Likewise.
1211         * sunrpc/xdr_rec.c: Likewise.
1212         * sysdeps/generic/ldconfig.h: Likewise.
1213         * sysdeps/generic/ldsodefs.h: Likewise.
1214         * sysdeps/generic/memusage.h: Likewise.
1215         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
1216         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
1217         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
1218         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
1219         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
1220         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
1221         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
1222         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
1223         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
1224         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
1225         * sysdeps/posix/getaddrinfo.c: Likewise.
1226         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
1227         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
1228         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
1229         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1230         * sysdeps/powerpc/test-gettimebase.c: Likewise.
1231         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
1232         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
1233         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
1234         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
1235         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
1236         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
1237         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1238         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
1239         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
1240         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
1241         * sysdeps/x86_64/dl-tls.h: Likewise.
1242         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
1243         * time/alt_digit.c: Likewise.
1244         * time/era.c: Likewise.
1245         * wcsmbs/tst-c16c32-1.c: Likewise.
1246
1247 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
1248
1249         * math/libm-test.inc (struct test_sincos_data): New type.
1250         (RUN_TEST_LOOP_sincos): New macro.
1251         (sincos_test_data): New variable.
1252         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
1253
1254 2013-05-16  Richard Henderson  <rth@redhat.com>
1255
1256         * math/atest-exp2.c (LIMB64): New macro.
1257         (CONSTSZ): New macro.
1258         (mp_exp1, mp_exp_m1, mp_log2): New variables.
1259         (hexdig): Move ...
1260         (print_mpn_fp): ... to function scope.
1261         (read_mpn_hex): Remove.
1262         (get_log2): Remove.
1263         (exp2_mpn): Use mp_log2.
1264         (main): Use mp_exp1.
1265
1266 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
1267
1268         * math/libm-test.inc: Remove comment about not testing "inexact"
1269         exceptions.
1270         (INEXACT_EXCEPTION): New macro.
1271         (NO_INEXACT_EXCEPTION): Likewise.
1272         (INVALID_EXCEPTION_OK): Update value.
1273         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1274         (OVERFLOW_EXCEPTION_OK): Likewise.
1275         (UNDERFLOW_EXCEPTION_OK): Likewise.
1276         (IGNORE_ZERO_INF_SIGN): Likewise.
1277         (ERRNO_UNCHANGED): Likewise.
1278         (ERRNO_EDOM): Likewise.
1279         (ERRNO_ERANGE): Likewise.
1280         (test_exceptions): Handle testing "inexact" exceptions.
1281         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
1282         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
1283         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
1284         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
1285         INEXACT_EXCEPTION.
1286         (rint_towardzero_test_data): Likewise.
1287         (rint_downward_test_data): Likewise.
1288         (rint_upward_test_data): Likewise.
1289
1290         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
1291         with OVERFLOW_EXCEPTION.
1292         (exp10_test_data): Likewise.
1293         (exp2_test_data): Likewise.
1294         (expm1_test_data): Likewise.
1295         (lgamma_test_data): Likewise.
1296         (pow_test_data): Likewise.
1297         (tgamma_test_data): Likewise.
1298         (yn_test_data): Remove duplicate test of overflow.
1299
1300         * math/libm-test.inc (struct test_cc_c_data): New type.
1301         (RUN_TEST_LOOP_cc_c): New macro.
1302         (cpow_test_data): New variable.
1303         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
1304
1305         * math/libm-test.inc (struct test_f_L_data): New type.
1306         (RUN_TEST_LOOP_f_L): New macro.
1307         (llrint_test_data): New variable.
1308         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
1309         (llrint_tonearest_test_data): New variable.
1310         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
1311         (llrint_towardzero_test_data): New variable.
1312         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
1313         (llrint_downward_test_data): New variable.
1314         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
1315         (llrint_upward_test_data): New variable.
1316         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
1317         (llround_test_data): New variable.
1318         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
1319
1320 2013-05-13  Peter Collingbourne  <pcc@google.com>
1321
1322         * math/atest-exp2.c (get_log2): Remove const attribute.
1323
1324 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
1325
1326         * math/libm-test.inc (struct test_f_l_data): New type.
1327         (RUN_TEST_LOOP_f_l): New macro.
1328         (lrint_test_data): New variable.
1329         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
1330         (lrint_tonearest_test_data): New variable.
1331         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
1332         (lrint_towardzero_test_data): New variable.
1333         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
1334         (lrint_downward_test_data): New variable.
1335         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
1336         (lrint_upward_test_data): New variable.
1337         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
1338         (lround_test_data): New variable.
1339         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
1340
1341 2013-05-15  Peter Collingbourne  <pcc@google.com>
1342
1343         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
1344         (EXTRACT_WORDS64) Use where appropriate.
1345         (INSERT_WORDS64) Likewise.
1346
1347         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
1348         constraints with x constraints.
1349         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
1350
1351         * malloc/obstack.c (_obstack_compat): Add initializer.
1352
1353 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1354
1355         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
1356         si_trapno and add si_addr_lsb to _sifields.sigfault.
1357         (si_trapno): Remove macro.
1358         (si_addr_lsb): Define new macro.
1359         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
1360
1361 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
1362
1363         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
1364         instead of TEST_f_l.
1365         (llrint_test_tonearest): Likewise.
1366         (llrint_test_towardzero): Likewise.
1367         (llrint_test_downward): Likewise.
1368         (llrint_test_upward): Likewise.
1369         (llround_test): Likewise.
1370
1371         * math/libm-test.inc (struct test_f_i_data): Add comment.
1372         (RUN_TEST_LOOP_f_b): New macro.
1373         (RUN_TEST_LOOP_f_b_tg): Likewise.
1374         (finite_test_data): New variable.
1375         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
1376         (isfinite_test_data): New variable.
1377         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
1378         (isinf_test_data): New variable.
1379         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
1380         (isnan_test_data): New variable.
1381         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
1382         (isnormal_test_data): New variable.
1383         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
1384         (issignaling_test_data): New variable.
1385         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
1386         (signbit_test_data): New variable.
1387         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
1388
1389         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
1390         with INVALID_EXCEPTION.
1391         (acosh_test_data): Likewise.
1392         (asin_test_data): Likewise.
1393         (atanh_test_data): Likewise.
1394         (fmod_test_data): Likewise.
1395         (log_test_data): Likewise.
1396         (log10_test_data): Likewise.
1397         (log2_test_data): Likewise.
1398         (pow_test_data): Likewise.
1399         (sqrt_test_data): Likewise.
1400         (y0_test_data): Likewise.
1401         (y1_test_data): Likewise.
1402         (yn_test_data): Likewise.
1403
1404         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
1405         function contents.
1406
1407         * math/libm-test.inc (struct test_ff_i_data): New type.
1408         (RUN_TEST_LOOP_ff_i_tg): New macro.
1409         (isgreater_test_data): New variable.
1410         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
1411         (isgreaterequal_test_data): New variable.
1412         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
1413         (isless_test_data): New variable.
1414         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
1415         (islessequal_test_data): New variable.
1416         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
1417         (islessgreater_test_data): New variable.
1418         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
1419         (isunordered_test_data): New variable.
1420         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
1421
1422 2013-05-14  David S. Miller  <davem@davemloft.net>
1423
1424         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1425
1426 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
1427
1428         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
1429
1430         * math/libm-test.inc (struct test_fF_f1_data): Change type of
1431         extra_test to int.
1432         (struct test_f_i_data): Change type of max_ulp to int.
1433
1434         * math/libm-test.inc (test_ffI_f1_data): New type.
1435         (RUN_TEST_LOOP_ffI_f1): New macro.
1436         (remquo_test_data): New variable.
1437         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
1438
1439         * setjmp/tst-setjmp-fp.c: New file.
1440         * setjmp/Makefile (tests): Add tst-setjmp-fp.
1441         (link-libm): New variable.
1442         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
1443
1444         * math/libm-test.inc (struct test_f_i_data): New type.
1445         (RUN_TEST_LOOP_f_i): New macro.
1446         (RUN_TEST_LOOP_f_i_tg): Likewise.
1447         (fpclassify_test_data): New variable.
1448         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
1449         (ilogb_test_data): New variable.
1450         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
1451
1452         * math/libm-test.inc (scalbln_test): Correct function name in END
1453         call.
1454
1455         * math/libm-test.inc (struct test_f_f1_data): Add comment.
1456         (RUN_TEST_LOOP_fI_f1): New macro.
1457         (frexp_test_data): New variable.
1458         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
1459
1460         * math/libm-test.inc (struct test_fF_f1_data): New type.
1461         (RUN_TEST_LOOP_fF_f1): New macro.
1462         (modf_test_data): New variable.
1463         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
1464
1465         * math/libm-test.inc (struct test_f_f1_data): New type.
1466         (RUN_TEST_LOOP_f_f1): New macro.
1467         (gamma_test_data): New variable.
1468         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
1469         (lgamma_test_data): New variable.
1470         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
1471
1472 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
1473
1474         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
1475         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
1476         (main): Comment "tls" pseudo-hwcap.
1477
1478 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
1479
1480         * math/libm-test.inc (struct test_fl_f_data): New type.
1481         (RUN_TEST_LOOP_fl_f): New variable.
1482         (scalbln_test_data): New variable.
1483         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
1484
1485         * math/libm-test.inc (struct test_fi_f_data): New type.
1486         (RUN_TEST_LOOP_fi_f): New macro.
1487         (ldexp_test_data): New variable.
1488         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
1489         (scalbn_test_data): New variable.
1490         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
1491
1492         * math/libm-test.inc (struct test_c_f_data): New type.
1493         (RUN_TEST_LOOP_c_f): New macro.
1494         (cabs_test_data): New variable.
1495         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
1496         (carg_test_data): New variable.
1497         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
1498         (cimag_test_data): New variable.
1499         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
1500         (creal_test_data): New variable.
1501         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
1502
1503         * math/libm-test.inc (struct test_if_f_data): New type.
1504         (RUN_TEST_LOOP_if_f): New macro.
1505         (jn_test_data): New variable.
1506         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
1507         (yn_test_data): New variable.
1508         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
1509
1510         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
1511
1512 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1513
1514         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
1515         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
1516
1517 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
1518
1519         * benchtests/Makefile (CPPFLAGS-nonlib): Add
1520         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
1521         (bench-deps): Add bench-timing.h.
1522         * benchtests-bench-skeleton.c: Include bench-timing.h.
1523         (main): Use TIMING_* macros instead of clock_gettime.
1524         * benchtests/bench-timing.h: New file.
1525
1526         [BZ #14582]
1527         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
1528         Renamed from _LIB_VERSION.
1529         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
1530
1531 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
1532
1533         * math/libm-test.inc (struct test_fff_f_data): New type.
1534         (RUN_TEST_LOOP_fff_f): New macro.
1535         (fma_test_data): New variable.
1536         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
1537         (fma_towardzero_test_data): New variable.
1538         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
1539         (fma_downward_test_data): New variable.
1540         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
1541         (fma_upward_test_data): New variable.
1542         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
1543
1544         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
1545         (struct test_c_c_data): New type.
1546         (RUN_TEST_LOOP_c_c): New macro.
1547         (cacos_test_data): New variable.
1548         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
1549         (cacosh_test_data): New variable.
1550         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
1551         (casin_test_data): New variable.
1552         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
1553         (casinh_test_data): New variable.
1554         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
1555         (catan_test_data): New variable.
1556         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
1557         (catanh_test_data): New variable.
1558         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
1559         (ccos_test_data): New variable.
1560         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
1561         (ccosh_test_data): New variable.
1562         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
1563         (cexp_test_data): New variable.
1564         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
1565         (clog_test_data): New variable.
1566         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
1567         (clog10_test_data): New variable.
1568         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
1569         (conj_test_data): New variable.
1570         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
1571         (cproj_test_data): New variable.
1572         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
1573         (csin_test_data): New variable.
1574         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
1575         (csinh_test_data): New variable.
1576         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
1577         (csqrt_test_data): New variable.
1578         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
1579         (ctan_test_data): New variable.
1580         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
1581         (ctan_tonearest_test_data): New variable.
1582         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
1583         (ctan_towardzero_test_data): New variable.
1584         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
1585         (ctan_downward_test_data): New variable.
1586         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
1587         (ctan_upward_test_data): New variable.
1588         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
1589         (ctanh_test_data): New variable.
1590         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
1591         (ctanh_tonearest_test_data): New variable.
1592         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
1593         (ctanh_towardzero_test_data): New variable.
1594         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
1595         (ctanh_downward_test_data): New variable.
1596         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
1597         (ctanh_upward_test_data): New variable.
1598         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
1599         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
1600         of BUILD_COMPLEX.
1601
1602         * math/libm-test.inc (struct test_ff_f_data): New type.
1603         (struct test_ff_f_data_nexttoward): Likewise.
1604         (RUN_TEST_LOOP_2_f): New macro.
1605         (RUN_TEST_LOOP_ff_f): Likewise.
1606         (atan2_test_data): New variable.
1607         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
1608         (copysign_test_data): New variable.
1609         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
1610         (fdim_test_data): New variable.
1611         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
1612         (fmax_test_data): New variable.
1613         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
1614         (fmin_test_data): New variable.
1615         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
1616         (fmod_test_data): New variable.
1617         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
1618         (hypot_test_data): New variable.
1619         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
1620         (nextafter_test_data): New variable.
1621         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
1622         (nexttoward_test_data): New variable.
1623         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
1624         (pow_test_data): New variable.
1625         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
1626         (pow_tonearest_test_data): New variable.
1627         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
1628         (pow_towardzero_test_data): New variable.
1629         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
1630         (pow_downward_test_data): New variable.
1631         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
1632         (pow_upward_test_data): New variable.
1633         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
1634         (remainder_test_data): New variable.
1635         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
1636         (scalb_test_data): New variable.
1637         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
1638         * sysdeps/i386/fpu/libm-test-ulps: Update.
1639
1640 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
1641
1642         * math/libm-test.inc (fma_test): Use max_value instead of local
1643         variable fltmax.
1644         (nextafter_test): Likewise.
1645
1646         * math/libm-test.inc (acos_towardzero_test_data): New variable.
1647         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1648         (acos_downward_test_data): New variable.
1649         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1650         (acos_upward_test_data): New variable.
1651         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1652         (acosh_test_data): New variable.
1653         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
1654         (asin_test_data): New variable.
1655         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
1656         (asin_tonearest_test_data): New variable.
1657         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1658         (asin_towardzero_test_data): New variable.
1659         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1660         (asin_downward_test_data): New variable.
1661         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1662         (asin_upward_test_data): New variable.
1663         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1664         (asinh_test_data): New variable.
1665         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
1666         (atan_test_data): New variable.
1667         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
1668         (atanh_test_data): New variable.
1669         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
1670         (cbrt_test_data): New variable.
1671         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
1672         (ceil_test_data): New variable.
1673         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
1674         (cos_test_data): New variable.
1675         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
1676         (cos_tonearest_test_data): New variable.
1677         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1678         (cos_towardzero_test_data): New variable.
1679         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1680         (cos_downward_test_data): New variable.
1681         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1682         (cos_upward_test_data): New variable.
1683         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1684         (cosh_test_data): New variable.
1685         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
1686         (cosh_tonearest_test_data): New variable.
1687         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1688         (cosh_towardzero_test_data): New variable.
1689         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1690         (cosh_downward_test_data): New variable.
1691         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1692         (cosh_upward_test_data): New variable.
1693         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1694         (erf_test_data): New variable.
1695         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
1696         (erfc_test_data): New variable.
1697         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
1698         (exp_test_data): New variable.
1699         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
1700         (exp_tonearest_test_data): New variable.
1701         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1702         (exp_towardzero_test_data): New variable.
1703         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1704         (exp_downward_test_data): New variable.
1705         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1706         (exp_upward_test_data): New variable.
1707         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1708         (exp10_test_data): New variable.
1709         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
1710         (exp2_test_data): New variable.
1711         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
1712         (expm1_test_data): New variable.
1713         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
1714         (fabs_test_data): New variable.
1715         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
1716         (floor_test_data): New variable.
1717         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
1718         (j0_test_data): New variable.
1719         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
1720         (j1_test_data): New variable.
1721         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
1722         (log_test_data): New variable.
1723         (log_test): Run tests with RUN_TEST_LOOP_f_f.
1724         (log10_test_data): New variable.
1725         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
1726         (log1p_test_data): New variable.
1727         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
1728         (log2_test_data): New variable.
1729         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
1730         (logb_test_data): New variable.
1731         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
1732         (logb_downward_test_data): New variable.
1733         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1734         (nearbyint_test_data): New variable.
1735         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
1736         (rint_test_data): New variable.
1737         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
1738         (rint_tonearest_test_data): New variable.
1739         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1740         (rint_towardzero_test_data): New variable.
1741         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1742         (rint_downward_test_data): New variable.
1743         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1744         (rint_upward_test_data): New variable.
1745         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1746         (round_test_data): New variable.
1747         (round_test): Run tests with RUN_TEST_LOOP_f_f.
1748         (sin_test_data): New variable.
1749         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
1750         (sin_tonearest_test_data): New variable.
1751         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1752         (sin_towardzero_test_data): New variable.
1753         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1754         (sin_downward_test_data): New variable.
1755         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1756         (sin_upward_test_data): New variable.
1757         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1758         (sinh_test_data): New variable.
1759         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
1760         (sinh_tonearest_test_data): New variable.
1761         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1762         (sinh_towardzero_test_data): New variable.
1763         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1764         (sinh_downward_test_data): New variable.
1765         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1766         (sinh_upward_test_data): New variable.
1767         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1768         (sqrt_test_data): New variable.
1769         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
1770         (tan_test_data): New variable.
1771         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
1772         (tan_tonearest_test_data): New variable.
1773         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1774         (tan_towardzero_test_data): New variable.
1775         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1776         (tan_downward_test_data): New variable.
1777         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1778         (tan_upward_test_data): New variable.
1779         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1780         (tanh_test_data): New variable.
1781         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
1782         (tgamma_test_data): New variable.
1783         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
1784         (trunc_test_data): New variable.
1785         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
1786         (y0_test_data): New variable.
1787         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
1788         (y1_test_data): New variable.
1789         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
1790         (significand_test_data): New variable.
1791         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
1792
1793 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
1794
1795         [BZ #12387]
1796         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
1797
1798 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1799
1800         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
1801
1802 2013-05-10  Andreas Jaeger  <aj@suse.de>
1803
1804         [BZ #15448]
1805         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
1806         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
1807
1808 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
1809
1810         * math/gen-libm-test.pl (adjust_arg): New function.
1811         (special_functions): Handle generating output in both functions
1812         and arrays.
1813         (parse_args): Likewise.
1814         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
1815         $in_func argument to parse_args.
1816         * math/libm-test.inc (struct test_f_f_data): New type.
1817         (IF_ROUND_INIT_): New macro.
1818         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
1819         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
1820         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
1821         (IF_ROUND_INIT_FE_UPWARD): Likewise.
1822         (ROUND_RESTORE_): Likewise.
1823         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
1824         (ROUND_RESTORE_FE_TONEAREST): Likewise.
1825         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
1826         (ROUND_RESTORE_FE_UPWARD): Likewise.
1827         (RUN_TEST_LOOP_f_f): New macro.
1828         (acos_test_data): New variable.
1829         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
1830         (acos_tonearest_test_data): New variable.
1831         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1832
1833 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1834
1835         * benchtests/bench-skeleton.c (startup): Fix coding style.
1836
1837 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
1838
1839         [BZ #6809]
1840         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
1841         negative infinity argument.
1842         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
1843         negative infinity argument.
1844         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
1845         negative infinity argument.
1846         * math/libm-test.inc (tgamma_test): Expect errno to be set for
1847         domain errors.
1848
1849 2013-05-10  Florian Weimer  <fweimer@redhat.com>
1850
1851         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
1852         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
1853         * iconv/iconv_prog.c (main): Likewise.
1854         * locale/programs/charmap-dir.c (charmap_readdir)
1855         (fopen_uncompressed): Likewise.
1856         * locale/programs/locfile.c (siblings_uncached)
1857         (write_locale_data): Use lstat64 instead of lstat.
1858         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
1859         stat.
1860
1861 2013-05-10  Andreas Jaeger  <aj@suse.de>
1862
1863         [BZ #15395]
1864         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
1865         localization.
1866         Include <locale.h>.
1867
1868 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
1869
1870         * elf/dl-close.c (_dl_close_worker): Add comments.
1871
1872 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
1873
1874         [BZ #15359]
1875         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
1876         high part of pi/2.
1877         (__ieee754_rem_pio2l): Update comments.
1878
1879         [BZ #15429]
1880         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
1881         high part of pi/2.
1882         (__ieee754_rem_pio2l): Update comments.
1883
1884         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
1885         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
1886
1887         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
1888         M_PI_4l.
1889
1890         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
1891         (M_PI_34_LOG10El): Likewise.
1892         (M_PI2_LOG10El): Likewise.
1893         (M_PI4_LOG10El): Likewise.
1894         (M_PI_LOG10El): Likewise.
1895
1896 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1897
1898         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1899
1900 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
1901
1902         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
1903         (MINUS_ZERO_INIT): Likewise.
1904         (PLUS_INFTY_INIT): Likewise.
1905         (MINUS_INFTY_INIT): Likewise.
1906         (QNAN_VALUE_INIT): Likewise.
1907         (MAX_VALUE_INIT): Likewise.
1908         (MIN_VALUE_INIT): Likewise.
1909         (MIN_SUBNORM_VALUE_INIT): Likewise.
1910         (plus_zero): Initialize with PLUS_ZERO_INIT.
1911         (minus_zero): Initialize with MINUS_ZERO_INIT.
1912         (plus_infty): Initialize with PLUS_INFTY_INIT.
1913         (minus_infty): Initialize with MINUS_INFTY_INIT.
1914         (qnan_value): Initialize with QNAN_VALUE_INIT.
1915         (max_value): Initialize with MAX_VALUE_INIT.
1916         (min_value): Initialize with MIN_VALUE_INIT.
1917         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
1918
1919         * math/libm-test.inc (RUN_TEST_if_f): New macro.
1920         (jn_test): Use TEST_if_f instead of TEST_ff_f.
1921         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
1922         (yn_test): Use TEST_if_f instead of TEST_ff_f.
1923
1924         * math/libm-test.inc (RUN_TEST_f_f): New macro.
1925         (RUN_TEST_2_f): Likewise.
1926         (RUN_TEST_ff_f): Likewise.
1927         (RUN_TEST_fi_f): Likewise.
1928         (RUN_TEST_fl_f): Likewise.
1929         (RUN_TEST_fff_f): Likewise.
1930         (RUN_TEST_c_f): Likewise.
1931         (RUN_TEST_f_f1): Likewise.
1932         (RUN_TEST_fF_f1): Likewise.
1933         (RUN_TEST_fI_f1): Likewise.
1934         (RUN_TEST_ffI_f1): Likewise.
1935         (RUN_TEST_c_c): Likewise.
1936         (RUN_TEST_cc_c): Likewise.
1937         (RUN_TEST_f_i): Likewise.
1938         (RUN_TEST_f_i_tg): Likewise.
1939         (RUN_TEST_ff_i_tg): Likewise.
1940         (RUN_TEST_f_b): Likewise.
1941         (RUN_TEST_f_b_tg): Likewise.
1942         (RUN_TEST_f_l): Likewise.
1943         (RUN_TEST_f_L): Likewise.
1944         (RUN_TEST_sincos): Likewise.
1945         * math/gen-libm-test.pl (new_test): Take new argument to indicate
1946         whether to show exceptions.  Do not include ");\n" in return
1947         value.
1948         (special_functions): Output call to RUN_TEST_sincos instead of
1949         check_float calls.  Update calls to new_test.
1950         (parse_args): Output call to single RUN_TEST_* macro instead of
1951         check_* calls and other assignments.  Update calls to new_test.
1952
1953         [BZ #2546]
1954         [BZ #2560]
1955         [BZ #5159]
1956         [BZ #15426]
1957         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
1958         input to result for tgamma overflow.
1959         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
1960         (gamma_coeff): New variable.
1961         (NCOEFF): New macro.
1962         (gamma_positive): New function.
1963         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
1964         underflow here.  Use gamma_positive instead of exp (lgamma) for
1965         other arguments.
1966         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
1967         (gamma_coeff): New variable.
1968         (NCOEFF): New macro.
1969         (gammaf_positive): New function.
1970         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
1971         underflow here.  Use gamma_positive instead of exp (lgamma) for
1972         other arguments.
1973         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
1974         (gamma_coeff): New variable.
1975         (NCOEFF): New macro.
1976         (gammal_positive): New function.
1977         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
1978         underflow here.  Use gamma_positive instead of exp (lgamma) for
1979         other arguments.
1980         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
1981         (gamma_coeff): New variable.
1982         (NCOEFF): New macro.
1983         (gammal_positive): New function.
1984         (__ieee754_gammal_r): Handle positive infinity, overflow and
1985         underflow here.  Handle NaN the same as positive infinity.  Remove
1986         check x < 0xffffffff for negative integers.  Use gamma_positive
1987         instead of exp (lgamma) for other arguments.
1988         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
1989         (gamma_coeff): New variable.
1990         (NCOEFF): New macro.
1991         (gammal_positive): New function.
1992         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
1993         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
1994         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
1995         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
1996         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
1997         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
1998         * sysdeps/generic/math_private.h (__gamma_productf): New
1999         prototype.
2000         (__gamma_product): Likewise.
2001         (__gamma_productl): Likewise.
2002         * math/Makefile (libm-calls): Add gamma_product.
2003         * math/libm-test.inc (tgamma_test): Add more tests.
2004         * sysdeps/i386/fpu/libm-test-ulps: Update.
2005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2006
2007 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
2008
2009         * benchtests/bench-skeleton.c (main): Preheat CPU.
2010
2011 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
2012
2013         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
2014
2015 2013-05-07  Roland McGrath  <roland@hack.frob.com>
2016
2017         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
2018         and _dl_skip_args_internal.
2019
2020 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
2021
2022         * manual/message.texi (Message Translation): Talk about users.
2023         Message to key mapping impacts design.
2024
2025 2013-05-06  Roland McGrath  <roland@hack.frob.com>
2026
2027         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
2028
2029         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
2030
2031         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
2032         * sysdeps/wordsize-64/glob64.c: ... here.
2033
2034         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
2035         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
2036         New macros.
2037
2038         * debug/getlogin_r_chk.c: Moved to ...
2039         * login/getlogin_r_chk.c: ... here.
2040         * debug/Makefile (routines): Move getlogin_r_chk to ...
2041         * login/Makefile (routines): ... here.
2042         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
2043         * login/Versions (libc: GLIBC_2.4): ... here.
2044
2045         * io/poll.c (__poll): Renamed from poll.
2046         Add libc_hidden_def.
2047         (poll): Define as weak alias.
2048
2049         * debug/ptsname_r_chk.c: Moved to ...
2050         * login/ptsname_r_chk.c: ... here.
2051         * debug/Makefile (routines): Move ptsname_r_chk to ...
2052         * login/Makefile (routines): ... here.
2053         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
2054         * login/Versions (libc: GLIBC_2.4): ... here.
2055
2056         * posix/getlogin.c: Moved to ...
2057         * login/getlogin.c: ... here.
2058         * posix/getlogin_r.c: Moved to ...
2059         * login/getlogin_r.c: ... here.
2060         * posix/getlogin_r.c: Moved to ...
2061         * login/getlogin_r.c: ... here.
2062         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
2063         * login/Makefile (routines): ... here.
2064         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
2065         * login/Versions (libc: GLIBC_2.0): ... here.
2066
2067         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
2068         (setrlimit): Define as weak alias.
2069
2070         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
2071         Call __ names for open, ftruncate, and close.
2072         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
2073         (truncate): Define as weak alias.
2074
2075 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
2076
2077         * math/gen-libm-test.pl (parse_args): Initialize x before each
2078         test of frexp, modf and remquo.
2079
2080         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
2081         test signgam value.
2082
2083 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2084
2085         [BZ #15418]
2086         [BZ #15419]
2087         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
2088         internal tests.
2089         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2090
2091 2013-05-06  Roland McGrath  <roland@hack.frob.com>
2092
2093         * elf/dl-writev.h: New file.
2094         * elf/dl-misc.c: Include it.
2095         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
2096         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
2097
2098 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
2099
2100         * math/libm-test.inc (noXFails): Remove variable.
2101         (noXPasses): Likewise.
2102         (BUILD_COMPLEX_INT): Remove macro.
2103         (print_screen): Remove xfail argument.
2104         (print_screen_max_error): Likewise.
2105         (update_stats): Likewise.
2106         (print_max_error): Likewise.  Update calls to other affected
2107         functions.
2108         (print_complex_max_error): Likewise.
2109         (test_single_exception): Update calls to print_screen.
2110         (test_single_errno): Likewise.
2111         (check_float_internal): Remove xfail argument.  Update calls to
2112         other affected functions.
2113         (check_float): Likewise.
2114         (check_complex): Likewise.
2115         (check_int): Likewise.
2116         (check_long): Likewise.
2117         (check_bool): Likewise.
2118         (check_longlong): Likewise.
2119         (main): Don't print noXFails and noXPasses.
2120         * math/gen-libm-test.pl (top level): Don't mention expected
2121         failure handling in comment.
2122         (new_test): Don't handle expected failures.
2123         (parse_args): Don't mention expected failure handling in comment.
2124         (generate_testfile): Don't handle expected failures.
2125         (parse_ulps): Likewise.
2126         (print_ulps_file): Likewise.
2127         (get_failure): Remove function.
2128         (output_test): Don't handle expected failures.
2129         * make/README.libm-test: Don't mention expected failure handling.
2130
2131         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
2132         (minus_zero): Likewise.
2133         (plus_infty): Likewise.
2134         (minus_infty): Likewise.
2135         (qnan_value): Likewise.
2136         (max_value): Likewise.
2137         (min_value): Likewise.
2138         (min_subnorm_value): Likewise.
2139         (initialize): Do not initialize those variables dynamically.
2140
2141 2013-05-03  Roland McGrath  <roland@hack.frob.com>
2142
2143         * io/open.c (__open_2): Moved to ...
2144         * io/open_2.c: ... this new file.
2145         * io/open64.c (__open64_2): Moved to ...
2146         * io/open64_2.c: ... this new file.
2147         * io/openat.c (__openat_2): Moved to ...
2148         * io/openat_2.c: ... this new file.
2149         * io/openat64.c (__openat64_2): Moved to ...
2150         * io/openat64_2.c: ... this new file.
2151         * io/Makefile (routines): Add them.
2152         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
2153         * sysdeps/unix/sysv/linux/open_2.c: File removed.
2154         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
2155         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
2156         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
2157         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
2158         (__openat64): Add hidden_ver.
2159         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
2160         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
2161
2162         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
2163         Separately conditionalize setting of GLRO(dl_sysinfo) so
2164         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
2165         as well, but the actual setting is only under [NEED_DL_SYSINFO].
2166
2167 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2168
2169         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
2170         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
2171         definition.
2172         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
2173         * sysdeps/unix/sysv/linux/powerpc/init-first.c
2174         (_libc_vdso_platform_setup): Add __vdso_time initialization.
2175         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
2176         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
2177
2178 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
2179
2180         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
2181         test signgam value.
2182
2183         * math/libm-test.inc (hypot_test): Do not use
2184         IGNORE_ZERO_INF_SIGN.
2185
2186 2013-05-03  Andreas Jaeger  <aj@suse.de>
2187
2188         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
2189         Linux 3.9.
2190         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
2191         (PF_MAX): Adjust for VSOCK change.
2192
2193 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2194
2195         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2196
2197 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
2198
2199         [BZ #15264]
2200         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
2201         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
2202         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
2203
2204 2013-05-02  David S. Miller  <davem@davemloft.net>
2205
2206         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2207
2208 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
2209
2210         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
2211
2212 2013-05-01  Roland McGrath  <roland@hack.frob.com>
2213
2214         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
2215
2216 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
2217
2218         [BZ #14952]
2219         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
2220         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
2221         Use __attribute__ ((__gnu_inline__)).
2222         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
2223         Don't use __attribute__ ((__gnu_inline__)).
2224
2225 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
2226
2227         [BZ #15423]
2228         * math/s_catan.c (__catan): Handle small real or imaginary part of
2229         input specially to avoid spurious underflow.
2230         * math/s_catanf.c (__catanf): Likewise.
2231         * math/s_catanh.c (__catanh): Likewise.
2232         * math/s_catanhf.c (__catanhf): Likewise.
2233         * math/s_catanhl.c (__catanhl): Likewise.
2234         * math/s_catanl.c (__catanl): Likewise.
2235         * math/libm-test.inc (catan_test): Add more tests.
2236         (catanh_test): Likewise.
2237         * sysdeps/i386/fpu/libm-test-ulps: Update.
2238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2239
2240 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2241
2242         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2243
2244 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
2245
2246         [BZ #15416]
2247         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
2248         accurately for denominator in atan2.
2249         * math/s_catanf.c (__catanf): Likewise.
2250         * math/s_catanh.c (__catanh): Likewise.
2251         * math/s_catanhf.c (__catanhf): Likewise.
2252         * math/s_catanhl.c (__catanhl): Likewise.
2253         * math/s_catanl.c (__catanl): Likewise.
2254         * math/libm-test.inc (catan_test): Add more tests.
2255         (catanh_test): Likewise.
2256         * sysdeps/i386/fpu/libm-test-ulps: Update.
2257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2258
2259 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2260
2261         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
2262
2263         * benchtests/Makefile (bench): Remove slow benchmarks.
2264         * benchtests/atan-inputs: Add slow benchmark inputs.
2265         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
2266         (BENCH_FUNC): Accept variant offset.
2267         (VARIANT): Define.
2268         * benchtests/bench-skeleton.c (main): Run benchmark for each
2269         variant.
2270         * benchtests/cos-inputs: Add slow benchmark inputs.
2271         * benchtests/exp-inputs: Likewise.
2272         * benchtests/pow-inputs: Likewise.
2273         * benchtests/sin-inputs: Likewise.
2274         * benchtests/slowatan-inputs: Remove.
2275         * benchtests/slowatan.c: Remove.
2276         * benchtests/slowcos-inputs: Remove.
2277         * benchtests/slowcos.c: Remove.
2278         * benchtests/slowexp-inputs: Remove.
2279         * benchtests/slowexp.c: Remove.
2280         * benchtests/slowpow-inputs: Remove.
2281         * benchtests/slowpow.c: Remove.
2282         * benchtests/slowsin-inputs: Remove.
2283         * benchtests/slowsin.c: Remove.
2284         * benchtests/slowtan-inputs: Remove.
2285         * benchtests/slowtan.c: Remove.
2286         * benchtests/tan-inputs: Add slow benchmark inputs.
2287         * scripts/bench.pl: Parse comments and directives.
2288
2289         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
2290         in CPPFLAGS.
2291         ($(objpfx)bench-%.c): Remove *-ITER.
2292         * benchtests/bench-modf.c: Remove definition of ITER.
2293         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
2294         (main): Loop for DURATION seconds instead of fixed number of
2295         iterations.
2296         * scripts/bench.pl: Don't expect iterations in parameters.
2297
2298 2013-04-29  Roland McGrath  <roland@hack.frob.com>
2299
2300         * io/fchdir.c (__fchdir): Renamed from fchdir.
2301         (fchdir): Define as weak alias.
2302
2303 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
2304
2305         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
2306         (ERRNO_EDOM): Likewise.
2307         (ERRNO_ERANGE): Likewise.
2308         (noErrnoTests): New variable.
2309         (init_max_error): Set errno to 0.
2310         (test_single_errno): New function.
2311         (test_errno): Likewise.
2312         (check_float_internal): Call test_errno.  Set errno to 0.
2313         (check_complex): Refer to errno tests in comment.
2314         (check_int): Call test_errno.  Set errno to 0.
2315         (check_long): Likewise.
2316         (check_bool): Likewise.
2317         (check_longlong): Likewise.
2318         (cos_test): Use ERRNO_* flags for errno tests instead of
2319         check_int.
2320         (expm1_test): Likewise.
2321         (fmod_test): Likewise.
2322         (ilogb_test): Likewise.
2323         (lgamma_test): Likewise.
2324         (pow_test): Likewise.
2325         (remainder_test): Likewise.
2326         (sin_test): Likewise.
2327         (tan_test): Likewise.
2328         (yn_test): Likewise.
2329         (initialize): Set errno to 0.
2330         (main): Print number of errno tests.
2331         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
2332
2333 2013-04-29  Andreas Jaeger  <aj@suse.de>
2334
2335         [BZ #15084]
2336         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
2337         and RES_USEVC.
2338
2339         [BZ #15085]
2340         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
2341         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
2342         unimplemented.
2343
2344         [BZ #15380]
2345         * stdlib/random.c (__initstate): Return NULL if
2346         __initstate fails.
2347
2348         [BZ #15086]
2349         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
2350         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
2351         RES_SNGLKUPREOP.
2352
2353 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2354
2355         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2356
2357 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
2358
2359         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
2360         of individual tests.
2361         (casin_test): Likewise.
2362         (casinh_test): Likewise.
2363
2364 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
2365
2366         [BZ #15409]
2367         * math/s_catan.c (__catan): Handle arguments with large real or
2368         imaginary part separately without squaring.
2369         * math/s_catanf.c (__catanf): Likewise.
2370         * math/s_catanh.c (__catanh): Likewise.
2371         * math/s_catanhf.c (__catanhf): Likewise.
2372         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
2373         and redefine.
2374         (__catanhl): Handle arguments with large real or imaginary part
2375         separately without squaring.
2376         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
2377         and redefine.
2378         (__catanl): Handle arguments with large real or imaginary part
2379         separately without squaring.
2380         * math/libm-test.inc (catan_test): Add more tests.
2381         (catanh_test): Likewise.
2382         * sysdeps/i386/fpu/libm-test-ulps: Update.
2383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2384
2385 2013-04-27  Andreas Jaeger  <aj@suse.de>
2386
2387         [BZ #15007]
2388         * stdlib/stdlib.h: Update guards for qecvt.
2389         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
2390         <stdlib.h>.
2391
2392 2013-04-27  Allan McRae  <allan@archlinux.org>
2393
2394         * sysdeps/i386/fpu/libm-test-ulps: Update.
2395
2396 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
2397
2398         [BZ #15406]
2399         * math/s_catan.c: Include <float.h>.
2400         (__catan): Ensure underflow exception occurs for underflowed
2401         result.
2402         * math/s_catanf.c: Include <float.h>.
2403         (__catanf): Ensure underflow exception occurs for underflowed
2404         result.
2405         * math/s_catanh.c: Include <float.h>.
2406         (__catanh): Ensure underflow exception occurs for underflowed
2407         result.
2408         * math/s_catanhf.c: Include <float.h>.
2409         (__catanhf): Ensure underflow exception occurs for underflowed
2410         result.
2411         * math/s_catanhl.c: Include <float.h>.
2412         (__catanhl): Ensure underflow exception occurs for underflowed
2413         result.
2414         * math/s_catanl.c: Include <float.h>.
2415         (__catanl): Ensure underflow exception occurs for underflowed
2416         result.
2417         * math/libm-test.inc (catan_test): Add more tests.
2418         (catanh_test): Likewise.
2419
2420         [BZ #15405]
2421         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
2422         underflowed result.
2423         * math/s_ccoshf.c (__ccoshf): Likewise.
2424         * math/s_ccoshl.c (__ccoshl): Likewise.
2425         * math/s_csin.c (__csin): Likewise.
2426         * math/s_csinf.c (__csinf): Likewise.
2427         * math/s_csinh.c (__csinh): Likewise.
2428         * math/s_csinhf.c (__csinhf): Likewise.
2429         * math/s_csinhl.c (__csinhl): Likewise.
2430         * math/s_csinl.c (__csinl): Likewise.
2431         * math/libm-test.inc (ccos_test): Add more tests.
2432         (ccosh_test): Likewise.
2433         (csin_test): Likewise.
2434         (csinh_test): Likewise.
2435
2436 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2437
2438         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
2439         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
2440         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
2441         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
2442         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
2443         powerpc/power5+/fpu folders.
2444         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
2445
2446
2447 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2448
2449         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2450
2451 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
2452
2453         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
2454         additions to variable.
2455         [$(config-machine) = x86_64] (modules-names): Likewise.
2456         ($(objpfx)tst-audit3): Remove dependency.
2457         ($(objpfx)tst-audit3.out): Likewise.
2458         ($(objpfx)tst-audit4): Likewise.
2459         ($(objpfx)tst-audit4.out): Likewise.
2460         ($(objpfx)tst-audit5): Likewise.
2461         ($(objpfx)tst-audit5.out): Likewise.
2462         ($(objpfx)tst-audit6): Likewise.
2463         ($(objpfx)tst-audit6.out): Likewise.
2464         ($(objpfx)tst-audit7): Likewise.
2465         ($(objpfx)tst-audit7.out): Likewise.
2466         (tst-audit3-ENV): Remove variable.
2467         (tst-audit4-ENV): Likewise.
2468         (tst-audit5-ENV): Likewise.
2469         (tst-audit6-ENV): Likewise.
2470         (tst-audit7-ENV): Likewise.
2471         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
2472         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
2473         addition to variable.
2474         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
2475         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
2476         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
2477         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
2478         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
2479         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
2480         tst-audit3, tst-audit4 and tst-audit5.
2481         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
2482         tst-audit6 and tst-audit7.
2483         [$(subdir) = elf] (modules-names): Add audit modules for those
2484         tests.
2485         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
2486         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
2487         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
2488         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
2489         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
2490         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
2491         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
2492         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
2493         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
2494         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
2495         [$(subdir) = elf] (tst-audit3-ENV): New variable.
2496         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
2497         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
2498         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
2499         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
2500         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
2501         Likewise.
2502         [$(subdir) = elf && $(config-cflags-avx) = yes]
2503         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
2504         [$(subdir) = elf && $(config-cflags-avx) = yes]
2505         (CFLAGS-tst-auditmod4a.c): Likewise.
2506         [$(subdir) = elf && $(config-cflags-avx) = yes]
2507         (CFLAGS-tst-auditmod4b.c): Likewise.
2508         [$(subdir) = elf && $(config-cflags-avx) = yes]
2509         (CFLAGS-tst-auditmod6b.c): Likewise.
2510         [$(subdir) = elf && $(config-cflags-avx) = yes]
2511         (CFLAGS-tst-auditmod6c.c): Likewise.
2512         [$(subdir) = elf && $(config-cflags-avx) = yes]
2513         (CFLAGS-tst-auditmod7b.c): Likewise.
2514         * elf/tst-audit3.c: Move to ...
2515         * sysdeps/x86_64/tst-audit3.c: ... here.
2516         * elf/tst-audit4.c: Move to ...
2517         * sysdeps/x86_64/tst-audit4.c: ... here.
2518         * elf/tst-audit5.c: Move to ...
2519         * sysdeps/x86_64/tst-audit5.c: ... here.
2520         * elf/tst-audit6.c: Move to ...
2521         * sysdeps/x86_64/tst-audit6.c: ... here.
2522         * elf/tst-audit7.c: Move to ...
2523         * sysdeps/x86_64/tst-audit7.c: ... here.
2524         * elf/tst-auditmod3a.c: Move to ...
2525         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
2526         * elf/tst-auditmod3b.c: Move to ...
2527         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
2528         * elf/tst-auditmod4a.c: Move to ...
2529         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
2530         * elf/tst-auditmod4b.c: Move to ...
2531         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
2532         * elf/tst-auditmod5a.c: Move to ...
2533         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
2534         * elf/tst-auditmod5b.c: Move to ...
2535         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
2536         * elf/tst-auditmod6a.c: Move to ...
2537         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
2538         * elf/tst-auditmod6b.c: Move to ...
2539         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
2540         * elf/tst-auditmod6c.c: Move to ...
2541         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
2542         * elf/tst-auditmod7a.c: Move to ...
2543         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
2544         * elf/tst-auditmod7b.c: Move to ...
2545         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
2546
2547 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
2548
2549         [BZ #15366]
2550         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
2551         define unconditionally.
2552         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
2553         define unconditionally.
2554         (INT8_C, INT16_C, etc.): Likewise.
2555
2556 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
2557
2558         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
2559         __ehdr_start with hidden visibility.
2560
2561         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
2562
2563 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
2564
2565         * math/libm-test.inc (cos_test): Use accurate hex constants.
2566         (sincost_test): Likewise.
2567
2568 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
2569
2570         * math/libm-test.inc (catan_test): Add more tests.
2571         (catanh_test): Likewise.
2572
2573         * math/s_catanf.c (__catanf): Use suffixed floating-point
2574         constants.
2575         * math/s_catanhf.c (__catanhf): Likewise.
2576         * math/s_catanhl.c (__catanhl): Likewise.
2577         * math/s_catanl.c (__catanl): Likewise.
2578
2579         [BZ #15394]
2580         * math/s_catan.c (__catan): Calculate imaginary part of result
2581         with log1p not log unless computing log of number close to 0.
2582         * math/s_catanf.c (__catanf): Likewise.
2583         * math/s_catanl.c (__catanl): Likewise.
2584         * math/s_catanh.c (__catanh): Calculate real part of result with
2585         log1p not log unless computing log of number close to 0.
2586         * math/s_catanhf.c (__catanhf): Likewise.
2587         * math/s_catanhl.c (__catanhl): Likewise.
2588         * math/libm-test.inc (catan_test): Add more tests.
2589         (catanh_test): Likewise.
2590         * sysdeps/i386/fpu/libm-test-ulps: Update.
2591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2592
2593 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2594
2595         * benchtests/Makefile: Mention files in which fast and slow
2596         paths of math functions are implemented.
2597
2598 2013-04-23  Roland McGrath  <roland@hack.frob.com>
2599
2600         * sysdeps/posix/timespec_get.c: New file.
2601
2602 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2603
2604         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
2605         POWER.
2606         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
2607         for POWER.
2608         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
2609         powerpc/power5/fpu folders.
2610         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
2611         * benchtests/Makefile: Add modf testcase.
2612         * benchtests/bench-modf.c: New file: Benchmark test for mo
2613
2614 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2615
2616         [BZ #14888]
2617         * time/Makefile (tests): Add tst-strptime-whitespace.
2618         * time/strptime_l.c (get_number): Use ISSPACE.
2619         (__strptime_internal): Likewise.
2620         * time/tst-strptime-whitespace.c: New test case.
2621
2622 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
2623
2624         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
2625         member.
2626         (_nss_files_init): Set it here.
2627
2628 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
2629
2630         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
2631         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
2632         unsigned.
2633
2634 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
2635
2636         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
2637
2638 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2639
2640         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
2641         size just once.
2642
2643 2013-04-21  David S. Miller  <davem@davemloft.net>
2644
2645         * po/ru.po: Update Russion translation from translation project.
2646
2647 2013-04-17  Adam Conrad  <adconrad@0c3.net>
2648
2649         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
2650         and setfsgid.
2651
2652 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
2653
2654         * configure.in: Remove i386 configure warning. Remove i386 case.
2655         * configure: Regenerate.
2656         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
2657         Add example to error message.
2658         * sysdeps/i386/configure: Regenerate.
2659
2660 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2661
2662         * benchtests/Makefile (bench): Add cos, tan, slowcos and
2663         slowtan.
2664         * benchtests/cos-inputs: New file.
2665         * benchtests/slowcos-inputs: New file.
2666         * benchtests/slowcos.c: New file.
2667         * benchtests/slowtan-inputs: New file.
2668         * benchtests/slowtan.c: New file.
2669         * benchtests/tan-inputs: New file.
2670
2671 2013-04-16  Roland McGrath  <roland@hack.frob.com>
2672
2673         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
2674         considered kosher.
2675
2676 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
2677
2678         * benchtests/Makefile: Include cppflags-iterator.mk to add
2679         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
2680
2681         * Makefile.in (bench-clean): New target.
2682         * benchtests/Makefile (bench-clean): Likewise.
2683
2684 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
2685
2686         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
2687
2688 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
2689
2690         * stdio-common/tstdiomisc.c: Fix coding-style violation.
2691
2692 2013-04-15  Andreas Schwab  <schwab@suse.de>
2693
2694         * nscd/grpcache.c (cache_addgr): Properly check for short write.
2695         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2696         * nscd/pwdcache.c (cache_addpw): Likewise.
2697         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
2698         more than recsize.
2699
2700 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2701
2702         * benchtests/Makefile (bench): Write all output to
2703         bench-out.tmp together.
2704
2705 2013-04-15  Andreas Schwab  <schwab@suse.de>
2706
2707         * nscd/nscd.c (main): Don't fork again after closing files.
2708
2709 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2710
2711         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
2712
2713         * benchtests/Rules (bench-deps): Collect dependencies into a
2714         single variable.  Add Makefile to dependencies.
2715         ($(objpfx)bench-%.c): Depend on bench-deps.
2716
2717 2013-04-12  Roland McGrath  <roland@hack.frob.com>
2718             Xavier Roche  <roche+kml2@exalead.com>
2719
2720         [BZ #15361]
2721         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
2722         just that it's a file descriptor.
2723         * manual/llio.texi (Synchronizing AIO Operations): Update description
2724         for EBADF error from aio_fsync.
2725
2726 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
2727
2728         * Rules (bench): Move target definition...
2729         * benchtests/Makefile: ... here.
2730
2731 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
2732
2733         * math/libm-test.inc (cos_test): Fix PI/2 test.
2734         (sincos_test): Likewise.
2735         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
2736         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
2737
2738 2013-04-11  Andreas Schwab  <schwab@suse.de>
2739
2740         [BZ #13988]
2741         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
2742         accept exponent character only when digits were seen.
2743         * stdio-common/Makefile (tests): Add bug26.
2744         * stdio-common/bug26.c: New file.
2745
2746         [BZ #14293]
2747         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
2748         non-freeable.
2749
2750 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2751
2752         * Makeconfig (rtld-prefix): Define built linker prefix.
2753         * Rules (run-bench): Use it.
2754         * math/Makefile (run-regen-ulps): Likewise.
2755
2756         * Rules (bench): Remove eval.
2757
2758 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2759             Roland McGrath  <roland@hack.frob.com>
2760             Ondrej Bilka  <neleai@seznam.cz>
2761
2762         [BZ #15346]
2763         * time/getdate.c: Include ctype.h and alloca.h.
2764         (__getdate_r): Trim leading and trailing spaces of input.
2765         * time/tst-getdate.c (tests): Add tests with leading and
2766         trailing spaces.
2767
2768 2013-04-08  Roland McGrath  <roland@hack.frob.com>
2769
2770         [BZ #14280]
2771         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
2772         when computing value.
2773
2774 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2775
2776         * math/README.libm-test (How can I generate "libm-test-ulps"?):
2777         Use testrun.sh to run libm tests.
2778
2779         [BZ #15309]
2780         * elf/dl-open.c (dl_open_worker): memset all of seen array.
2781
2782 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
2783
2784         [BZ #15264]
2785         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
2786
2787 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2788
2789         * Makefile.in (regen-ulps): New target.
2790         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
2791         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
2792         [ifneq (no,$(PERL)] (regen-ulps): New target.
2793         [ifeq (no,$(PERL)] (regen-ulps): New target.
2794         * math/libm-test.inc (ulps_file_name): Define.
2795         (output_dir): New variable.
2796         (options): Add "output-dir" option.
2797         (parse_opt): Handle 'o' case.
2798         (main): If output_dir is non-NULL use it as a prefix
2799         otherwise use "".
2800         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
2801
2802 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2803
2804         [BZ #10060, #10062]
2805         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
2806         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
2807         fail configure if __sync_val_compare_and_swap is not inlined.
2808         * sysdeps/i386/configure: Regenerate.
2809         * configure.in: Build for i686 when configured for i386.
2810         * configure: Regenerate.
2811         * README: Remove i386 reference.
2812
2813 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2814
2815         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
2816         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2817
2818 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
2819
2820         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
2821         (lmsnanval): New variables.
2822         (F): Add conversion tests.
2823         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
2824         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
2825
2826         * stdio-common/tstdiomisc.c (F): Properly collect individual
2827         tests' results.
2828
2829         [BZ #14686, #15336]
2830         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
2831         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
2832         Instead, use input NaN values or generate a qNaN by arithmetic
2833         operation.  Also fix bugs to comply with the standard.
2834         * math/libm-test.inc (remainder_test): Add more tests.
2835
2836         [BZ #15335, #15342]
2837         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
2838         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
2839         input NaN values or generate a qNaN by arithmetic operation.
2840
2841         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
2842         unreachable code.
2843
2844         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
2845         definitions.
2846
2847 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
2848
2849         [BZ #14478]
2850         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
2851         underflowed result.
2852         * math/s_cexpf.c (__cexpf): Likewise.
2853         * math/s_cexpl.c (__cexpl): Likewise.
2854         * math/libm-test.inc (cexp_test): Add more tests.
2855
2856 2013-04-03  Andreas Schwab  <schwab@suse.de>
2857
2858         [BZ #15330]
2859         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
2860         order arrays from heap if bigger than alloca cutoff.
2861
2862 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
2863
2864         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
2865         (SNAN_TESTS_double): Refer to GCC PR56831.
2866         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
2867         GCC PR56828.
2868
2869 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2870
2871         * Rules (bench): Move bench.out after the run is complete.
2872
2873         * Rules (bench): Echo currently running benchmark.
2874
2875         * benchtests/Makefile (bench): Add atan and slowatan.
2876         * benchtests/atan-inputs: New file.
2877         * benchtests/slowatan-inputs: New file.
2878         * benchtests/slowatan.c: New file.
2879
2880         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
2881         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
2882         its value.
2883
2884         [BZ #15305]
2885         * sysdeps/unix/sysv/linux/kernel-features.h
2886         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
2887         __ASSUME_XFS_RESTRICTED_CHOWN.
2888         * sysdeps/unix/sysv/linux/pathconf.c
2889         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
2890         Save and restore errno.
2891
2892 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
2893
2894         [BZ #15327]
2895         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
2896         arguments using __kernel_casinh.
2897         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
2898         arguments using __kernel_casinhf.
2899         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
2900         arguments using __kernel_casinhl.
2901         * math/libm-test.inc (cacosh_test): Add more tests.
2902         * sysdeps/i386/fpu/libm-test-ulps: Update.
2903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2904
2905 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2906
2907         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
2908         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
2909
2910         * bench/Makefile (bench): Add sin and slowsin.
2911         * benchtests/sin-inputs: New file.
2912         * benchtests/slowsin-inputs: New file.
2913         * benchtests/slowsin.c: New file.
2914
2915         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
2916         (bench): Add slowexp and slowpow.
2917         (exp-ITER): Increase iterations.
2918         (pow-ITER): Likewise.
2919         * benchtests/exp-inputs: Change input.
2920         * benchtests/pow-inputs: Likewise.
2921         * benchtests/slowexp-inputs: New file.
2922         * benchtests/slowexp.c: New file.
2923         * benchtests/slowpow-inputs: New file.
2924         * benchtests/slowpow.c: New file.
2925
2926 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2927
2928         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
2929         instructions.
2930         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
2931         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
2932         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
2933         * benchtests/Makefile: Add rint benchtest.
2934         * benchtests/rint-inputs: Input for rint benchtest.
2935
2936 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
2937
2938         * Versions.def (libm): Add GLIBC_2.18.
2939         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
2940         hidden libm prototypes.
2941         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
2942         * math/Makefile (libm-calls): Add s_issignaling.
2943         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
2944         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
2945         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
2946         declaration.
2947         * math/math.h [__USE_GNU] (issignaling): New macro.
2948         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
2949         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
2950         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
2951         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
2952         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
2953         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
2954         * manual/arith.texi (issignaling): New section.
2955         * manual/libm-err-tab.pl (@all_functions): Update comment.
2956         * math/gen-libm-test.pl (parse_args): Apply special handling for
2957         issignaling.
2958         * math/libm-test.inc (print_float, issignaling_test): New
2959         functions.
2960         (check_float_internal): Add issignaling checks.
2961         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
2962         default definition.
2963         * sysdeps/powerpc/math-tests.h: New file.
2964         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
2965         tests.
2966         * math/test-snan.c (TEST_FUNC): Likewise.
2967
2968 2013-03-30  David S. Miller  <davem@davemloft.net>
2969
2970         * po/de.po: Update from translation team.
2971
2972 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
2973
2974         [BZ #10357]
2975         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2976         imaginary part less than 1.0 and real part less than 0.5
2977         specially.
2978         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2979         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2980         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
2981         (cacos_test): Add more tests.
2982         (casin_test): Likewise.
2983         (casinh_test): Likewise.
2984         * sysdeps/i386/fpu/libm-test-ulps: Update.
2985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2986
2987 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2988
2989         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
2990         ONE with its value.
2991
2992         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
2993         (__pow_mp): Replace ONE and MONE with their values.
2994         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2995         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
2996         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2997         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
2998         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2999         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
3000
3001         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
3002
3003         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
3004         (__pow_mp): Replace ZERO and MZERO with their values.
3005         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
3006         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
3007         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
3008         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
3009         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
3010         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
3011         (__sqr): Likewise.
3012
3013         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
3014
3015         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
3016
3017 2013-03-28  Roland McGrath  <roland@hack.frob.com>
3018
3019         * include/stdlib.h [!SHARED] (__call_tls_dtors):
3020         Declare with __attribute__ ((weak)).
3021         * stdlib/exit.c (__libc_atexit) [!SHARED]:
3022         Call __call_tls_dtors only if it's not NULL.
3023
3024 2013-03-28  Roland McGrath  <roland@hack.frob.com>
3025
3026         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
3027         didn't do it already, then set _dl_phdr and _dl_phnum based on the
3028         magic __ehdr_start linker symbol if it's defined.
3029         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
3030         them up here if it was already done.
3031
3032         * elf/dl-support.c (_dl_phdr): Make pointer to const.
3033         (_dl_aux_init): Use const in cast when setting it.
3034         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
3035         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
3036         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
3037
3038         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
3039         Declare them here.
3040         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
3041         * csu/libc-tls.c: Nor here.
3042         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
3043
3044         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
3045         (__libc_message): Never call vsyslog.
3046
3047 2013-03-28  Alan Modra  <amodra@gmail.com>
3048
3049         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
3050         Define as empty.
3051         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
3052         Likewise.
3053
3054 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3055
3056         [BZ #15214]
3057         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
3058         underflow.
3059         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3060
3061 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3062
3063         [BZ #15304]
3064         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3065         Don't add gid passed as argument.
3066
3067         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
3068
3069 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
3070
3071         [BZ #15307]
3072         * math/k_casinh.c (__kernel_casinh): Handle arguments with
3073         imaginary part between 1.0 and 1.5 and real part less than 0.5
3074         specially.
3075         * math/k_casinhf.c (__kernel_casinhf): Likewise.
3076         * math/k_casinhl.c (__kernel_casinhl): Likewise.
3077         * math/libm-test.inc (cacos_test): Add more tests.
3078         (casin_test): Likewise.
3079         (casinh_test): Likewise.
3080         * sysdeps/i386/fpu/libm-test-ulps: Update.
3081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3082
3083 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3084
3085         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
3086         constants.
3087         (norm): Likewise.
3088         (denorm): Likewise.
3089         (__dbl_mp): Likewise.
3090         (add_magnitudes): Likewise.
3091         (sub_magnitudes): Likewise.
3092         (__add): Likewise.
3093         (__sub): Likewise.
3094         (__mul): Likewise.
3095         (__sqr): Likewise.
3096         (__inv): Likewise.
3097         (__dvd): Likewise.
3098
3099         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
3100         commented code.
3101         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
3102         (__dubcos): Likewise.
3103         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
3104         (__ieee754_acos): Likewise.
3105         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
3106         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
3107         (__exp1): Likewise.
3108         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
3109         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
3110         (log1): Likewise.
3111         (my_log2): Likewise.
3112         (checkint): Likewise.
3113         * sysdeps/ieee754/dbl-64/e_remainder.c
3114         (__ieee754_remainder): Likewise.
3115         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
3116         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
3117         (bsloww): Likewise.
3118         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
3119
3120         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
3121         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
3122         MANTISSA_STORE_T to store computations on mantissa.  Use
3123         macros for rounding and division.
3124         (denorm): Likewise.
3125         (__dbl_mp): Likewise.
3126         (add_magnitudes): Likewise.
3127         (sub_magnitudes): Likewise.
3128         (__mul): Likewise.
3129         (__sqr): Likewise.
3130         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
3131         powers of two in terms of TWOPOW macro.
3132         (mp_no): Make type of mantissa as MANTISSA_T.
3133         [!RADIXI]: Define RADIXI.
3134         [!TWO52]: Define TWO52.
3135         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
3136
3137 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3138
3139         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
3140         llroundl symbol when building for PPC32.
3141
3142 2013-03-24  Mark H Weaver  <mhw@netris.org>
3143
3144         * manual/arith.texi (Normalization Functions): Fix prototypes for
3145         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
3146
3147 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3148
3149         [BZ #13889]
3150         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
3151         high value to check if expl overflow.
3152         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
3153         to check for underflow and overflow.
3154         * math/libm-test.inc: Add exp test.
3155
3156 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
3157
3158         [BZ #11120]
3159         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
3160         with NOT_IN_libc.
3161
3162 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3163
3164         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
3165         symbol.
3166
3167 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3168
3169         * math/gen-libm-test.pl (parse_args, special_functions): Properly
3170         wrap blocks consisting of several statements.
3171
3172         * sysdeps/generic/math-tests.h: New file.
3173         * sysdeps/i386/fpu/math-tests.h: Likewise.
3174         * math/test-snan.c: Include it.
3175         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
3176
3177 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
3178
3179         [BZ #15285]
3180         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
3181         (__ieee754_j0l): Do not improve calculations using cos of twice
3182         input for inputs above LDBL_MAX / 2.0L.
3183         (__ieee754_y0l): Likewise.
3184         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
3185         (__ieee754_j1l): Do not improve calculations using cos of twice
3186         input for inputs above LDBL_MAX / 2.0L.
3187         (__ieee754_y1l): Likewise.
3188         * math/libm-test.inc (j0_test): Add another test.
3189         (j1_test): Likewise.
3190         (y0_test): Likewise.
3191         (y1_test): Likewise.
3192         * sysdeps/i386/fpu/libm-test-ulps: Update.
3193
3194 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3195
3196         * Rules ($(objpfx)bench-%.c): Include code from a C source
3197         file.
3198
3199 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
3200
3201         [BZ #15287]
3202         * math/k_casinh.c (__kernel_casinh): Handle arguments with
3203         imaginary part 1.0 and real part less than 0.5 specially.
3204         * math/k_casinhf.c (__kernel_casinhf): Likewise.
3205         * math/k_casinhl.c (__kernel_casinhl): Likewise.
3206         * math/libm-test.inc (cacos_test): Add more tests.
3207         (casin_test): Likewise.
3208         (casinh_test): Likewise.
3209         * sysdeps/i386/fpu/libm-test-ulps: Update.
3210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3211
3212 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3213
3214         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
3215         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
3216
3217 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
3218
3219         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
3220         * config.make.in (config-cflags-sse4): Remove variable.
3221         (config-cflags-avx): Likewise.
3222         (config-cflags-sse2avx): Likewise.
3223         (config-cflags-novzeroupper): Likewise.
3224         (config-asflags-i686): Likewise.
3225         (have-mfma4): Likewise.
3226         (have-as-vis3): Likewise.
3227         (MIG): Likewise.
3228         * configure.in (MIG): Do not AC_SUBST.
3229         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
3230         (libc_cv_cc_sse4): Do not AC_SUBST.
3231         (libc_cv_cc_avx): Likewise.
3232         (libc_cv_cc_sse2avx): Likewise.
3233         (libc_cv_cc_novzeroupper): Likewise.
3234         (libc_cv_cc_fma4): Likewise.
3235         (libc_cv_as_i686): Likewise.
3236         (libc_cv_sparc_as_vis3): Likewise.
3237         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
3238         LIBC_CONFIG_VAR.
3239         (config-asflags-i686): Likewise.
3240         (config-cflags-avx): Likewise.
3241         (config-cflags-sse2avx): Likewise.
3242         (have-mfma4): Likewise.
3243         (config-cflags-novzeroupper): Likewise.
3244         * sysdeps/mach/configure.in (MIG): Likewise.
3245         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
3246         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
3247         LIBC_CONFIG_VAR.
3248         (config-cflags-avx): Likewise.
3249         (config-cflags-sse2avx): Likewise.
3250         (have-mfma4): Likewise.
3251         (config-cflags-novzeroupper): Likewise.
3252         * configure: Regenerated.
3253         * sysdeps/i386/configure: Likewise.
3254         * sysdeps/mach/configure: Likewise.
3255         * sysdeps/sparc/configure: Likewise.
3256         * sysdeps/x86_64/configure: Likewise.
3257
3258 2013-03-20  Roland McGrath  <roland@hack.frob.com>
3259
3260         [BZ #14812]
3261         * locale/programs/localedef.c (options): Put N_ translation marker
3262         on argument names, not just descriptions.
3263
3264 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3265
3266         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
3267
3268 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
3269
3270         [BZ #14176]
3271         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
3272
3273 2013-03-19  Roland McGrath  <roland@hack.frob.com>
3274
3275         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
3276         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
3277         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
3278         [!BEFORE_ABORT] (before_abort): New function.
3279         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
3280         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
3281         (writev_for_fatal): New function.
3282         (WRITEV_FOR_FATAL): New macro; call that.
3283         (backtrace_and_maps): New function.
3284         (BEFORE_ABORT): New macro; call that.
3285         (struct str_list): Type removed.
3286         (__libc_message, __libc_fatal): Functions removed.
3287         Include <sysdeps/posix/libc_fatal.c> instead.
3288
3289 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
3290
3291         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
3292         constants.
3293         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
3294         double constants.
3295
3296 2013-03-19  Andreas Schwab  <schwab@suse.de>
3297
3298         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
3299         * sysdeps/gnu/configure: Regenerate.
3300
3301         * configure.in: Substitute libc_cv_rtlddir.
3302         * configure: Regenerate.
3303         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
3304         * Makeconfig (rtlddir, inst_rtlddir): New variables.
3305         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
3306         * elf/Makefile (install-others, CFLAGS-interp.c)
3307         (ldso_install, common-ldd-rewrite): Likewise.
3308         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
3309         $(inst_slibdir)/$(rtld-installed-name).
3310         * scripts/rellns-sh: Add -p option.
3311         * Makerules (make-shlib-link): Use rellns-sh to get relative name
3312         for source.
3313
3314 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3315
3316         * manual/nptl.texi: Renamed to ...
3317         * manual/threads.texi: ... this.
3318         * manual/Makefile (chapters): Update.
3319
3320 2013-03-18  Roland McGrath  <roland@hack.frob.com>
3321
3322         [BZ #14812]
3323         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
3324         on argument names, not just descriptions.
3325         * malloc/memusagestat.c (options): Likewise.
3326         * nss/getent.c (options): Likewise.
3327
3328 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
3329
3330         [BZ #14812]
3331         * iconv/iconv_prog.c (options): Put N_ translation marker
3332         on argument names, not just descriptions.
3333         * iconv/iconvconfig.c (options): Likewise.
3334
3335 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
3336
3337         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
3338         implementation which is faster on all x86_64 architectures.
3339         Tested on AMD, Intel Nehalem, SNB, IVB.
3340         * sysdeps/x86_64/strnlen.S: Likewise.
3341
3342         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
3343         Remove all multiarch strlen and strnlen versions.
3344         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
3345         Remove strlen and strnlen related parts.
3346
3347         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
3348         Inline strlen part.
3349         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
3350
3351         * sysdeps/x86_64/multiarch/strlen.S: Remove.
3352         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
3353         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
3354         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
3355         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
3356         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
3357
3358 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
3359
3360         * manual/memory.texi (Malloc Tunable Parameters):
3361         Sort parameters alphabetically. Add comments for missing entries.
3362
3363 2013-03-17  David S. Miller  <davem@davemloft.net>
3364
3365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3366
3367 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
3368
3369         [BZ #15283]
3370         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
3371         for arguments at most half maximum finite value.
3372         * math/libm-test.inc (j0_test): Add more tests.
3373         (j1_test): Likewise.
3374         (y0_test): Likewise.
3375         (y1_test): Likewise.
3376         * sysdeps/i386/fpu/libm-test-ulps: Update.
3377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3378
3379         [BZ #14155]
3380         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
3381         1 / x and functions P and Q for arguments above 0x1p256L.
3382         (__ieee754_y0l): Likewise.
3383         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3384         (__ieee754_y1l): Likewise.
3385         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
3386         (j1_test): Likewise.
3387         (y0_test): Likewise.
3388         (y1_test): Likewise.
3389
3390 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3391
3392         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
3393         variable.
3394
3395 2013-03-15  Roland McGrath  <roland@hack.frob.com>
3396
3397         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
3398         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
3399         zero since it's initialized to EXEC_PAGESIZE.
3400
3401         * sysdeps/unix/sysv/linux/ldsodefs.h
3402         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
3403         * sysdeps/generic/ldsodefs.h: ... here.
3404
3405 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
3406
3407         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
3408
3409         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
3410         math/test-snan.c.
3411         * math/test-snan.c: Renamed from
3412         sysdeps/powerpc/fpu/test-powerpc-snan.c.
3413         * math/Makefile (tests): Add test-snan.
3414         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
3415         test-powerpc-snan.
3416
3417         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
3418         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
3419         functions.
3420         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
3421         __builtin_nan family of functions.
3422         * math/libm-test.inc (initialize): Initialize qnan_value with
3423         __builtin_nan family of functions.
3424         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
3425         Remove variables.
3426         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
3427         Remove functions.
3428         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
3429         storage class.  Initialize qNaN_var and sNaN_var with
3430         __builtin_nan and __builtin_nans families of functions,
3431         respectively.
3432
3433         * math/libm-test.inc (acosh_test): Also test with qNaN input.
3434         (sqrt_test): Remove duplicate test with qNaN input.
3435         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
3436         (round_test, signbit_test, significand_test): Note missing +/-Inf
3437         as well as qNaN tests.
3438
3439         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
3440         qNaN_var.  Fix a few strings, too.
3441         * math/libm-test.inc (nan_value): Rename to qnan_value.
3442         * math/gen-libm-test.pl (%beautify): Adjust to that.
3443         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
3444         * math/test-misc.c (main): Likewise.
3445         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
3446         to __qnan_bytes, and __qnan_union, respectively.
3447         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
3448         Likewise.
3449         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
3450         and lqnanval, respectively.
3451         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
3452         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
3453         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
3454         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
3455
3456         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
3457         * math/test-misc.c (main) [__x86_64__]: Enable test for long
3458         doubles.
3459
3460         * math/test-misc.c (main): Fix copy'n'pastos.
3461         * misc/tst-efgcvt.c (special): Likewise.
3462
3463         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
3464         Remove declarations.
3465
3466 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3467
3468         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
3469         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
3470         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
3471         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
3472
3473 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3474
3475         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
3476         macro to return vdso values correctly in IFUNC implementations.
3477         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
3478         Optimization by using IFUNC.
3479
3480 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3481             Richard Henderson  <rth@redhat.com>
3482             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3483
3484         * Makefile.in (bench): New target.
3485         * NEWS: Mention the benchmark framework.
3486         * Rules (bench): Likewise.
3487         (binaries-bench): Generate binaries for functions to
3488         benchmark.
3489         * benchtests/Makefile: New makefile for benchmark tests.
3490         * benchtests/bench-skeleton.c: New skeleton file for benchmark
3491         programs.
3492         * benchtests/exp-inputs: New input file for EXP function.
3493         * benchtests/pow-inputs: New input file for POW function.
3494         * scripts/bench.pl: New script to generate source files for
3495         benchmark programs.
3496
3497 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3498
3499         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
3500         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
3501         computations on mantissa.  Use macros for rounding and
3502         division.
3503         (denorm): Likewise.
3504         (__dbl_mp): Likewise.
3505         (add_magnitudes): Likewise.
3506         (sub_magnitudes): Likewise.
3507         (__mul): Likewise.
3508         (__sqr): Likewise.
3509         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
3510         powers of two in terms of TWOPOW macro.
3511         (mp_no): Make type of mantissa as MANTISSA_T.
3512         [!RADIXI]: Define RADIXI.
3513         [!TWO52]: Define TWO52.
3514         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
3515
3516         * manual/nptl.texi (cindex): Modify threads to pthreads.
3517
3518 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
3519
3520         * sysdeps/x86_64/preconfigure: Regenerated.
3521
3522 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
3523
3524         [BZ #14155]
3525         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
3526         0x1p28 and above.
3527         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
3528         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
3529         0x1p28 and above.
3530         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
3531         * math/libm-test.inc (j0_test): Do not allow one spurious
3532         underflow exception.
3533         (y1_test): Likewise.
3534
3535 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3536
3537         * manual/Makefile (chapters): Add nptl.
3538         * manual/debug.texi (Debugging Support): Add link to Threads
3539         chapter.
3540         * manual/nptl.texi: New file.
3541
3542         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
3543
3544 2013-03-14  Petr Baudis  <pasky@ucw.cz>
3545
3546         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
3547         for non-NULL pointer before the memory validity test. Pointed
3548         out by Holger Brunck <holger.brunck@keymile.com>.
3549
3550 2013-03-13  Andreas Schwab  <schwab@suse.de>
3551
3552         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
3553         instead of .os.
3554
3555 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
3556
3557         * timezone/zic.c: Update from tzcode 2013b.
3558
3559 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
3560
3561         * manual/install.texi (Configuring and compiling):
3562         Mention i686 and i586.
3563         * INSTALL: Regenerate.
3564
3565 2013-03-12  Roland McGrath  <roland@hack.frob.com>
3566
3567         * sysdeps/init_array/elf-init.c: New file.
3568         * csu/elf-init.c
3569         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
3570         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
3571
3572         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
3573         __gmon_start__ as global, but as static with a .preinit_array pointer.
3574         * sysdeps/init_array/gmon-start.c: New file.  Use that.
3575         * sysdeps/init_array/crti.S: New file, empty except for comments.
3576         * sysdeps/init_array/crtn.S: Likewise.
3577
3578 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
3579
3580         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
3581         definining bcopy.
3582         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3583         Remove Prefer_SSE_for_memop.
3584         * sysdeps/x86_64/multiarch/init-arch.h: Remove
3585         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
3586         HAS_PREFER_SSE_FOR_MEMOP.
3587         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3588         memset-x86-64.
3589         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
3590         Remove bzero, memset ifunc support.
3591         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
3592         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
3593         * sysdeps/x86_64/multiarch/memset.S: Likewise.
3594         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
3595
3596 2013-03-11  Andreas Schwab  <schwab@suse.de>
3597
3598         [BZ #15234]
3599         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
3600         by SHLIB_COMPAT.
3601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
3602         (GLIBC_2.16): Remove pthread_atfork.
3603
3604 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
3605
3606         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
3607         (ptestcases.h): Likewise.
3608
3609 2013-03-08  Roland McGrath  <roland@hack.frob.com>
3610
3611         * Makeconfig ($(common-objpfx)config.status): Depend on
3612         sysdeps/*/preconfigure{,.in} too.
3613
3614 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
3615
3616         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
3617         (__free_hook): Use void * instead of __malloc_ptr_t.
3618         (__malloc_hook): Likewise.
3619         (__realloc_hook): Likewise.
3620         (__memalign_hook): Likewise.
3621         (__after_morecore_hook): Likewise.
3622         * malloc/arena.c (save_malloc_hook): Likewise.
3623         (save_free_hook): Likewise.
3624         * malloc/hooks.c (malloc_hook_ini): Likewise.
3625         (realloc_hook_ini): Likewise.
3626         (memalign_hook_ini): Likewise.
3627         * malloc/malloc.c (malloc_hook_ini): Likewise.
3628         (realloc_hook_ini): Likewise.
3629         (memalign_hook_ini): Likewise.
3630         (__free_hook): Likewise.
3631         (__malloc_hook): Likewise.
3632         (__realloc_hook): Likewise.
3633         (__memalign_hook): Likewise.
3634         (__libc_malloc): Likewise.
3635         (__libc_free): Likewise.
3636         (__libc_realloc): Likewise.
3637         (__libc_memalign): Likewise.
3638         (__libc_valloc): Likewise.
3639         (__libc_pvalloc): Likewise.
3640         (__libc_calloc): Likewise.
3641         (__posix_memalign): Likewise.
3642         * malloc/morecore.c (__sbrk): Likewise.
3643         (__default_morecore): Likewise.
3644
3645         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
3646
3647         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
3648         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
3649         __malloc_ptrdiff_t.
3650
3651         * malloc/malloc.h (__malloc_size_t): Remove macro.
3652         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
3653         __malloc_size_t.
3654         (old_memalign_hook): Likewise.
3655         (old_realloc_hook): Likewise.
3656         (struct hdr): Likewise.
3657         (flood): Likewise.
3658         (mallochook): Likewise.
3659         (memalignhook): Likewise.
3660         (reallochook): Likewise.
3661         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
3662         (tr_old_realloc_hook): Likewise.
3663         (tr_old_memalign_hook): Likewise.
3664         (tr_mallochook): Likewise.
3665         (tr_reallochook): Likewise.
3666         (tr_memalignhook): Likewise.
3667
3668 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3669
3670         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
3671         default_ldbl_pack and using as default implementation.
3672         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
3673         implementation.
3674         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
3675         redundant definition.
3676         (ldbl_insert_mantissa): Likewise.
3677         (ldbl_canonicalize): Likewise.
3678         (ldbl_nearbyint): Likewise.
3679         (ldbl_pack): Rename to ldbl_pack_ppc.
3680         (ldbl_unpack): Rename to ldbl_unpack_ppc.
3681         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
3682         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
3683
3684 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
3685
3686         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
3687         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
3688         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
3689         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
3690         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
3691         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
3692         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
3693         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
3694
3695 2013-03-07  Andreas Jaeger  <aj@suse.de>
3696
3697         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3698         bits/mman-linux.h.
3699
3700 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3701
3702         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
3703         Include mpa.h and declare __MPEXP.
3704         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
3705         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
3706         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
3707         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
3708         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
3709         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
3710         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
3711
3712         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
3713         (__slowpow): Use long double EXPL and LOGL functions to
3714         compute POW.
3715         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
3716         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
3717         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
3718         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
3719         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
3720         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
3721
3722         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
3723         intermediate variable to calculate exponent.
3724         (__sqr): Likewise.
3725         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3726         Likewise.
3727         (__sqr): Likewise.
3728
3729         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
3730         [!NO__SQR]: Define __sqr.
3731         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
3732         and NO__SQR.  Remove all code except __mul and __sqr.  Include
3733         sysdeps/ieee754/dbl-64/mpa.c.
3734         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3735
3736         [BZ #12723]
3737         * posix/Makefile (tests): Add tst-pathconf.
3738         * posix/tst-pathconf.c: New test case.
3739         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
3740         _PC_PIPE_BUF.
3741         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3742
3743 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
3744
3745         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
3746
3747 2013-03-06  Andreas Jaeger  <aj@suse.de>
3748
3749         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
3750         definition via __MAP_ANONYMOUS.
3751
3752         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
3753         it's not part of Linux headers.
3754
3755         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
3756         (MAP_HUGE_MASK): Define.
3757
3758         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
3759         Define.
3760         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3761         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
3762         Define.
3763         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3764         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
3765         Define.
3766         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3767         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
3768         Define.
3769         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3770
3771         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
3772         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
3773         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
3774         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
3775         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
3776         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
3777
3778         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3779         Handle f2fs.
3780
3781         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3782         Handle f2fs and efivarfs.
3783
3784         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
3785         f2fs.
3786
3787         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
3788         (EFIVARFS_MAGIC): Add.
3789         (F2FS_LINK_MAX): Add.
3790
3791 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3792
3793         * stdio-common/vfprintf.c: Replace __builtin_expect with
3794         __glibc_unlikely.
3795
3796 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
3797
3798         [BZ #13550]
3799         * sysdeps/generic/bp-sym.h: Remove file.
3800         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
3801         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
3802         <bp-sym.h> and <bp-asm.h>.
3803         (__longjmp): Don't use BP_SYM.
3804         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
3805         and <bp-asm.h>.
3806         (memcpy): Don't use BP_SYM.
3807         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
3808         <bp-sym.h> and <bp-asm.h>.
3809         (memcpy): Don't use BP_SYM.
3810         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
3811         <bp-asm.h>.
3812         (memcpy): Don't use BP_SYM.
3813         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
3814         <bp-asm.h>.
3815         (memset): Don't use BP_SYM.
3816         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3817         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3818         (__bzero): Don't use BP_SYM.
3819         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3820         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3821         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
3822         <bp-sym.h> and <bp-asm.h>.
3823         (memcmp): Don't use BP_SYM.  Remove comment about bounded
3824         pointers.
3825         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
3826         <bp-sym.h> and <bp-asm.h>.
3827         (memcpy): Don't use BP_SYM.
3828         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
3829         <bp-sym.h> and <bp-asm.h>.
3830         (memset): Don't use BP_SYM.
3831         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3832         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3833         (__bzero): Don't use BP_SYM.
3834         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3835         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3836         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
3837         <bp-sym.h> and <bp-asm.h>.
3838         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3839         pointers.
3840         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
3841         <bp-sym.h> and <bp-asm.h>.
3842         (memcpy): Don't use BP_SYM.
3843         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
3844         <bp-sym.h> and <bp-asm.h>.
3845         (memset): Don't use BP_SYM.
3846         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3847         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3848         (__bzero): Don't use BP_SYM.
3849         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3850         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3851         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
3852         <bp-sym.h> and <bp-asm.h>.
3853         (__memchr): Don't use BP_SYM.
3854         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
3855         <bp-sym.h> and <bp-asm.h>.
3856         (memcmp): Don't use BP_SYM.  Remove comment about bounded
3857         pointers.
3858         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
3859         <bp-sym.h> and <bp-asm.h>.
3860         (memcpy): Don't use BP_SYM.
3861         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
3862         <bp-sym.h> and <bp-asm.h>.
3863         (__mempcpy): Don't use BP_SYM.
3864         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
3865         <bp-sym.h> and <bp-asm.h>.
3866         (__memrchr): Don't use BP_SYM.
3867         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
3868         <bp-sym.h> and <bp-asm.h>.
3869         (memset): Don't use BP_SYM.
3870         (__bzero): Likewise.
3871         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
3872         <bp-sym.h> and <bp-asm.h>.
3873         (__rawmemchr): Don't use BP_SYM.
3874         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
3875         <bp-sym.h> and <bp-asm.h>.
3876         (__STRCMP): Don't use BP_SYM.
3877         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
3878         <bp-sym.h> and <bp-asm.h>.
3879         (strchr): Don't use BP_SYM.
3880         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
3881         <bp-sym.h> and <bp-asm.h>.
3882         (__strchrnul): Don't use BP_SYM.
3883         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
3884         <bp-sym.h> and <bp-asm.h>.
3885         (strlen): Don't use BP_SYM.
3886         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
3887         <bp-sym.h> and <bp-asm.h>.
3888         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3889         pointers.
3890         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
3891         <bp-sym.h> and <bp-asm.h>.
3892         (__strnlen): Don't use BP_SYM.
3893         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
3894         <bp-sym.h> and <bp-asm.h>.
3895         (__GI__setjmp): Don't use BP_SYM.
3896         (_setjmp): Likewise.
3897         (__sigsetjmp): Likewise.
3898         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
3899         (L(start_addresses)): Don't use BP_SYM.
3900         (_start): Likewise.
3901         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
3902         <bp-asm.h>.
3903         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
3904         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
3905         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3906         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3907         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
3908         <bp-asm.h>.
3909         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
3910         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
3911         about bounded pointers.
3912         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3913         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3914         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
3915         <bp-asm.h>.
3916         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
3917         about bounded pointers.  Remove GKM FIXME comments.
3918         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3919         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
3920         <bp-asm.h>.
3921         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
3922         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
3923         Remove GKM FIXME comments.
3924         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3925         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3926         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
3927         <bp-asm.h>.
3928         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
3929         about bounded pointers.  Remove GKM FIXME comment.
3930         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
3931         and <bp-asm.h>.
3932         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3933         pointers.
3934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
3935         <bp-sym.h> and <bp-asm.h>.
3936         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
3937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
3938         <bp-sym.h> and <bp-asm.h>.
3939         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
3940         comment.
3941
3942 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3943
3944         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
3945         call free(NULL).
3946
3947 2013-03-05  David S. Miller  <davem@davemloft.net>
3948
3949         * po/es.po: Update from translation team.
3950
3951 2013-03-05  Andreas Jaeger  <aj@suse.de>
3952
3953         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
3954         <bits/mman-linux.h>.
3955         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3956         is fine.
3957         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
3958         <bits/mman-linux.h> to end of file.
3959         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3960         is fine.
3961         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
3962         <bits/mman-linux.h> to end of file.
3963         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3964         is fine.
3965         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
3966         <bits/mman-linux.h> to end of file.
3967
3968         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
3969         (MCL_CURRENT, MCL_FUTURE): Define here.
3970
3971 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3972
3973         [BZ #15232]
3974         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
3975         attribute_hidden.
3976         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3977
3978 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3979
3980         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
3981         fourth parameter needed for rt_sigprocmask syscall.
3982         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
3983         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
3984         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
3985         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
3986         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3987         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
3988
3989 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
3990
3991         [BZ #13550]
3992         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
3993         comment about bounded pointers.
3994         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
3995         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
3996
3997 2013-03-04  Andreas Jaeger  <aj@suse.de>
3998
3999         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
4000         common definitions.
4001
4002         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
4003         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
4004         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
4005         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4006         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
4007         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4008
4009 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4010
4011         [BZ #15055]
4012         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
4013         __ieee754_sqrl instead of __sqrl.
4014
4015 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
4016
4017         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
4018         * sysdeps/powerpc/fpu_control.h: ... here.
4019         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
4020         * sysdeps/powerpc/bits/fenvinline.h: ... here.
4021         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
4022         * sysdeps/powerpc/bits/mathinline.h: ... here.
4023
4024 2013-03-01  Roland McGrath  <roland@hack.frob.com>
4025
4026         * elf/dl-hwcaps.c (_dl_important_hwcaps):
4027         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
4028         to just [NEED_DL_SYSINFO_DSO].
4029         * elf/dl-support.c: Likewise.
4030         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
4031         * elf/rtld.c (dl_main): Likewise.
4032         * elf/setup-vdso.h (setup_vdso): Likewise.
4033         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
4034         * sysdeps/unix/sysv/linux/dl-sysdep.c
4035         (_dl_discover_osversion): Likewise.
4036
4037 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
4038
4039         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
4040         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
4041
4042 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4043
4044         * NEWS: Mention libm performance improvements and non-x86 PI
4045         futex support.
4046
4047         * csu/libc-start.c (__pthread_initialize_minimal): Change
4048         function arguments.
4049         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
4050
4051 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
4052
4053         [BZ #13550]
4054         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
4055         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
4056         <bp-sym.h> and <bp-asm.h>.
4057         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
4058         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
4059         and <bp-asm.h>.
4060         (memcpy): Don't use BP_SYM.
4061         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
4062         <bp-asm.h>.
4063         (__mpn_add_n): Don't use BP_SYM.
4064         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
4065         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
4066         and <bp-asm.h>.
4067         (__mpn_addmul_1): Don't use BP_SYM.
4068         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4069         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
4070         <bp-sym.h>.
4071         (_setjmp): Don't use BP_SYM.
4072         (__novmx_setjmp): Likewise.
4073         (__GI__setjmp): Likewise.
4074         (__vmx_setjmp): Likewise.
4075         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
4076         <bp-sym.h>.
4077         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
4078         (__bzero): Don't use BP_SYM.
4079         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
4080         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
4081         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
4082         <bp-sym.h> and <bp-asm.h>.
4083         (memcpy): Don't use BP_SYM.
4084         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
4085         <bp-sym.h> and <bp-asm.h>.
4086         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
4087         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
4088         <bp-sym.h> and <bp-asm.h>.
4089         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
4090         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
4091         <bp-asm.h>.
4092         (__mpn_lshift): Don't use BP_SYM.
4093         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4094         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
4095         <bp-asm.h>.
4096         (memset): Don't use BP_SYM.
4097         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
4098         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
4099         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
4100         <bp-asm.h>.
4101         (__mpn_mul_1): Don't use BP_SYM.
4102         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4103         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
4104         <bp-sym.h> and <bp-asm.h>.
4105         (memcmp): Don't use BP_SYM.
4106         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
4107         <bp-sym.h> and <bp-asm.h>.
4108         (memcpy): Don't use BP_SYM.
4109         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
4110         <bp-sym.h> and <bp-asm.h>.
4111         (memset): Don't use BP_SYM.
4112         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
4113         <bp-sym.h> and <bp-asm.h>.
4114         (strncmp): Don't use BP_SYM.
4115         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
4116         <bp-sym.h> and <bp-asm.h>.
4117         (memcpy): Don't use BP_SYM.
4118         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
4119         <bp-sym.h> and <bp-asm.h>.
4120         (memset): Don't use BP_SYM.
4121         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
4122         <bp-sym.h> and <bp-asm.h>.
4123         (__memchr): Don't use BP_SYM.
4124         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
4125         <bp-sym.h> and <bp-asm.h>.
4126         (memcmp): Don't use BP_SYM.
4127         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
4128         <bp-sym.h> and <bp-asm.h>.
4129         (memcpy): Don't use BP_SYM.
4130         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
4131         <bp-sym.h> and <bp-asm.h>.
4132         (__mempcpy): Don't use BP_SYM.
4133         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
4134         <bp-sym.h> and <bp-asm.h>.
4135         (__memrchr): Don't use BP_SYM.
4136         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
4137         <bp-sym.h> and <bp-asm.h>.
4138         (memset): Don't use BP_SYM.
4139         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
4140         <bp-sym.h> and <bp-asm.h>.
4141         (__rawmemchr): Don't use BP_SYM.
4142         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
4143         <bp-sym.h> and <bp-asm.h>.
4144         (__STRCMP): Don't use BP_SYM.
4145         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
4146         <bp-sym.h> and <bp-asm.h>.
4147         (strchr): Don't use BP_SYM.
4148         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
4149         <bp-sym.h> and <bp-asm.h>.
4150         (__strchrnul): Don't use BP_SYM.
4151         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
4152         <bp-sym.h> and <bp-asm.h>.
4153         (strlen): Don't use BP_SYM.
4154         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
4155         <bp-sym.h> and <bp-asm.h>.
4156         (strncmp): Don't use BP_SYM.
4157         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
4158         <bp-sym.h> and <bp-asm.h>.
4159         (__strnlen): Don't use BP_SYM.
4160         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
4161         <bp-asm.h>.
4162         (__mpn_rshift): Don't use BP_SYM.
4163         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4164         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
4165         <bp-sym.h> and <bp-asm.h>.
4166         (__sigsetjmp): Don't use BP_SYM.
4167         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
4168         (L(start_addresses)): Don't use BP_SYM.
4169         (_start): Likewise.
4170         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
4171         <bp-asm.h>.
4172         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
4173         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
4174         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
4175         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
4176         <bp-asm.h>.
4177         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
4178         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
4179         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
4180         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
4181         <bp-asm.h>.
4182         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
4183         comments.
4184         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
4185         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
4186         <bp-asm.h>.
4187         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
4188         FIXME comments.
4189         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
4190         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
4191         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
4192         <bp-asm.h>.
4193         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
4194         comment.
4195         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
4196         and <bp-asm.h>.
4197         (strncmp): Don't use BP_SYM,
4198         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
4199         <bp-asm.h>.
4200         (__mpn_sub_n): Don't use BP_SYM.
4201         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4202         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
4203         and <bp-asm.h>.
4204         (__mpn_submul_1): Don't use BP_SYM.
4205         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
4207         <bp-sym.h> and <bp-asm.h>.
4208         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
4209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
4210         <bp-sym.h> and <bp-asm.h>.
4211         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
4212         comment.
4213
4214 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4215
4216         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
4217         Use ZK to minimize writes to Z.
4218         (sub_magnitudes): Simplify code a bit.
4219         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
4220         Use ZK to minimize writes to Z.
4221         (sub_magnitudes): Simplify code a bit.
4222
4223 2013-02-27  Roland McGrath  <roland@hack.frob.com>
4224
4225         * csu/gmon-start.c: Add special exception to license text.
4226
4227 2013-02-27  Richard Henderson  <rth@redhat.com>
4228
4229         * scripts/config.guess: Update from config.git.
4230         * scripts/config.sub: Likewise.
4231
4232 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4233
4234         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
4235
4236         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
4237
4238         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
4239
4240         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
4241
4242         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
4243
4244 2013-02-26  Roland McGrath  <roland@hack.frob.com>
4245
4246         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
4247         [$(build-shared = yes].
4248
4249 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4250
4251         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
4252         (__mul): Reduce iterations for calculating mantissa.
4253
4254         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
4255         MPTWO.
4256         (__mpranred): Likewise.
4257
4258         [BZ #15160]
4259         * malloc/memusagestat.c (main): Draw graphs for heap and stack
4260         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
4261
4262 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4263
4264         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
4265         Define __attribute__.
4266
4267 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4268
4269         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
4270         unused.
4271         * posix/regex_internal.h (__attribute): Remove.
4272         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
4273         (re_string_context_at): Likewise.
4274         (bitset_not): Use __attribute__ and mark function as possibly
4275         unused.
4276         (bitset_merge): Likewise.
4277         (bitset_mask): Likewise.
4278         (re_string_char_size_at): Likewise.
4279         (re_string_wchar_at): Likewise.
4280         (re_string_elem_size_at): Likewise.
4281
4282 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4283
4284         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
4285         code.
4286         (cc32): Likewise.
4287
4288         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
4289         (__acr): Likewise.
4290         (__cpy): Likewise.
4291         (norm): Likewise.
4292         (denorm): Likewise.
4293         (__dbl_mp): Likewise.
4294         (add_magnitudes): Likewise.
4295         (sub_magnitudes): Likewise.
4296         (__mul): Likewise.
4297         (__inv): Likewise.
4298
4299         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
4300         style.
4301
4302         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
4303         style.
4304
4305         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
4306         code.
4307
4308         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
4309         up changes with default code.
4310         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
4311         Likewise.
4312
4313 2013-02-24  Allan McRae  <allan@archlinux.org>
4314
4315         * manual/socket.texi (The Internet Namespace): Order menu items
4316         to match that in the file.
4317
4318         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
4319         node listing of the info page menu.
4320
4321 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
4322
4323         [BZ #13550]
4324         * sysdeps/i386/bp-asm.h: Remove file.
4325         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
4326         (PARMS): Do not use macros from bp-asm.h.
4327         (S1): Likewise.
4328         (S2): Likewise.
4329         (SIZE): Likewise.
4330         (__mpn_add_n): Do not use BP_SYM
4331         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
4332         "bp-asm.h".
4333         (PARMS): Do not use macros from bp-asm.h.
4334         (S1): Likewise.
4335         (SIZE): Likewise.
4336         (__mpn_addmul_1): Do not use BP_SYM
4337         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
4338         "bp-asm.h".
4339         (PARMS): Do not use macros from bp-asm.h.
4340         (SIGMSK): Likewise.
4341         (_setjmp): Likewise.  Do not use BP_SYM.
4342         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
4343         "bp-asm.h".
4344         (PARMS): Do not use macros from bp-asm.h.
4345         (SIGMSK): Likewise.
4346         (setjmp): Likewise.  Do not use BP_SYM.
4347         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
4348         "bp-asm.h".
4349         (PARMS): Do not use macros from bp-asm.h.
4350         (__frexp): Do not use BP_SYM.
4351         (frexp): Likewise.
4352         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
4353         "bp-asm.h".
4354         (PARMS): Do not use macros from bp-asm.h.
4355         (__frexpf): Do not use BP_SYM.
4356         (frexpf): Likewise.
4357         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
4358         "bp-asm.h".
4359         (PARMS): Do not use macros from bp-asm.h.
4360         (__frexpl): Do not use BP_SYM.
4361         (frexpl): Likewise.
4362         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
4363         "bp-asm.h".
4364         (PARMS): Do not use macros from bp-asm.h.
4365         (__remquo): Do not use BP_SYM.
4366         (remquo): Likewise.
4367         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
4368         "bp-asm.h".
4369         (PARMS): Do not use macros from bp-asm.h.
4370         (__remquof): Do not use BP_SYM.
4371         (remquof): Likewise.
4372         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
4373         "bp-asm.h".
4374         (PARMS): Do not use macros from bp-asm.h.
4375         (__remquol): Do not use BP_SYM.
4376         (remquol): Likewise.
4377         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
4378         "bp-asm.h".
4379         (PARMS): Do not use macros from bp-asm.h.
4380         (DEST): Likewise.
4381         (SRC): Likewise.
4382         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
4383         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
4384         "bp-asm.h".
4385         (PARMS): Do not use macros from bp-asm.h.
4386         (strlen): Do not use BP_SYM.
4387         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
4388         "bp-asm.h".
4389         (PARMS): Do not use macros from bp-asm.h.
4390         (S1): Likewise.
4391         (S2): Likewise.
4392         (SIZE): Likewise.
4393         (__mpn_add_n): Do not use BP_SYM.
4394         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
4395         "bp-asm.h".
4396         (PARMS): Do not use macros from bp-asm.h.
4397         (S1): Likewise.
4398         (SIZE): Likewise.
4399         (__mpn_addmul_1): Do not use BP_SYM.
4400         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
4401         weak_alias.
4402         (bzero): Likewise.
4403         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
4404         "bp-asm.h".
4405         (PARMS): Do not use macros from bp-asm.h.
4406         (S): Likewise.
4407         (SIZE): Likewise.
4408         (__mpn_lshift): Do not use BP_SYM.
4409         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
4410         "bp-asm.h".
4411         (PARMS): Do not use macros from bp-asm.h.
4412         (DEST): Likewise.
4413         (SRC): Likewise.
4414         (LEN): Likewise.
4415         (memcpy): Likewise.  Do not use BP_SYM.
4416         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
4417         libc_hidden_def and weak_alias.
4418         (mempcpy): Do not use BP_SYM in weak_alias.
4419         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
4420         "bp-asm.h".
4421         (PARMS): Do not use macros from bp-asm.h.
4422         (DEST): Likewise.
4423         (LEN): Likewise.
4424         [!BZERO_P] (CHR): Likewise.
4425         (memset): Likewise.  Do not use BP_SYM.
4426         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
4427         "bp-asm.h".
4428         (PARMS): Do not use macros from bp-asm.h.
4429         (S1): Likewise.
4430         (SIZE): Likewise.
4431         (__mpn_mul_1): Do not use BP_SYM.
4432         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
4433         "bp-asm.h".
4434         (PARMS): Do not use macros from bp-asm.h.
4435         (S): Likewise.
4436         (SIZE): Likewise.
4437         (__mpn_rshift): Do not use BP_SYM.
4438         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
4439         "bp-asm.h".
4440         (PARMS): Do not use macros from bp-asm.h.
4441         (STR): Likewise.
4442         (CHR): Likewise.
4443         (strchr): Likewise.  Do not use BP_SYM.
4444         (index): Do not use BP_SYM in weak_alias.
4445         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
4446         "bp-asm.h".
4447         (PARMS): Do not use macros from bp-asm.h.
4448         (DEST): Likewise.
4449         (SRC): Likewise.
4450         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
4451         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
4452         "bp-asm.h".
4453         (PARMS): Do not use macros from bp-asm.h.
4454         (strlen): Do not use BP_SYM.
4455         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
4456         "bp-asm.h".
4457         (PARMS): Do not use macros from bp-asm.h.
4458         (S1): Likewise.
4459         (S2): Likewise.
4460         (SIZE): Likewise.
4461         (__mpn_sub_n): Do not use BP_SYM.
4462         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
4463         "bp-asm.h".
4464         (PARMS): Do not use macros from bp-asm.h.
4465         (S1): Likewise.
4466         (SIZE): Likewise.
4467         (__mpn_submul_1): Do not use BP_SYM.
4468         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
4469         "bp-asm.h".
4470         (PARMS): Do not use macros from bp-asm.h.
4471         (S1): Likewise.
4472         (S2): Likewise.
4473         (SIZE): Likewise.
4474         (__mpn_add_n): Do not use BP_SYM.
4475         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
4476         weak_alias.
4477         (bzero): Likewise.
4478         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
4479         "bp-asm.h".
4480         (PARMS): Do not use macros from bp-asm.h.
4481         (BLK2): Likewise.
4482         (LEN): Likewise.
4483         (memcmp): Do not use BP_SYM.
4484         (bcmp): Do not use BP_SYM in weak_alias.
4485         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
4486         "bp-asm.h".
4487         (PARMS): Do not use macros from bp-asm.h.
4488         (DEST): Likewise.
4489         (SRC): Likewise.
4490         (LEN): Likewise.
4491         (memcpy): Likewise.  Do not use BP_SYM.
4492         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
4493         "bp-asm.h".
4494         (PARMS): Do not use macros from bp-asm.h.
4495         (DEST): Likewise.
4496         (SRC): Likewise.
4497         (LEN): Likewise.
4498         (memmove): Likewise.  Do not use BP_SYM.
4499         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
4500         "bp-asm.h".
4501         (PARMS): Do not use macros from bp-asm.h.
4502         (DEST): Likewise.
4503         (SRC): Likewise.
4504         (LEN): Likewise.
4505         (__mempcpy): Likewise.  Do not use BP_SYM.
4506         (mempcpy): Do not use BP_SYM in weak_alias.
4507         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
4508         "bp-asm.h".
4509         (PARMS): Do not use macros from bp-asm.h.
4510         (DEST): Likewise.
4511         (LEN): Likewise.
4512         [!BZERO_P] (CHR): Likewise.
4513         (memset): Likewise.  Do not use BP_SYM.
4514         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
4515         "bp-asm.h".
4516         (PARMS): Do not use macros from bp-asm.h.
4517         (STR2): Likewise.
4518         (strcmp): Do not use BP_SYM.
4519         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
4520         "bp-asm.h".
4521         (PARMS): Do not use macros from bp-asm.h.
4522         (STR): Likewise.
4523         (DELIM): Likewise.
4524         [USE_AS_STRTOK_R] (SAVE): Likewise.
4525         (FUNCTION): Likewise.  Do not use BP_SYM.
4526         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
4527         aliases.
4528         (strtok_r): Likewise.
4529         (__GI___strtok_r): Likewise.
4530         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
4531         (PARMS): Do not use macros from bp-asm.h.
4532         (S): Likewise.
4533         (SIZE): Likewise.
4534         (__mpn_lshift): Do not use BP_SYM.
4535         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
4536         (PARMS): Do not use macros from bp-asm.h.
4537         (STR): Likewise.
4538         (CHR): Likewise.
4539         (__memchr): Do not use BP_SYM.
4540         (memchr): Do not use BP_SYM in weak_alias.
4541         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
4542         (PARMS): Do not use macros from bp-asm.h.
4543         (BLK2): Likewise.
4544         (LEN): Likewise.
4545         (memcmp): Do not use BP_SYM.
4546         (bcmp): Do not use BP_SYM in weak_alias.
4547         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
4548         (PARMS): Do not use macros from bp-asm.h.
4549         (S1): Likewise.
4550         (SIZE): Likewise.
4551         (__mpn_mul_1): Do not use BP_SYM.
4552         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
4553         "bp-asm.h".
4554         (PARMS): Do not use macros from bp-asm.h.
4555         (STR): Likewise.
4556         (CHR): Likewise.
4557         (__rawmemchr): Do not use BP_SYM.
4558         (rawmemchr): Do not use BP_SYM in weak_alias.
4559         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
4560         (PARMS): Do not use macros from bp-asm.h.
4561         (S): Likewise.
4562         (SIZE): Likewise.
4563         (__mpn_rshift): Do not use BP_SYM.
4564         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
4565         (PARMS): Do not use macros from bp-asm.h.
4566         (SIGMSK): Likewise.
4567         (__sigsetjmp): Likewise.  Do not use BP_SYM.
4568         * sysdeps/i386/start.S: Do not include "bp-sym.h".
4569         (_start): Do not use BP_SYM.
4570         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
4571         (PARMS): Do not use macros from bp-asm.h.
4572         (DEST): Likewise.
4573         (SRC): Likewise.
4574         (__stpcpy): Likewise.  Do not use BP_SYM.
4575         (stpcpy): Do not use BP_SYM in weak_alias.
4576         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
4577         "bp-asm.h".
4578         (PARMS): Do not use macros from bp-asm.h.
4579         (DEST): Likewise.
4580         (SRC): Likewise.
4581         (LEN): Likewise.
4582         (__stpncpy): Likewise.  Do not use BP_SYM.
4583         (stpncpy): Do not use BP_SYM in weak_alias.
4584         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
4585         (PARMS): Do not use macros from bp-asm.h.
4586         (STR): Likewise.
4587         (CHR): Likewise.
4588         (strchr): Likewise.  Do not use BP_SYM.
4589         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
4590         "bp-asm.h".
4591         (PARMS): Do not use macros from bp-asm.h.
4592         (STR): Likewise.
4593         (CHR): Likewise.
4594         (__strchrnul): Likewise.  Do not use BP_SYM.
4595         (strchrnul): Do not use BP_SYM in weak_alias.
4596         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
4597         "bp-asm.h".
4598         (PARMS): Do not use macros from bp-asm.h.
4599         (STOP): Likewise.
4600         (strcspn): Do not use BP_SYM.
4601         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
4602         "bp-asm.h".
4603         (PARMS): Do not use macros from bp-asm.h.
4604         (STR): Likewise.
4605         (STOP): Likewise.
4606         (strpbrk): Likewise.  Do not use BP_SYM.
4607         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
4608         "bp-asm.h".
4609         (PARMS): Do not use macros from bp-asm.h.
4610         (STR): Likewise.
4611         (CHR): Likewise.
4612         (strrchr): Likewise.  Do not use BP_SYM.
4613         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
4614         (PARMS): Do not use macros from bp-asm.h.
4615         (SKIP): Likewise.
4616         (strspn): Do not use BP_SYM.
4617         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
4618         (PARMS): Do not use macros from bp-asm.h.
4619         (STR): Likewise.
4620         (DELIM): Likewise.
4621         (SAVE): Likewise.
4622         (FUNCTION): Likewise.  Do not use BP_SYM.
4623         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
4624         aliases.
4625         (strtok_r): Likewise.
4626         (__GI___strtok_r): Likewise.
4627         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
4628         (PARMS): Do not use macros from bp-asm.h.
4629         (S1): Likewise.
4630         (S2): Likewise.
4631         (SIZE): Likewise.
4632         (__mpn_sub_n): Do not use BP_SYM.
4633         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
4634         "bp-asm.h".
4635         (PARMS): Do not use macros from bp-asm.h.
4636         (S1): Likewise.
4637         (SIZE): Likewise.
4638         (__mpn_submul_1): Do not use BP_SYM.
4639         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
4640         <bp-sym.h>.
4641         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
4642         and <bp-asm.h>.
4643         (PARMS): Do not use macros from bp-asm.h.
4644         (FLAGS): Likewise.
4645         (PTID): Likewise.
4646         (TLS): Likewise.
4647         (CTID): Likewise.
4648         (__clone): Do not use BP_SYM.
4649         (clone): Do not use BP_SYM in weak_alias.
4650         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
4651         and <bp-asm.h>.
4652         (PARMS): Do not use macros from bp-asm.h.
4653         (LEN): Likewise.
4654         (__mmap64): Do not use BP_SYM.
4655         (mmap64): Do not use BP_SYM in weak_alias.
4656         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
4657         <bp-sym.h> and <bp-asm.h>.
4658         (PARMS): Do not use macros from bp-asm.h.
4659         (__posix_fadvise64_l64): Do not use BP_SYM.
4660         * sysdeps/unix/sysv/linux/i386/semtimedop.S
4661         (PARMS): Do not use macros from bp-asm.h.
4662         (NSOPS): Likewise.
4663         (semtimedop): Do not use BP_SYM.
4664         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
4665         and <bp-asm.h>.
4666
4667 2013-02-21  Allan McRae  <allan@archlinux.org>
4668
4669         * manual/message.texi (Charset conversion in gettext):
4670         Move @end statement to beginning of line.
4671
4672 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4673
4674         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
4675         static.
4676         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4677         Likewise.
4678
4679         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
4680         (denorm): Likewise.
4681         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
4682         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
4683
4684 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4685
4686         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
4687         tail-call to the resolved function if pltexit isn't needed.
4688
4689 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4690
4691         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
4692         or Y being zero as being unlikely.
4693         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
4694         Likewise.
4695
4696 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
4697
4698         * manual/nss.texi (System Databases and Name Service Switch):
4699         Remove frobnicate @pxref.
4700
4701 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
4702
4703         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
4704         __attribute__ ((unused)) to __attribute__ ((__unused__)).
4705
4706 2013-02-20  Petr Machata  <pmachata@redhat.com>
4707
4708         * elf/elf.h (R_ARM_TARGET1): New macro.
4709         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
4710         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
4711         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
4712         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
4713         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
4714         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
4715         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
4716         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
4717         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
4718         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
4719         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
4720         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
4721         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
4722         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
4723         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
4724         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
4725         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
4726         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
4727         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
4728         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
4729         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
4730         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
4731         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
4732         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
4733         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
4734         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
4735         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
4736         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
4737         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
4738         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
4739         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
4740         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
4741         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
4742         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
4743         (R_ARM_THM_GOT_BREL12): Likewise.
4744         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
4745         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
4746         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
4747         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
4748         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
4749         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
4750         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
4751         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
4752         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
4753
4754 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
4755
4756         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
4757         __attribute_used__ to __attribute__ ((unused)).
4758
4759 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
4760
4761         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
4762         powerpc mpa.c.
4763         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
4764         comment formatting.
4765         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
4766
4767 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
4768
4769         [BZ #13550]
4770         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
4771         Remove macro.
4772         (ENTER): Remove both macro definitions.
4773         (LEAVE): Likewise.
4774         (CHECK_BOUNDS_LOW): Likewise.
4775         (CHECK_BOUNDS_HIGH): Likewise.
4776         (CHECK_BOUNDS_BOTH): Likewise.
4777         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
4778         (RETURN_BOUNDED_POINTER): Likewise.
4779         (RETURN_NULL_BOUNDED_POINTER): Likewise.
4780         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
4781         (POP_ERRNO_LOCATION_RETURN): Likewise.
4782         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
4783         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4784         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
4785         macros.
4786         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4787         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
4788         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
4789         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
4790         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
4791         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
4792         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
4793         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
4794         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
4795         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
4796         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
4797         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
4798         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4799         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
4800         removed macros.
4801         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4802         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
4803         macros.
4804         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4805         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
4806         * sysdeps/i386/i586/memset.S (memset): Likewise.
4807         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
4808         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4809         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
4810         macros.
4811         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4812         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
4813         Change uses of L(2) to L(out).
4814         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
4815         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
4816         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
4817         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4818         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
4819         removed macros.
4820         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4821         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
4822         macros.
4823         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4824         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
4825         (RETURN): Do not use macro LEAVE.
4826         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
4827         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
4828         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
4829         * sysdeps/i386/i686/memset.S (memset): Likewise.
4830         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
4831         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
4832         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
4833         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
4834         Likewise.
4835         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
4836         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
4837         L(1_2) and L(1_3) into L(1).
4838         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
4839         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
4840         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4841         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
4842         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
4843         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
4844         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
4845         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4846         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
4847         macros.
4848         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
4849         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4850         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
4851         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
4852         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4853         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
4854         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
4855         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
4856         * sysdeps/i386/strcspn.S (strcspn): Likewise.
4857         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
4858         * sysdeps/i386/strrchr.S (strrchr): Likewise.
4859         * sysdeps/i386/strspn.S (strspn): Likewise.
4860         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
4861         conditional code.
4862         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
4863         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
4864         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
4865         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
4866         L(1_3) into L(1_1).
4867         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
4868         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4869         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
4870         macros.
4871         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4872
4873 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
4874
4875         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
4876         macro.
4877
4878 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4879
4880         * math/atest-exp.c (exp_mpn): Remove ROUND.
4881         * math/atest-exp2.c (exp_mpn): Likewise.
4882         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
4883
4884         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
4885         * stdlib/tst-tls-atexit-lib.c: Likewise.
4886         * stdlib/tst-tls-atexit.c: Likewise.
4887
4888 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4889
4890         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
4891         and __attribute_alloc_size__.
4892
4893 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4894
4895         * include/programs/xmalloc.h: Change __attribute_alloc_size to
4896         __attribute_alloc_size__.
4897         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
4898         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
4899
4900 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4901
4902         * include/programs/xmalloc.h: New file.
4903         * catgets/gencat.c: Include it.
4904         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
4905         * elf/pldd.c: Likewise.
4906         * iconv/iconv_charmap.c: Likewise.
4907         * iconv/iconvconfig.c: Likewise.
4908         * iconv/strtab.c: Likewise.
4909         * locale/programs/locale.c: Likewise.
4910         * locale/programs/localedef.h: Likewise.
4911         * locale/programs/simple-hash.c: Likewise.
4912         * nscd/nscd.h: Likewise.
4913         * nss/makedb.c: Likewise.
4914         * sysdeps/generic/ldconfig.h: Likewise.
4915
4916 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4917
4918         * Versions.def: Add GLIBC_2.18.
4919         * include/link.h (struct link_map): New member l_tls_dtor_count.
4920         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
4921         (__call_tls_dtors): Likewise.
4922         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
4923         __cxa_thread_atexit_impl.
4924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4925         Likewise.
4926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4927         Likewise.
4928         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
4929         Likewise.
4930         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
4931         Likewise.
4932         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4933         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
4934         Likewise.
4935         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
4936         Likewise.
4937         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4938         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4939         Likewise.
4940         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
4941         (tests): Add test case tst-tls-atexit.
4942         (modules-names): Add shared library for tst-tls-atexit.
4943         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
4944         (GLIBC_PRIVATE): Add __call_tls_dtors.
4945         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
4946         for libstdc++.
4947         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
4948         * stdlib/tst-tls-atexit.c: New test case.
4949         * stdlib/tst-tls-atexit-lib.c: New test case.
4950
4951         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
4952
4953         * elf/Versions (ld): Add _dl_find_dso_for_object.
4954         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
4955         * elf/dl-open.c (_dl_find_dso_for_object): New function.
4956         (dl_open_worker): Use _dl_find_dso_for_object.
4957         * elf/dl-sym.c (do_sym): Likewise.
4958         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
4959
4960 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4961
4962         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
4963         Syntactic changes only.
4964         (_dl_runtime_profile): Do a tail-call to the resolved function.
4965
4966 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
4967
4968         [BZ #13550]
4969         * sysdeps/x86_64/bp-asm.h: Remove file.
4970         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
4971         <bp-sym.h> and <bp-asm.h>.
4972         (__clone): Do not use BP_SYM.
4973         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
4974         <bp-sym.h> and <bp-asm.h>.
4975         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4976         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
4977         "bp-asm.h".
4978         (_setjmp): Do not use BP_SYM.
4979         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
4980         "bp-asm.h".
4981         (setjmp): Do not use BP_SYM.
4982         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
4983         libc_hidden_def.
4984         (mempcpy): Do not use BP_SYM in weak_alias.
4985         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
4986         "bp-asm.h".
4987         (strchr): Do not use BP_SYM.
4988         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
4989         "bp-asm.h".
4990         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
4991         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
4992         (_start): Do not use BP_SYM.
4993         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
4994         "bp-asm.h".
4995         (strcat): Do not use BP_SYM.
4996         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
4997         "bp-asm.h".
4998         (STRCMP): Do not use BP_SYM.
4999         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
5000         "bp-asm.h".
5001         (STRCPY): Do not use BP_SYM.
5002         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
5003         "bp-asm.h".
5004         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
5005         "bp-asm.h".
5006         (FUNCTION): Do not use BP_SYM.
5007         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
5008         weak_alias.
5009         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
5010
5011 2013-02-17  Andreas Jaeger  <aj@suse.de>
5012
5013         * time/Versions: Sort entries.
5014         * string/Versions: Likewise.
5015         * resolv/Versions: Likewise.
5016         * posix/Versions: Likewise.
5017         * iconv/Versions: Likewise.
5018         * elf/Versions: Likewise.
5019         * wcsmbs/Versions: Likewise.
5020
5021 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5022
5023         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
5024         loop termination condition.
5025
5026         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
5027         variable to calculate EZ.
5028         (__sqr): Likewise.
5029
5030         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
5031         the lower precision input.
5032
5033 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
5034
5035         [BZ #13550]
5036         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
5037         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
5038         (run-via-rtld-prefix): Do not handle %-bp tests.
5039         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
5040         (all-object-suffixes): Remove .ob.
5041         (bppfx): Remove variable.
5042         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
5043         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
5044         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
5045         [$(build-bounded) = yes] (libtype.ob): Likewise.
5046         * Makerules (elide-routines.ob): Remove variable.
5047         (do-tests-clean): Do not handle *-bp.out.
5048         (common-mostlyclean): Do not handle *-bp and *-bp.out.
5049         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
5050         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
5051         (tests): Do not include $(tests-bp.out).
5052         (xtests): Do not include $(xtests-bp.out).
5053         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
5054         [$(build-bounded) = yes] ($(addprefix
5055         $(objpfx),$(binaries-bounded))): Remove rule.
5056         ($(objpfx)%-bp.out): Remove rule.
5057         * config.make.in (build-bounded): Remove variable.
5058         * crypt/Makefile [$(build-bounded) = yes]
5059         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
5060         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
5061         append to variable.
5062         [$(build-bounded) = yes] (install-lib): Likewise.
5063         [$(build-bounded) = yes] (generated): Likewise.
5064         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
5065         Remove rule.
5066         * intl/Makefile [$(build-bounded) = yes]
5067         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
5068         * math/Makefile [$(build-bounded) = yes]
5069         ($(tests:%=$(objpfx)%-bp): Likewise.
5070         * misc/Makefile [$(build-bounded) = yes]
5071         ($(objpfx)tst-tsearch-bp): Likewise.
5072         * nptl/Makeconfig (bounded-thread-library): Remove variable.
5073         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
5074         Remove dependency.
5075         * string/Makefile (o-objects.ob): Remove variable.
5076         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
5077         (CFLAGS-.ob): Remove variable.
5078         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
5079         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
5080         both definitions of variable.
5081         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
5082         (ASFLAGS-.ob): Remove variable.
5083
5084 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
5085
5086         [BZ #13550]
5087         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
5088         Remove __BOUNDED_POINTERS__ from condition.
5089         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
5090         * string/bits/string2.h [!__NO_STRING_INLINES &&
5091         !__BOUNDED_POINTERS__]: Likewise.
5092         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
5093         Likewise.
5094         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
5095         Remove conditional code.
5096         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
5097         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
5098         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
5099         condition.
5100
5101         [BZ #13550]
5102         * csu/libc-start.c: Do not include <bp-sym.h>.
5103         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
5104         * elf/dl-open.c: Do not include <bp-sym.h>.
5105         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
5106         * math/fegetenv.c: Do not include <bp-sym.h>.
5107         (fegetenv): Do not use BP_SYM in versioned symbols.
5108         * nptl/sysdeps/pthread/bits/libc-lockP.h
5109         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
5110         <bp-sym.h>.
5111         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5112         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
5113         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5114         (__pthread_mutex_destroy): Likewise.
5115         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5116         (__pthread_mutex_lock): Likewise.
5117         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5118         (__pthread_mutex_trylock): Likewise.
5119         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5120         (__pthread_mutex_unlock): Likewise.
5121         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5122         (__pthread_mutexattr_init): Likewise.
5123         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5124         (__pthread_mutexattr_destroy): Likewise.
5125         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5126         (__pthread_mutexattr_settype): Likewise.
5127         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5128         (__pthread_rwlock_init): Likewise.
5129         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5130         (__pthread_rwlock_destroy): Likewise.
5131         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5132         (__pthread_rwlock_rdlock): Likewise.
5133         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5134         (__pthread_rwlock_tryrdlock): Likewise.
5135         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5136         (__pthread_rwlock_wrlock): Likewise.
5137         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5138         (__pthread_rwlock_trywrlock): Likewise.
5139         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5140         (__pthread_rwlock_unlock): Likewise.
5141         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5142         (__pthread_key_create): Likewise.
5143         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5144         (__pthread_setspecific): Likewise.
5145         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5146         (__pthread_getspecific): Likewise.
5147         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
5148         Likewise.
5149         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5150         (_pthread_cleanup_push_defer): Likewise.
5151         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5152         (_pthread_cleanup_pop_restore): Likewise.
5153         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
5154         (pthread_setcancelstate): Likewise.
5155         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
5156         <bp-sym.h>.
5157         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
5158         (memchr): Do not use BP_SYM in weak_alias.
5159         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
5160         (fegetenv): Do not use BP_SYM in versioned symbols.
5161         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
5162         (fesetenv): Do not use BP_SYM in versioned symbols.
5163         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
5164         (feupdateenv): Do not use BP_SYM in versioned symbols.
5165         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
5166         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
5167         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
5168         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
5169         (open64): Do not use BP_SYM in weak_alias.
5170         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
5171         (fegetenv): Do not use BP_SYM in versioned symbols.
5172         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
5173         (fesetenv): Do not use BP_SYM in versioned symbols.
5174         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
5175         (feupdateenv): Do not use BP_SYM in versioned symbols.
5176         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
5177         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
5178         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
5179         (feraiseexcept): Do not use BP_SYM in versioned symbols.
5180         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
5181         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
5182         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
5183         <bp-sym.h>.
5184         (__libc_start_main): Do not use BP_SYM.
5185
5186 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
5187
5188         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
5189         redundant return line.
5190         (norm): Likewise.
5191         (denorm): Likewise.
5192         (dbl_mp): Likewise.
5193         (sub_magnitudes): Likewise.
5194         (__add): Likewise.
5195         (__sub): Likewise.
5196         (__mul): Likewise.
5197         (__inv): Likewise.
5198         (__dvd): Likewise.
5199         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
5200         (norm): Likewise.
5201         (denorm): Likewise.
5202         (dbl_mp): Likewise.
5203         (sub_magnitudes): Likewise.
5204         (__add): Likewise.
5205         (__sub): Likewise.
5206         (__mul): Likewise.
5207         (__inv): Likewise.
5208         (__dvd): Likewise.
5209
5210         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
5211         instead of __mul.
5212         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
5213         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
5214         (cc32): Likewise.
5215
5216         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
5217         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
5218         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
5219         of __mul for squares.
5220         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
5221         function
5222         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
5223         Likewise.
5224         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
5225         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5226
5227 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
5228
5229         [BZ #13550]
5230         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
5231         code.
5232         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
5233         prototype or function definition.  Rename ubp_* variables and
5234         parameters.  Remove argv definitions conditional on
5235         [__BOUNDED_POINTERS__].
5236         * debug/backtrace.c (__backtrace): Do not use __unbounded.
5237         * elf/dl-runtime.c (_dl_fixup): Likewise.
5238         * include/set-hooks.h (RUN_HOOK): Likewise.
5239         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
5240         definition.
5241         * string/strcpy.c (strcpy): Do not use __unbounded.
5242         * sysdeps/generic/frame.h (struct layout): Likewise.
5243         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
5244         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
5245         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
5246         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
5247         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
5248         (__backtrace): Likewise.
5249         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
5250         use __ptrvalue.
5251         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
5252         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
5253         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
5254         Likewise.
5255         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
5256         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
5257         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
5258         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
5259         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
5260         Do not use __unbounded.
5261         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
5262         Rename __unboundedrlimits parameter to rlimits in prototype.
5263         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
5264         Do not use __unbounded.
5265         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
5266         not use __ptrvalue.
5267         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
5268         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
5269         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
5270         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
5271         __ptrvalue or __unbounded.
5272         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
5273         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
5274         use __unbounded.
5275         (__new_msgctl): Do not use __ptrvalue.
5276         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
5277         __unbounded.
5278         (__libc_msgrcv): Do not use __ptrvalue.
5279         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
5280         startup_info): Do not use __unbounded.
5281         (__libc_start_main): Likewise.  Rename ubp_* variables and
5282         parameters.  Remove argv definitions conditional on
5283         [__BOUNDED_POINTERS__].
5284         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
5285         __ptrvalue.
5286         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
5287         use __unbounded.
5288         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
5289         or __ptrvalue.
5290         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
5291         use __unbounded.
5292         (__new_shmctl): Do not use __ptrvalue.
5293         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
5294         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
5295         Likewise.
5296         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
5297         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
5298         (__libc_sigaction): Likewise.
5299         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
5300         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
5301         Likewise.
5302         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
5303
5304 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
5305
5306         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
5307
5308         * string/mempcpy.c: Implement by calling memcpy.
5309
5310 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
5311
5312         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
5313
5314         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
5315         evaluation.
5316
5317         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
5318         values in the mantissa.
5319
5320         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
5321         minimize writes to Z.
5322         (sub_magnitudes): Simplify code a bit.
5323
5324 2013-02-12  Roland McGrath  <roland@hack.frob.com>
5325
5326         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
5327         from the message.  The linker prefixes all warnings with that already.
5328
5329 2013-02-12  Andreas Schwab  <schwab@suse.de>
5330
5331         [BZ #15078]
5332         * posix/regexec.c (extend_buffers): Add parameter min_len.
5333         (check_matching): Pass minimum needed length.
5334         (clean_state_log_if_needed): Likewise.
5335         (get_subexp): Likewise.
5336         * posix/Makefile (tests): Add bug-regex34.
5337         (bug-regex34-ENV): Define.
5338         * posix/bug-regex34.c: New file.
5339
5340         [BZ #11561]
5341         * posix/regcomp.c (parse_bracket_exp): When looking up collating
5342         elements compare against the byte sequence of it, not its name.
5343         * posix/Makefile (tests): Add bug-regex35.
5344         (bug-regex35-ENV): Define.
5345         * posix/bug-regex35.c: New file.
5346
5347 2013-02-11  Tom de Vries  <tom@codesourcery.com>
5348
5349         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
5350         comment.
5351         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
5352         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
5353         (CHECK_EOL): Add undef.
5354
5355 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
5356
5357         * bits/stdlib-bsearch.h: New file.
5358         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
5359         * stdlib/stdlib.h: Likewise.
5360
5361 2013-02-11  Roland McGrath  <roland@hack.frob.com>
5362
5363         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
5364         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
5365         declaration.
5366         * manual/search.texi (Array Search Function): Add missing const in
5367         lfind prototype.
5368         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
5369         declaration to use rlim_t.
5370         (Basic Scheduling Functions): Remove erroneous const from
5371         sched_getparam prototype.  Remove erroneous * from
5372         sched_get_priority_max and sched_get_priority_min prototypes.
5373         (Resource Usage): Fix summary @comment on vtimes to refer to
5374         sys/vtimes.h rather than vtimes.h.
5375         Add missing *s in vtimes prototype.
5376         (Limits on Resources): Fix ulimit prototype to return long int.
5377         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
5378         prototypes to use long int rather than double.
5379         (BSD Random): Fix initstate and setstate to use char *, not void *.
5380         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
5381         prototype to make second argument 'struct aiocb64 *const[]'.
5382         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
5383         (Status of AIO Operations): Remove erroneous const in aio_return and
5384         aio_return64 prototypes.
5385         (Synchronizing I/O): Fix sync prototype to return void.
5386         * manual/startup.texi (Suboptions): Remove an erroneous const in
5387         getsubopt prototype.
5388         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
5389         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
5390         use size_t rather than int.
5391         (Scanning All Users): Likewise for getpwent_r.
5392         (Setting Groups): Add missing const to setgroups prototype.
5393         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
5394         * manual/socket.texi (Host Names): Fix gethostbyaddr and
5395         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
5396         'const void *' rather than 'const char *'.
5397         (Host Address Functions): Likewise for inet_ntop.
5398         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
5399         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
5400         ssize_t for return value.
5401         (Sending Data): Likewise for send, sendto, sendmsg.
5402         (Socket Option Functions): Add a missing const in setsockopt prototype.
5403         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
5404         use wchar_t for the argument.
5405         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
5406         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
5407         take no arguments.
5408         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
5409         double/float/long double for second argument.
5410         Fix return types of significand, significandf, significandl.
5411         * manual/filesys.texi (Setting Permissions): Use mode_t for second
5412         argument in fchmod prototype.
5413         (File Owner): Use uid_t and gid_t in fchown prototype.
5414         (File Times): Add const to utimes, futimes, and lutimes prototypes.
5415         (Making Special Files): Use mode_t and dev_t in mknod prototype.
5416         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
5417         use 'const struct dirent **' as argument types to CMP function pointer
5418         argument.
5419         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
5420         (File Times): Fix summary magic @comment for struct utimbuf and utime
5421         to refer to utime.h, not time.h.
5422         * manual/string.texi (Argz Functions): Add missing const in
5423         argz_extract and argz_next prototypes.
5424         (Finding Tokens in a String): Likewise for basename.
5425         (String/Array Comparison): Fix typo in wcscasecmp prototype.
5426         (Copying and Concatenation): Fix typo in wmemmove prototype.
5427         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
5428         (Signal Stack): Remove erroneous const in sigstack prototype.
5429         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
5430         prototype.
5431         (Simple Calendar Time): Likewise for stime.
5432         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
5433         prototype.
5434         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
5435         say sys/sysctl.h instead.
5436         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
5437         and vsyslog prototypes.
5438
5439 2013-02-11  Tom de Vries  <tom@codesourcery.com>
5440
5441         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
5442         Remove.
5443
5444 2013-02-11  Roland McGrath  <roland@hack.frob.com>
5445
5446         * misc/sys/mman.h: Fix typo in mremap comment.
5447
5448 2013-02-08  Roland McGrath  <roland@hack.frob.com>
5449
5450         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
5451         the '\0' terminator.
5452
5453 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
5454
5455         [BZ #13550]
5456         * debug/segfault.c: Don't include <bp-checks.h>.
5457         * sysdeps/generic/bp-checks.h: Remove file.
5458         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
5459         (__GETDENTS): Don't use CHECK_N.
5460         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
5461         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5462         (__getgroups): Don't use CHECK_N.
5463         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5464         (setgroups): Don't use CHECK_N.
5465         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
5466         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
5467         (__libc_msgrcv): Don't use CHECK_N.
5468         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
5469         (__libc_msgsnd): Don't use CHECK_N.
5470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
5471         <bp-checks.h>.
5472         (__libc_pread): Don't use CHECK_N.
5473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
5474         include <bp-checks.h>.
5475         (__libc_pread64): Don't use CHECK_N.
5476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
5477         include <bp-checks.h>.
5478         (__libc_pwrite): Don't use CHECK_N.
5479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
5480         include <bp-checks.h>.
5481         (__libc_pwrite64): Don't use CHECK_N.
5482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
5483         <bp-checks.h>.
5484         (__libc_pread): Don't use CHECK_N.
5485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
5486         include <bp-checks.h>.
5487         (__libc_pread64): Don't use CHECK_N.
5488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
5489         include <bp-checks.h>.
5490         (__libc_pwrite): Don't use CHECK_N.
5491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
5492         include <bp-checks.h>.
5493         (__libc_pwrite64): Don't use CHECK_N.
5494         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
5495         (do_pread): Don't use CHECK_N.
5496         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
5497         (do_pread64): Don't use CHECK_N.
5498         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
5499         (do_pwrite): Don't use CHECK_N.
5500         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
5501         (do_pwrite64): Don't use CHECK_N.
5502         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
5503         (__libc_readv): Don't use CHECK_N.
5504         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
5505         (semop): Don't use CHECK_N.
5506         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
5507         <bp-checks.h>.
5508         (semtimedop): Don't use CHECK_N.
5509         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
5510         (__libc_pread): Don't use CHECK_N.
5511         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
5512         <bp-checks.h>.
5513         (__libc_pread64): Don't use CHECK_N.
5514         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
5515         <bp-checks.h>.
5516         (__libc_pwrite): Don't use CHECK_N.
5517         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
5518         <bp-checks.h>.
5519         (__libc_pwrite64): Don't use CHECK_N.
5520         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
5521         <bp-checks.h>.
5522         (__libc_msgrcv): Don't use CHECK_N.
5523         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
5524         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
5525         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
5526         (__libc_writev): Don't use CHECK_N.
5527
5528 2013-02-08  Roland McGrath  <roland@hack.frob.com>
5529
5530         * string/strcpy.c: Removed unused variable.
5531
5532         * Makeconfig (+sysdep-includes): Define with := rather than =.
5533         Use an existing include/ subdir of each sysdeps dir before it.
5534
5535 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
5536
5537         * nscd/connection.c (register_traced_file): Comment function.
5538         [HAVE_INOTIFY] (union __inev): Define.
5539         [HAVE_INOTIFY] (inotify_check_files): New function.
5540         [HAVE_INOTIFY] (clear_db_cache): Likewise.
5541         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
5542         clear_db_cache.
5543         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
5544
5545 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
5546
5547         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
5548         loaded if not already and that a failure is permanent.
5549
5550 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
5551
5552         [BZ #15006]
5553         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
5554         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
5555
5556 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
5557
5558         [BZ #13550]
5559         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
5560         (CHECK_1_NULL_OK): Likewise.
5561         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
5562         (__fxstat): Do not use CHECK_1.
5563         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5564         <bp-checks.h>.
5565         (___fxstat64): Do not use CHECK_1.
5566         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
5567         <bp-checks.h>.
5568         (__fxstatat): Do not use CHECK_1.
5569         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
5570         <bp-checks.h>.
5571         (__fxstatat64): Do not use CHECK_1.
5572         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
5573         <bp-checks.h>.
5574         (__fxstat): Do not use CHECK_1.
5575         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
5576         <bp-checks.h>.
5577         (__fxstatat): Do not use CHECK_1.
5578         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5579         <bp-checks.h>.
5580         (__getresgid): Do not use CHECK_1.
5581         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5582         <bp-checks.h>.
5583         (__getresuid): Do not use CHECK_1.
5584         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
5585         <bp-checks.h>.
5586         (__lxstat): Do not use CHECK_1.
5587         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5588         <bp-checks.h>.
5589         (__old_msgctl): Do not use CHECK_1.
5590         (__new_msgctl): Likewise.
5591         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
5592         <bp-checks.h>.
5593         (__new_setrlimit): Do not use CHECK_1.
5594         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5595         <bp-checks.h>.
5596         (__old_shmctl): Do not use CHECK_1.
5597         (__new_shmctl): Likewise.
5598         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
5599         <bp-checks.h>.
5600         (__xstat): Do not use CHECK_1.
5601         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
5602         (__lxstat): Do not use CHECK_1.
5603         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5604         <bp-checks.h>.
5605         (___lxstat64): Do not use CHECK_1.
5606         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
5607         (__old_msgctl): Do not use CHECK_1.
5608         (__new_msgctl): Likewise.
5609         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
5610         <bp-checks.h>.
5611         (__gettimeofday): Do not use CHECK_1.
5612         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
5613         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
5614         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
5615         <bp-checks.h>.
5616         (__gettimeofday): Do not use CHECK_1.
5617         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
5618         (__old_shmctl): Do not use CHECK_1_NULL_OK.
5619         (__new_shmctl): Do not use CHECK_1.
5620         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
5621         <bp-checks.h>.
5622         (do_sigtimedwait): Do not use CHECK_1.
5623         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
5624         <bp-checks.h>.
5625         (do_sigwaitinfo): Do not use CHECK_1.
5626         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
5627         <bp-checks.h>.
5628         (msgctl): Do not use CHECK_1.
5629         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
5630         <bp-checks.h>.
5631         (shmctl): Do not use CHECK_1.
5632         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
5633         (ustat): Do not use CHECK_1.
5634         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
5635         <bp-checks.h>.
5636         (__fxstat): Do not use CHECK_1.
5637         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
5638         <bp-checks.h>.
5639         (__fxstatat): Do not use CHECK_1.
5640         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
5641         <bp-checks.h>.
5642         (__lxstat): Do not use CHECK_1.
5643         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
5644         <bp-checks.h>.
5645         (__xstat): Do not use CHECK_1.
5646         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
5647         (__xstat): Do not use CHECK_1.
5648         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
5649         (___xstat64): Do not use CHECK_1.
5650
5651         [BZ #13550]
5652         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
5653         definitions.
5654         (CHECK_BOUNDS_HIGH): Likewise.
5655         * string/strcpy.c: Do not include <bp-checks.h>.
5656         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
5657
5658 2013-02-07  Roland McGrath  <roland@hack.frob.com>
5659
5660         * nscd/nscd-client.h (__nscd_drop_map_ref):
5661         Add __attribute__ ((unused)).
5662         * nis/nss-nisplus.h (niserr2nss): Likewise.
5663
5664         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
5665         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
5666
5667         * csu/libc-tls.c (init_static_tls, init_slotinfo):
5668         Remove inline keyword.
5669         * include/rounding-mode.h (round_away): Likewise.
5670         * libio/wfileops.c (adjust_wide_data): Likewise.
5671         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
5672         (__m128i_strloadu_tolower): Likewise.
5673         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
5674         (__m128i_strloadu_tolower): Likewise.
5675         * time/mktime.c (ydhms_diff): Likewise.
5676         * locale/elem-hash.h (elem_hash): Likewise.
5677         * locale/setlocale.c (setdata): Likewise.
5678         * posix/regex_internal.h (re_string_char_size_at): Likewise.
5679         (re_string_wchar_at): Likewise.
5680         (bitset_not, bitset_merge, bitset_mask): Likewise.
5681         [!(__GNUC__ > 3)] (inline): Remove macro.
5682         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
5683         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
5684         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
5685         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
5686         * string/memcmp.c (memcmp_bytes): Likewise.
5687         * locale/programs/locarchive.c (compute_hashval): Likewise.
5688         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
5689         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
5690         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
5691         * nss/getent.c (print_rpc, print_protocols): Likewise.
5692         (print_passwd, print_group, print_aliases): Likewise.
5693         * nis/nss-nisplus.h (niserr2nss): Likewise.
5694         * nscd/connections.c (restart_p): Likewise.
5695         Change return type to bool.
5696
5697 2013-02-05  Roland McGrath  <roland@hack.frob.com>
5698
5699         * Makeconfig (all-Depend-files): Add existing
5700         $(sorted-subdirs:=/Depend) files.
5701         (all-subdirs): Remove nss.
5702         * sysdeps/unix/inet/Subdirs: Add it here instead.
5703         * hesiod/Depend: New file.
5704
5705         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
5706         instead of calling alloca.
5707
5708         * io/lseek.c (__lseek): Rename to __libc_lseek.
5709         Define __lseek as an alias.
5710
5711         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
5712
5713 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
5714
5715         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
5716         else clause and remove check for non-standard endianness.
5717
5718 2013-02-04  David S. Miller  <davem@davemloft.net>
5719
5720         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5721
5722 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
5723
5724         [BZ #13550]
5725         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
5726         (__ubp_memchr): Remove prototype.
5727         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
5728         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
5729         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
5730         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
5731         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
5732         Remove alias.
5733         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
5734         (__ubp_memchr): Likewise.
5735         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
5736         (__ubp_memchr): Likewise.
5737         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
5738         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
5739         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
5740         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
5741         CHECK_STRING.
5742         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
5743         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
5744         (__getcwd): Do not use CHECK_STRING.
5745         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5746         <bp-checks.h>.
5747         (__real_chown): Do not use CHECK_STRING.
5748         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
5749         <bp-checks.h>.
5750         (fchownat): Do not use CHECK_STRING.
5751         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
5752         CHECK_STRING.
5753         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5754         <bp-checks.h>.
5755         (__lchown): Do not use CHECK_STRING.
5756         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
5757         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
5758         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
5759         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5761         include <bp-checks.h>.
5762         (truncate64): Do not use CHECK_STRING.
5763         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5764         <bp-checks.h>.
5765         (__real_chown): Do not use CHECK_STRING.
5766         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5767         <bp-checks.h>.
5768         (__lchown): Do not use CHECK_STRING.
5769         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5770         <bp-checks.h>.
5771         (__chown): Do not use CHECK_STRING.
5772         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
5773         <bp-checks.h>.
5774         (truncate64): Do not use CHECK_STRING.
5775         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
5776         Likewise.
5777         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
5778         (__xmknod): Do not use CHECK_STRING.
5779         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
5780         <bp-checks.h>.
5781         (__xmknodat): Do not use CHECK_STRING.
5782         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
5783         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5784
5785 2013-02-04  Andreas Schwab  <schwab@suse.de>
5786
5787         [BZ #14142]
5788         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
5789         * include/netdb.h: Likewise for h_errno.
5790         * elf/tst-stackguard1.c: Include <tls.h>.
5791
5792 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5793
5794         * elf/link.h (struct link_map): Extend the l_addr comment.
5795         * include/link.h (struct link_map): Likewise.
5796
5797 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
5798
5799         [BZ #13550]
5800         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
5801         (BOUNDED_1): Remove macro.
5802         * debug/backtrace.c: Don't include <bp-checks.h>.
5803         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
5804         (__backtrace): Likewise.
5805         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
5806         <bp-checks.h>.
5807         (__backtrace): Don't use BOUNDED_1.
5808         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
5809         <bp-checks.h>.
5810         (__backtrace): Don't use BOUNDED_1.
5811         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
5812         (__backtrace): Don't use BOUNDED_1.
5813         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
5814         (shmat): Don't use BOUNDED_N.
5815
5816 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
5817
5818         [BZ #13550]
5819         * sysdeps/generic/bp-start.h: Remove file.
5820         * csu/libc-start.c: Don't include <bp-start.h>.
5821         (LIBC_START_MAIN): Set up __environ directly instead of using
5822         INIT_ARGV_and_ENVIRON.
5823         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
5824         <bp-start.h>.
5825
5826         [BZ #13550]
5827         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
5828         definitions.
5829         (CHECK_FCNTL): Likewise.
5830         (CHECK_N_PAGES): Likewise.
5831
5832         [BZ #13550]
5833         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
5834         definitions.
5835         (CHECK_SIGSET_NULL_OK): Likewise.
5836         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
5837         <bp-checks.h>.
5838         (sigpending): Don't use CHECK_SIGSET.
5839         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
5840         <bp-checks.h>.
5841         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5842         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
5843         <bp-checks.h>.
5844         (do_sigsuspend): Don't use CHECK_SIGSET.
5845         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
5846         use CHECK_SIGSET.
5847         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
5848         (do_sigwait): Don't use CHECK_SIGSET.
5849         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
5850         use CHECK_SIGSET.
5851         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
5852         include <bp-checks.h>.
5853         (sigpending): Don't use CHECK_SIGSET.
5854         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
5855         include <bp-checks.h>.
5856         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5857         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
5858         <bp-checks.h>.
5859         (sigpending): Don't use CHECK_SIGSET.
5860         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
5861         <bp-checks.h>.
5862         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5863
5864         [BZ #13550]
5865         * sysdeps/generic/bp-semctl.h: Remove file.
5866         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
5867         <bp-checks.h> and <bp-semctl.h>.
5868         (__old_semctl): Don't use CHECK_SEMCTL.
5869         (__new_semctl): Likewise.
5870         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
5871         and <bp-semctl.h>.
5872         (__old_semctl): Don't use CHECK_SEMCTL.
5873         (__new_semctl): Likewise.
5874         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
5875         <bp-checks.h> and <bp-semctl.h>.
5876         (__old_semctl): Don't use CHECK_SEMCTL.
5877         (__new_semctl): Likewise.
5878         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
5879         <bp-checks.h> and <bp-semctl.h>.
5880         (semctl): Don't use CHECK_SEMCTL.
5881
5882         [BZ #13550]
5883         * Makerules (elide-bp-thunks): Remove variable.
5884         (elide-routines.oS): Don't use $(elide-bp-thunks).
5885         (elide-routines.os): Likewise.
5886         (elide-routines.o): Likewise.
5887         (elide-routines.op): Likewise.
5888         (elide-routines.og): Likewise.
5889         (objects): Don't use $(bp-thunks).
5890         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
5891         include.
5892         (common-generated): Do not add s-proto-bp.d.
5893         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
5894         (int): Likewise.
5895         (typ): Likewise.
5896         Do not generate makefile rules for bounded-pointer thunks.
5897         * sysdeps/generic/bp-thunks.h: Remove file.
5898         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
5899         * sysdeps/unix/s-proto-bp.S: Likewise.
5900
5901         [BZ #15062]
5902         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
5903         parts of result separately when argument is not close to line from
5904         -i to i and one part of argument is small.
5905         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5906         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5907         * math/libm-test.inc (cacos_test): Add more tests.
5908         (casin_test): Likewise.
5909         (casinh_test): Likewise.
5910         * sysdeps/i386/fpu/libm-test-ulps: Update.
5911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5912
5913 2013-01-31  David S. Miller  <davem@davemloft.net>
5914
5915         * po/de.po: Update from translation team.
5916
5917 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
5918
5919         * time/tzfile.c: Include stdint.h for SIZE_MAX.
5920
5921 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
5922
5923         * configure.in (_AC_PROG_CC_C89): New definition.
5924         * configure: Regenerate.
5925
5926         * configure.in (AC_PROG_CPP): New definition.
5927         * configure: Regenerate.
5928
5929 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
5930
5931         * debug/tst-backtrace.h: New file.
5932         * debug/tst-backtrace2.c: Include tst-backtrace.h.
5933         (ret): Remove variable.
5934         (x): Likewise.
5935         (FAIL): Remove macro.
5936         (NO_INLINE): Likewise.
5937         (fn1): Use match function instead of strstr.
5938         * debug/tst-backtrace3.c: Include tst-backtrace.h.
5939         (ret): Remove variable.
5940         (x): Likewise.
5941         (FAIL): Remove macro.
5942         (NO_INLINE): Likewise.
5943         (fn): Use match function instead of strstr.
5944         * debug/tst-backtrace4.c: Include tst-backtrace.h.
5945         (ret): Remove variable.
5946         (x): Likewise.
5947         (FAIL): Remove macro.
5948         (NO_INLINE): Likewise.
5949         (handle_signal): Use match function instead of strstr.
5950         * debug/tst-backtrace5.c: Include tst-backtrace.h.
5951         (ret): Remove variable.
5952         (x): Likewise.
5953         (FAIL): Remove macro.
5954         (NO_INLINE): Likewise.
5955         (handle_signal): Use match function instead of strstr.
5956
5957 2013-01-23  Roland McGrath  <roland@hack.frob.com>
5958
5959         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
5960
5961 2013-01-23  David S. Miller  <davem@davemloft.net>
5962
5963         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5964         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
5965         argument of CAS if possible.
5966         * sysdeps/sparc/sparc64/bits/atomic.h
5967         (__arch_compare_and_exchange_val_32_acq): Likewise.
5968         (__arch_compare_and_exchange_val_64_acq): Likewise.
5969
5970 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
5971
5972         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
5973         * sysdeps/posix/ulimit.c: ... this.
5974         Include <limits.h>.
5975         * sysdeps/unix/bsd/ulimit.c: Remove file.
5976
5977 2013-01-23  Adam Conrad  <adconrad@0c3.net>
5978
5979         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
5980         (LDFLAGS-tst-array5): Likewise.
5981
5982 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
5983
5984         [BZ #15036]
5985         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
5986         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
5987         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
5988         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
5989
5990 2013-01-21  David S. Miller  <davem@davemloft.net>
5991
5992         * sysdeps/sparc/backtrace.c: New file.
5993         * sysdeps/sparc/sparc32/backtrace.h: New file.
5994         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
5995         * sysdeps/sparc/sparc64/backtrace.h: New file.
5996         * sysdeps/sparc/sparc64/backtrace.c: Delete.
5997         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
5998         -funwind-tables.
5999
6000 2013-01-21  Andreas Schwab  <schwab@suse.de>
6001
6002         [BZ #15020]
6003         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
6004         closed its stdout.
6005
6006 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
6007
6008         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
6009         "mpa2.h".
6010         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6011
6012 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
6013             Mark Mitchell  <mark@codesourcery.com>
6014             Tom de Vries  <tom@codesourcery.com>
6015             Paul Pluzhnikov  <ppluzhnikov@google.com>
6016
6017         * debug/tst-backtrace2.c: New file.
6018         * debug/tst-backtrace3.c: Likewise.
6019         * debug/tst-backtrace4.c: Likewise.
6020         * debug/tst-backtrace5.c: Likewise.
6021         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
6022         (CFLAGS-tst-backtrace3.c): Likewise.
6023         (CFLAGS-tst-backtrace4.c): Likewise.
6024         (CFLAGS-tst-backtrace5.c): Likewise.
6025         (LDFLAGS-tst-backtrace2): Likewise.
6026         (LDFLAGS-tst-backtrace3): Likewise.
6027         (LDFLAGS-tst-backtrace4): Likewise.
6028         (LDFLAGS-tst-backtrace5): Likewise.
6029         (tests): Add new tests tst-backtrace2, tst-backtrace3,
6030         tst-backtrace4 and tst-backtrace5.
6031
6032 2013-01-18  Anton Blanchard  <anton@samba.org>
6033             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6034
6035         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
6036         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
6037         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
6038         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
6039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6040         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
6041         "+r" and remove output regs list as redundant.  Add explicit inline
6042         asm to specify register of return val to work around compiler codegen
6043         bug.  Remove (int) cast on return value.  Add return type parameter to
6044         use in macro so that this macro does not truncate return value for
6045         64-bit values.
6046         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
6047         pass to INTERNAL_VSYSCALL_NCS.
6048         (INLINE_VSYSCALL): Add 'long int' as return type to
6049         INTERNAL_VSYSCALL_NCS macro invocation.
6050         (INTERNAL_VSYSCALL): Add 'long int' as return type to
6051         INTERNAL_VSYSCALL_NCS macro invocation.
6052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
6053
6054 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6055
6056         [BZ #14496]
6057         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
6058         Fix application of SIMD FP exception mask.
6059
6060         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
6061         mp_no from a power of two.
6062         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
6063         __mpexp_twomm1.  Use __pow_mp.
6064
6065         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
6066         multiplication.
6067
6068 2013-01-17  David S. Miller  <davem@davemloft.net>
6069
6070         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6071
6072 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
6073
6074         [BZ #15023]
6075         * include/complex.h: Condition contents on [!_COMPLEX_H].
6076         (__kernel_casinhf): New prototype.
6077         (__kernel_casinh): Likewise.
6078         (__kernel_casinhl): Likewise.
6079         * math/Makefile (libm_calls): Add k_casinh.
6080         * math/k_casinh.c: New file.
6081         * math/k_casinhf.c: Likewise.
6082         * math/k_casinhl.c: Likewise.
6083         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
6084         finite nonzero arguments.
6085         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
6086         finite nonzero arguments.
6087         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
6088         finite nonzero arguments.
6089         * math/s_casinh.c: Do not include <float.h>.
6090         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
6091         * math/s_casinhf.c: Do not include <float.h>.
6092         (__casinhf): Move code for finite nonzero arguments to
6093         k_casinhf.c.
6094         * math/s_casinhl.c: Do not include <float.h>.
6095         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
6096         redefine.
6097         (__casinhl): Move code for finite nonzero arguments to
6098         k_casinhl.c.
6099         * math/libm-test.inc (cacos_test): Add more tests.
6100         * sysdeps/i386/fpu/libm-test-ulps: Update.
6101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6102
6103 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
6104
6105         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
6106         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
6107         [!HAVE_MREMAP]: Remove [defined linux] case.
6108         * malloc/arena.c: Do not include <malloc-sysdep.h>.
6109
6110 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
6111
6112         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
6113
6114 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
6115
6116         * elf/elf.h (R_386_SIZE32): New relocation.
6117         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
6118         R_386_SIZE32.
6119         (elf_machine_rela): Likewise.
6120         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6121         R_X86_64_SIZE64 and R_X86_64_SIZE32.
6122
6123 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
6124
6125         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
6126         (FP_FAST_FMA): Do not define.
6127         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
6128         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
6129         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
6130         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
6131         !_SOFT_FLOAT]: Likewise.
6132         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
6133         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
6134         value.
6135         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
6136         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
6137         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
6138         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
6139         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
6140         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
6141         file.
6142
6143 2013-01-16  Andreas Schwab  <schwab@suse.de>
6144
6145         [BZ #14327]
6146         * include/stdlib.h (__mktemp): Add declaration.
6147         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
6148         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
6149
6150 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6151
6152         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
6153         definitions.
6154         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
6155         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
6156         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
6157         definitions here.
6158         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
6159         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
6160         definitions.
6161         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
6162         and ONE.
6163         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
6164         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
6165         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
6166         definitions.
6167         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
6168         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
6169         definitions.
6170         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
6171
6172         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
6173
6174 2013-01-15  David S. Miller  <davem@davemloft.net>
6175
6176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
6177         trunc{,f} to libm-sysdep_routes.
6178         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
6179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
6180         file.
6181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
6182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
6183         file.
6184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
6185         file.
6186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
6187         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
6188         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
6189         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
6190         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
6191         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
6192         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
6193         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
6194
6195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
6196         nearbyint{,f} to libm-sysdep_routes.
6197         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
6198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
6199         New file.
6200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
6201         file.
6202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
6203         New file.
6204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
6205         file.
6206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
6207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
6208         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
6209         file.
6210         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
6211         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
6212         file.
6213         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
6214         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
6215         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
6216
6217         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
6218         libc_feholdexcept and libc_fesetenv.
6219
6220 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
6221
6222         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
6223
6224 2013-01-14  David S. Miller  <davem@davemloft.net>
6225
6226         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
6227         (SPARC_ASM_VIS2_IFUNC): Likewise.
6228         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
6229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
6230         use of 'siam' instruction.
6231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
6232         Likewise.
6233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
6234         Likewise.
6235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
6236         Likewise.
6237         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
6238         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
6239         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
6240         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
6241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
6242         file.
6243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
6244         file.
6245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
6246         file.
6247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
6248         file.
6249         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
6250         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
6251         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
6252         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
6253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
6254         new VIS2 routines.
6255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
6258         Likewise.
6259         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6260         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6261         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6262         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
6264         routines to libm-sysdep_routines.
6265         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
6266
6267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
6268         fdim/fdimf to libm-sysdep_routines.
6269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
6270         file.
6271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
6272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
6273         file.
6274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
6275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
6276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
6277         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
6278         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
6279         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
6280         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
6281
6282 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
6283
6284         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
6285         to optimize copies.
6286
6287         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
6288         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6289         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6290
6291         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
6292         local variable MPTWO.
6293         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
6294         Likewise.
6295
6296 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
6297
6298         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
6299         GLOB_NOESCAPE.
6300
6301 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
6302
6303         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
6304
6305 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
6306
6307         * manual/pattern.texi (glob_t): Document gl_flags.
6308         (glob64_t): Likewise.
6309
6310 2013-01-11  David S. Miller  <davem@davemloft.net>
6311
6312         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
6313         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
6314         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
6315         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
6316         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
6317         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
6318         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
6319         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
6320         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
6321         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
6322         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
6323         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
6324         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
6325
6326         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
6327         sparc V9 rather than using V8 code.
6328         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
6329         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
6330
6331         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
6332         Move to...
6333         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
6334         Here.
6335
6336 2013-01-11  Roland McGrath  <roland@hack.frob.com>
6337
6338         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
6339         not in the main loop.
6340         * configure: Regenerated.
6341
6342 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
6343
6344         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
6345         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
6346         to just #else.
6347         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
6348         [!__GLIBC_HAVE_LONG_LONG] case.
6349         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
6350         condition to just #else.
6351         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
6352         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
6353         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
6354         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
6355         unconditional.
6356         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
6357         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
6358         #elif condition to just #else.
6359         * sysdeps/unix/sysv/linux/sys/sysmacros.h
6360         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
6361         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
6362         #elif condition to just #else.
6363
6364 2013-01-11  Steve Ellcey  <sellcey@mips.com>
6365
6366         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
6367         (EF_MIPS_ARCH_64): Fix value.
6368         (EF_MIPS_ARCH_32R2): New.
6369         (EF_MIPS_ARCH_64R2): New.
6370
6371 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
6372
6373         * Makeconfig (+link-pie-before-libc): New.
6374         (+link-pie-after-libc): Likewise.
6375         (+link-pie-tests): Likewise.
6376         (+link-pie): Rewritten.
6377         (link-before-libc): Remove $(config-LDFLAGS).
6378         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
6379         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
6380         (config-LDFLAGS): Renamed to ...
6381         (rtld-LDFLAGS): This.
6382         (rtld-tests-LDFLAGS): New macro.
6383         (link-libc-rpath-link): Likewise.
6384         (link-libc-tests-rpath-link): Likewise.
6385         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
6386         (link-libc): Prepand $(link-libc-rpath-link).
6387         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
6388         (test-program-prefix): New macro.
6389         (test-via-rtld-prefix): Likewise.
6390         (test-program-cmd): Likewise.
6391         (host-test-program-cmd): Likewise.
6392         * Makefile ($(common-objpfx)testrun.sh): Replace
6393         $(run-program-prefix) with $(test-program-prefix).
6394         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
6395         $(rtld-LDFLAGS).
6396         ($(common-objpfx)shlib.lds): Likewise.
6397         (build-module-helper): Likewise.
6398         ($(common-objpfx)format.lds): Likewise.
6399         * Rules (binaries-pie-tests): New.
6400         (binaries-pie-notests): Likewise.
6401         (binaries-pie): Rewritten.
6402         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
6403         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
6404         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
6405         (make-test-out): Replace $(host-built-program-cmd) with
6406         $(host-test-program-cmd).
6407         * config.make.in (build-hardcoded-path-in-tests): New variable.
6408         * configure.in (--enable-hardcoded-path-in-tests): New configure
6409         option.
6410         (hardcoded_path_in_tests): New AC_SUBST.
6411         * configure: Regenerated.
6412         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
6413         $(built-program-cmd) with $(test-program-cmd).
6414         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
6415         (test_program_cmd): This.
6416         * elf/Makefile ($(objpfx)order.out): Run test with
6417         $(test-program-prefix).
6418         ($(objpfx)order2.out): Likewise.
6419         ($(objpfx)tst-initorder.out): Likewise.
6420         ($(objpfx)tst-initorder2.out): Likewise.
6421         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
6422         $(test-program-cmd).
6423         ($(objpfx)tst-array1-static.out): Likewise.
6424         ($(objpfx)tst-array2.out): Likewise.
6425         ($(objpfx)tst-array3.out): Likewise.
6426         ($(objpfx)tst-array4.out): Likewise.
6427         ($(objpfx)tst-array5.out): Likewise.
6428         ($(objpfx)tst-array5-static.out): Likewise.
6429         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
6430         $(test-program-cmd).
6431         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
6432         $(run-program-prefix) with $(test-program-prefix).
6433         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
6434         (test_program_prefix): This.
6435         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
6436         $(run-program-prefix) with $(test-program-prefix).
6437         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
6438         (test_program_prefix): This.
6439         * iconvdata/tst-tables.sh: Likewise.
6440         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
6441         $(run-program-prefix) with $(test-program-prefix).
6442         ($(objpfx)tst-translit.out): Likewise.
6443         ($(objpfx)tst-gettext2.out): Likewise.
6444         ($(objpfx)tst-gettext4.out): Likewise.
6445         ($(objpfx)tst-gettext6.out): Likewise.
6446         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
6447         (test_program_prefix): This.
6448         * intl/tst-gettext2.sh: Likewise.
6449         * intl/tst-gettext4.sh  Likewise.
6450         * intl/tst-gettext6.sh: Likewise.
6451         * intl/tst-translit.sh: Likewise.
6452         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
6453         with $(test-program-cmd).
6454         * libio/Makefile ($(objpfx)test-freopen.out): Replace
6455         $(run-program-prefix) with $(test-program-prefix).
6456         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
6457         (test_program_prefix): This.
6458         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
6459         $(run-program-prefix) with $(test-program-prefix).
6460         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
6461         (test_program_prefix): This.
6462         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
6463         * posix/Makefile ($(objpfx)globtest.out): Replace
6464         $(run-via-rtld-prefix) and $(test-wrapper) with
6465         $(test-program-prefix) and $(test-via-rtld-prefix).
6466         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
6467         $(test-program-prefix).
6468         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
6469         $(host-test-program-cmd).
6470         (tst-spawn-ARGS): Likewise.
6471         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
6472         $(test-program-prefix).
6473         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
6474         (test_via_rtld_prefix): This.
6475         (test_wrapper): Renamed to ...
6476         (test_program_prefix): This.
6477         (run_program_prefix): Replaced by test_program_prefix.
6478         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
6479         (test_program_prefix): This.
6480         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
6481         with $(host-test-program-cmd).
6482         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
6483         $(run-program-prefix) with $(test-program-prefix).
6484         ($(objpfx)tst-printf.out): Likewise.
6485         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
6486         $(test-program-cmd).
6487         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
6488         (test_program_prefix): This.
6489         * stdio-common/tst-unbputc.sh: Likewise.
6490         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
6491         $(run-program-prefix) with $(test-program-prefix).
6492         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
6493         (test_program_prefix): This.
6494         * string/Makefile ($(objpfx)tst-svc.out):  Replace
6495         $(built-program-cmd) with $(test-program-cmd).
6496
6497 2013-01-11  Andreas Jaeger  <aj@suse.de>
6498
6499         [BZ #15003]
6500         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
6501         value. Sync with Linux 3.7.
6502
6503 2013-01-10  David S. Miller  <davem@davemloft.net>
6504
6505         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
6506         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
6507         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
6508
6509 2013-01-10  Roland McGrath  <roland@hack.frob.com>
6510
6511         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
6512         never set.
6513         * configure: Regenerated.
6514
6515 2013-01-10  David S. Miller  <davem@davemloft.net>
6516
6517         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
6518         sparc V9 rather than using V8 code.
6519         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
6520         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
6521
6522 2013-01-10  Roland McGrath  <roland@hack.frob.com>
6523
6524         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
6525         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
6526         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
6527         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
6528         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
6529         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
6530         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
6531         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
6532         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
6533         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
6534         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
6535         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
6536         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
6537         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
6538         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
6539         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
6540         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
6541         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
6542         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
6543         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
6544         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
6545         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
6546         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
6547         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
6548         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
6549         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
6550         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
6551
6552 2013-01-10  David S. Miller  <davem@davemloft.net>
6553
6554         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6555
6556 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
6557
6558         * posix/Makefile (tests-static): New variable.
6559         (tests): Add $(tests-static).
6560         (tst-exec-static-ARGS): New variable.
6561         (tst-spawn-static-ARGS): Likewise.
6562         * posix/tst-exec-static.c: New file.
6563         * posix/tst-spawn-static.c: Likewise.
6564         * posix/tst-exec.c: Support run directly.
6565         * posix/tst-spawn.c: Likewise.
6566
6567 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
6568
6569         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
6570         long.
6571         * math/bits/mathcalls.h (llrint): Likewise.
6572         (llround): Likewise.
6573         * stdlib/stdlib.h (struct drand48_data): Likewise.
6574         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
6575         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
6576         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
6577         Likewise.
6578         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
6579         Likewise.
6580         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
6581         (elf_greg_t): Likewise.
6582         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
6583         (__jmp_buf): Likewise.
6584         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
6585         definitions.
6586         (llrint): Likewise, for all definitions.
6587         (llrintl): Likewise.
6588
6589         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
6590         Remove [__GNUC__] condition.
6591         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
6592         condition to just [__USE_ISOC99].
6593         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
6594
6595 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
6596
6597         [BZ #14200]
6598         * sysdeps/unix/sysv/linux/x86/bits/environments.h
6599         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
6600         defined.
6601         (_POSIX_V6_ILP32_OFF32): Likewise.
6602         (_XBS5_ILP32_OFF32): Likewise.
6603         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
6604         (__ILP32_OFFBIG_LDFLAGS): Likewise.
6605
6606 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6607
6608         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
6609
6610         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
6611         doubles __mpexp_twomm1.  Adjust usage.
6612         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
6613         Remove.
6614
6615 2013-01-10  Andreas Schwab  <schwab@suse.de>
6616
6617         [BZ #14964]
6618         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
6619         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
6620
6621 2013-01-09  David S. Miller  <davem@davemloft.net>
6622
6623         [BZ #15003]
6624         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
6625         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
6626         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
6627         TCP_FASTOPEN): Define.
6628         (tcp_repair_opt): New structure.
6629         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
6630         enum values.
6631         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
6632         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
6633         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
6634         (tcp_cookie_transactions): New structure.
6635
6636 2013-01-09  Anton Blanchard  <anton@samba.org>
6637
6638         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
6639         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
6640         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
6641         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
6642
6643 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
6644
6645         * include/features.h (__USE_ANSI): Remove.
6646
6647 2013-01-09  Roland McGrath  <roland@hack.frob.com>
6648
6649         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
6650
6651         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
6652
6653 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
6654
6655         * sysdeps/s390/fpu/libm-test-ulps: Update.
6656
6657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6658
6659         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
6660         (__acr): Likewise.
6661         (__cpy): Likewise.
6662         (norm): Likewise.
6663         (denorm): Likewise.
6664         (__mp_dbl): Likewise.
6665         (__dbl_mp): Likewise.
6666         (add_magnitudes): Likewise.
6667         (sub_magnitudes): Likewise.
6668         (__add): Likewise.
6669         (__sub): Likewise.
6670         (__mul): Likewise.
6671         (__inv): Likewise.
6672         (__dvd): Likewise.
6673         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
6674         (__acr): Likewise.
6675         (__cpy): Likewise.
6676         (norm): Likewise.
6677         (denorm): Likewise.
6678         (__mp_dbl): Likewise.
6679         (__dbl_mp): Likewise.
6680         (add_magnitudes): Likewise.
6681         (sub_magnitudes): Likewise.
6682         (__add): Likewise.
6683         (__sub): Likewise.
6684         (__mul): Likewise.
6685         (__inv): Likewise.
6686         (__dvd): Likewise.
6687         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
6688         (__acr): Likewise.
6689         (__cpy): Likewise.
6690         (norm): Likewise.
6691         (denorm): Likewise.
6692         (__mp_dbl): Likewise.
6693         (__dbl_mp): Likewise.
6694         (add_magnitudes): Likewise.
6695         (sub_magnitudes): Likewise.
6696         (__add): Likewise.
6697         (__sub): Likewise.
6698         (__mul): Likewise.
6699         (__inv): Likewise.
6700         (__dvd): Likewise.
6701
6702 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
6703
6704         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
6705         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
6706         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
6707         2 && __USE_EXTERN_INLINES]: Likewise.
6708
6709 2013-01-08  Andreas Jaeger  <aj@suse.de>
6710
6711         [BZ# 14985]
6712         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
6713         Remove.
6714         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
6715         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
6716
6717 2013-01-07  Anton Blanchard  <anton@samba.org>
6718
6719         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
6720         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
6721         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
6722         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
6723         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6724         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
6725         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
6726         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
6727         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6728         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
6729         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6730         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6731         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
6732         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6733         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
6734         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6735         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6736         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6737         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
6738         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6739         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
6740         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
6741         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
6742         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
6743         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
6744         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6745         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
6746         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
6747         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
6748         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
6749         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
6750         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6751         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
6752         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6753         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6754         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
6755         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6756         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
6757         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
6758         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
6759         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
6760         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
6761         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
6762
6763 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
6764
6765         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
6766         (__MALLOC_PMT): Likewise.
6767         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
6768         [__GNUC__], only on [_LIBC].
6769         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
6770         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
6771         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
6772         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
6773         forward declaration.
6774         (realloc_hook_ini): Likewise.
6775         (memalign_hook_ini): Likewise.
6776         (__libc_memalign): Do not use __MALLOC_PMT in variable
6777         declaration.
6778         (__libc_valloc): Likewise.
6779         (__libc_pvalloc): Likewise.
6780         (__libc_calloc): Likewise.
6781         (__posix_memalign): Likewise.
6782
6783         [BZ #14996]
6784         * math/s_casinh.c: Include <float.h>.
6785         (__casinh): Do not do computation with squaring and square root
6786         for large arguments.
6787         * math/s_casinhf.c: Include <float.h>.
6788         (__casinhf): Do not do computation with squaring and square root
6789         for large arguments.
6790         * math/s_casinhl.c: Include <float.h>.
6791         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
6792         (__casinhl): Do not do computation with squaring and square root
6793         for large arguments.
6794         * math/libm-test.inc (casin_test): Add more tests.
6795         (casinh_test): Likewise.
6796         * sysdeps/i386/fpu/libm-test-ulps: Update.
6797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6798
6799 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
6800
6801         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
6802         (__x86_64_raw_data_cache_size): Likewise.
6803         (__x86_64_data_cache_size_half): Likewise.
6804         (__x86_64_raw_data_cache_size_half): Likewise.
6805         (__x86_64_shared_cache_size): Likewise.
6806         (__x86_64_raw_shared_cache_size): Likewise.
6807         (__x86_64_shared_cache_size_half): Likewise.
6808         (__x86_64_raw_shared_cache_size_half): Likewise.
6809         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
6810         to ...
6811         (__x86_data_cache_size): This.
6812         (__x86_64_raw_data_cache_size): Renamed to ...
6813         (__x86_raw_data_cache_size): This.
6814         (__x86_64_data_cache_size_half): Renamed to ...
6815         (__x86_data_cache_size_half): This.
6816         (__x86_64_raw_data_cache_size_half): Renamed to ...
6817         (__x86_raw_data_cache_size_half): This.
6818         (__x86_64_shared_cache_size): Renamed to ...
6819         (__x86_shared_cache_size): This.
6820         (__x86_64_raw_shared_cache_size): Renamed to ...
6821         (__x86_raw_shared_cache_size): This.
6822         (__x86_64_shared_cache_size_half): Renamed to ...
6823         (__x86_shared_cache_size_half): This.
6824         (__x86_64_raw_shared_cache_size_half): Renamed to ...
6825         (__x86_raw_shared_cache_size_half): This.
6826         * sysdeps/x86_64/memcpy.S: Updated.
6827         * sysdeps/x86_64/memset.S: Likewise.
6828         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6829         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
6830         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6831
6832 2013-01-04  David S. Miller  <davem@davemloft.net>
6833
6834         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6835
6836 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
6837
6838         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
6839         1 to avoid redefinition warning.
6840         (__USE_GNU): Don't define.
6841         (init_signaling_nan): Protoize.
6842
6843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6844
6845 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6846
6847         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
6848         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
6849         (__cpymn): Likewise.
6850         (norm): Remove commented code.
6851         (denorm): Likewise.
6852         (__mp_dbl): Likewise.
6853         (__inv): Likewise.
6854         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
6855         (__cpymn): Likewise.
6856         (norm): Remove commented code.
6857         (denorm): Likewise.
6858         (__mp_dbl): Likewise.
6859         (__inv): Likewise.
6860
6861         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
6862         mp_no value for 1.0 and 2.0.
6863         (norm): Use RADIXI instead of radixi.d.
6864         (denorm): Likewise.
6865         (__mul): Use 0.0 instead of zero.d.
6866         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
6867         mp_no value for 1.0 and 2.0.
6868         (norm): Use RADIXI instead of radixi.d.
6869         (denorm): Likewise.
6870         (__mul): Use 0.0 instead of zero.d.
6871
6872 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
6873
6874         [BZ #14994]
6875         * math/s_casinh.c (__casinh): Reduce finite argument to first
6876         quadrant then set signs of results at the end.
6877         * math/s_casinhf.c (__casinhf): Likewise.
6878         * math/s_casinhl.c (__casinhl): Likewise.
6879         * math/libm-test.inc (casin_test): Add more tests.
6880         (casinh_test): Likewise.
6881         * sysdeps/i386/fpu/libm-test-ulps: Update.
6882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6883
6884 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6885
6886         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
6887
6888         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
6889
6890         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
6891         declarations.
6892         (denorm): Likewise.
6893         (__mp_dbl): Likewise.
6894         (__inv): Likewise.
6895
6896         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
6897         and adjust the header comment.
6898
6899         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
6900         variable name from declaration.
6901
6902 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
6903
6904         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6905         Initialize COMMON_CPUID_INDEX_7 element.
6906         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
6907         (CPUID_RTM): Likewise.
6908         (HAS_RTM): Likewise.
6909         (COMMON_CPUID_INDEX_7): New enum.
6910
6911 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
6912
6913         [BZ #14981]
6914         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
6915         size is zero, record memory as freed.
6916
6917 2013-01-03  Andreas Jaeger  <aj@suse.de>
6918
6919         * po/ia.po: Add new Interlingua translation.
6920
6921 2012-01-03  Allan McRae  <allan@archlinux.org>
6922
6923         * locale/programs/localedef.c: Fix description of '--posix' flag.
6924
6925 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
6926
6927         * NEWS: Update dates in second copyright notice.
6928         * README: Update copyright dates in example.
6929         * manual/libc.texinfo: Update copyright dates.
6930         * scripts/test-installation.pl: Update copyright date in --version
6931         output.
6932
6933         * hurd/ctty-input.c: Fix copyright notice formatting.
6934         * hurd/ctty-output.c: Likewise.
6935         * hurd/dtable.c: Likewise.
6936         * hurd/hurd-raise.c: Likewise.
6937         * hurd/hurdprio.c: Likewise.
6938         * hurd/msgportdemux.c: Likewise.
6939         * misc/sys/file.h: Likewise.
6940         * misc/sys/ioctl.h: Likewise.
6941         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
6942         * sysdeps/mach/hurd/chdir.c: Likewise.
6943         * sysdeps/mach/hurd/fchdir.c: Likewise.
6944         * sysdeps/mach/hurd/rename.c: Likewise.
6945         * sysdeps/mach/hurd/rmdir.c: Likewise.
6946         * sysdeps/mach/hurd/seekdir.c: Likewise.
6947         * sysdeps/mach/hurd/setsid.c: Likewise.
6948         * sysdeps/posix/wait3.c: Likewise.
6949
6950         * All files with FSF copyright notices: Update copyright dates
6951         using scripts/update-copyrights.
6952         * intl/plural.c: Regenerated.
6953         * locale/programs/charmap-kw.h: Likewise.
6954         * locale/programs/locfile-kw.h: Likewise.
6955
6956 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6957
6958         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
6959         four values.
6960
6961         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
6962         calculation loop and add branch prediction.
6963
6964         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
6965         check access beyond bounds of m1np.
6966
6967         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
6968         MPTWO.
6969         (__inv): Remove local variable MPTWO to use the global
6970         constant.
6971         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
6972         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
6973         variable MPTWO.
6974         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
6975         MP3HALFS static const.
6976
6977 2013-01-01  David S. Miller  <davem@davemloft.net>
6978
6979         * po/ca.po: Update from translation team.
6980
6981 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
6982
6983         * scripts/update-copyrights: New file.
6984         * Makeconfig: Reformat copyright notice.
6985         * ctype/ctype.h: Likewise.
6986         * debug/swprintf_chk.c: Likewise.
6987         * elf/dl-cache.c: Likewise.
6988         * elf/dl-debug.c: Likewise.
6989         * elf/dl-object.c: Likewise.
6990         * grp/initgroups.c: Likewise.
6991         * hurd/Makefile: Likewise.
6992         * hurd/hurd/signal.h: Likewise.
6993         * hurd/hurdfault.c: Likewise.
6994         * hurd/hurdioctl.c: Likewise.
6995         * hurd/hurdlookup.c: Likewise.
6996         * hurd/intr-msg.c: Likewise.
6997         * iconv/gconv_open.c: Likewise.
6998         * libio/swprintf.c: Likewise.
6999         * locale/lc-ctype.c: Likewise.
7000         * locale/nl_langinfo.c: Likewise.
7001         * mach/Machrules: Likewise.
7002         * mach/Makefile: Likewise.
7003         * malloc/obstack.h: Likewise.
7004         * manual/Makefile: Likewise.
7005         * manual/tsort.awk: Likewise.
7006         * misc/bits/stab.def: Likewise.
7007         * nis/nis_print_group_entry.c: Likewise.
7008         * nis/nis_table.c: Likewise.
7009         * nis/nss_compat/compat-pwd.c: Likewise.
7010         * nis/nss_compat/compat-spwd.c: Likewise.
7011         * po/Makefile: Likewise.
7012         * posix/fnmatch.c: Likewise.
7013         * posix/regex.h: Likewise.
7014         * resolv/Makefile: Likewise.
7015         * resolv/nss_dns/dns-network.c: Likewise.
7016         * resolv/res_hconf.c: Likewise.
7017         * scripts/gen-sorted.awk: Likewise.
7018         * soft-fp/soft-fp.h: Likewise.
7019         * stdio-common/printf.h: Likewise.
7020         * stdlib/monetary.h: Likewise.
7021         * stdlib/random.c: Likewise.
7022         * stdlib/random_r.c: Likewise.
7023         * sysdeps/generic/Makefile: Likewise.
7024         * sysdeps/gnu/Makefile: Likewise.
7025         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7026         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7027         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7028         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7029         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7030         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7031         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7032         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7033         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7034         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7035         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
7036         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
7037         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
7038         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
7039         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
7040         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
7041         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
7042         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7043         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7044         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7045         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7046         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7047         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7048         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
7049         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
7050         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
7051         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
7052         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
7053         * sysdeps/mach/hurd/errnos.awk: Likewise.
7054         * sysdeps/mach/hurd/fork.c: Likewise.
7055         * sysdeps/mach/hurd/getcwd.c: Likewise.
7056         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
7057         * sysdeps/mach/hurd/mmap.c: Likewise.
7058         * sysdeps/mach/hurd/utimes.c: Likewise.
7059         * sysdeps/mach/hurd/xmknod.c: Likewise.
7060         * sysdeps/posix/profil.c: Likewise.
7061         * sysdeps/posix/readdir_r.c: Likewise.
7062         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7063         * sysdeps/powerpc/bits/setjmp.h: Likewise.
7064         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
7065         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
7066         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7067         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
7068         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
7069         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7070         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
7071         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
7072         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
7073         * sysdeps/pthread/lio_listio.c: Likewise.
7074         * sysdeps/sparc/dl-procinfo.h: Likewise.
7075         * sysdeps/unix/i386/sysdep.S: Likewise.
7076         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
7077         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
7078         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
7079         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
7080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7081         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
7082         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
7083         * sysdeps/unix/sysv/linux/speed.c: Likewise.
7084         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
7085         * sysdeps/wordsize-32/divdi3.c: Likewise.
7086         * time/sys/time.h: Likewise.
7087         * wcsmbs/Makefile: Likewise.
7088
7089 2013-01-01  David S. Miller  <davem@davemloft.net>
7090
7091         * po/fr.po: Update from translation team.
7092
7093         * catgets/gencat.c: Update copyright year.
7094         * csu/version.c: Likewise.
7095         * debug/catchsegv.sh: Likewise.
7096         * debug/pcprofiledump.c: Likewise.
7097         * debug/xtrace.sh: Likewise.
7098         * elf/ldconfig.c: Likewise.
7099         * elf/ldd.bash.in: Likewise.
7100         * elf/pldd.c: Likewise.
7101         * elf/sotruss.ksh: Likewise.
7102         * elf/sprof.c: Likewise.
7103         * iconv/iconv_prog.c: Likewise.
7104         * iconv/iconvconfig.c: Likewise.
7105         * locale/programs/locale.c: Likewise.
7106         * locale/programs/localedef.c: Likewise.
7107         * login/programs/pt_chown.c: Likewise.
7108         * malloc/memusage.sh: Likewise.
7109         * malloc/memusagestat.c: Likewise.
7110         * malloc/mtrace.pl: Likewise.
7111         * nscd/nscd.c: Likewise.
7112         * nss/getent.c: Likewise.
7113         * nss/makedb.c: Likewise.
7114         * posix/getconf.c: Likewise.
7115
7116 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
7117
7118         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
7119         numbers.
7120
7121 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
7122
7123         * math/bits/mathcalls.h (modf): Use __nonnull.
7124
7125 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7126
7127         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
7128         (split): Use macro CN instead of the bare value.
7129         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
7130         could be used.
7131         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
7132         instead of the bare value.
7133         (power1): Likewise.
7134
7135 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7136
7137         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
7138         __ATAN_TWOM.
7139         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
7140
7141         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
7142         their values.
7143         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
7144         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
7145         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
7146         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
7147
7148 2012-12-28  Andreas Jaeger  <aj@suse.de>
7149
7150         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
7151         values are from Linux 3.7.
7152
7153         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
7154         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
7155
7156 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7157
7158         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
7159         TRUE case.
7160
7161         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
7162         (norm): Likewise.
7163         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
7164         variables with preprocessor constants.
7165         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
7166         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
7167         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
7168
7169 2012-12-27  Bruno Haible  <bruno@clisp.org>
7170
7171         [BZ #14317]
7172         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
7173         only if needed.
7174
7175 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7176
7177         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
7178         and use variable directly.
7179         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
7180
7181         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
7182         MPONE.
7183         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
7184         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
7185         variable MPONE.
7186         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
7187         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
7188         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
7189         include directive.  Remove local variable MPONE.
7190         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
7191         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
7192         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
7193
7194 2012-12-25  David S. Miller  <davem@davemloft.net>
7195
7196         * version.h (RELEASE): Set to "development".
7197         (VERSION): Set to "2.17.90".
7198         * NEWS: Add 2.18 section.
7199
7200 2012-12-21  David S. Miller  <davem@davemloft.net>
7201
7202         * po/hr.po: Update from translation team.
7203
7204 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7205
7206         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
7207
7208 2012-12-19  Steve Ellcey  <sellcey@mips.com>
7209
7210         * NEWS:  Mention new memcpy for MIPS.
7211
7212 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7213
7214         * manual/contrib.texi (Contributors): Spelling correction.
7215
7216 2012-12-15  David S. Miller  <davem@davemloft.net>
7217
7218         * po/ru.po: Update from translation team.
7219
7220 2012-12-13  David S. Miller  <davem@davemloft.net>
7221
7222         * NEWS: Mention IFUNC testsuite enhancements.
7223
7224         * po/pl.po: Update from translation team.
7225         * po/bg.po: Likewise.
7226
7227         * manual/contrib.texi (Contributors): Update entries for Hongjiu
7228         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
7229
7230 2012-12-11  David S. Miller  <davem@davemloft.net>
7231
7232         * po/sv.po: Update from translation team.
7233
7234         * po/vi.po: Update from translation team.
7235
7236         * po/cs.po: Update from translation team.
7237
7238         * po/de.po: Update from translation team.
7239         * po/eo.po: Likewise.
7240         * po/nl.po: Likewise.
7241
7242 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7243
7244         [BZ #14246]
7245         * manual/argp.texi (Argp Helper Functions): Move node to follow
7246         Argp Parsing State.
7247
7248         [BZ #14872]
7249         * manual/conf.texi (Limits on File System Capacity): Mention if
7250         terminating null is included in the max size.
7251
7252 2012-12-10  Andreas Jaeger  <aj@suse.de>
7253
7254         * po/cs.po: Update from translation team.
7255
7256 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
7257
7258         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
7259         void pointer and cast to uintptr_t.
7260         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
7261         path.
7262         * sysdeps/s390/s390-64/memcpy.S: Likewise.
7263         * sysdeps/s390/s390-64/memset.S: Likewise.
7264
7265 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
7266
7267         [BZ #14833]
7268         * menual/message.texi (Message Translation): Fix typos.
7269         (Helper programs for gettext): Likewise.
7270
7271 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
7272
7273         [BZ #14898]
7274         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
7275         Change to -1.
7276
7277 2012-12-07  David S. Miller  <davem@davemloft.net>
7278
7279         * po/libc.pot: Update.
7280
7281 2012-12-07  Richard Henderson  <rth@redhat.com>
7282
7283         [BZ #10114]
7284         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
7285         normal/normal case to before the switch.
7286         (_FP_DIV): Likewise.
7287
7288 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
7289             Mike Frysinger  <vapier@gentoo.org>
7290
7291         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
7292         check for __NR_fadvise64_64.
7293
7294 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
7295
7296         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
7297         0, not just to plain "0" as a statement.
7298         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
7299         with cw.
7300
7301 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
7302
7303         * NEWS: Use sourceware.org in Bugzilla URL.
7304
7305 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
7306
7307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7308         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
7309
7310         * stdio-common/tst-put-error.c (do_test): Add newline to the
7311         padded test to ensure flush.
7312
7313 2012-12-05  Jeff Law  <law@redhat.com>
7314
7315         * sunrpc/etc.rpc (fedfs_admin): Add entry.
7316
7317 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
7318
7319         * README: Don't refer to ports add-on as distributed separately.
7320         Mention AArch64 in list of systems supported in the ports add-on.
7321
7322         * LICENSES: Add more non-FSF copyright and license notices.
7323
7324         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
7325         ((unused)).
7326
7327         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
7328
7329         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
7330         10000 as width of padded output.
7331
7332 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
7333
7334         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
7335
7336         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
7337         variable LX with __attribute__ ((unused)).
7338         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
7339         Likewise.
7340         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
7341         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7342         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
7343         with __attribute__ ((unused)).
7344
7345 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
7346
7347         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
7348
7349 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
7350
7351         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
7352         (CFLAGS-nldbl-acos.c): New variable.
7353         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
7354         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
7355         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
7356         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
7357         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
7358         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
7359         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
7360         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
7361         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
7362         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
7363         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
7364         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
7365         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
7366         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
7367         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
7368         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
7369         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
7370         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
7371         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
7372         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
7373         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
7374         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
7375         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
7376         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
7377         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
7378         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
7379         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
7380         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
7381         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
7382         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
7383         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
7384         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
7385         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
7386         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
7387         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
7388         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
7389         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
7390         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
7391         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
7392         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
7393         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
7394         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
7395         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
7396         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
7397         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
7398         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
7399         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
7400         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
7401         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
7402         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
7403         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
7404         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
7405         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
7406         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
7407         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
7408         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
7409         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
7410         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
7411         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
7412         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
7413         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
7414         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
7415         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
7416         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
7417         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
7418         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
7419         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
7420         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
7421         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
7422         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
7423         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
7424         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
7425         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
7426         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
7427         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
7428         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
7429         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
7430         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
7431         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
7432         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
7433         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
7434         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
7435         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
7436         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
7437         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
7438         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
7439         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
7440         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
7441         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
7442         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
7443         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
7444         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
7445         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
7446         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
7447         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
7448         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
7449         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
7450
7451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7452         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
7453
7454         [BZ #14914]
7455         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
7456         whole low double instead of just low 47 bits when splitting values
7457         into two parts.
7458
7459 2012-12-03  Allan McRae  <allan@archlinux.org>
7460
7461         * manual/stdio.texi (Predefined Printf Handlers): Remove
7462         @hsep and @vsep usage.
7463
7464 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
7465
7466         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
7467         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
7468
7469 2012-12-03  Jeff Law  <law@redhat.com>
7470
7471         * time/sys/time.h (settimeofday): Do not mark TV argument
7472         as __nonnull.
7473
7474 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
7475
7476         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
7477         when currently writing and seek to current position when not.
7478         * libio/Makefile (tests): Remove bug-fclose1.
7479         * libio/bug-fclose1.c: Delete.
7480
7481 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
7482
7483         * manual/arith.texi (feenableexcept): Fix typo.
7484         (fedisableexcept): Likewise.
7485
7486 2012-11-30  Roland McGrath  <roland@hack.frob.com>
7487
7488         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
7489         second, differently-typed declaration, rather than a cast.
7490
7491 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
7492
7493         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
7494         * include/rpc/svc.h: ... here.
7495
7496 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
7497
7498         [BZ #13013]
7499         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
7500         depending n and resplen2 to catch cases where answer
7501         equals answerp2.
7502
7503 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
7504
7505         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
7506         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
7507
7508 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
7509
7510         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
7511
7512 2012-11-29  Roland McGrath  <roland@hack.frob.com>
7513
7514         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
7515
7516 2012-11-28  Jeff Law  <law@redhat.com>
7517
7518         [BZ #13761]
7519         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
7520         dataset_temporary.  Track alloca usage into alloca_used.
7521         If dataset is large allocate and release it via malloc/free.
7522
7523 2012-06-04  Florian Weimer  <fweimer@redhat.com>
7524
7525         [BZ #14197]
7526         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
7527
7528 2012-11-28  David S. Miller  <davem@davemloft.net>
7529
7530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7531
7532 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
7533
7534         [BZ #14803]
7535         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
7536         of pi/2 rounded to nearest to 64 bits.
7537         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
7538         nearest to 64 bits.
7539         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
7540         bits.
7541
7542 2012-11-28  Jeff Law <law@redhat.com>
7543             Martin Osvald <mosvald@redhat.com>
7544
7545         [BZ #14889]
7546         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
7547         * sunrpc/svc.c: Include time.h.
7548         (__svc_accept_failed): New function.
7549         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
7550         any reason other than EINTR, call __svc_accept_failed.
7551         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
7552         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
7553
7554 2012-11-28  Andreas Schwab  <schwab@suse.de>
7555
7556         * scripts/abilist.awk: Also handle indirect functions in .opd
7557         section.
7558
7559 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
7560
7561         [BZ #13881]
7562         * sysdeps/x86/fpu/powl_helper.c: New file.
7563         * sysdeps/x86/fpu/Makefile: Likewise.
7564         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
7565         (p3): New object.
7566         (__ieee754_powl): Use __powl_helper for finite arguments except
7567         integer exponents below 8.
7568         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
7569         (p3): New object.
7570         (__ieee754_powl): Use __powl_helper for finite arguments except
7571         integer exponents below 8.
7572         * math/libm-test.inc (pow_test): Add more tests and enable some
7573         previously disabled tests.
7574         * sysdeps/i386/fpu/libm-test-ulps: Update.
7575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7576
7577 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7578             Carlos O'Donell  <carlos_odonell@mentor.com>
7579
7580         * nss/makedb.c (is_prime): Assert that input is odd and greater
7581         than 4.  Note that fact in a comment too.
7582         (next_prime): Add 4 to input.
7583
7584 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7585
7586         [BZ #11741]
7587         * libio/Makefile (tests): Add test case tst-fwrite-error.
7588         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
7589         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7590         * libio/tst-fwrite-error.c: New test case.
7591
7592 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
7593
7594         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
7595         before casting to void *.
7596         * include/libc-internal.h (__pointer_type): New macro.
7597         (__integer_if_pointer_type_sub): Likewise.
7598         (__integer_if_pointer_type): Likewise.
7599         (cast_to_integer): Likewise.
7600         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
7601         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
7602         before casting to atomic64_t.
7603         (atomic_exchange_acq): Likewise.
7604         (__arch_exchange_and_add_body): Likewise.
7605         (__arch_add_body): Likewise.
7606         (atomic_add_negative): Likewise.
7607         (atomic_add_zero): Likewise.
7608
7609 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
7610
7611         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
7612         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
7613         (add_fdes): Likewise.
7614         (linear_search_fdes): Likewise.
7615         (binary_search_unencoded_fdes): Likewise.
7616
7617 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
7618
7619         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
7620
7621 2012-11-24  Adam Conrad  <adconrad@0c3.net>
7622
7623         * configure.in: Autodetect C++ header directories.
7624         * configure: Regenerated.
7625
7626 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
7627
7628         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
7629
7630 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
7631
7632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7633
7634 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
7635
7636         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
7637         LDBL_MANT_DIG == 106]: Disable some tests.
7638         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
7639         Likewise.
7640         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
7641         Likewise.
7642
7643         [BZ #14871]
7644         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
7645         input for small inputs.  Return +/- pi/2 for large inputs.
7646         * math/libm-test.inc (atan_test): Add more tests.
7647
7648         * sysdeps/generic/unwind-dw2-fde-glibc.c
7649         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
7650         __attribute__ ((unused)).
7651
7652         [BZ #14645]
7653         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
7654         x * y if x and y are nonzero and z is zero.
7655
7656         [BZ #14811]
7657         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
7658         nonzero exponents with absolute value below 0x1p-117 to +/-
7659         0x1p-117.
7660
7661         [BZ #14869]
7662         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
7663         up arguments below 2**-450, not just those below 2**-500.
7664         * math/libm-test.inc (hypot_test): Add another test.
7665
7666         [BZ #14868]
7667         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
7668         Return a+b for ratio over 2**120, not 2**60.
7669         * math/libm-test.inc (hypot_test): Add another test.
7670
7671         * math/libm-test.inc (clog_test): Use
7672         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
7673         (clog10_test): Likewise.
7674
7675         [BZ #6778]
7676         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
7677
7678 2012-11-22  Andreas Schwab  <schwab@suse.de>
7679
7680         * sysdeps/i386/fpu/libm-test-ulps: Update.
7681
7682 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
7683
7684         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
7685         printf output with newline.
7686
7687 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
7688
7689         [BZ #14865]
7690         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
7691         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
7692         -z nodlopen, -z initfirst and -z execstack support.
7693         * configure: Regenerated.
7694
7695         * elf/elf.h (DF_1_NODIRECT): New macro.
7696         (DF_1_IGNMULDEF): Likewise.
7697         (DF_1_NOKSYMS): Likewise.
7698         (DF_1_NOHDR): Likewise.
7699         (DF_1_EDITED): Likewise.
7700         (DF_1_NORELOC): Likewise.
7701         (DF_1_SYMINTPOSE): Likewise.
7702         (DF_1_GLOBAUDIT): Likewise.
7703         (DF_1_SINGLETON): Likewise.
7704         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
7705         DT_1_SUPPORTED_MASK bits.
7706         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
7707
7708 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
7709
7710         * sysdeps/unix/make-syscalls.sh: Document prefixes.
7711
7712 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
7713
7714         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
7715         macro.
7716
7717         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
7718         (sendmmsg): Move declarations...
7719         * socket/sys/socket.h: ... here.
7720         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
7721         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
7722         include it from...
7723         * socket/recvmmsg.c: ... this new file.
7724         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
7725         (sendmmsg): Rename to __sendmmsg, create weak alias and make
7726         definition of __sendmmsg hidden.
7727         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
7728         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
7729         Move ENOSYS stub into and include it from...
7730         * socket/sendmmsg.c: ... this new file.
7731         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
7732         (sysdep_routines): Move recvmmsg and sendmmsg...
7733         * socket/Makefile (routines): ... here.
7734         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
7735         (GLIBC_PRIVATE): Add __sendmmsg.
7736         * include/sys/socket.h (__sendmmsg): Add declarations.
7737         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
7738         sendmmsg.
7739
7740 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
7741
7742         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
7743         variable I1 with __attribute__ ((unused)).
7744         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
7745
7746 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
7747
7748         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
7749         DUMMY variables with __attribute__ ((unused)).
7750
7751         * bits/byteswap.h: Include <bits/types.h>.
7752         (__bswap_64): Use __uint64_t instead of unsigned long long int.
7753
7754 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
7755
7756         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
7757         string_t.  Do not manually set errno.
7758         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
7759         length with __strnlen.  Make sure to both set errno and return it on
7760         failure.
7761
7762 2012-11-19  David S. Miller  <davem@davemloft.net>
7763
7764         With help from Joseph Myers.
7765         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
7766         very large arguments properly.
7767         * math/libm-test.inc (atan_test): New tests.
7768         (atan2_test): New tests.
7769         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7770         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7771
7772 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
7773
7774         [BZ #14856]
7775         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
7776         Define to 3.
7777
7778         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
7779         [POSIX] (EADDRNOTAVAIL): Likewise.
7780         [POSIX] (EAFNOSUPPORT): Likewise.
7781         [POSIX] (EALREADY): Likewise.
7782         [POSIX] (ECONNABORTED): Likewise.
7783         [POSIX] (ECONNREFUSED): Likewise.
7784         [POSIX] (ECONNRESET): Likewise.
7785         [POSIX] (EDESTADDRREQ): Likewise.
7786         [POSIX] (EDQUOT): Likewise.
7787         [POSIX] (EHOSTUNREACH): Likewise.
7788         [POSIX] (EIDRM): Likewise.
7789         [POSIX] (EISCONN): Likewise.
7790         [POSIX] (ELOOP): Likewise.
7791         [POSIX] (EMULTIHOP): Likewise.
7792         [POSIX] (ENETDOWN): Likewise.
7793         [POSIX] (ENETUNREACH): Likewise.
7794         [POSIX] (ENOBUFS): Likewise.
7795         [POSIX] (ENODATA): Likewise.
7796         [POSIX] (ENOLINK): Likewise.
7797         [POSIX] (ENOMSG): Likewise.
7798         [POSIX] (ENOPROTOOPT): Likewise.
7799         [POSIX] (ENOSR): Likewise.
7800         [POSIX] (ENOSTR): Likewise.
7801         [POSIX] (ENOTCONN): Likewise.
7802         [POSIX] (ENOTSOCK): Likewise.
7803         [POSIX] (EOPNOTSUPP): Likewise.
7804         [POSIX] (EOVERFLOW): Likewise.
7805         [POSIX] (EPROTO): Likewise.
7806         [POSIX] (EPROTONOSUPPORT): Likewise.
7807         [POSIX] (EPROTOTYPE): Likewise.
7808         [POSIX] (ESTALE): Likewise.
7809         [POSIX] (ETIME): Likewise.
7810         [POSIX] (ETXTBSY): Likewise.
7811         [POSIX] (EWOULDBLOCK): Likewise.
7812         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
7813         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
7814         [POSIX] (SEEK_CUR): Likewise.
7815         [POSIX] (SEEK_END): Likewise.
7816         [POSIX || UNIX98] (mode_t): Do not require.
7817         [POSIX] (off_t): Likewise.
7818         [POSIX] (pid_t): Likewise.
7819         [POSIX] (sys/stat.h): Do not allow header.
7820         [POSIX] (unistd.h): Likewise.
7821         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
7822         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
7823         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
7824         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
7825         require.
7826         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
7827         sigevent): Specify elements.
7828         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
7829         entry.
7830         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
7831         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
7832
7833         * conform/data/cpio.h-data [POSIX]: Disable whole file.
7834         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
7835         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
7836         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
7837         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
7838         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
7839         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
7840         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
7841         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
7842         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
7843         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
7844         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
7845         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
7846         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
7847         Likewise.
7848         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
7849         Likewise.
7850         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
7851         Likewise.
7852         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
7853         Likewise.
7854         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
7855         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
7856         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
7857         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
7858         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
7859         Specify lower bound on value.
7860         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
7861         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
7862         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
7863         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
7864         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
7865         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
7866         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
7867         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
7868         value.
7869         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
7870         as optional.
7871         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
7872         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
7873         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
7874         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
7875         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
7876         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
7877         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
7878         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
7879         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
7880         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
7881         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
7882         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
7883         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
7884         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
7885         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
7886         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
7887         entry.
7888         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
7889         optional.
7890         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
7891         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
7892         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
7893         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
7894         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
7895         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
7896         Likewise.
7897         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
7898         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
7899         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
7900         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
7901         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
7902         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
7903         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
7904         as optional.
7905         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
7906         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
7907         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
7908         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
7909         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
7910         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
7911         specify as optional.
7912         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
7913         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
7914         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
7915         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
7916         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
7917         [XPG3] (NL_LANGMAX): Likewise.
7918         [POSIX || XPG3] (NL_MSGMAX): Likewise.
7919         [POSIX || XPG3] (NL_NMAX): Likewise.
7920         [POSIX || XPG3] (NL_SETMAX): Likewise.
7921         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
7922         [XPG3] (NZERO): Likewise.
7923         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
7924         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
7925         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
7926         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
7927         (REG_ERANGE): Expect.
7928         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
7929         optional-constant.
7930         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
7931         Use (void) in prototype.
7932         [POSIX] (*_t): Allow.
7933         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
7934         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
7935         (WRDE_BADVAL): Expect.
7936
7937         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
7938         expect.
7939         [XPG3 || XPG4] (O_RSYNC): Likewise.
7940         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
7941         Likewise.
7942         [XPG3 || XPG4] (pthread_sigmask): Likewise.
7943         [XPG3 || XPG4] (sigqueue): Likewise.
7944         [XPG3 || XPG4] (sigtimedwait): Likewise.
7945         [XPG3 || XPG4] (sigwaitinfo): Likewise.
7946         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
7947         [XPG3 || XPG4] (vsnprintf): Likewise.
7948         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
7949         Likewise.
7950         [XPG3 || XPG4] (blksize_t): Likewise.
7951         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
7952         Likewise.
7953         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
7954         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
7955         [XPG3 || XPG4] (struct itimerspec): Likewise.
7956         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
7957         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
7958         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
7959         [XPG3 || XPG4] (clockid_t): Likewise.
7960         [XPG3 || XPG4] (timer_t): Likewise.
7961         [XPG3 || XPG4] (clock_getres): Likewise.
7962         [XPG3 || XPG4] (clock_gettime): Likewise.
7963         [XPG3 || XPG4] (clock_settime): Likewise.
7964         [XPG3 || XPG4] (nanosleep): Likewise.
7965         [XPG3 || XPG4] (timer_create): Likewise.
7966         [XPG3 || XPG4] (timer_delete): Likewise.
7967         [XPG3 || XPG4] (timer_gettime): Likewise.
7968         [XPG3 || XPG4] (timer_getoverrun): Likewise.
7969         [XPG3 || XPG4] (timer_settime): Likewise.
7970         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
7971         [XPG3 || XPG4] (getlogin_r): Likewise.
7972         [XPG3 || XPG4] (pread): Likewise.
7973         [XPG3 || XPG4] (pthread_atfork): Likewise.
7974         [XPG3 || XPG4] (pwrite): Likewise.
7975
7976         [BZ #14835]
7977         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
7978         <bits/siginfo.h>.
7979
7980 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
7981
7982         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
7983         finalizing MALLSTREAM.
7984
7985         * sysdeps/mach/hurd/syncfs.c: New file.
7986
7987 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7988
7989         [BZ #14719]
7990         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
7991         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
7992         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
7993         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
7994         (_nss_dns_gethostbyname4_r): Likewise.
7995         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
7996         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
7997
7998 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
7999
8000         [BZ #13763]
8001         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
8002
8003 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
8004
8005         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
8006         * elf/cache.c (print_entry): Print ",AArch64" for
8007         FLAG_AARCH64_LIB64
8008
8009         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
8010         * elf/cache.c (print_entry): Print ",hard-float" for
8011         FLAG_ARM_LIBHF.
8012
8013 2012-11-18  David S. Miller  <davem@davemloft.net>
8014
8015         With help from Joseph Myers.
8016         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
8017         cutoff to 2**-13.
8018         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
8019         cutoff to 2**-25.
8020         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
8021         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
8022         small.
8023         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
8024         * math/libm-test.inc (y0_test): New tests.
8025         (y1_test): New tests.
8026         * sysdeps/i386/fpu/libm-test-ulps: Update.
8027         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8029
8030 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
8031
8032         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
8033         64-bit targets.
8034         * configure: Regenerated.
8035
8036 2012-11-17  David S. Miller  <davem@davemloft.net>
8037
8038         [BZ #14811]
8039         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
8040         nonzero exponents with absolute value below 0x1p-128 to +/-
8041         0x1p-128.
8042
8043 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
8044
8045         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
8046
8047         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
8048
8049         * posix/getconf-speclist.c: New file.
8050         * posix/posix-envs.def: Likewise.
8051         * posix/confstr.c (START_ENV_GROUP): New macro.
8052         (END_ENV_GROUP): Likewise.
8053         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
8054         (KNOWN_PRESENT_ENV_STRING): Likewise.
8055         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
8056         (UNKNOWN_ENVIRONMENT): Likewise.
8057         (confstr): Include posix-envs.def instead of handling
8058         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
8059         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
8060         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
8061         (END_ENV_GROUP): Likewise.
8062         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
8063         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
8064         (UNKNOWN_ENVIRONMENT): Likewise.
8065         (__sysconf): Include posix-envs.def instead of handling associated
8066         cases directly here.
8067         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
8068         preprocessing getconf-speclist.c rather than running getconf or
8069         generating empty file.
8070
8071 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
8072
8073         * scripts/check-local-headers.sh: Ignore 'mach' headers.
8074
8075 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
8076
8077         [BZ #14672]
8078         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
8079
8080 2012-11-16  David S. Miller  <davem@davemloft.net>
8081
8082         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
8083         smaller than LDBL_EPSILON/2.0L, just return xm1.
8084
8085 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
8086
8087         * elf/tst-array1.c (init): Set constructor priority to 1000.
8088         (fini): Set destructor priority to 1000.
8089         * elf/tst-array2dep.c: Likewise.
8090
8091 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8092
8093         [BZ #11741]
8094         * libio/fileops.c (_IO_new_file_write): Correctly return error.
8095         (_IO_new_file_xsputn): Also return EOF if none of the input
8096         data was written when overflow failed.
8097         * libio/iopadn.c (_IO_padn): Likewise.
8098         * libio/iowpadn.c (_IO_wpadn): Likewise.
8099         * stdio-common/tst-put-error.c: Add copyright notice.
8100         (do_test): Add case for printing padded string.
8101         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
8102         _IO_padn returned error.
8103         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
8104         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
8105         return EOF.
8106
8107 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8108
8109         * libio/libioP.h: Add comment note that the references to C++
8110         bits are now obsolete.
8111
8112 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8113
8114         * math/libm-test.inc (check_complex): Use asprintf.
8115
8116 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
8117
8118         * debug/pcprofiledump.c (print_version): Update copyright year.
8119         * malloc/memusagestat.c (print_version): Likewise.
8120
8121 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
8122
8123         [BZ #14831]
8124         * elf/Makefile (tests): Add tst-audit8.
8125         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
8126         ($(objpfx)tst-audit8.out): New target.
8127         (tst-audit8-ENV): New variable.
8128         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
8129         audit if l_reloc_result is NULL.
8130         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
8131         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
8132         * elf/tst-audit8.c: New file.
8133
8134 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8135
8136         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
8137         * misc/Makefile (CFLAGS-select.c): Define.
8138         * posix/Makefile (CFLAGS-pause.c): Define.
8139
8140 2012-11-13  David S. Miller  <davem@davemloft.net>
8141
8142         * crypt/Makefile: Move test targets after toplevel Rules
8143         inclusion.  Grab any necessary sysdep routines when linking.
8144         * crypt/md5.c (md5_process_block): Remove define, we will always
8145         name it __md5_process_block.
8146         (md5_finish_ctx): Update md5_process_block call.
8147         (md5_stream): Likewise.
8148         (md5_process_bytes): Likewise.
8149         (md5_process_block): Rename to __md5_process_block and move to ...
8150         * crypt/md5-block.c: ... here.
8151         * crypt/sha256.c (sha256_process_block): Move to ...
8152         * crypt/sha256-block.c: ... here.
8153         * crypt/sha512.c (sha512_process_block): Move to ...
8154         * crypt/sha512-block.c: ... here.
8155         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
8156         path.
8157         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
8158         * sysdeps/sparc/sparc64/multiarch/Makefile
8159         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
8160         crypt subdir.
8161         (localedef-aux): Add md5 crypto assembler when in locale subdir.
8162         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
8163         multiarch changes.
8164         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
8165         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
8166         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
8167         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
8168         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
8169         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
8170         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
8171         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
8172         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
8173         file.
8174         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
8175         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
8176         file.
8177         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
8178
8179 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
8180
8181         * timezone/tzselect.ksh: Update from tzcode git revision
8182         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
8183         * timezone/zdump.c: Likewise.
8184         * timezone/zic.c: Likewise.
8185         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
8186         in TZVERSION setting, not $(PKGVERSION).
8187         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
8188         REPORT_BUGS_TO settings.
8189
8190         [BZ #14838]
8191         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
8192         macro.
8193
8194 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8195
8196         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
8197         detection to immediately after _FP_ROUND().
8198         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
8199         bits are 0.
8200
8201 2012-11-11  David S. Miller  <davem@davemloft.net>
8202
8203         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
8204         inttypes.h
8205         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
8206         __close rather than their public counterparts.
8207
8208 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
8209
8210         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
8211         file.
8212         [UNIX98] (sem_timedwait): Do not expect.
8213         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
8214         [XPG4 || UNIX98] (sockatmark): Do not expect.
8215         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
8216         (clock_getcpuclockid): Do not expect.
8217         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
8218         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
8219         Do not expect.
8220         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
8221         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
8222         [UNIX98] (vwscanf): Likewise.
8223         [UNIX98] (vswscanf): Likewise.
8224
8225 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
8226
8227         * timezone/version.h: Remove file.
8228         * timezone/README: Do not refer to version.h.
8229         * timezone/Makefile ($(objpfx)zic.o): New dependency on
8230         $(objpfx)version.h.
8231         ($(objpfx)zdump.o): Likewise.
8232         ($(objpfx)version.h): New target.
8233
8234         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
8235         2012i.
8236         * timezone/README: Don't mention modification to tzselect.ksh.
8237         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
8238         work on unmodified tzselect.ksh.  Substitute version numbers in
8239         tzselect.ksh.
8240
8241         * Makefile (format-me): Remove.
8242         (INSTALL): Adjust indentation.  Use commands directly instead of
8243         using $(format-me).
8244
8245         * aclocal.m4 (ACX_PKGVERSION): New macro.
8246         (ACX_BUGURL): Likewise.
8247         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
8248         (PKGVERSION): New AC_DEFINE_UNQUOTED.
8249         (REPORT_BUGS_TO): Likewise.
8250         * configure: Regenerated.
8251         * config.h.in (PKGVERSION): New macro.
8252         (REPORT_BUGS_TO): Likewise.
8253         * config.make.in (PKGVERSION): New variable.
8254         (PKGVERSION_TEXI): Likewise.
8255         (REPORT_BUGS_TO): Likewise.
8256         (REPORT_BUGS_TEXI): Likewise.
8257         * Makefile (format-me): Use -I$(common-objpfx)manual.
8258         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
8259         ($(common-objpfx)manual/%): New target.
8260         (manual/%): Remove target.
8261         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
8262         (print_version): Use PKGVERSION.
8263         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
8264         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
8265         and REPORT_BUGS_TO.
8266         ($(objpfx)xtrace): Likewise.
8267         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
8268         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
8269         (print_version): Use PKGVERSION.
8270         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
8271         (do_version): Use PKGVERSION.
8272         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
8273         REPORT_BUGS_TO.
8274         (common-ldd-rewrite): Likewise.
8275         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
8276         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
8277         (print_version): Use PKGVERSION.
8278         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
8279         * elf/pldd.c (argp_program_bug_address): Remove variable.
8280         (more_help): New function.
8281         (argp): Use more_help.
8282         (print_version): Use PKGVERSION.
8283         * elf/sln.c (main): Use PKGVERSION.
8284         (usage): Use REPORT_BUGS_TO.
8285         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
8286         (top level): Use PKGVERSION.
8287         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
8288         (print_version): Use PKGVERSION.
8289         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
8290         (print_version): Use PKGVERSION.
8291         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
8292         (print_version): Use PKGVERSION.
8293         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
8294         (print_version): Use PKGVERSION.
8295         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
8296         (print_version): Use PKGVERSION.
8297         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
8298         (print_version): Use PKGVERSION.
8299         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
8300         and BUGURL.
8301         ($(objpfx)memusage): Likewise.
8302         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
8303         (do_version): Use PKGVERSION.
8304         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
8305         (print_version): Use PKGVERSION.
8306         * malloc/mtrace.pl ($PACKAGE): Remove variable.
8307         ($PKGVERSION): New variable.
8308         ($REPORT_BUGS_TO): Likewise.
8309         (usage): Use $REPORT_BUGS_TO.
8310         (top level): Use $PKGVERSION.
8311         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
8312         ($(objpfx)pkgvers.texi): New rule.
8313         ($(objpfx)stamp-pkgvers): Likewise.
8314         * manual/install.texi: Include pkgvers.texi.
8315         (--with-pkgversion): Document new configure option.
8316         (--with-bugurl): Likewise.
8317         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
8318         than necessarily for this particular distribution.  Use
8319         REPORT_BUGS_TO for where to report bugs.
8320         * INSTALL: Regenerated.
8321         * manual/libc.texinfo: Include pkgvers.texi.
8322         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
8323         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
8324         (print_version): Use PKGVERSION.
8325         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
8326         (print_version): Use PKGVERSION.
8327         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
8328         (print_version): Use PKGVERSION.
8329         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
8330         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
8331         macro.
8332         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
8333         (print_version): Use PKGVERSION.
8334         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
8335         (print_version): Use PKGVERSION.
8336         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
8337         and PKGVERSION.
8338
8339         * timezone/checktab.awk: Update from tzcode 2012i.
8340         * timezone/ialloc.c: Likewise.
8341         * timezone/private.h: Likewise.
8342         * timezone/scheck.c: Likewise.
8343         * timezone/tzfile.h: Likewise.
8344         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
8345         (TZVERSION): Hardcode tzcode version number.
8346         * timezone/zdump.c: Update from tzcode 2012i.
8347         * timezone/zic.c: Likewise.
8348         * timezone/version.h: New file.
8349         * timezone/README: Describe version.h.  Update upstream location.
8350
8351         [BZ #14824]
8352         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
8353         (mktemp): Enable declaration.
8354         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
8355         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
8356         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
8357         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
8358         Likewise.
8359         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
8360         Likewise.
8361         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
8362         Likewise.
8363         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
8364         Likewise.
8365         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
8366         Likewise.
8367         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
8368         Likewise.
8369
8370         [BZ #14821]
8371         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
8372         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
8373         for copies of such integer values.
8374         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
8375         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
8376
8377 2012-11-09  Andreas Jaeger  <aj@suse.de>
8378
8379         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
8380         definitions and declarations that are provided by
8381         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
8382
8383 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8384
8385         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
8386         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
8387         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
8388         definition.
8389
8390 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8391
8392         * elf/elf.h: Update comment before AArch64 relocations.
8393
8394 2012-11-07  David S. Miller  <davem@davemloft.net>
8395
8396         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
8397         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
8398         (__start_context): Declare.
8399         (__makecontext_ret): Delete.
8400         (__makecontext): Hook up __start_context instead of
8401         __makecontext_ret.
8402         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8403         (sysdep_routines): Add __start_context when in stdlib.
8404
8405 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8406
8407         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
8408         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
8409         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
8410         hardcoded "nm".
8411         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
8412         (READELF): New variable.  Use it instead of hardcoded "readelf".
8413
8414 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8415
8416         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
8417         * sysdeps/x86/Makefile: Here.
8418         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
8419         * sysdeps/x86/tst-xmmymm.sh: This.
8420
8421 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8422
8423         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
8424         expectations.
8425         [UNIX98] (pthread_barrier_t): Do not expect.
8426         [UNIX98] (pthread_barrierattr_t): Likewise.
8427         [UNIX98] (pthread_spinlock_t): Likewise.
8428         [UNIX98] (pthread_barrier_destroy): Likewise.
8429         [UNIX98] (pthread_barrier_init): Likewise.
8430         [UNIX98] (pthread_barrier_wait): Likewise.
8431         [UNIX98] (pthread_barrierattr_destroy): Likewise.
8432         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
8433         [UNIX98] (pthread_barrierattr_init): Likewise.
8434         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
8435         [UNIX98] (pthread_getcpuclockid): Likewise.
8436         [UNIX98] (pthread_mutex_timedlock): Likewise.
8437         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
8438         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
8439         [UNIX98] (pthread_sigmask): Likewise.
8440         [UNIX98] (pthread_spin_destroy): Likewise.
8441         [UNIX98] (pthread_spin_init): Likewise.
8442         [UNIX98] (pthread_spin_lock): Likewise.
8443         [UNIX98] (pthread_spin_trylock): Likewise.
8444         [UNIX98] (pthread_spin_unlock): Likewise.
8445         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
8446         Do not expect.
8447         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
8449         [XPG3 || XPG4] (pthread_cond_t): Likewise.
8450         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
8451         [XPG3 || XPG4] (pthread_key_t): Likewise.
8452         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
8453         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
8454         [XPG3 || XPG4] (pthread_once_t): Likewise.
8455         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
8456         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
8458         [XPG3 || XPG4] (pthread_t): Likewise.
8459
8460         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
8461         not expect.
8462         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
8463
8464         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
8465         Change function return type to int.
8466
8467         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
8468         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
8469         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
8470         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
8471         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
8472         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
8473         [!POSIX] (posix_madvise): Likewise.
8474         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
8475         && !UNIX98].
8476         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
8477         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
8478         (mode_t): Likewise.
8479         (posix_mem_offset): Likewise.
8480         (posix_typed_mem_get_info): Likewise.
8481         (posix_typed_mem_open): Likewise.
8482
8483         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
8484         Change condition to [XOPEN2K8].
8485
8486         * conform/conformtest.pl: Preprocess allow-header data with -x c
8487         instead of from stdin.
8488         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
8489         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
8490         [C99-based standards] (cerfc): Likewise.
8491         [C99-based standards] (cexp2): Likewise.
8492         [C99-based standards] (cexpm1): Likewise.
8493         [C99-based standards] (clog10): Likewise.
8494         [C99-based standards] (clog1p): Likewise.
8495         [C99-based standards] (clog2): Likewise.
8496         [C99-based standards] (clgamma): Likewise.
8497         [C99-based standards] (ctgamma): Likewise.
8498         [C99-based standards] (cerff): Likewise.
8499         [C99-based standards] (cerfcf): Likewise.
8500         [C99-based standards] (cexp2f): Likewise.
8501         [C99-based standards] (cexpm1f): Likewise.
8502         [C99-based standards] (clog10f): Likewise.
8503         [C99-based standards] (clog1pf): Likewise.
8504         [C99-based standards] (clog2f): Likewise.
8505         [C99-based standards] (clgammaf): Likewise.
8506         [C99-based standards] (ctgammaf): Likewise.
8507         [C99-based standards] (cerfl): Likewise.
8508         [C99-based standards] (cerfcl): Likewise.
8509         [C99-based standards] (cexp2l): Likewise.
8510         [C99-based standards] (cexpm1l): Likewise.
8511         [C99-based standards] (clog10l): Likewise.
8512         [C99-based standards] (clog1pl): Likewise.
8513         [C99-based standards] (clog2l): Likewise.
8514         [C99-based standards] (clgammal): Likewise.
8515         [C99-based standards] (ctgammal): Likewise.
8516         * conform/data/inttypes.h-data [C99-based standards]: Include
8517         stdint.h-data.  Remove all expectations for stdint.h contents.
8518         [C99-based standards] (PRI*): Do not allow.
8519         [C99-based standards] (SCN*): Likewise.
8520         [C99-based standards] (*_t): Likewise.
8521         [C99-based-standards] (PRId8): Expect macro.
8522         [C99-based-standards] (PRIi8): Likewise.
8523         [C99-based-standards] (PRIo8): Likewise.
8524         [C99-based-standards] (PRIu8): Likewise.
8525         [C99-based-standards] (PRIx8): Likewise.
8526         [C99-based-standards] (PRIX8): Likewise.
8527         [C99-based-standards] (SCNd8): Likewise.
8528         [C99-based-standards] (SCNi8): Likewise.
8529         [C99-based-standards] (SCNo8): Likewise.
8530         [C99-based-standards] (SCNu8): Likewise.
8531         [C99-based-standards] (SCNx8): Likewise.
8532         [C99-based-standards] (PRIdLEAST8): Likewise.
8533         [C99-based-standards] (PRIiLEAST8): Likewise.
8534         [C99-based-standards] (PRIoLEAST8): Likewise.
8535         [C99-based-standards] (PRIuLEAST8): Likewise.
8536         [C99-based-standards] (PRIxLEAST8): Likewise.
8537         [C99-based-standards] (PRIXLEAST8): Likewise.
8538         [C99-based-standards] (SCNdLEAST8): Likewise.
8539         [C99-based-standards] (SCNiLEAST8): Likewise.
8540         [C99-based-standards] (SCNoLEAST8): Likewise.
8541         [C99-based-standards] (SCNuLEAST8): Likewise.
8542         [C99-based-standards] (SCNxLEAST8): Likewise.
8543         [C99-based-standards] (PRIdFAST8): Likewise.
8544         [C99-based-standards] (PRIiFAST8): Likewise.
8545         [C99-based-standards] (PRIoFAST8): Likewise.
8546         [C99-based-standards] (PRIuFAST8): Likewise.
8547         [C99-based-standards] (PRIxFAST8): Likewise.
8548         [C99-based-standards] (PRIXFAST8): Likewise.
8549         [C99-based-standards] (SCNdFAST8): Likewise.
8550         [C99-based-standards] (SCNiFAST8): Likewise.
8551         [C99-based-standards] (SCNoFAST8): Likewise.
8552         [C99-based-standards] (SCNuFAST8): Likewise.
8553         [C99-based-standards] (SCNxFAST8): Likewise.
8554         [C99-based-standards] (PRId16): Likewise.
8555         [C99-based-standards] (PRIi16): Likewise.
8556         [C99-based-standards] (PRIo16): Likewise.
8557         [C99-based-standards] (PRIu16): Likewise.
8558         [C99-based-standards] (PRIx16): Likewise.
8559         [C99-based-standards] (PRIX16): Likewise.
8560         [C99-based-standards] (SCNd16): Likewise.
8561         [C99-based-standards] (SCNi16): Likewise.
8562         [C99-based-standards] (SCNo16): Likewise.
8563         [C99-based-standards] (SCNu16): Likewise.
8564         [C99-based-standards] (SCNx16): Likewise.
8565         [C99-based-standards] (PRIdLEAST16): Likewise.
8566         [C99-based-standards] (PRIiLEAST16): Likewise.
8567         [C99-based-standards] (PRIoLEAST16): Likewise.
8568         [C99-based-standards] (PRIuLEAST16): Likewise.
8569         [C99-based-standards] (PRIxLEAST16): Likewise.
8570         [C99-based-standards] (PRIXLEAST16): Likewise.
8571         [C99-based-standards] (SCNdLEAST16): Likewise.
8572         [C99-based-standards] (SCNiLEAST16): Likewise.
8573         [C99-based-standards] (SCNoLEAST16): Likewise.
8574         [C99-based-standards] (SCNuLEAST16): Likewise.
8575         [C99-based-standards] (SCNxLEAST16): Likewise.
8576         [C99-based-standards] (PRIdFAST16): Likewise.
8577         [C99-based-standards] (PRIiFAST16): Likewise.
8578         [C99-based-standards] (PRIoFAST16): Likewise.
8579         [C99-based-standards] (PRIuFAST16): Likewise.
8580         [C99-based-standards] (PRIxFAST16): Likewise.
8581         [C99-based-standards] (PRIXFAST16): Likewise.
8582         [C99-based-standards] (SCNdFAST16): Likewise.
8583         [C99-based-standards] (SCNiFAST16): Likewise.
8584         [C99-based-standards] (SCNoFAST16): Likewise.
8585         [C99-based-standards] (SCNuFAST16): Likewise.
8586         [C99-based-standards] (SCNxFAST16): Likewise.
8587         [C99-based-standards] (PRId32): Likewise.
8588         [C99-based-standards] (PRIi32): Likewise.
8589         [C99-based-standards] (PRIo32): Likewise.
8590         [C99-based-standards] (PRIu32): Likewise.
8591         [C99-based-standards] (PRIx32): Likewise.
8592         [C99-based-standards] (PRIX32): Likewise.
8593         [C99-based-standards] (SCNd32): Likewise.
8594         [C99-based-standards] (SCNi32): Likewise.
8595         [C99-based-standards] (SCNo32): Likewise.
8596         [C99-based-standards] (SCNu32): Likewise.
8597         [C99-based-standards] (SCNx32): Likewise.
8598         [C99-based-standards] (PRIdLEAST32): Likewise.
8599         [C99-based-standards] (PRIiLEAST32): Likewise.
8600         [C99-based-standards] (PRIoLEAST32): Likewise.
8601         [C99-based-standards] (PRIuLEAST32): Likewise.
8602         [C99-based-standards] (PRIxLEAST32): Likewise.
8603         [C99-based-standards] (PRIXLEAST32): Likewise.
8604         [C99-based-standards] (SCNdLEAST32): Likewise.
8605         [C99-based-standards] (SCNiLEAST32): Likewise.
8606         [C99-based-standards] (SCNoLEAST32): Likewise.
8607         [C99-based-standards] (SCNuLEAST32): Likewise.
8608         [C99-based-standards] (SCNxLEAST32): Likewise.
8609         [C99-based-standards] (PRIdFAST32): Likewise.
8610         [C99-based-standards] (PRIiFAST32): Likewise.
8611         [C99-based-standards] (PRIoFAST32): Likewise.
8612         [C99-based-standards] (PRIuFAST32): Likewise.
8613         [C99-based-standards] (PRIxFAST32): Likewise.
8614         [C99-based-standards] (PRIXFAST32): Likewise.
8615         [C99-based-standards] (SCNdFAST32): Likewise.
8616         [C99-based-standards] (SCNiFAST32): Likewise.
8617         [C99-based-standards] (SCNoFAST32): Likewise.
8618         [C99-based-standards] (SCNuFAST32): Likewise.
8619         [C99-based-standards] (SCNxFAST32): Likewise.
8620         [C99-based-standards] (PRId64): Likewise.
8621         [C99-based-standards] (PRIi64): Likewise.
8622         [C99-based-standards] (PRIo64): Likewise.
8623         [C99-based-standards] (PRIu64): Likewise.
8624         [C99-based-standards] (PRIx64): Likewise.
8625         [C99-based-standards] (PRIX64): Likewise.
8626         [C99-based-standards] (SCNd64): Likewise.
8627         [C99-based-standards] (SCNi64): Likewise.
8628         [C99-based-standards] (SCNo64): Likewise.
8629         [C99-based-standards] (SCNu64): Likewise.
8630         [C99-based-standards] (SCNx64): Likewise.
8631         [C99-based-standards] (PRIdLEAST64): Likewise.
8632         [C99-based-standards] (PRIiLEAST64): Likewise.
8633         [C99-based-standards] (PRIoLEAST64): Likewise.
8634         [C99-based-standards] (PRIuLEAST64): Likewise.
8635         [C99-based-standards] (PRIxLEAST64): Likewise.
8636         [C99-based-standards] (PRIXLEAST64): Likewise.
8637         [C99-based-standards] (SCNdLEAST64): Likewise.
8638         [C99-based-standards] (SCNiLEAST64): Likewise.
8639         [C99-based-standards] (SCNoLEAST64): Likewise.
8640         [C99-based-standards] (SCNuLEAST64): Likewise.
8641         [C99-based-standards] (SCNxLEAST64): Likewise.
8642         [C99-based-standards] (PRIdFAST64): Likewise.
8643         [C99-based-standards] (PRIiFAST64): Likewise.
8644         [C99-based-standards] (PRIoFAST64): Likewise.
8645         [C99-based-standards] (PRIuFAST64): Likewise.
8646         [C99-based-standards] (PRIxFAST64): Likewise.
8647         [C99-based-standards] (PRIXFAST64): Likewise.
8648         [C99-based-standards] (SCNdFAST64): Likewise.
8649         [C99-based-standards] (SCNiFAST64): Likewise.
8650         [C99-based-standards] (SCNoFAST64): Likewise.
8651         [C99-based-standards] (SCNuFAST64): Likewise.
8652         [C99-based-standards] (SCNxFAST64): Likewise.
8653         [C99-based-standards] (PRIdMAX): Likewise.
8654         [C99-based-standards] (PRIiMAX): Likewise.
8655         [C99-based-standards] (PRIoMAX): Likewise.
8656         [C99-based-standards] (PRIuMAX): Likewise.
8657         [C99-based-standards] (PRIxMAX): Likewise.
8658         [C99-based-standards] (PRIXMAX): Likewise.
8659         [C99-based-standards] (SCNdMAX): Likewise.
8660         [C99-based-standards] (SCNiMAX): Likewise.
8661         [C99-based-standards] (SCNoMAX): Likewise.
8662         [C99-based-standards] (SCNuMAX): Likewise.
8663         [C99-based-standards] (SCNxMAX): Likewise.
8664         [C99-based-standards] (PRIdPTR): Likewise.
8665         [C99-based-standards] (PRIiPTR): Likewise.
8666         [C99-based-standards] (PRIoPTR): Likewise.
8667         [C99-based-standards] (PRIuPTR): Likewise.
8668         [C99-based-standards] (PRIxPTR): Likewise.
8669         [C99-based-standards] (PRIXPTR): Likewise.
8670         [C99-based-standards] (SCNdPTR): Likewise.
8671         [C99-based-standards] (SCNiPTR): Likewise.
8672         [C99-based-standards] (SCNoPTR): Likewise.
8673         [C99-based-standards] (SCNuPTR): Likewise.
8674         [C99-based-standards] (SCNxPTR): Likewise.
8675         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
8676         allow.
8677         * conform/data/stdint.h-data: Update comments to clarify
8678         requirements.
8679         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
8680         type.
8681         [C99-based standards] (INT8_MAX): Likewise.
8682         [C99-based standards] (INT16_MIN): Likewise.
8683         [C99-based standards] (INT16_MAX): Likewise.
8684         [C99-based standards] (INT32_MIN): Likewise.
8685         [C99-based standards] (INT32_MAX): Likewise.
8686         [C99-based standards] (INT64_MIN): Likewise.
8687         [C99-based standards] (INT64_MAX): Likewise.
8688         [C99-based standards] (UINT8_MAX): Likewise.
8689         [C99-based standards] (UINT16_MAX): Likewise.
8690         [C99-based standards] (UINT32_MAX): Likewise.
8691         [C99-based standards] (UINT64_MAX): Likewise.
8692         [C99-based standards] (INT_LEAST8_MIN): Likewise.
8693         [C99-based standards] (INT_LEAST8_MAX): Likewise.
8694         [C99-based standards] (INT_LEAST16_MIN): Likewise.
8695         [C99-based standards] (INT_LEAST16_MAX): Likewise.
8696         [C99-based standards] (INT_LEAST32_MIN): Likewise.
8697         [C99-based standards] (INT_LEAST32_MAX): Likewise.
8698         [C99-based standards] (INT_LEAST64_MIN): Likewise.
8699         [C99-based standards] (INT_LEAST64_MAX): Likewise.
8700         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
8701         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
8702         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
8703         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
8704         [C99-based standards] (INT_FAST8_MIN): Likewise.
8705         [C99-based standards] (INT_FAST8_MAX): Likewise.
8706         [C99-based standards] (INT_FAST16_MIN): Likewise.
8707         [C99-based standards] (INT_FAST16_MAX): Likewise.
8708         [C99-based standards] (INT_FAST32_MIN): Likewise.
8709         [C99-based standards] (INT_FAST32_MAX): Likewise.
8710         [C99-based standards] (INT_FAST64_MIN): Likewise.
8711         [C99-based standards] (INT_FAST64_MAX): Likewise.
8712         [C99-based standards] (UINT_FAST8_MAX): Likewise.
8713         [C99-based standards] (UINT_FAST16_MAX): Likewise.
8714         [C99-based standards] (UINT_FAST32_MAX): Likewise.
8715         [C99-based standards] (UINT_FAST64_MAX): Likewise.
8716         [C99-based standards] (INTPTR_MIN): Likewise.
8717         [C99-based standards] (INTPTR_MAX): Likewise.
8718         [C99-based standards] (UINTPTR_MAX): Likewise.
8719         [C99-based standards] (INTMAX_MIN): Likewise.
8720         [C99-based standards] (INTMAX_MAX): Likewise.
8721         [C99-based standards] (UINTMAX_MAX): Likewise.
8722         [C99-based standards] (PTRDIFF_MIN): Likewise.
8723         [C99-based standards] (PTRDIFF_MAX): Likewise.
8724         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
8725         [C99-based standards] (SIZE_MAX): Likewise.
8726         [C99-based standards] (WCHAR_MAX): Likewise.
8727         [C99-based standards] (WINT_MAX): Likewise.
8728         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
8729         constraint on value.
8730         [C99-based standards] (WCHAR_MIN): Likewise.
8731         [C99-based standards] (WINT_MIN): Likewise.
8732         [C99-based standards] (*_t): Allow.
8733         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
8734         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
8735         Include math.h-data and complex.h-data.  Remove all expectations
8736         of math.h and complex.h contents.
8737         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
8738         at end of line.
8739         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
8740         (struct tm): Expect tag.
8741         [C99-based-standards] (wcstof): Expect function.
8742         [C99-based-standards] (wcstold): Likewise.
8743         [C99-based-standards] (wcstoll): Likewise.
8744         [C99-based-standards] (wcstoull): Likewise.
8745         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
8746         macro-int-constant.  Specify type.
8747         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
8748         constraint on value.
8749         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
8750         Specify type.
8751         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
8752         Specify value.
8753         [ISO C standards]: Do not allow headers.
8754         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
8755         wcs[abcdefghijklmnopqrstuvwxyz]*.
8756         [ISO C standards] (*_t): Do not allow.
8757         * conform/data/wctype.h-data [C99-based standards] (iswblank):
8758         Expect function.
8759         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
8760         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
8761         Specify type.
8762         [ISO C standards]: Do not allow headers.
8763         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
8764         is[abcdefghijklmnopqrstuvwxyz]*.
8765         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
8766         to[abcdefghijklmnopqrstuvwxyz]*.
8767         [ISO C standards] (*_t): Do not allow.
8768         * conform/data/stdalign.h-data: New file.
8769         * conform/data/stdbool.h-data: Likewise.
8770         * conform/data/stdnoreturn.h-data: Likewise.
8771
8772 2012-11-07  Roland McGrath  <roland@hack.frob.com>
8773
8774         [BZ #14815]
8775         * manual/filesys.texi (Directory Entries): Typo fix.
8776         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
8777
8778 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8779
8780         * elf/elf.h (EM_AARCH64): New macro.
8781         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
8782         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
8783         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
8784         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
8785         (R_AARCH64_TLSDESC): Likewise.
8786         (NT_ARM_TLS): Likewise.
8787         (NT_ARM_HW_BREAK): Likewise.
8788         (NT_ARM_HW_WATCH): Likewise.
8789
8790 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8791
8792         [BZ #14811]
8793         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
8794         (__ieee754_powl): Saturate nonzero exponents with absolute value
8795         below 0x1p-79 to +/- 0x1p-79.
8796         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
8797         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
8798         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
8799         nonzero exponents with absolute value below 0x1p-32 to +/-
8800         0x1p-32.
8801         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
8802         (__ieee754_powl): Saturate nonzero exponents with absolute value
8803         below 0x1p-79 to +/- 0x1p-79.
8804         * math/libm-test.inc (pow_test): Add more tests.
8805
8806 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8807
8808         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
8809         _dl_s390_cap_flags with kernel. Increase string length.
8810         (_dl_s390_platforms): Add z196 and zEC12.
8811
8812 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8813
8814         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
8815         Change XOPEN21K to XOPEN2K.
8816
8817 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
8818
8819         * string/memmove.c: Use memcpy when possible.
8820
8821 2012-11-06  Andreas Jaeger  <aj@suse.de>
8822
8823         * po/eo.po: Update from translation team.
8824
8825 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
8826
8827         [BZ #14793]
8828         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
8829         exponent and small x and y exponents, scale x or y up.  Increase
8830         by 2 the exponent used in scaling up.
8831         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8832         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8833         * math/libm-test.inc (fma_test): Add more tests.
8834         (fma_test_towardzero): Likewise.
8835         (fma_test_downward): Likewise.
8836         (fma_test_upward): Likewise.
8837
8838 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
8839
8840         [BZ #14805]
8841         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
8842         fenv_t *.
8843
8844         [BZ #14801]
8845         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
8846         namespace for names of struct fields.
8847         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
8848         fenv_t fields.
8849         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
8850         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
8851
8852 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8853
8854         [BZ #3665]
8855         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8856
8857 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
8858
8859         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
8860         PTR_DEMANGLE.
8861
8862         [BZ #5246]
8863         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
8864         PTR_DEMANGLE.
8865
8866 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
8867
8868         [BZ #14797]
8869         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
8870         definitely overflow as x * y not x * y + z.
8871         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8872         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8873         * math/libm-test.inc (fma_test): Add more tests.
8874         (fma_test_towardzero): Likewise.
8875         (fma_test_downward): Likewise.
8876         (fma_test_upward): Likewise.
8877
8878 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
8879
8880         [BZ #157]
8881
8882         * include/stub-tag.h: Remove file.
8883         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
8884         '#include' of it.
8885         * manual/maint.texi (Porting): Don't reference it.
8886         * Makerules ($(objpfx)stubs): Likewise.
8887         * dirent/closedir.c: Don't include <stub-tag.h>.
8888         * dirent/dirfd.c: Likewise.
8889         * dirent/fdopendir.c: Likewise.
8890         * dirent/getdents.c: Likewise.
8891         * dirent/getdents64.c: Likewise.
8892         * dirent/opendir.c: Likewise.
8893         * dirent/readdir.c: Likewise.
8894         * dirent/readdir64.c: Likewise.
8895         * dirent/readdir64_r.c: Likewise.
8896         * dirent/readdir_r.c: Likewise.
8897         * dirent/rewinddir.c: Likewise.
8898         * dirent/seekdir.c: Likewise.
8899         * dirent/telldir.c: Likewise.
8900         * gmon/profil.c: Likewise.
8901         * grp/setgroups.c: Likewise.
8902         * inet/if_index.c: Likewise.
8903         * io/access.c: Likewise.
8904         * io/chdir.c: Likewise.
8905         * io/chmod.c: Likewise.
8906         * io/chown.c: Likewise.
8907         * io/close.c: Likewise.
8908         * io/dup.c: Likewise.
8909         * io/dup2.c: Likewise.
8910         * io/dup3.c: Likewise.
8911         * io/euidaccess.c: Likewise.
8912         * io/faccessat.c: Likewise.
8913         * io/fchdir.c: Likewise.
8914         * io/fchmod.c: Likewise.
8915         * io/fchmodat.c: Likewise.
8916         * io/fchown.c: Likewise.
8917         * io/fchownat.c: Likewise.
8918         * io/fcntl.c: Likewise.
8919         * io/flock.c: Likewise.
8920         * io/fstatfs.c: Likewise.
8921         * io/fstatfs64.c: Likewise.
8922         * io/fstatvfs.c: Likewise.
8923         * io/fstatvfs64.c: Likewise.
8924         * io/futimens.c: Likewise.
8925         * io/fxstat.c: Likewise.
8926         * io/fxstat64.c: Likewise.
8927         * io/fxstatat.c: Likewise.
8928         * io/fxstatat64.c: Likewise.
8929         * io/getcwd.c: Likewise.
8930         * io/isatty.c: Likewise.
8931         * io/lchmod.c: Likewise.
8932         * io/lchown.c: Likewise.
8933         * io/link.c: Likewise.
8934         * io/linkat.c: Likewise.
8935         * io/lseek.c: Likewise.
8936         * io/lseek64.c: Likewise.
8937         * io/lxstat64.c: Likewise.
8938         * io/mkdir.c: Likewise.
8939         * io/mkdirat.c: Likewise.
8940         * io/mkfifo.c: Likewise.
8941         * io/mkfifoat.c: Likewise.
8942         * io/open.c: Likewise.
8943         * io/open64.c: Likewise.
8944         * io/openat.c: Likewise.
8945         * io/openat64.c: Likewise.
8946         * io/pipe.c: Likewise.
8947         * io/pipe2.c: Likewise.
8948         * io/poll.c: Likewise.
8949         * io/posix_fadvise.c: Likewise.
8950         * io/posix_fadvise64.c: Likewise.
8951         * io/posix_fallocate.c: Likewise.
8952         * io/posix_fallocate64.c: Likewise.
8953         * io/read.c: Likewise.
8954         * io/readlink.c: Likewise.
8955         * io/readlinkat.c: Likewise.
8956         * io/rmdir.c: Likewise.
8957         * io/sendfile.c: Likewise.
8958         * io/sendfile64.c: Likewise.
8959         * io/statfs.c: Likewise.
8960         * io/statfs64.c: Likewise.
8961         * io/statvfs.c: Likewise.
8962         * io/statvfs64.c: Likewise.
8963         * io/symlink.c: Likewise.
8964         * io/symlinkat.c: Likewise.
8965         * io/ttyname.c: Likewise.
8966         * io/ttyname_r.c: Likewise.
8967         * io/umask.c: Likewise.
8968         * io/unlink.c: Likewise.
8969         * io/unlinkat.c: Likewise.
8970         * io/utime.c: Likewise.
8971         * io/utimensat.c: Likewise.
8972         * io/write.c: Likewise.
8973         * io/xmknod.c: Likewise.
8974         * io/xmknodat.c: Likewise.
8975         * io/xstat.c: Likewise.
8976         * io/xstat64.c: Likewise.
8977         * login/getpt.c: Likewise.
8978         * login/grantpt.c: Likewise.
8979         * login/unlockpt.c: Likewise.
8980         * math/e_acoshl.c: Likewise.
8981         * math/e_acosl.c: Likewise.
8982         * math/e_asinl.c: Likewise.
8983         * math/e_atan2l.c: Likewise.
8984         * math/e_atanhl.c: Likewise.
8985         * math/e_coshl.c: Likewise.
8986         * math/e_expl.c: Likewise.
8987         * math/e_fmodl.c: Likewise.
8988         * math/e_gammal_r.c: Likewise.
8989         * math/e_hypotl.c: Likewise.
8990         * math/e_j0l.c: Likewise.
8991         * math/e_j1l.c: Likewise.
8992         * math/e_jnl.c: Likewise.
8993         * math/e_lgammal_r.c: Likewise.
8994         * math/e_log10l.c: Likewise.
8995         * math/e_log2l.c: Likewise.
8996         * math/e_logl.c: Likewise.
8997         * math/e_powl.c: Likewise.
8998         * math/e_rem_pio2l.c: Likewise.
8999         * math/e_sinhl.c: Likewise.
9000         * math/e_sqrtl.c: Likewise.
9001         * math/fclrexcpt.c: Likewise.
9002         * math/fedisblxcpt.c: Likewise.
9003         * math/feenablxcpt.c: Likewise.
9004         * math/fegetenv.c: Likewise.
9005         * math/fegetexcept.c: Likewise.
9006         * math/fegetround.c: Likewise.
9007         * math/feholdexcpt.c: Likewise.
9008         * math/fesetenv.c: Likewise.
9009         * math/fesetround.c: Likewise.
9010         * math/feupdateenv.c: Likewise.
9011         * math/fgetexcptflg.c: Likewise.
9012         * math/fraiseexcpt.c: Likewise.
9013         * math/fsetexcptflg.c: Likewise.
9014         * math/ftestexcept.c: Likewise.
9015         * math/k_cosl.c: Likewise.
9016         * math/k_rem_pio2l.c: Likewise.
9017         * math/k_sinl.c: Likewise.
9018         * math/k_tanl.c: Likewise.
9019         * math/s_asinhl.c: Likewise.
9020         * math/s_atanl.c: Likewise.
9021         * math/s_cbrtl.c: Likewise.
9022         * math/s_erfl.c: Likewise.
9023         * math/s_expm1l.c: Likewise.
9024         * math/s_log1pl.c: Likewise.
9025         * math/s_tanhl.c: Likewise.
9026         * misc/acct.c: Likewise.
9027         * misc/brk.c: Likewise.
9028         * misc/chflags.c: Likewise.
9029         * misc/chroot.c: Likewise.
9030         * misc/fchflags.c: Likewise.
9031         * misc/fgetxattr.c: Likewise.
9032         * misc/flistxattr.c: Likewise.
9033         * misc/fremovexattr.c: Likewise.
9034         * misc/fsetxattr.c: Likewise.
9035         * misc/fsync.c: Likewise.
9036         * misc/ftruncate.c: Likewise.
9037         * misc/futimes.c: Likewise.
9038         * misc/futimesat.c: Likewise.
9039         * misc/getdomain.c: Likewise.
9040         * misc/getdtsz.c: Likewise.
9041         * misc/gethostid.c: Likewise.
9042         * misc/gethostname.c: Likewise.
9043         * misc/getloadavg.c: Likewise.
9044         * misc/getpagesize.c: Likewise.
9045         * misc/getsysstats.c: Likewise.
9046         * misc/getxattr.c: Likewise.
9047         * misc/gtty.c: Likewise.
9048         * misc/ioctl.c: Likewise.
9049         * misc/lgetxattr.c: Likewise.
9050         * misc/listxattr.c: Likewise.
9051         * misc/llistxattr.c: Likewise.
9052         * misc/lremovexattr.c: Likewise.
9053         * misc/lsetxattr.c: Likewise.
9054         * misc/lutimes.c: Likewise.
9055         * misc/madvise.c: Likewise.
9056         * misc/mincore.c: Likewise.
9057         * misc/mlock.c: Likewise.
9058         * misc/mlockall.c: Likewise.
9059         * misc/mmap.c: Likewise.
9060         * misc/mprotect.c: Likewise.
9061         * misc/msync.c: Likewise.
9062         * misc/munlock.c: Likewise.
9063         * misc/munlockall.c: Likewise.
9064         * misc/munmap.c: Likewise.
9065         * misc/preadv.c: Likewise.
9066         * misc/preadv64.c: Likewise.
9067         * misc/ptrace.c: Likewise.
9068         * misc/pwritev.c: Likewise.
9069         * misc/pwritev64.c: Likewise.
9070         * misc/readv.c: Likewise.
9071         * misc/reboot.c: Likewise.
9072         * misc/remap_file_pages.c: Likewise.
9073         * misc/removexattr.c: Likewise.
9074         * misc/revoke.c: Likewise.
9075         * misc/select.c: Likewise.
9076         * misc/setdomain.c: Likewise.
9077         * misc/setegid.c: Likewise.
9078         * misc/seteuid.c: Likewise.
9079         * misc/sethostid.c: Likewise.
9080         * misc/sethostname.c: Likewise.
9081         * misc/setregid.c: Likewise.
9082         * misc/setreuid.c: Likewise.
9083         * misc/setxattr.c: Likewise.
9084         * misc/sstk.c: Likewise.
9085         * misc/stty.c: Likewise.
9086         * misc/swapoff.c: Likewise.
9087         * misc/swapon.c: Likewise.
9088         * misc/sync.c: Likewise.
9089         * misc/syncfs.c: Likewise.
9090         * misc/syscall.c: Likewise.
9091         * misc/truncate.c: Likewise.
9092         * misc/ualarm.c: Likewise.
9093         * misc/usleep.c: Likewise.
9094         * misc/ustat.c: Likewise.
9095         * misc/utimes.c: Likewise.
9096         * misc/vhangup.c: Likewise.
9097         * misc/writev.c: Likewise.
9098         * posix/_exit.c: Likewise.
9099         * posix/alarm.c: Likewise.
9100         * posix/execve.c: Likewise.
9101         * posix/fexecve.c: Likewise.
9102         * posix/fork.c: Likewise.
9103         * posix/fpathconf.c: Likewise.
9104         * posix/getaddrinfo.c: Likewise.
9105         * posix/getegid.c: Likewise.
9106         * posix/geteuid.c: Likewise.
9107         * posix/getgid.c: Likewise.
9108         * posix/getgroups.c: Likewise.
9109         * posix/getlogin.c: Likewise.
9110         * posix/getlogin_r.c: Likewise.
9111         * posix/getpgid.c: Likewise.
9112         * posix/getpid.c: Likewise.
9113         * posix/getppid.c: Likewise.
9114         * posix/getresgid.c: Likewise.
9115         * posix/getresuid.c: Likewise.
9116         * posix/getsid.c: Likewise.
9117         * posix/getuid.c: Likewise.
9118         * posix/glob64.c: Likewise.
9119         * posix/nanosleep.c: Likewise.
9120         * posix/pathconf.c: Likewise.
9121         * posix/pause.c: Likewise.
9122         * posix/posix_madvise.c: Likewise.
9123         * posix/pread.c: Likewise.
9124         * posix/pread64.c: Likewise.
9125         * posix/pwrite.c: Likewise.
9126         * posix/pwrite64.c: Likewise.
9127         * posix/sched_getaffinity.c: Likewise.
9128         * posix/sched_getp.c: Likewise.
9129         * posix/sched_gets.c: Likewise.
9130         * posix/sched_primax.c: Likewise.
9131         * posix/sched_primin.c: Likewise.
9132         * posix/sched_rr_gi.c: Likewise.
9133         * posix/sched_setaffinity.c: Likewise.
9134         * posix/sched_setp.c: Likewise.
9135         * posix/sched_sets.c: Likewise.
9136         * posix/sched_yield.c: Likewise.
9137         * posix/setgid.c: Likewise.
9138         * posix/setlogin.c: Likewise.
9139         * posix/setpgid.c: Likewise.
9140         * posix/setresgid.c: Likewise.
9141         * posix/setresuid.c: Likewise.
9142         * posix/setsid.c: Likewise.
9143         * posix/setuid.c: Likewise.
9144         * posix/sleep.c: Likewise.
9145         * posix/spawni.c: Likewise.
9146         * posix/sysconf.c: Likewise.
9147         * posix/times.c: Likewise.
9148         * posix/wait.c: Likewise.
9149         * posix/wait3.c: Likewise.
9150         * posix/wait4.c: Likewise.
9151         * posix/waitpid.c: Likewise.
9152         * resolv/gai_sigqueue.c: Likewise.
9153         * resource/getpriority.c: Likewise.
9154         * resource/getrlimit.c: Likewise.
9155         * resource/getrusage.c: Likewise.
9156         * resource/nice.c: Likewise.
9157         * resource/setpriority.c: Likewise.
9158         * resource/setrlimit.c: Likewise.
9159         * resource/ulimit.c: Likewise.
9160         * rt/aio_cancel.c: Likewise.
9161         * rt/aio_fsync.c: Likewise.
9162         * rt/aio_read.c: Likewise.
9163         * rt/aio_sigqueue.c: Likewise.
9164         * rt/aio_suspend.c: Likewise.
9165         * rt/aio_write.c: Likewise.
9166         * rt/clock_getres.c: Likewise.
9167         * rt/clock_gettime.c: Likewise.
9168         * rt/clock_nanosleep.c: Likewise.
9169         * rt/clock_settime.c: Likewise.
9170         * rt/lio_listio.c: Likewise.
9171         * rt/mq_close.c: Likewise.
9172         * rt/mq_getattr.c: Likewise.
9173         * rt/mq_notify.c: Likewise.
9174         * rt/mq_open.c: Likewise.
9175         * rt/mq_receive.c: Likewise.
9176         * rt/mq_send.c: Likewise.
9177         * rt/mq_setattr.c: Likewise.
9178         * rt/mq_timedreceive.c: Likewise.
9179         * rt/mq_timedsend.c: Likewise.
9180         * rt/mq_unlink.c: Likewise.
9181         * rt/shm_open.c: Likewise.
9182         * rt/shm_unlink.c: Likewise.
9183         * rt/timer_create.c: Likewise.
9184         * rt/timer_delete.c: Likewise.
9185         * rt/timer_getoverr.c: Likewise.
9186         * rt/timer_gettime.c: Likewise.
9187         * rt/timer_settime.c: Likewise.
9188         * setjmp/__longjmp.c: Likewise.
9189         * setjmp/setjmp.c: Likewise.
9190         * signal/kill.c: Likewise.
9191         * signal/killpg.c: Likewise.
9192         * signal/raise.c: Likewise.
9193         * signal/sigaction.c: Likewise.
9194         * signal/sigaltstack.c: Likewise.
9195         * signal/sigblock.c: Likewise.
9196         * signal/sigignore.c: Likewise.
9197         * signal/sigintr.c: Likewise.
9198         * signal/signal.c: Likewise.
9199         * signal/sigpause.c: Likewise.
9200         * signal/sigpending.c: Likewise.
9201         * signal/sigqueue.c: Likewise.
9202         * signal/sigreturn.c: Likewise.
9203         * signal/sigset.c: Likewise.
9204         * signal/sigsetmask.c: Likewise.
9205         * signal/sigstack.c: Likewise.
9206         * signal/sigsuspend.c: Likewise.
9207         * signal/sigtimedwait.c: Likewise.
9208         * signal/sigvec.c: Likewise.
9209         * signal/sigwait.c: Likewise.
9210         * signal/sigwaitinfo.c: Likewise.
9211         * signal/sysv_signal.c: Likewise.
9212         * socket/accept.c: Likewise.
9213         * socket/accept4.c: Likewise.
9214         * socket/bind.c: Likewise.
9215         * socket/connect.c: Likewise.
9216         * socket/getpeername.c: Likewise.
9217         * socket/getsockname.c: Likewise.
9218         * socket/getsockopt.c: Likewise.
9219         * socket/isfdtype.c: Likewise.
9220         * socket/listen.c: Likewise.
9221         * socket/recv.c: Likewise.
9222         * socket/recvfrom.c: Likewise.
9223         * socket/recvmsg.c: Likewise.
9224         * socket/send.c: Likewise.
9225         * socket/sendmsg.c: Likewise.
9226         * socket/sendto.c: Likewise.
9227         * socket/setsockopt.c: Likewise.
9228         * socket/shutdown.c: Likewise.
9229         * socket/sockatmark.c: Likewise.
9230         * socket/socket.c: Likewise.
9231         * socket/socketpair.c: Likewise.
9232         * stdio-common/ctermid.c: Likewise.
9233         * stdio-common/cuserid.c: Likewise.
9234         * stdio-common/remove.c: Likewise.
9235         * stdio-common/rename.c: Likewise.
9236         * stdio-common/renameat.c: Likewise.
9237         * stdio-common/tempname.c: Likewise.
9238         * stdlib/getcontext.c: Likewise.
9239         * stdlib/makecontext.c: Likewise.
9240         * stdlib/setcontext.c: Likewise.
9241         * stdlib/swapcontext.c: Likewise.
9242         * stdlib/system.c: Likewise.
9243         * streams/fattach.c: Likewise.
9244         * streams/fdetach.c: Likewise.
9245         * streams/getmsg.c: Likewise.
9246         * streams/getpmsg.c: Likewise.
9247         * streams/putmsg.c: Likewise.
9248         * streams/putpmsg.c: Likewise.
9249         * sysdeps/unix/bsd/getpt.c: Likewise.
9250         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
9251         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
9252         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
9253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
9254         Likewise.
9255         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
9256         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
9257         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
9258         * sysvipc/msgctl.c: Likewise.
9259         * sysvipc/msgget.c: Likewise.
9260         * sysvipc/msgrcv.c: Likewise.
9261         * sysvipc/msgsnd.c: Likewise.
9262         * sysvipc/semctl.c: Likewise.
9263         * sysvipc/semget.c: Likewise.
9264         * sysvipc/semop.c: Likewise.
9265         * sysvipc/semtimedop.c: Likewise.
9266         * sysvipc/shmat.c: Likewise.
9267         * sysvipc/shmctl.c: Likewise.
9268         * sysvipc/shmdt.c: Likewise.
9269         * sysvipc/shmget.c: Likewise.
9270         * termios/tcdrain.c: Likewise.
9271         * termios/tcflow.c: Likewise.
9272         * termios/tcflush.c: Likewise.
9273         * termios/tcgetattr.c: Likewise.
9274         * termios/tcgetpgrp.c: Likewise.
9275         * termios/tcsendbrk.c: Likewise.
9276         * termios/tcsetattr.c: Likewise.
9277         * termios/tcsetpgrp.c: Likewise.
9278         * time/adjtime.c: Likewise.
9279         * time/clock.c: Likewise.
9280         * time/getitimer.c: Likewise.
9281         * time/gettimeofday.c: Likewise.
9282         * time/setitimer.c: Likewise.
9283         * time/settimeofday.c: Likewise.
9284         * time/stime.c: Likewise.
9285         * time/time.c: Likewise.
9286
9287 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
9288
9289         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
9290         /usr/old/bin.
9291
9292         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
9293         instead of spaces.
9294         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
9295
9296 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
9297
9298         [BZ #14796]
9299         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
9300         FE_TONEAREST before applying Dekker multiplication and Knuth
9301         addition.  Clear inexact exceptions and check for exact zero
9302         results afterwards.
9303         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9304         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9305         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9306         * math/libm-test.inc (fma_test): Add more tests.
9307         (fma_test_towardzero): Likewise.
9308         (fma_test_downward): Likewise.
9309         (fma_test_upward): Likewise.
9310         * sysdeps/generic/math_private.h (default_libc_fesetround): New
9311         function.
9312         (libc_fesetround): New macro.
9313         (libc_fesetroundf): Likewise.
9314         (libc_fesetroundl): Likewise.
9315         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
9316         function.
9317         (libc_fesetround_387): Likewise.
9318         (libc_fesetroundf): New macro.
9319         (libc_fesetround): Likewise.
9320         (libc_fesetroundl): Likewise.
9321         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
9322         function.
9323         (libc_fesetroundf): New macro.
9324         (libc_fesetround): Likewise.
9325         (libc_fesetroundl): Likewise.
9326         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
9327         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
9328         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
9329         libm_hidden_ver.
9330         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
9331         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
9332         libm_hidden_def.
9333         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
9334         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
9335         libm_hidden_ver.
9336         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
9337         libm_hidden_def.
9338
9339         [BZ #3439]
9340         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
9341         integer constant usable in #if and use that to give value to enum
9342         constant.
9343         (FE_DIVBYZERO): Likewise.
9344         (FE_UNDERFLOW): Likewise.
9345         (FE_OVERFLOW): Likewise.
9346         (FE_INVALID): Likewise.
9347         (FE_INVALID_SNAN): Likewise.
9348         (FE_INVALID_ISI): Likewise.
9349         (FE_INVALID_IDI): Likewise.
9350         (FE_INVALID_ZDZ): Likewise.
9351         (FE_INVALID_IMZ): Likewise.
9352         (FE_INVALID_COMPARE): Likewise.
9353         (FE_INVALID_SOFTWARE): Likewise.
9354         (FE_INVALID_SQRT): Likewise.
9355         (FE_INVALID_INTEGER_CONVERSION): Likewise.
9356         (FE_TONEAREST): Likewise.
9357         (FE_TOWARDZERO): Likewise.
9358         (FE_UPWARD): Likewise.
9359         (FE_DOWNWARD): Likewise.
9360         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
9361         (FE_DIVBYZERO): Likewise.
9362         (FE_OVERFLOW): Likewise.
9363         (FE_UNDERFLOW): Likewise.
9364         (FE_INEXACT): Likewise.
9365         (FE_TONEAREST): Likewise.
9366         (FE_DOWNWARD): Likewise.
9367         (FE_UPWARD): Likewise.
9368         (FE_TOWARDZERO): Likewise.
9369         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
9370         (FE_UNDERFLOW): Likewise.
9371         (FE_OVERFLOW): Likewise.
9372         (FE_DIVBYZERO): Likewise.
9373         (FE_INVALID): Likewise.
9374         (FE_TONEAREST): Likewise.
9375         (FE_TOWARDZERO): Likewise.
9376         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
9377         (FE_OVERFLOW): Likewise.
9378         (FE_UNDERFLOW): Likewise.
9379         (FE_DIVBYZERO): Likewise.
9380         (FE_INEXACT): Likewise.
9381         (FE_TONEAREST): Likewise.
9382         (FE_TOWARDZERO): Likewise.
9383         (FE_UPWARD): Likewise.
9384         (FE_DOWNWARD): Likewise.
9385         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
9386         (FE_DIVBYZERO): Likewise.
9387         (FE_OVERFLOW): Likewise.
9388         (FE_UNDERFLOW): Likewise.
9389         (FE_INEXACT): Likewise.
9390         (FE_TONEAREST): Likewise.
9391         (FE_DOWNWARD): Likewise.
9392         (FE_UPWARD): Likewise.
9393         (FE_TOWARDZERO): Likewise.
9394
9395 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
9396
9397         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
9398
9399 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
9400
9401         * scripts/cross-test-ssh.sh (command): Use newlines to separate
9402         commands.  Quote $PWD.
9403         (blacklist_exports): Don't use remove_newlines.  Replace "declare
9404         -x" by "export".
9405         (remove_newlines): Remove.
9406
9407 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
9408
9409         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
9410         * stdlib/stdlib.h (atof): Moved to ...
9411         * include/bits/stdlib-float.h: Here.  New file.
9412         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
9413         * stdlib/bits/stdlib-float.h: New file.
9414         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
9415         -mno-sse -mno-mmx.
9416         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
9417         <xmmintrin.h>.
9418
9419 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
9420
9421         * conform/conformtest.pl (@headers): Add fenv.h.
9422         * conform/data/fenv.h-data: New file.
9423         * include/fenv.h [_ISOMAC]: Disable all contents of file except
9424         include of <math/fenv.h>.
9425
9426         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
9427         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
9428         && !UNIX98].  Enables tests for XOPEN2K8.
9429         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
9430         POSIX2008]: Likewise.
9431
9432         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
9433         (struct rusage): Do not expect type or its members.
9434
9435         [BZ #3439]
9436         * math/math.h (FP_NAN): Define macro to integer constant usable in
9437         #if and use that to give value to enum constant.
9438         (FP_INFINITE): Likewise.
9439         (FP_ZERO): Likewise.
9440         (FP_SUBNORMAL): Likewise.
9441         (FP_NORMAL): Likewise.
9442
9443 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
9444
9445         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
9446         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
9447         arguments.
9448
9449 2012-11-02  Roland McGrath  <roland@hack.frob.com>
9450
9451         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
9452         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
9453         autoconf-time if not.
9454         * configure.in: Remove AC_PREREQ.
9455
9456 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9457
9458         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
9459         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
9460         of the internal implementation.
9461
9462 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
9463
9464         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
9465         except include of <misc/sys/syslog.h>.
9466
9467 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
9468
9469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
9470         function returns with a NULL context exit with zero.
9471
9472 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9473
9474         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
9475
9476 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
9477
9478         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
9479         (run_program_cmd): This.
9480         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
9481         (tst_langinfo): New variable.  Use it.
9482
9483 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
9484
9485         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
9486         floating point opcodes.
9487
9488 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
9489
9490         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
9491         variable.
9492
9493         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
9494
9495         * sysdeps/mach/hurd/powerpc: Remove directory.
9496         * sysdeps/mach/powerpc: Likewise.
9497
9498 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
9499
9500         * scripts/check-local-headers.sh: Ignore c++ headers.
9501
9502 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
9503
9504         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
9505         __libc_cleanup_region_start argument.
9506
9507 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
9508
9509         [BZ #14784]
9510         [BZ #14785]
9511         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
9512         x * y using scaling, not as x * y + z.
9513         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9514         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9515         * math/libm-test.inc (fma_test): Add more tests.
9516         (fma_test_towardzero): Likewise.
9517         (fma_test_downward): Likewise.
9518         (fma_test_upward): Likewise.
9519
9520 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
9521
9522         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
9523
9524 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
9525
9526         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
9527         New variable.
9528
9529 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
9530
9531         * rt/tst-shm.c (worker): Correct checking for mmap failure.
9532
9533 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
9534
9535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9536         Fix sort order.
9537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9538         Likewise.
9539
9540 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9541
9542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9543         Fix the order of the list for glibc 2.17.
9544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9545         Likewise.
9546
9547 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
9548
9549         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9550
9551 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
9552
9553         [BZ #14610]
9554         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
9555         for low part of x being zero before using __atanl (y).
9556         * math/libm-test.inc (atan2_test): Add another test.
9557
9558         * manual/install.texi (Configuring and compiling): Document
9559         general use of test-wrapper and test-wrapper-env.
9560         * INSTALL: Regenerated.
9561
9562         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
9563         (__fma): Do not extract and scale down low bits on after-rounding
9564         systems when result rounded to normal precision would have normal
9565         exponent.
9566         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
9567         (__fmal): Do not extract and scale down low bits on after-rounding
9568         systems when result rounded to normal precision would have normal
9569         exponent.
9570         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
9571         (__fmal): Do not extract and scale down low bits on after-rounding
9572         systems when result rounded to normal precision would have normal
9573         exponent.
9574         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
9575         macro.
9576         (fma_test): Add more tests.
9577         (fma_test_towardzero): Likewise.
9578         (fma_test_downward): Likewise.
9579         (fma_test_upward): Likewise.
9580
9581 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
9582
9583         * sysdeps/i386/tininess.h: Renamed to ...
9584         * sysdeps/x86/tininess.h: This.
9585         * sysdeps/x86_64/tininess.h: Removed.
9586
9587 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
9588
9589         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
9590         input.  Use $(build-program-cmd).
9591         ($(objpfx)tst-array1-static.out): Likewise.
9592         ($(objpfx)tst-array2.out): Likewise.
9593         ($(objpfx)tst-array3.out): Likewise.
9594         ($(objpfx)tst-array4.out): Likewise.
9595         ($(objpfx)tst-array5.out): Likewise.
9596         ($(objpfx)tst-array5-static.out): Likewise.
9597
9598 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
9599
9600         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
9601         if defined.
9602
9603         * nss/nsswitch.h (nss_interface_function): Provide new
9604         macro for use with NSS functions.
9605         * grp/initgroups.c: Use new macro.
9606         * nss/getXXbyYY.c: Likewise.
9607         * nss/getXXbyYY_r.c: Likewise.
9608         * nss/getXXent.c: Likewise.
9609         * nss/getXXent_r.c: Likewise.
9610         * sysdeps/posix/getaddrinfo.c: Likewise.
9611
9612 2012-10-30  Andreas Jaeger  <aj@suse.de>
9613
9614         * po/ru.po: Update Russion translation from translation project.
9615
9616 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
9617
9618         [BZ #14152]
9619         [BZ #14783]
9620         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
9621         result and shift together with sticky bit instead of replicating
9622         round-to-nearest rounding.
9623         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9624         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9625         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
9626         missing underflow exceptions.
9627         (fma_test_towardzero): Add more tests.
9628         (fma_test_downward): Likewise.
9629         (fma_test_upward): Likewise.
9630
9631         [BZ #14047]
9632         * sysdeps/generic/tininess.h: New file.
9633         * sysdeps/i386/tininess.h: Likewise.
9634         * sysdeps/sh/tininess.h: Likewise.
9635         * sysdeps/x86_64/tininess.h: Likewise.
9636         * stdlib/tst-strtod-underflow.c: Likewise.
9637         * stdlib/tst-tininess.c: Likewise.
9638         * stdlib/strtod_l.c: Include <tininess.h>.
9639         (round_and_return): Do not set errno for exact underflow cases.
9640         Force an underflow exception when setting errno for underflow.
9641         Determine underflow based on rounding to normal precision if
9642         TININESS_AFTER_ROUNDING.
9643         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
9644         ERANGE for exact underflow cases.
9645         * stdlib/Makefile (tests): Add tst-tininess and
9646         tst-strtod-underflow.
9647         ($(objpfx)tst-tininess): Use $(link-libm).
9648         ($(objpfx)tst-strtod-underflow): Likewise.
9649
9650 2012-10-30  Andreas Jaeger  <aj@suse.de>
9651
9652         [BZ#14767]
9653         * elf/Makefile (tests): Remove conditional for have-initfini-array
9654         since this is now always required and the variable does not exist
9655         anymore.
9656         (tests-static): Likewise.
9657         (modules-names): Likewise.
9658
9659         * po/eo.po: Add Esperanto translation from translation project.
9660
9661         * elf/tst-array1.c (fini_array): Make writeable so that it can be
9662         merged with constructor/destructor.
9663         (init_array): Likewise.
9664         * elf/tst-array2dep.c (fini_array): Likewise.
9665         (init_array): Likewise.
9666
9667 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
9668
9669         * manual/message.texi: Delete @cartouche tags.
9670
9671 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
9672
9673         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
9674         EOPNOTSUPP.
9675         * sysdeps/mach/hurd/fsync.c: Likewise.
9676
9677         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
9678         [_POSIX_REALTIME_SIGNALS]: Change condition to
9679         [_POSIX_REALTIME_SIGNALS > 0].
9680
9681 2012-10-27  Andreas Jaeger  <aj@suse.de>
9682
9683         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
9684         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
9685         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
9686         [__WORDSIZE != 64]: Likewise.
9687
9688 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
9689
9690         *  iconvdata/tst-table.sh: Remove ${SHELL}.
9691         *  iconvdata/tst-tables.sh: Likewise.
9692
9693 2012-10-25  David S. Miller  <davem@davemloft.net>
9694
9695         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9696         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
9697         of strtoull.
9698
9699         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
9700         ifunc-impl-list.c
9701         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9702         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
9703         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
9704         file.
9705
9706 2012-10-25  Roland McGrath  <roland@hack.frob.com>
9707
9708         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9709         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
9710         __getdirentries.
9711
9712 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
9713             Jim Blandy  <jimb@codesourcery.com>
9714
9715         * scripts/cross-test-ssh.sh: New file.
9716         * manual/install.texi (Configuring and compiling): Document use of
9717         cross-test-ssh.sh.
9718         * INSTALL: Regenerated.
9719
9720 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
9721
9722         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
9723         EOPNOTSUPP.
9724
9725 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
9726
9727         * Makeconfig (run-program-prefix): Fix comment.
9728
9729 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
9730             Jim Blandy  <jimb@codesourcery.com>
9731
9732         * Makeconfig (test-wrapper): New variable,
9733         (test-wrapper-env): Likewise.
9734         [$(cross-compiling) = yes && $(test-wrapper) != ""]
9735         (run-built-tests): Define to yes.
9736         (run-program-prefix): Use $(test-wrapper).
9737         (built-program-cmd): Likewise.
9738         * Rules (make-test-out): Use $(test-wrapper-env) and
9739         $(host-built-program-cmd).
9740         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
9741         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
9742         tst-pathopt.sh.
9743         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
9744         $(test-wrapper-env) to tst-rtld-load-self.sh.
9745         ($(objpfx)order2.out): Use $(test-wrapper).
9746         ($(objpfx)tst-initorder.out): Likewise.
9747         ($(objpfx)tst-initorder2.out): Likewise.
9748         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
9749         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
9750         (test_wrapper_env): New variable.  Use it to run ld.so.
9751         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
9752         Use it to run ld.so.
9753         (test_wrapper_env): Likewise.
9754         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
9755         $(test-wrapper) to run-iconv-test.sh.
9756         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
9757         (ICONV): Use $test_wrapper.
9758         * posix/Makefile ($(objpfx)globtest.out): Pass
9759         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
9760         globtest.sh, not $(run-program-prefix).
9761         * posix/globtest.sh (run_via_rtld_prefix): New variable.
9762         (test_wrapper): Likewise.
9763         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
9764         set together with run_via_rtld_prefix.
9765         (run_program_prefix): Define in terms of test_wrapper and
9766         run_via_rtld_prefix.
9767
9768 2012-10-24  Roland McGrath  <roland@hack.frob.com>
9769
9770         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
9771         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
9772         Targets removed.
9773
9774         [BZ #14743]
9775         * include/time.h: Remove librt_hidden_proto (clock_gettime).
9776         Declare __clock_getres, __clock_gettime, __clock_settime,
9777         __clock_nanosleep, and __clock_getcpuclockid.
9778         * rt/clock_gettime.c: Define __clock_gettime as an alias.
9779         Remove librt_hidden_def (clock_gettime).
9780         * sysdeps/unix/clock_gettime.c: Likewise.
9781         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
9782         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
9783         * rt/clock_getres.c: Define __clock_getres as an alias.
9784         * sysdeps/posix/clock_getres.c: Likewise.
9785         * rt/clock_settime.c: Define __clock_settime as an alias.
9786         * sysdeps/unix/clock_settime.c: Likewise.
9787         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
9788         * sysdeps/unix/clock_nanosleep.c: Likewise.
9789         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
9790         * rt/clock-compat.c: New file.
9791         * rt/Makefile (librt-routines): Add clock-compat and move
9792         $(clock-routines) to ...
9793         (routines): ... here, new variable.
9794         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
9795         Don't add get_clockfreq here.
9796         * rt/Versions (libc: GLIBC_2.17): New version set.
9797         Add clock_* symbols here.
9798         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
9799         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
9800         (GLIBC_2.17): Add clock_* symbols.
9801         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
9802         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
9803         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9805         Likewise.
9806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9807         Likewise.
9808         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9809         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
9810         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
9811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
9812         * NEWS: Mention the move.
9813
9814         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
9815         Use __open, __read, __close rather than their public counterparts.
9816         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9817         (__get_clockfreq_via_cpuinfo): Likewise.
9818         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
9819         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
9820
9821         * config.h.in (HAVE_IFUNC): New #undef.
9822         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
9823         was successful.
9824         * configure: Regenerated.
9825
9826 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
9827
9828         * configure.in: Move READELF check to start of file.
9829         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
9830         libc_cv_asm_gnu_indirect_function in the process.
9831         * configure: Regenerated.
9832
9833 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
9834
9835         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
9836         send the output to /dev/null.
9837         (libc_cv_cc_with_libunwind): Likewise.
9838         (libc_cv_as_noexecstack): Likewise.
9839         * configure: Regenerate.
9840
9841 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
9842
9843         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
9844
9845         * posix/globtest.sh (TMPDIR): Do not set.
9846         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
9847         (testout): Likewise.
9848
9849 2012-10-24  Andreas Jaeger  <aj@suse.de>
9850
9851         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
9852         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
9853         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
9854         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
9855         posix_fadvise64, posix_fallocate64.
9856
9857         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
9858         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
9859         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
9860         Likewise.
9861         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
9862         Likewise.
9863         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
9864
9865         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
9866         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
9867         <bits/fcntl-linux.h>.
9868         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
9869
9870         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
9871         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
9872         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
9873         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
9874         [__WORDSIZE != 64]: Likewise.
9875
9876 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
9877
9878         * Makeconfig (run-built-tests): New variable.
9879         * Rules [$(cross-compiling) = yes]: Change condition to
9880         [$(run-built-tests) = no].
9881         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
9882         to [$(run-built-tests) = yes].
9883         * elf/Makefile [$(cross-compiling) = no]: Likewise
9884         * grp/Makefile [$(cross-compiling) = no]: Likewise.
9885         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
9886         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
9887         * intl/Makefile [$(cross-compiling) = no]: Likewise.
9888         * io/Makefile [$(cross-compiling) = no]: Likewise.
9889         * libio/Makefile [$(cross-compiling) = no]: Likewise.
9890         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
9891         * misc/Makefile [$(cross-compiling) = no]: Likewise.
9892         * posix/Makefile [$(cross-compiling) = no]: Likewise.
9893         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
9894         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
9895         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
9896         * string/Makefile [$(cross-compiling) = no]: Likewise.
9897
9898         * posix/Makefile ($(objpfx)globtest.out): Pass
9899         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
9900         $(rtld-installed-name).
9901         * posix/globtest.sh (elf_objpfx): Remove variable.
9902         (rtld_installed_name): Likewise.
9903         (library_path): Likewise.
9904         (run_program_prefix): New variable.  Use for running globtest
9905         binary.
9906
9907 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
9908             Joseph Myers  <joseph@codesourcery.com>
9909
9910         * Makeconfig (host-built-program-cmd): New variable.
9911         * elf/Makefile (tst-stackguard1-ARGS): Use
9912         $(host-built-program-cmd).
9913         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
9914         (tst-spawn-ARGS): Likewise.
9915         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
9916
9917 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
9918             Jim Blandy  <jimb@codesourcery.com>
9919
9920         * Makeconfig (run-via-rtld-prefix): New variable.
9921         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
9922         (built-program-cmd): Likewise.
9923
9924 2012-10-22  Andreas Jaeger  <aj@suse.de>
9925
9926         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
9927         __O_RSYNC if it exists, otherwise to O_SYNC.
9928
9929 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
9930             Joseph Myers  <joseph@codesourcery.com>
9931
9932         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
9933         /dev/null.
9934         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
9935         from /dev/null
9936         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
9937         /dev/null.
9938
9939 2012-10-22  Andreas Jaeger  <aj@suse.de>
9940
9941         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
9942         Define always.
9943         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
9944
9945         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9946         bits/fcntl-linux.h.
9947
9948         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
9949         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
9950
9951         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
9952         to __O_LARGEFILE.
9953         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
9954         to __O_LARGEFILE.
9955
9956 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
9957             Joseph Myers  <joseph@codesourcery.com>
9958
9959         * config.make.in (NM): New variable.
9960
9961 2012-10-21  Andreas Jaeger  <aj@suse.de>
9962
9963         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
9964         definitions and declarations that are provided by
9965         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
9966
9967 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9968
9969         [BZ #14683]
9970         * elf/Makefile (tests-static): Add tst-leaks1-static.
9971         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
9972         ($(objpfx)tst-leaks1-static): New rule.
9973         ($(objpfx)tst-leaks1-static-mem): Likewise.
9974         (tst-leaks1-static-ENV): New macro.
9975         * elf/dl-open.c (dl_open_worker): Check the main application
9976         only if SHARED is defined.
9977         * elf/tst-leaks1-static.c: New file.
9978
9979 2012-10-20  Andreas Jaeger  <aj@suse.de>
9980
9981         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
9982         generic values for Linux.
9983         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
9984         and declarations that are provided by <bits/fcntl-linux.h> and
9985         include <bits/fcntl-linux.h>.
9986         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9987         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9988
9989 2012-10-20  Roland McGrath  <roland@hack.frob.com>
9990
9991         * io/fcntl.h: Move include of <bits/types.h> to the top and
9992         include it unconditionally.
9993
9994 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9995
9996         * wcsmbs/Makefile (tests-ifunc): New variable.
9997         (tests): Add $(tests-ifunc).
9998         * wcsmbs/test-wcschr-ifunc.c: New file.
9999         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
10000         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
10001         * wcsmbs/test-wcslen-ifunc.c: Likewise.
10002         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
10003         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
10004
10005         * string/Makefile (tests-ifunc): New variable.
10006         (tests): Add $(tests-ifunc).
10007         * string/test-memccpy.c (TEST_NAME): New macro.
10008         * string/test-memchr.c (TEST_NAME): Likewise.
10009         * string/test-memcmp.c (TEST_NAME): Likewise.
10010         * string/test-memcpy.c (TEST_NAME): Likewise.
10011         * string/test-memmem.c (TEST_NAME): Likewise.
10012         * string/test-memmove.c (TEST_NAME): Likewise.
10013         * string/test-memset.c (TEST_NAME): Likewise.
10014         * string/test-rawmemchr.c (TEST_NAME): Likewise.
10015         * string/test-stpcpy.c (TEST_NAME): Likewise.
10016         * string/test-stpncpy.c (TEST_NAME): Likewise.
10017         * string/test-strcasecmp.c (TEST_NAME): Likewise.
10018         * string/test-strcasestr.c (TEST_NAME): Likewise.
10019         * string/test-strcat.c (TEST_NAME): Likewise.
10020         * string/test-strchr.c (TEST_NAME): Likewise.
10021         * string/test-strcmp.c(TEST_NAME): Likewise.
10022         * string/test-strcpy.c (TEST_NAME): Likewise.
10023         * string/test-strcspn.c (TEST_NAME): Likewise.
10024         * string/test-strlen.c (TEST_NAME): Likewise.
10025         * string/test-strncasecmp.c (TEST_NAME): Likewise.
10026         * string/test-strncmp.c (TEST_NAME): Likewise.
10027         * string/test-strncpy.c (TEST_NAME): Likewise.
10028         * string/test-strnlen.c (TEST_NAME): Likewise.
10029         * string/test-strpbrk.c (TEST_NAME): Likewise.
10030         * string/test-strrchr.c (TEST_NAME): Likewise.
10031         * string/test-strspn.c (TEST_NAME): Likewise.
10032         * string/test-strstr.c (TEST_NAME): Likewise.
10033         * string/test-bcopy-ifunc.c: New file.
10034         * string/test-bzero-ifunc.c: Likewise.
10035         * string/test-memccpy-ifunc.c: Likewise.
10036         * string/test-memchr-ifunc.c: Likewise.
10037         * string/test-memcmp-ifunc.c: Likewise.
10038         * string/test-memcpy-ifunc.c: Likewise.
10039         * string/test-memmem-ifunc.c: Likewise.
10040         * string/test-memmove-ifunc.c: Likewise.
10041         * string/test-mempcpy-ifunc.c: Likewise.
10042         * string/test-memset-ifunc.c: Likewise.
10043         * string/test-rawmemchr-ifunc.c: Likewise.
10044         * string/test-stpcpy-ifunc.c: Likewise.
10045         * string/test-stpncpy-ifunc.c: Likewise.
10046         * string/test-strcasecmp-ifunc.c: Likewise.
10047         * string/test-strcasestr-ifunc.c: Likewise.
10048         * string/test-strcat-ifunc.c: Likewise.
10049         * string/test-strchr-ifunc.c: Likewise.
10050         * string/test-strchrnul-ifunc.c: Likewise.
10051         * string/test-strcmp-ifunc.c: Likewise.
10052         * string/test-strcpy-ifunc.c: Likewise.
10053         * string/test-strcspn-ifunc.c: Likewise.
10054         * string/test-strlen-ifunc.c: Likewise.
10055         * string/test-strncasecmp-ifunc.c: Likewise.
10056         * string/test-strncat-ifunc.c: Likewise.
10057         * string/test-strncmp-ifunc.c: Likewise.
10058         * string/test-strncpy-ifunc.c: Likewise.
10059         * string/test-strnlen-ifunc.c: Likewise.
10060         * string/test-strpbrk-ifunc.c: Likewise.
10061         * string/test-strrchr-ifunc.c: Likewise.
10062         * string/test-strspn-ifunc.c: Likewise.
10063         * string/test-strstr-ifunc.c: Likewise.
10064
10065         * debug/Makefile (tests-ifunc): New variable.
10066         (tests): Add $(tests-ifunc).
10067         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
10068         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
10069         * debug/test-stpcpy_chk-ifunc.c: New file.
10070         * debug/test-strcpy_chk-ifunc.c: Likewise.
10071
10072 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
10073
10074         [BZ #13601]
10075         * elf/dl-load.c (open_verify): Retry read if the entire ELF
10076         header is not read in.
10077
10078 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
10079
10080         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
10081         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
10082         directly.  Pass built executable to script as
10083         $(built-program-cmd).
10084         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
10085         $testprogram without using LD_LIBRARY_PATH and $ldso.
10086
10087         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
10088         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
10089         $(rtld-installed-name).
10090         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
10091         (rtld_installed_name): Likewise.
10092         (library_path): Likewise.
10093         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
10094         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
10095         $(run-program-prefix) to tst-tables.sh.
10096         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
10097         it to run tst-table-from and tst-table-to.
10098         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
10099         Pass it to tst-table.sh.
10100         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
10101         $(run-program-prefix) to tst-gettext.sh.
10102         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
10103         tst-translit.sh.
10104         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
10105         tst-gettext2.sh.
10106         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
10107         to run tst-gettext.
10108         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
10109         to run tst-gettext2.
10110         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
10111         to run tst-translit.
10112         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
10113         $(run-program-prefix) to tst-mtrace.sh.
10114         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
10115         to run tst-mtrace.
10116         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
10117         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
10118         $(rtld-installed-name).
10119         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
10120         (rtld_installed_name): Likewise.
10121         (run_program_prefix): New variable.  Use it to run wordexp-test.
10122
10123         * Makeconfig (ARCH): Remove all definitions.
10124         (machine): Likewise.
10125         [ARCH]: Remove conditional code.
10126         [!objdir]: Give error.
10127         [!objdir] (objpfx): Remove.
10128         [!objdir] (common-objpfx): Likewise.
10129         [!objdir] (common-objdir): Likewise.
10130         * configure.in (config_makefile): Remove.  Hardcode Makefile in
10131         AC_CONFIG_FILES call.
10132         * configure: Regenerated.
10133
10134         [BZ #13888]
10135         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
10136         or TMPDIR.
10137         (testout): Likewise.
10138
10139         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
10140         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
10141         $(rtld-installed-name).
10142         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
10143         (rtld_installed_name): Likwise.
10144         (runit): Remove function.
10145         (run_getconf): New variable,  Use it for running getconf binary.
10146
10147 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
10148
10149         [BZ #14716]
10150         * string/test-memmem.c (check_result): New function.
10151         (do_one_test): Use it.
10152         (check1): New function.
10153         (test_main): Use it.
10154
10155 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
10156
10157         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
10158
10159 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
10160
10161         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
10162         (_G_LSEEK64): Likewise.
10163         (_G_MMAP64): Likewise.
10164         (_G_FSTAT64): Likewise.
10165         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
10166         (_G_LSEEK64): Likewise.
10167         (_G_MMAP64): Likewise.
10168         (_G_FSTAT64): Likewise.
10169         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
10170         unconditional.  Call __mmap64 directly.
10171         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
10172         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
10173         __lseek64 directly.
10174         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
10175         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
10176         __mmap64 directly.
10177         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
10178         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
10179         __lseek64 directly.
10180         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
10181         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
10182         __lseek64 directly.
10183         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
10184         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
10185         __lseek64 directly.
10186         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
10187         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
10188         __fxstat64 directly.
10189         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
10190         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
10191         unconditional.
10192         (freopen64) [!_G_OPEN64]: Remove conditional code.
10193         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
10194         unconditional.
10195         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
10196         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
10197         unconditional.
10198         (ftello64) [!_G_LSEEK64]: Remove conditional code.
10199         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
10200         unconditional.
10201         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
10202         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
10203         unconditional.
10204         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
10205         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
10206         unconditional.
10207         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
10208         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
10209         unconditional.
10210         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
10211         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
10212         unconditional.
10213         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
10214
10215 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
10216
10217         [BZ #12140]
10218         * manual/memory.texi (Malloc Tunable Parameters): Add note
10219         about free list pointers overwriting some perturb bytes.
10220         Wording suggested by Roland McGrath.
10221
10222 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
10223
10224         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
10225         (lgamma_test): Likewise.
10226         (tgamma_test): Likewise.
10227
10228 2012-10-16  Florian Weimer  <fweimer@redhat.com>
10229
10230         [BZ #14700]
10231         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
10232         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
10233
10234 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
10235
10236         * NEWS: Mention BZ #14716.
10237         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
10238         when removing AVAILABLE1_USES_J macro.
10239
10240 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10241
10242         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
10243         (__bswap_64): __uint64_t for unsigned 64-bit int.
10244
10245 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
10246
10247         * include/string.h (memmem): Declare libc hidden alias.
10248         * string/memmem.c (memmem): Define libc hidden alias.
10249         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
10250         __read, __close instead of open, read, close.
10251
10252 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
10253
10254         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
10255         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
10256         global and hidden.
10257         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
10258         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
10259         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
10260         Likewise.
10261         (__rawmemchr_sse2): Likewise.
10262         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
10263         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
10264         (__strchr_sse2): Likewise.
10265         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
10266         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
10267         (__strcasecmp_sse2): Likewise.
10268         (__strncasecmp_sse2): Likewise.
10269         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
10270         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
10271         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
10272         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
10273         (__strrchr_sse2): Likewise.
10274         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
10275         ifunc-impl-list.c.
10276         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
10277         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
10278         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
10279         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
10280         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
10281         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
10282         * sysdeps/x86_64/multiarch/memset.S: Likewise.
10283         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
10284         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
10285         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
10286         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
10287         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
10288         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
10289         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
10290         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
10291         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
10292         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
10293         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
10294         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
10295         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
10296         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
10297         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
10298         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
10299         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
10300         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
10301         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
10302         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
10303         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10304         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
10305         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
10306
10307         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
10308         global and hidden.
10309         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
10310         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
10311         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
10312         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
10313         Likewise.
10314         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
10315         Likewise.
10316         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
10317         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
10318         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
10319         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
10320         ifunc-impl-list.c.
10321         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10322         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10323         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10324         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10325         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10326         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10327         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10328         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10329         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10330         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10331         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10332         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10333         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10334         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
10335         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
10336         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10337         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
10338         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
10339         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10340         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
10341         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10342         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10343         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10344         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10345         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10346         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10347         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10348         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10349         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10350         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10351         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10352         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10353         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10354         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
10355         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10356         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10357         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10358         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10359         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10360         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10361         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
10362
10363         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
10364         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
10365         * include/ifunc-impl-list.h: New file.
10366         * misc/ifunc-impl-list.c: Likewise.
10367         * misc/Makefile (routines): Add ifunc-impl-list.
10368         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
10369         * string/test-string.h: Include <ifunc-impl-list.h>.
10370         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
10371         impl_array): New variables.
10372         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
10373         are defined.
10374         (test_init): Call __libc_ifunc_impl_list to initialize
10375         func_list if TEST_IFUNC and TEST_NAME are defined.
10376
10377         * string/Makefile (strop-tests): Add bcopy and bzero.
10378         * string/test-bcopy.c: New file.
10379         * string/test-bzero.c: Likewise.
10380         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
10381         defined.
10382         * string/test-memset.c: Support bzero test if TEST_BZERO is
10383         defined.
10384         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
10385         __libc_memmove.
10386         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
10387         __libc_memset.
10388         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
10389         of memset.
10390
10391 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
10392
10393         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
10394         * configure: Regenerated.
10395
10396         * Makeconfig (+link-static-before-libc): Don't include
10397         $(link-static-libc).
10398
10399         * libio/libio.h (_IO_pos_t): Remove.
10400
10401 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
10402
10403         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
10404         McGrath.
10405
10406 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
10407
10408         * crypt/crypt-entry.c: Include fips-private.h.
10409         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
10410         * crypt/md5c-test.c (main): Tolerate disabled MD5.
10411         * sysdeps/unix/sysv/linux/fips-private.h: New file.
10412         * sysdeps/generic/fips-private.h: New file, dummy fallback.
10413
10414 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
10415
10416         * crypt/crypt-private.h: Include stdbool.h.
10417         (_ufc_setup_salt_r): Return bool.
10418         * crypt/crypt-entry.c: Include errno.h.
10419         (__crypt_r): Return NULL with EINVAL for bad salt.
10420         * crypt/crypt_util.c (bad_for_salt): New.
10421         (_ufc_setup_salt_r): Check that salt is long enough and within
10422         the specified alphabet.
10423         * crypt/badsalttest.c: New file.
10424         * crypt/Makefile (tests): Add it.
10425         ($(objpfx)badsalttest): New.
10426
10427 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
10428
10429         * NEWS: Add entry for BZ #14602.
10430
10431 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
10432
10433         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
10434         type-generic.
10435         * math/libm-test.inc: Update comment listing what functions and
10436         macros are tested.
10437         (isgreater_test): New function.
10438         (isgreaterequal_test): Likewise.
10439         (isless_test): Likewise.
10440         (islessequal_test): Likewise.
10441         (islessgreater_test): Likewise.
10442         (isunordered_test): Likewise.
10443         (main): Call the new functions.
10444
10445 2012-10-09  Roland McGrath  <roland@hack.frob.com>
10446
10447         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
10448         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
10449         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
10450         * sysdeps/i386/configure: Regenerated.
10451         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
10452         * sysdeps/mach/configure: Regenerated.
10453         * sysdeps/mach/hurd/configure: Regenerated.
10454         * sysdeps/powerpc/configure: Regenerated.
10455         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10456         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10457         * sysdeps/s390/s390-32/configure: Regenerated.
10458         * sysdeps/s390/s390-64/configure: Regenerated.
10459         * sysdeps/sh/configure: Regenerated.
10460         * sysdeps/sparc/configure: Regenerated.
10461         * sysdeps/unix/sysv/linux/configure: Regenerated.
10462         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
10463         * sysdeps/x86_64/configure: Regenerated.
10464
10465         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
10466         defined.  Don't check if MAP is NULL.
10467
10468 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
10469
10470         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
10471         (_G_stat64): Likewise.
10472         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
10473         (_G_stat64): Likewise.
10474         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
10475         instead of struct _G_stat64.
10476         * libio/fileops.c (mmap_remap_check): Likewise.
10477         (decide_maybe_mmap): Likewise.
10478         (_IO_new_file_seekoff): Likewise.
10479         (_IO_file_stat): Likewise.
10480         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
10481         _G_off64_t.
10482         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
10483         instead of struct _G_stat64.
10484         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
10485
10486 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
10487
10488         [BZ #14602]
10489         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
10490         Replace with ...
10491         (CHECK_EOL): New macro.
10492         (two_way_short_needle): Check beginning of haystack for EOL.  Use
10493         CHECK_EOL.
10494         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
10495         Replace with CHECK_EOL.
10496         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
10497         Replace with CHECK_EOL.
10498
10499 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
10500
10501         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
10502         type-generic.
10503         * math/libm-test.inc: Update comment listing what functions and
10504         macros are tested.
10505         (finite_test): New function.
10506         (isinf_test): Likewise.
10507         (isnan_test): Likewise.
10508         (fpclassify_test): Test subnormal input.
10509         (isfinite_test): Likewise.
10510         (isnormal_test): Likewise.
10511         (main): Call the new functions.
10512
10513 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
10514
10515         [BZ #14660]
10516         * Makerules (%.dynsym): Force C locale when running
10517         $(OBJDUMP) --dynamic-syms.
10518
10519 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
10520
10521         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
10522         <stdint.h>.
10523
10524 2012-10-06  David S. Miller  <davem@davemloft.net>
10525
10526         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
10527         upper 32-bits of the length value in %o2 since we use branch-on-register
10528         tests which consider the entire 64-bit register.
10529
10530 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
10531
10532         * string/test-strstr.c (check2): Add a test for page boundary.
10533
10534 2012-10-05  David S. Miller  <davem@davemloft.net>
10535
10536         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
10537         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
10538         file.
10539         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
10540         sysdep_routines.
10541         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
10542         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
10543         and bzero when HWCAP_SPARC_CRYPTO is present.
10544
10545 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
10546
10547         [BZ #14602]
10548         * string/test-strstr.c (check2): New function.
10549         (test_main): Call check2.
10550
10551         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
10552         and bug-strchr1.
10553         * string/bug-strcasestr1.c (do_test): Moved to ...
10554         * string/test-strcasestr.c (check1): Here.  New function.
10555         (do_one_test): Break out result checking code into ...
10556         (check_result): This.  New function.
10557         (do_one_test): Call check_result.
10558         (test_main): Call check1.
10559         * string/bug-strchr1.c (do_test): Moved to ...
10560         * string/test-strchr.c (check1): Here.  New function.
10561         (do_one_test): Break out result checking code into ...
10562         (check_result): This.  New function.
10563         (do_one_test): Call check_result.
10564         (test_main): Call check1.
10565         * string/bug-strstr1.c (main): Moved to ...
10566         * string/test-strstr.c (check1): Here.  New function.
10567         (do_one_test): Break out result checking code into ...
10568         (check_result): This.  New function.
10569         (do_one_test): Call check_result.
10570         (test_main): Call check1.
10571         * string/bug-strcasestr1.c: Removed.
10572         * string/bug-strchr1.c: Likewise.
10573         * string/bug-strstr1.c: Likewise.
10574
10575         * elf/Makefile (dl-routines): Add hwcaps.
10576         * elf/dl-support.c (_dl_important_hwcaps): Removed.
10577         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
10578         (_dl_important_hwcaps): Moved to ...
10579         * elf/dl-hwcaps.c: Here.  New file.
10580         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
10581
10582         [BZ #14557]
10583         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
10584         if IS_IN_rtld isn't defined.
10585
10586         * elf/dl-support.c (_dl_sysinfo_map): New.
10587         Include "get-dynamic-info.h" and "setup-vdso.h".
10588         (_dl_non_dynamic_init): Call setup_vdso.
10589         * elf/dynamic-link.h: Don't include <assert.h>.
10590         (elf_get_dynamic_info): Moved to ...
10591         * elf/get-dynamic-info.h: Here.  New file.
10592         * elf/dynamic-link.h: Include "get-dynamic-info.h".
10593         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
10594         * elf/setup-vdso.h: Here.  New file.
10595         * elf/rtld.c: Include "setup-vdso.h".
10596         (dl_main): Call setup_vdso.
10597
10598 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
10599
10600         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
10601         creal in comment listing functions tested.  List finite, isinf,
10602         isnan, isless, islessequal, isgreater, isgreaterequal,
10603         islessgreater, isunordered, lgamma_r and pow10 as functions and
10604         macros not tested.  Mention which functions not tested are aliases
10605         for other functions.  Fix typo.  Note that signs of NaNs are not
10606         tested.
10607
10608         * scripts/config.guess: Update from config.git.
10609         * scripts/config.sub: Likewise.
10610
10611 2012-10-04  Roland McGrath  <roland@hack.frob.com>
10612
10613         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
10614         * misc/madvise.c (madvise): Renamed to __madvise.
10615         Make madvise a weak alias.
10616         * include/sys/mman.h: Declare __madvise.
10617         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
10618         * sysdeps/unix/syscalls.list
10619         (madvise): Make __madvise the strong name, and madvise a weak alias.
10620         * sysdeps/unix/sysv/linux/syscalls.list
10621         (madvise, mmap): Remove redundant entries.
10622         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
10623         * malloc/malloc.c (mtrim): Likewise.
10624         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
10625
10626 2012-10-03  Roland McGrath  <roland@hack.frob.com>
10627
10628         * sysdeps/mach/hurd/dl-cache.c: File removed.
10629         * config.h.in (USE_LDCONFIG): New #undef.
10630         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
10631         * configure: Regenerated.
10632         * elf/Makefile (dl-routines): Add dl-cache only under
10633         [$(use-ldconfig) = yes].
10634         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
10635         cache on [USE_LDCONFIG].
10636         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
10637         [USE_LDCONFIG].
10638         * elf/rtld.c (dl_main): Likewise.
10639
10640 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
10641
10642         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
10643         _SC_LEVEL4_CACHE_LINESIZE.
10644
10645 2012-10-03  Roland McGrath  <roland@hack.frob.com>
10646
10647         * sysdeps/unix/bsd/confstr.h: File removed.
10648
10649 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
10650
10651         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
10652         sys/sdt-config.h.
10653
10654 2012-10-02  Roland McGrath  <roland@hack.frob.com>
10655
10656         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
10657         Make 'mapoff' field ElfW(Off) rather than off_t.
10658
10659 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10660
10661         * nscd/Makefile: Remove nscd-cflags and all its users.
10662         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
10663         (CFLAGS-nonlib): Add compiler flags for nscd modules.
10664
10665         [BZ #10631]
10666         * malloc.c (malloc_printerr): Clarify error message.
10667
10668 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
10669
10670         [BZ #14648]
10671         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10672         Set bit_FMA_Usable if FMA is supported.
10673         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
10674         macro.
10675         (bit_FMA4_Usable): Updated.
10676         (index_FMA_Usable): New macro.
10677         (CPUID_FMA): Likewise
10678         (HAS_FMA): Defined with bit_FMA_Usable.
10679
10680 2012-10-01  Roland McGrath  <roland@hack.frob.com>
10681
10682         * bits/types.h (__swblk_t): Type removed.
10683         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
10684         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
10685         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10686         (__SWBLK_T_TYPE): Likewise.
10687         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10688         (__SWBLK_T_TYPE): Likewise.
10689         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10690         (__SWBLK_T_TYPE): Likewise.
10691         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10692         (__SWBLK_T_TYPE): Likewise.
10693
10694 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
10695             Honza Horak <hhorak@redhat.com>
10696
10697         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
10698         (xdr_mapname): Use YPMAXMAP as maxsize.
10699         (xdr_peername): Use YPMAXPEER as maxsize.
10700         (xdr_keydat): Use YPAXRECORD as maxsize.
10701         (xdr_valdat): Use YPMAXRECORD as maxsize.
10702
10703 2012-10-01  Roland McGrath  <roland@hack.frob.com>
10704
10705         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
10706
10707         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
10708         * csu/init-first.c: ... here.
10709         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
10710         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
10711         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
10712         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
10713         * sysdeps/i386/init-first.c: File removed.
10714         * sysdeps/sh/init-first.c: File removed.
10715
10716 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
10717
10718         [BZ #14645]
10719         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
10720         if x * y might underflow to zero and z is zero.
10721         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
10722         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
10723         * math/libm-test.inc (min_subnorm_value): New variable.
10724         (fma_test): Add more tests.
10725         (fma_test_towardzero): Likewise.
10726         (fma_test_downward): Likewise
10727         (fma_test_upward): Likewise.
10728         (initialize): Set min_subnorm_value.
10729
10730 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
10731
10732         [BZ #14638]
10733         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
10734         0 + 0.
10735         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
10736         mode for addition resulting in exact zero.
10737         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
10738         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
10739         exact 0 + 0.
10740         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
10741         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
10742         * math/libm-test.inc (fma_test): Add more tests.
10743         (fma_test_towardzero): New function.
10744         (fma_test_downward): Likewise.
10745         (fma_test_upward): Likewise.
10746         (main): Call the new functions.
10747
10748 2012-09-28  David S. Miller  <davem@davemloft.net>
10749
10750         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
10751
10752 2012-09-28  Roland McGrath  <roland@hack.frob.com>
10753
10754         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
10755         instead of SIGALRM.
10756
10757         * sysdeps/gnu/_G_config.h: Moved to ...
10758         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
10759         * sysdeps/mach/hurd/_G_config.h: Moved to ...
10760         * sysdeps/generic/_G_config.h: ... here.
10761
10762         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
10763
10764         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
10765
10766         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
10767         Conditionalize target on [libnss_test1.so-version].
10768
10769         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
10770
10771         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
10772         (elfobjdir): Move out of conditionals.
10773
10774         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
10775         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
10776         (__nss_lookup_function): Conditionalize label remove_from_tree on
10777         [!DO_STATIC_NSS || SHARED], matching its only use.
10778
10779 2012-09-28  David S. Miller  <davem@davemloft.net>
10780
10781         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
10782         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
10783         file.
10784         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
10785         sysdep_routines.
10786         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
10787         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
10788         when HWCAP_SPARC_CRYPTO is present.
10789
10790 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10791
10792         * io/tst-mknodat.c: Create a FIFO instead of a socket.
10793
10794 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
10795
10796         [BZ #6530]
10797         * stdio-common/vfprintf.c (process_string_arg): Revert
10798         2000-07-22 change.
10799
10800 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
10801
10802         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
10803         for testcase.
10804         * stdio-common/tst-sprintf.c: Include <locale.h>
10805         (main): Test sprintf's handling of incomplete multibyte
10806         characters.
10807
10808 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
10809
10810         * elf/dl-runtime.c (VERSYMIDX): Removed.
10811         * elf/dl-version.c (VERSYMIDX): Likewise.
10812         * elf/do-rel.h (VERSYMIDX): Likewise.
10813         (VALIDX): Likewise.
10814         * elf/dynamic-link.h (VERSYMIDX): Likewise.
10815         * elf/rtld.c (VALIDX): Likewise.
10816         (ADDRIDX): Likewise.
10817         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
10818         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
10819         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
10820         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
10821         (VALIDX): Likewise.
10822         (ADDRIDX): Likewise.
10823
10824 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10825
10826         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
10827
10828 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
10829
10830         [BZ #11438]
10831         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
10832         to global scope.
10833         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
10834         addresses are in the same scope as 192.0.2/24.
10835         * posix/gai.conf: Document new scope table defaults.
10836
10837 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10838
10839         [BZ #5298]
10840         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
10841         for ftell.  Compute offsets from write pointers instead.
10842         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
10843
10844 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10845
10846         [BZ #14543]
10847         * libio/Makefile (tests): New test case tst-fseek.
10848         * libio/tst-fseek.c: New test case to verify that fseek/ftell
10849         combination works in wide mode.
10850         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
10851         state when the external buffer state changes.
10852
10853 2012-09-27  David S. Miller  <davem@davemloft.net>
10854
10855         [BZ #14376]
10856         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
10857         pass reloc->r_addend in as the 'high' argument to
10858         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
10859
10860         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10861
10862 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10863
10864         * rt/tst-aio2.c: Include <pthread.h>.
10865         * rt/tst-aio3.c: Likewise.
10866
10867 2012-09-27  Steve Ellcey  <sellcey@mips.com>
10868
10869         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
10870
10871 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
10872
10873         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
10874         contents on [SHARED].
10875
10876 2012-09-26  Marek Polacek  <polacek@redhat.com>
10877
10878         [BZ #14530]
10879         [BZ #13741]
10880         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
10881         for C++ and GCC <4.3 as well as for non GCC compilers.
10882
10883 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10884
10885         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10886
10887 2012-09-25  Roland McGrath  <roland@hack.frob.com>
10888
10889         * Makefile.in (all, install): Declare with .PHONY.
10890         Reported by Michael Hope <michael.hope@linaro.org>.
10891
10892 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10893
10894         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
10895         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
10896         system header.
10897         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
10898         Likewise.
10899         (sydep_routines): Add the new and the internal functions.
10900         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
10901         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
10902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
10903         (GLIBC_2.17): Add the new function.
10904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
10905         (GLIBC_2.17): Likewise.
10906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
10907         (GLIBC_2.17): Likewise.
10908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
10909         (GLIBC_2.17): Likewise.
10910         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
10911
10912 2012-09-25  Alan Modra  <amodra@gmail.com>
10913
10914         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
10915         Add release barrier before setting once_control to say
10916         initialisation is done.  Add hints on lwarx.  Use macro in
10917         place of isync.
10918         (clear_once_control): Add release barrier.
10919
10920 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
10921
10922         [BZ #13629]
10923         * math/s_clog.c (__clog): Handle more values close to |z| = 1
10924         specially.
10925         * math/s_clog10.c (__clog10): Likewise.
10926         * math/s_clog10f.c (__clog10f): Likewise.
10927         * math/s_clog10l.c (__clog10l): Likewise.
10928         * math/s_clogf.c (__clogf): Likewise.
10929         * math/s_clogl.c (__clogl): Likewise.
10930         * math/Makefile (libm-calls): Add x2y2m1.
10931         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
10932         (__x2y2m1): Likewise.
10933         (__x2y2m1l): Likewise.
10934         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
10935         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
10936         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10937         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10938         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
10939         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10940         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
10941         * sysdeps/i386/fpu/libm-test-ulps: Update.
10942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10943
10944         [BZ #14621]
10945         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
10946         int as type of variable DEPTH.
10947         (glob): Use size_t instead of int as type of variables NEWCOUNT
10948         and OLD_PATHC.
10949
10950 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10951
10952         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10953         Add s_sincosf-sse2.
10954         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
10955         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
10956         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
10957         macros for using routine as __sincosf_ia32.
10958         Use macro for function declaration and weak_alias.
10959         * sysdeps/i386/fpu/libm-test-ulps: Update.
10960
10961         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
10962         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10963
10964         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
10965         subnormal argument.
10966         * math/s_cexpf.c (__cexpf): Likewise.
10967         * math/s_csinf.c (__csinf): Likewise.
10968         * math/s_csinhf.c (__csinhf): Likewise.
10969         * math/s_ctanf.c (__ctanf): Likewise.
10970         * math/s_ctanhf.c (__ctanhf): Likewise.
10971         * math/s_ccosh.c (__ccoshf): Likewise.
10972         * math/s_cexp.c (__cexpl): Likewise.
10973         * math/s_csin.c (__csin): Likewise.
10974         * math/s_csinh.c (__csinh): Likewise.
10975         * math/s_ctan.c (__ctan): Likewise.
10976         * math/s_ctanh.c (ctanh): Likewise.
10977         * math/s_ccoshl.c (__ccoshl): Likewise.
10978         * math/s_cexpl.c (__cexpl): Likewise.
10979         * math/s_csinl.c (__csinl): Likewise.
10980         * math/s_csinhl.c (__csinhl): Likewise.
10981         * math/s_ctanl.c (__ctanl): Likewise.
10982         * math/s_ctanhl.c (__ctanhl): Likewise.
10983
10984 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
10985
10986         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
10987         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
10988         (_IO_off_t): Define to __off_t, not _G_off_t.
10989         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
10990         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
10991         (_IO_wint_t): Define to wint_t, not _G_wint_t.
10992         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
10993         type of __dummy and __dummy2 fields.
10994         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
10995         (_G_ssize_t): Likewise.
10996         (_G_off_t): Likewise.
10997         (_G_pid_t): Likewise.
10998         (_G_uid_t): Likewise.
10999         (_G_wchar_t): Likewise.
11000         (_G_wint_t): Likewise.
11001         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
11002         (_G_ssize_t): Likewise.
11003         (_G_off_t): Likewise.
11004         (_G_pid_t): Likewise.
11005         (_G_uid_t): Likewise.
11006         (_G_wchar_t): Likewise.
11007         (_G_wint_t): Likewise.
11008         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
11009         (_G_ssize_t): Likewise.
11010         (_G_off_t): Likewise.
11011         (_G_pid_t): Likewise.
11012         (_G_uid_t): Likewise.
11013         (_G_wchar_t): Likewise.
11014         (_G_wint_t): Likewise.
11015
11016 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11017
11018         * malloc/arena.c: Include malloc-sysdep.h.
11019         (shrink_heap): Use check_may_shrink_heap to decide if madvise
11020         is sufficient to shrink the heap or an unmap is needed.
11021         * sysdeps/generic/malloc-sysdep.h: New file.  Define
11022         new function check_may_shrink_heap.
11023         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
11024         new function check_may_shrink_heap.
11025
11026 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11027
11028         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
11029         comments.
11030
11031 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
11032
11033         * catgets/test-gencat.sh: Add "set -e".
11034         * elf/tst-pathopt.sh: Likewise.
11035         * grp/tst_fgetgrent.sh: Likewise.
11036         * iconvdata/run-iconv-test.sh: Likewise.
11037         * intl/tst-gettext.sh: Likewise.
11038         * intl/tst-gettext2.sh: Likewise.
11039         * intl/tst-gettext4.sh: Likewise.
11040         * intl/tst-gettext6.sh: Likewise.
11041         * intl/tst-translit.sh: Likewise.
11042         * io/ftwtest-sh: Likewise.
11043         * libio/test-freopen.sh: Likewise.
11044         * malloc/tst-mtrace.sh: Likewise.
11045         * posix/globtest.sh: Likewise.
11046         * posix/tst-getconf.sh: Likewise.
11047         * posix/wordexp-tst.sh: Likewise.
11048         * stdio-common/tst-printf.sh: Likewise.
11049         * stdio-common/tst-unbputc.sh: Likewise.
11050         * stdlib/tst-fmtmsg.sh: Likewise.
11051         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
11052         * catgets/Makefile: Do not specify -e option when running
11053         testsuite shell scripts.
11054         * elf/Makefile: Likewise.
11055         * grp/Makefile: Likewise.
11056         * iconvdata/Makefile: Likewise.
11057         * intl/Makefile: Likewise.
11058         * io/Makefile: Likewise.
11059         * libio/Makefile: Likewise.
11060         * malloc/Makefile: Likewise.
11061         * posix/Makefile: Likewise.
11062         * stdio-common/Makefile: Likewise.
11063         * stdlib/Makefile: Likewise.
11064         * sysdeps/x86_64/Makefile: Likewise.
11065
11066         * io/ftwtest-sh: Add copyright header.
11067         * posix/globtest.sh: Likewise.
11068         * posix/tst-getconf.sh: Likewise.
11069         * posix/wordexp-tst.sh: Likewise.
11070         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
11071
11072 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
11073
11074         [BZ #13679]
11075         * Makeconfig (+link): Defined as $(+link-static) if
11076         $(build-shared) isn't yes.
11077         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
11078         isn't yes.
11079         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
11080
11081         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
11082
11083         [BZ #14562]
11084         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
11085         new chunk size with MALLOC_ALIGN_MASK.
11086
11087 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
11088
11089         [BZ #5044]
11090         * stdio-common/printf_fphex.c: Include <stdbool.h> and
11091         <rounding-mode.h>.
11092         (__printf_fphex): Determine rounding using get_rounding_mode and
11093         round_away.
11094         * stdio-common/tst-printf-round.c (struct hex_test): New
11095         structure.
11096         (hex_tests): New variable.
11097         (test_hex_in_one_mode): New function.
11098         (do_test): Also run tests for hex float output.
11099
11100 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
11101
11102         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
11103         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
11104         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
11105         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
11106         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
11107         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
11108         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
11109         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
11110
11111 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
11112
11113         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
11114         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
11115         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
11116         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
11117
11118 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
11119
11120         [BZ #14579]
11121         * elf/rtld.c (dl_main): Limit the check for self loading to normal
11122         mode only.
11123         * elf/tst-rtld-load-self.sh: New test.
11124         * elf/Makefile: Run it.
11125
11126 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
11127
11128         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
11129         (tst-writev-ENV): Remove.
11130         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
11131
11132 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
11133
11134         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
11135
11136 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
11137
11138         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
11139         unconditional.
11140         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
11141         Likewise.
11142         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
11143         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
11144         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
11145         Likewise.
11146
11147 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11148
11149         [BZ #14587]
11150         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
11151         * config.make.in (have-cpp-asm-debuginfo): Removed.
11152         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
11153         * configure: Regenerated.
11154
11155 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
11156
11157         [BZ #5044]
11158         * stdio-common/printf_fp.c: Include <stdbool.h> and
11159         <rounding-mode.h>.
11160         (___printf_fp): Determine rounding using get_rounding_mode and
11161         round_away.
11162         * stdio-common/tst-printf-round.c: New file.
11163         * stdio-common/Makefile (tests): Add tst-printf-round.
11164         (link-libm): New variable.
11165         ($(objpfx)tst-printf-round): Depend in $(link-libm).
11166
11167 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
11168
11169         [BZ #14576]
11170         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
11171         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
11172         Likewise.
11173         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
11174         Likewise.
11175
11176 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
11177
11178         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
11179         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
11180         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
11181         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
11182
11183 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
11184
11185         [BZ #14518]
11186         * include/rounding-mode.h: New file.
11187         * sysdeps/generic/get-rounding-mode.h: Likewise.
11188         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
11189         * stdlib/strtod_l.c: Include <rounding-mode.h>.
11190         (MAX_VALUE): New macro.
11191         (MIN_VALUE): Likewise.
11192         (overflow_value): New function.
11193         (underflow_value): Likewise.
11194         (round_and_return): Use overflow_value and underflow_value to
11195         determine return values in overflow and underflow cases.  Use
11196         round_away to determine rounding depending on rounding mode.
11197         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
11198         determine return values in overflow and underflow cases.
11199         * stdlib/tst-strtod-round.c: Include <fenv.h>.
11200         (struct test_results): New structure.
11201         (struct test): Use struct test_results to store expected results
11202         for all rounding modes.
11203         (TEST): Include expected results for all rounding modes.
11204         (test_in_one_mode): New function.
11205         (do_test): Use test_in_one_mode to compute and check results.
11206         Check results for all rounding modes.
11207         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
11208         $(link-libm).
11209
11210 2012-12-09  Allan McRae  <allan@archlinux.org>
11211
11212         * sysdeps/i386/fpu/libm-test-ulps: Update
11213
11214 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
11215
11216         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
11217         (_G_int32_t): Likewise.
11218         (_G_uint16_t): Likewise.
11219         (_G_uint32_t): Likewise.
11220         (_G_HAVE_BOOL): Likewise.
11221         (_G_HAVE_ATEXIT): Likewise.
11222         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
11223         (_G_HAVE_IO_FILE_OPEN): Likewise.
11224         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
11225         (_G_int32_t): Likewise.
11226         (_G_uint16_t): Likewise.
11227         (_G_uint32_t): Likewise.
11228         (_G_HAVE_BOOL): Likewise.
11229         (_G_HAVE_ATEXIT): Likewise.
11230         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
11231         (_G_HAVE_IO_FILE_OPEN): Likewise.
11232         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
11233         (_G_int32_t): Likewise.
11234         (_G_uint16_t): Likewise.
11235         (_G_uint32_t): Likewise.
11236         (_G_HAVE_BOOL): Likewise.
11237         (_G_HAVE_ATEXIT): Likewise.
11238         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
11239         (_G_HAVE_IO_FILE_OPEN): Likewise.
11240
11241 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
11242
11243         * csu/libc-tls.c: Update copyright years.
11244
11245 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
11246
11247         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
11248         [!_G_USING_THUNKS]: Remove conditional code.
11249         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
11250         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
11251
11252         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
11253         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
11254         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
11255         (_G_VTABLE_LABEL_PREFIX): Likewise.
11256         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
11257         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
11258         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
11259         (_G_VTABLE_LABEL_PREFIX): Likewise.
11260         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
11261         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
11262         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
11263         (_G_VTABLE_LABEL_PREFIX): Likewise.
11264         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
11265
11266 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
11267
11268         * libio/Makefile: Include ../Makeconfig before tests.
11269         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
11270         only if $(build-shared) is yes.
11271
11272         * iconv/gconv_db.c: Update copyright years.
11273
11274 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11275
11276         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
11277         unwind info if defined PIC. Fix special cases description.
11278         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
11279
11280         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
11281         DP_HI_MASK entry.
11282         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
11283
11284 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
11285
11286         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
11287
11288         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
11289         is NULL.
11290
11291         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
11292         (LDLIBS-tst-chk4): This.
11293         (LDFLAGS-tst-chk5): Renamed to ...
11294         (LDLIBS-tst-chk5): This.
11295         (LDFLAGS-tst-chk6): Renamed to ...
11296         (LDLIBS-tst-chk6): This.
11297         (LDFLAGS-tst-lfschk4): Renamed to ...
11298         (LDLIBS-tst-lfschk4): This.
11299         (LDFLAGS-tst-lfschk5): Renamed to ...
11300         (LDLIBS-tst-lfschk5): This.
11301         (LDFLAGS-tst-lfschk6): Renamed to ...
11302         (LDLIBS-tst-lfschk6): This.
11303
11304         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
11305         on $(common-objpfx)soversions.mk.
11306
11307 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
11308
11309         [BZ #10014]
11310         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
11311         example host name.
11312
11313 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11314
11315         * malloc/arena.c (arena_get_retry): New function that gets
11316         another arena for the caller to try its request on.
11317         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
11318         current arena cannot fulfill the request.
11319         (__libc_memalign): Likewise.
11320         (__libc_memalign): Likewise.
11321         (__libc_pvalloc): Likewise.
11322         (__libc_calloc): Likewise.
11323
11324 2012-09-05  John Tobey  <john.tobey@gmail.com>
11325
11326         [BZ #13542]
11327         * manual/arith.texi (Operations on Complex): Fix description
11328         of carg branch cut.
11329
11330 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
11331
11332         [BZ #10014]
11333         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
11334         host name.
11335
11336         [BZ #10038]
11337         * manual/memory.texi (Memory): Make order of menu items match
11338         order of sections.
11339
11340 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11341
11342         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
11343         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
11344         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
11345
11346 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11347
11348         * csu/libc-tls.c (static_dtv): Renamed to ...
11349         (_dl_static_dtv): This.  Make it global.
11350         (_dl_initial_dtv): Removed.
11351         (__libc_setup_tls): Updated.
11352         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
11353         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
11354         DL_INITIAL_DTV.
11355
11356 2012-09-06  Petr Machata  <pmachata@redhat.com>
11357
11358         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
11359         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
11360         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
11361         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
11362
11363 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11364
11365         [BZ #14545]
11366         * csu/libc-tls.c (_dl_initial_dtv): New variable.
11367         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
11368         freeing dtv[-1].
11369
11370 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11371
11372         [BZ #14544]
11373         * Makeconfig (link-static-before-libc): Replace $(+prector)
11374         with $(+prectorT).
11375         (link-static-after-libc): Replace $(+postctor) with
11376         $(+postctorT).
11377         (link-bounded): Replace $(+prector)/$(+postctor) with
11378         $(+prectorT)/$(+postctorT).
11379         (+prectorT): New macro.
11380         (+postctorT): Likewise.
11381
11382 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
11383
11384         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
11385         (round_str): Handle values above the maximum for IBM long double
11386         as inexact.
11387         * stdlib/tst-strtod-round.c (tests): Regenerated.
11388
11389 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11390
11391         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
11392         assembler flag.
11393         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
11394         zarch_nohighgprs around the zarch optimized routines.
11395         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
11396         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
11397         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
11398         for zarch.
11399
11400 2012-09-05  David S. Miller  <davem@davemloft.net>
11401
11402         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11403
11404         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
11405         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
11406         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
11407         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
11408         entries.
11409
11410 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
11411
11412         * malloc/arena.c: Fold copyright years.
11413         * malloc/mcheck.c, malloc/memusage.c: Likewise.
11414
11415 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
11416
11417         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
11418
11419 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
11420
11421         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
11422
11423 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
11424
11425         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
11426         change internal state upon failure.
11427
11428 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
11429
11430         * malloc/mcheck.c (mcheck_check_all): Fix typo.
11431         * malloc/memusage.c (mmap): Likewise.
11432         (mmap64, mremap): Likewise.  Adjust name in comment.
11433
11434 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11435
11436         * libio/fileops.c: Fix typos in comments.
11437         * libio/oldfileops.c: Likewise.
11438         * libio/wfileops.c: Likewise.
11439
11440 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11441
11442         [BZ #1349]
11443         * malloc/Makefile (tests): Add tst-malloc-usable test case.
11444         (tst-malloc-usable-ENV): Set environment for test case.
11445         * malloc/hooks.c (malloc_check_get_size): New function to get
11446         requested size.
11447         * malloc/malloc.c (musable): Use malloc_check_get_size.
11448         * malloc/tst-malloc-usable.c: New test case.
11449
11450 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
11451
11452         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
11453
11454 2012-09-05  Allan McRae  <allan@archlinux.org>
11455
11456         [BZ #13966]
11457         * configure.in (CXX_SYSINCLUDES): Use compiler output to
11458         determine header location.
11459         * configure: Regenerated.
11460
11461 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
11462
11463         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
11464         float format.
11465         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
11466         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
11467         format.
11468         (test): Regenerate.
11469
11470 2012-09-04  David S. Miller  <davem@davemloft.net>
11471
11472         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
11473         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
11474         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
11475
11476 2012-09-04  Florian Weimer  <fweimer@redhat.com>
11477
11478         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
11479         failures.
11480
11481         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
11482
11483 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
11484
11485         [BZ #9914]
11486         * libio/iogetdelim.c: Include <limits.h>.
11487         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
11488         + len + 1 would overflow.
11489
11490 2012-09-03  Andreas Jaeger  <aj@suse.de>
11491
11492         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11493         * sysdeps/i386/fpu/libm-test-ulps: Update.
11494
11495 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11496
11497         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
11498         Add s_sinf-sse2, s_conf-sse2.
11499
11500         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
11501         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
11502         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
11503         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
11504
11505         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
11506         for using routine as __sinf_ia32.
11507         Use macro for function declaration and weak_alias.
11508         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
11509         for using routine as __cosf_ia32.
11510         Use macro for function declaration and weak_alias.
11511
11512         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
11513         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
11514
11515         * sysdeps/x86_64/fpu/s_sinf.S: New file.
11516         * sysdeps/x86_64/fpu/s_cosf.S: New file.
11517         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11518
11519         * math/libm-test.inc (cos_test): Add more test cases.
11520         (sin_test): Likewise.
11521         (sincos_test): Likewise.
11522
11523 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11524
11525         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
11526         (IFUNC_RESOLVE): Make pointers to the specialized implementations
11527         hidden.
11528         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
11529
11530 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
11531
11532         [BZ #14538]
11533         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
11534         first element of the GOT.
11535         (elf_machine_load_address): Return the difference between
11536         the runtime address of _DYNAMIC and elf_machine_dynamic ().
11537
11538 2012-09-01  Allan McRae  <allan@archlinux.org>
11539
11540         [BZ #13412]
11541         * configure.in (AWK): Require gawk version 3.0 or later.
11542         * configure: Regenerated.
11543
11544 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
11545
11546         * sysdeps/unix/sysv/linux/kernel-features.h
11547         (__ASSUME_POSIX_CPU_TIMERS): Remove.
11548         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
11549         [__NR_clock_getres]: Make code unconditional.
11550         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
11551         (clock_getcpuclockid): Remove code left unreachable by removal of
11552         conditionals.
11553         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
11554         code unconditional.
11555         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
11556         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
11557         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
11558         Make code unconditional.
11559         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
11560         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
11561         * sysdeps/unix/sysv/linux/clock_settime.c
11562         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
11563         conditional code.
11564         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
11565         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
11566
11567 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
11568
11569         [BZ #14476]
11570         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
11571         scripts/test-installation.pl.
11572
11573         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
11574         and $ld_so_version if it is set.
11575
11576 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11577
11578         [BZ #14516]
11579         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
11580         failure if reading from procfs failed.
11581         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
11582
11583 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
11584
11585         * sysdeps/unix/sysv/linux/kernel-features.h
11586         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
11587         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
11588         Remove conditional code.
11589         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11590         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
11591         Remove conditional code.
11592         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11593         * sysdeps/unix/sysv/linux/i386/fxstat.c
11594         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
11595         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11596         * sysdeps/unix/sysv/linux/i386/fxstatat.c
11597         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
11598         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11599         * sysdeps/unix/sysv/linux/i386/lxstat.c
11600         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
11601         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11602         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
11603         Remove conditional code.
11604         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11605         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
11606         Remove conditional code.
11607         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11608         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
11609         <kernel-features.h>.
11610         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
11611         Remove.
11612         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
11613         Remove conditional code.
11614         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11615         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
11616         Remove conditional.
11617
11618 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
11619
11620         [BZ #5400]
11621         * NEWS: Add fixed bug number.
11622
11623 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
11624
11625         [BZ #14519]
11626         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
11627         underflowing exponent in case of negative sign.
11628         * stdlib/tst-strtod-round-data: Add more tests.
11629         * stdlib/tst-strtod-round.c (tests): Regenerated.
11630
11631         [BZ #3479]
11632         * stdlib/strtod_l.c (NDIG): Remove.
11633         (HEXNDIG): Likewise.
11634         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
11635         smallest representable value.
11636         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
11637         lie within an exact representation of 1/2 ulp of the result.
11638         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
11639         unconditionally.
11640         (TENS_P9_IDX): Define unconditionally.
11641         (TENS_P9_SIZE): Likewise.
11642         (TENS_P10_IDX): Likewise.
11643         (TENS_P10_SIZE): Likewise.
11644         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
11645         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
11646         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
11647         entries for 10^2^13 and 10^2^14.
11648         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
11649         (TENS_P13_IDX): Define.
11650         (TENS_P13_SIZE): Likewise.
11651         (TENS_P14_IDX): Likewise.
11652         (TENS_P14_SIZE): Likewise.
11653         (_fpioconst_pow10): Change array size to
11654         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
11655         unconditional.
11656         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
11657         1024]: Add entries for 10^2^13 and 10^2^14.
11658         [LAST_POW10 > _LAST_POW10]: Remove #error.
11659         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
11660         (_fpioconst_pow10): Change array size to
11661         FPIOCONST_POW10_ARRAY_SIZE.
11662         * stdlib/gen-fpioconst.c: New file.
11663         * stdlib/gen-tst-strtod-round.c: Likewise.
11664         * stdlib/tst-strtod-round-data: Likewise.
11665         * stdlib/tst-strtod-round.c: Likewise.
11666         * stdlib/Makefile (tests): Add tst-strtod-round.
11667
11668         [BZ #14459]
11669         * stdlib/strtod_l.c: Include <stdint.h>.
11670         (NDEBUG): Do not define.
11671         (round_and_return): Change EXPONENT parameter to type intmax_t.
11672         Rearrange calculations to avoid internal overflow possibilities.
11673         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
11674         Rearrange calculations to avoid internal overflow possibilities.
11675         Assert that number fits inside MPNSIZE limbs.
11676         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
11677         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
11678         calculations and add assertions to avoid internal overflow
11679         possibilities.  Add casts to avoid signed/unsigned operations.
11680         * stdlib/tst-strtod-overflow.c: New file.
11681         * stdlib/Makefile (tests): Add tst-strtod-overflow.
11682
11683 2012-08-25  Marek Polacek  <polacek@redhat.com>
11684
11685         * time/time.h: Fix some typos in comments.
11686
11687 2012-08-23  Roland McGrath  <roland@hack.frob.com>
11688
11689         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
11690         * posix/tst-rfc3484-2.c: Likewise.
11691         * posix/tst-rfc3484-3.c: Likewise.
11692
11693 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
11694
11695         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
11696         (EF_ARM_ABI_FLOAT_HARD): Likewise.
11697
11698 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
11699
11700         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
11701         #include of fxstatat64.c.
11702
11703 2012-08-22  Roland McGrath  <roland@hack.frob.com>
11704
11705         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
11706         * shadow/getspent_r.c: Likewise.
11707         * shadow/getspnam.c: Likewise.
11708         * shadow/getspnam_r.c: Likewise.
11709         * gshadow/getsgent.c: Likewise.
11710         * gshadow/getsgent_r.c: Likewise.
11711         * gshadow/getsgnam.c: Likewise.
11712         * gshadow/getsgnam_r.c: Likewise.
11713         * inet/getnetbyad.c: Likewise.
11714         * inet/getnetbyad_r.c: Likewise.
11715         * inet/getnetbynm.c: Likewise.
11716         * inet/getnetbynm_r.c: Likewise.
11717         * inet/getnetent.c: Likewise.
11718         * inet/getnetent_r.c: Likewise.
11719         * inet/getproto.c: Likewise.
11720         * inet/getproto_r.c: Likewise.
11721         * inet/getprtent.c: Likewise.
11722         * inet/getprtent_r.c: Likewise.
11723         * inet/getprtname.c: Likewise.
11724         * inet/getprtname_r.c: Likewise.
11725         * inet/getrpcbyname.c: Likewise.
11726         * inet/getrpcbyname_r.c: Likewise.
11727         * inet/getrpcbynumber.c: Likewise.
11728         * inet/getrpcbynumber_r.c: Likewise.
11729         * inet/getrpcent.c: Likewise.
11730         * inet/getrpcent_r.c: Likewise.
11731         * inet/getaliasent.c: Likewise.
11732         * inet/getaliasent_r.c: Likewise.
11733         * inet/getaliasname.c: Likewise.
11734         * inet/getaliasname_r.c: Likewise.
11735         * nscd/getgrgid_r.c: Likewise.
11736         * nscd/getgrnam_r.c: Likewise.
11737         * nscd/gethstbyad_r.c: Likewise.
11738         * nscd/gethstbynm3_r.c: Likewise.
11739         * nscd/getpwnam_r.c: Likewise.
11740         * nscd/getpwuid_r.c: Likewise.
11741         * nscd/getsrvbynm_r.c: Likewise.
11742         * nscd/getsrvbypt_r.c: Likewise.
11743         * nscd/gai.c: Likewise.
11744
11745         * configure.in (build_nscd): New substituted variable, set
11746         by --disable-build-nscd and defaults to $use_nscd.
11747         * configure: Regenerated.
11748         * config.make.in (build-nscd): New substituted variable.
11749         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
11750         Change conditional to require [$(build-nscd) = yes] as well.
11751         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
11752
11753         [BZ# 13696]
11754         * configure.in (use_nscd): New substituted variable, set by
11755         --disable-nscd.  If enabled, define USE_NSCD.
11756         * configure: Regenerated.
11757         * config.h.in: Add USE_NSCD.
11758         * config.make.in (use-nscd): New substituted variable.
11759         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
11760         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
11761         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
11762         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
11763         (CFLAGS-getgrnam_r.c): Likewise.
11764         (CFLAGS-initgroups.c): Likewise.
11765         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
11766         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
11767         Variables removed.
11768         * inet/getnetgrent_r.c
11769         (nscd_setnetgrent): New function, broken out of ...
11770         (setnetgrent): ... here.  Call it.
11771         (innetgr): Conditionalize nscd bits on [USE_NSCD].
11772         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
11773         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
11774         * nscd/Makefile (routines, aux): Move definitions after include of
11775         Makeconfig.  Conditionalize on [$(use-nscd) != no].
11776         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
11777         Conditionalize on [USE_NSCD].
11778         (is_nscd, nscd_init_cb): Likewise.
11779         (nss_load_library): Conditionalize init callback on [USE_NSCD].
11780         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
11781         * nss/nss_db/db-init.c: Likewise.
11782         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
11783         [USE_NSCD].
11784         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
11785         (make_request): Use it.
11786         (cache_valid_p): New function.
11787         (__check_pf): Use it.
11788         * NEWS: Add item for --disable-nscd.
11789
11790 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
11791
11792         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
11793         to support sed >= 4.2.1-20-ga9bf076.
11794         * configure: Regenerated.
11795
11796 2012-08-22  Roland McGrath  <roland@hack.frob.com>
11797
11798         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
11799         Conditionalize whole body on [IREL].
11800
11801 2012-08-22  Jeff Law <law@redhat.com>
11802
11803         [BZ #14505]
11804         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
11805         if the family is PF_UNSPEC.
11806
11807 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
11808
11809         * Makerules (lib-version): Rename from V.
11810         (install-lib-nosubdir): Change V to lib-version.
11811
11812 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
11813
11814         [BZ #14252]
11815         * powerpc32/power6/wcschr.c: New file.
11816         * powerpc32/power6/wcscpy.c: New file.
11817         * powerpc32/power6/wcsrchr.c: New file.
11818         * powerpc64/power6/wcschr.c: New file.
11819         * powerpc64/power6/wcscpy.c: New file.
11820         * powerpc64/power6/wcsrchr.c: New file.
11821
11822 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
11823
11824         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
11825         (two_way_short_needle): Use it.
11826         * string/strstr.c (AVAILABLE1_USES_J): Define.
11827         * string/strcasestr.c: Likewise.
11828
11829         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
11830         array references.
11831         * string/strcasestr.c (TOLOWER): Make side-effect safe.
11832
11833         [BZ #11607]
11834         * NEWS: Add an entry.
11835         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
11836         define their defaults.
11837         (two_way_short_needle): Detect end-of-string on-the-fly.
11838         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
11839         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
11840         * string/bug-strcasestr1.c: New test.
11841         * string/Makefile: Run it.
11842
11843 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
11844
11845         [BZ #11607]
11846         * string/str-two-way.h (two_way_short_needle): Optimize matching of
11847         the first character.
11848
11849 2012-08-21  Roland McGrath  <roland@hack.frob.com>
11850
11851         * csu/elf-init.c (__libc_csu_irel): Function removed.
11852         * csu/libc-start.c (apply_irel): New function.
11853         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
11854
11855 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
11856
11857         * sysdeps/unix/sysv/linux/kernel-features.h
11858         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
11859         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
11860         <kernel-features.h>.
11861         [__NR_fadvise64_64]: Make code unconditional.
11862         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
11863         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
11864         !__NR_fadvise64_64)]: Likewise.
11865         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
11866         !__NR_fadvise64_64))]: Likewise.
11867         [__NR_fadvise64]: Make code unconditional.
11868         [!__NR_fadvise64]: Remove conditional code.
11869         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
11870         <kernel-features.h>.
11871         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11872         unconditional.
11873         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11874         conditional code.
11875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
11876         not include <kernel-features.h>.
11877         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11878         unconditional.
11879         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11880         conditional code.
11881         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
11882         include <kernel-features.h>.
11883         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11884         unconditional.
11885         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11886         conditional code.
11887
11888 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
11889
11890         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
11891         slight instruction rearrangements per scrollpipe analysis.
11892         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
11893
11894 2012-08-20  Roland McGrath  <roland@hack.frob.com>
11895
11896         * manual/syslog.texi (syslog; vsyslog, closelog):
11897         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
11898         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
11899
11900         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
11901         DSOCAPS to match condition on defining it.
11902
11903 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
11904
11905         * sysdeps/unix/sysv/linux/kernel-features.h
11906         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
11907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
11908         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11909         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
11911         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11912         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
11914         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11915         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11916
11917         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
11918         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
11919
11920         * sysdeps/unix/sysv/linux/kernel-features.h
11921         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
11922         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
11923         unconditional.
11924         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11925         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
11926         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
11927         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11928         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
11929         Make code unconditional.
11930         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11931         (__mmap64) [!__NR_mmap2]: Likewise.
11932         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
11933         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
11934         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11935         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
11936         [__NR_mmap2]: Make code unconditional.
11937         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11938         (__mmap64) [!__NR_mmap2]: Likewise.
11939
11940 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11941
11942         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
11943
11944 2012-08-18  Andreas Jaeger  <aj@suse.de>
11945
11946         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
11947
11948 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
11949
11950         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
11951         * include/unistd.h (__have_sock_cloexec): Likewise.
11952         (__have_pipe2): Likewise.
11953         (__have_dup3): Likewise.
11954
11955 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
11956
11957         [BZ #9685]
11958         * include/unistd.h (__have_pipe2): Change define into an extern int.
11959         (__have_dup3): Likewise.
11960         * socket/have_sock_cloexec.c: Include fcntl.h.
11961         (__have_pipe2): New variable.
11962         (__have_dup3): Likewise.
11963
11964 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
11965
11966         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
11967
11968 2012-08-17  Marek Polacek  <polacek@redhat.com>
11969
11970         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
11971         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
11972
11973 2012-08-17  Roland McGrath  <roland@hack.frob.com>
11974
11975         * configure.in: Add AC_SUBST for sysheaders.
11976         * configure: Regenerated.
11977         * config.make.in (sysheaders): New substituted variable.
11978
11979         * sysdeps/unix/mkfifo.c: Moved ...
11980         * sysdeps/posix/mkfifo.c: ... here.
11981         * sysdeps/unix/mkfifoat.c: Moved ...
11982         * sysdeps/posix/mkfifoat.c: ... here.
11983
11984         * sysdeps/unix/utime.c: Moved ...
11985         * sysdeps/posix/utime.c: ... here.
11986
11987         * sysdeps/unix/time.c: Moved ...
11988         * sysdeps/posix/time.c: ... here.
11989         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
11990         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
11991
11992         * sysdeps/unix/nice.c: Moved ...
11993         * sysdeps/posix/nice.c: ... here.
11994
11995         * sysdeps/unix/alarm.c: Moved ...
11996         * sysdeps/posix/alarm.c: ... here.
11997
11998         * intl/Makefile ($(codeset_mo)): Depend on the input file.
11999
12000 2012-08-17  Jeff Law <law@redhat.com>
12001
12002         * intl/Makefile (codeset_mo): New variable.
12003         ($(codeset_mo)): New target.
12004         (tst-codeset.out): Depend on that.  Remove explicit rule.
12005         (tst-gettext3.out, tst-gettext5.out): Likewise.
12006         (LOCPATH-ENV, tst-codeset-ENV): New variables.
12007         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
12008         * intl/tst-codeset.sh: Remove.
12009         * intl/tst-gettext3.sh: Likewise.
12010         * intl/tst-gettext5.sh: Likewise.
12011
12012 2012-08-17  Roland McGrath  <roland@hack.frob.com>
12013
12014         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
12015         * sysdeps/unix/syscalls.list: ... here.
12016
12017         * sysdeps/posix/getaddrinfo.c
12018         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
12019         (gaiconf_init, gaiconf_reload): Use them.
12020         [!_STATBUF_ST_NSEC]
12021         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
12022         Define using time_t rather than struct timespec.
12023
12024         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
12025         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
12026         Macros removed.
12027         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
12028         [!NO_THREADS].
12029         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
12030         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
12031         Likewise.
12032
12033         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
12034         __libc_cleanup_push argument.
12035
12036         * bits/param.h: New file.
12037         * misc/sys/param.h: New file.
12038         * include/sys/param.h: New file.
12039         * misc/Makefile (headers): Add bits/param.h.
12040         * sysdeps/generic/sys/param.h: File removed.
12041         * sysdeps/unix/sysv/linux/bits/param.h: New file.
12042         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
12043         * sysdeps/mach/hurd/bits/param.h: New file.
12044         * sysdeps/mach/hurd/sys/param.h: File removed.
12045
12046         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
12047         last change.
12048
12049         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
12050         [_IO_MTSAFE_IO].
12051         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
12052         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
12053         New macros.
12054
12055         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
12056         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
12057         rather than -D_IO_MTSAFE_IO conditionally.
12058         * stdio-common/Makefile (CPPFLAGS): Likewise.
12059         * wcsmbs/Makefile (CPPFLAGS): Likewise.
12060         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
12061         Use $(libio-mtsafe).
12062         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
12063         of -D_IO_MTSAFE_IO.
12064         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
12065         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
12066         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
12067         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
12068         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
12069         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
12070         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
12071         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
12072         (CFLAGS-fread_u_chk.c): Likewise.
12073         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
12074         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
12075         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
12076         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
12077         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
12078         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
12079         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
12080         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
12081         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
12082
12083         * libio/Makefile: Test [$(libc-reentrant) = yes]
12084         instead of [$(filter %REENTRANT, $(defines)) nonempty].
12085
12086         * Makeconfig
12087         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
12088         * sysdeps/pthread/configure: File removed.
12089         * sysdeps/pthread/Makeconfig: New file.
12090         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
12091         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
12092
12093 2012-08-16  Gary Benson  <gbenson@redhat.com>
12094
12095         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
12096         unmapping the first object in a namespace.
12097
12098 2012-08-16  Roland McGrath  <roland@hack.frob.com>
12099
12100         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
12101         (__internal_setnetgrent): ... this.  Add internal_function to
12102         definition.  Add libc_hidden_def.
12103         (setnetgrent): Update caller.
12104         (internal_endnetgrent): Renamed to ...
12105         (__internal_endnetgrent): ... this.  Add internal_function to
12106         definition.  Add libc_hidden_def.
12107         (endnetgrent): Update caller.
12108         (internal_getnetgrent_r): Renamed to ...
12109         (__internal_getnetgrent_r): ... this.  Add internal_function to
12110         definition.  Add libc_hidden_def.
12111         (__getnetgrent_r): Update caller.
12112         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
12113
12114 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
12115
12116         * stdlib/longlong.h: Update from GCC.
12117
12118 2012-08-16  Roland McGrath  <roland@hack.frob.com>
12119
12120         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
12121         on _QL, which is set by umul_ppmm but never used.
12122         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
12123         variables, which are set by GMP macros but never used.
12124         * stdio-common/_itowa.c (_itowa): Likewise.
12125         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
12126         * stdlib/mod_1.c (mpn_mod_1): Likewise.
12127
12128 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
12129
12130         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
12131         struct La_sh_regs is not constant.
12132         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
12133         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
12134         and struct La_sparc64_regs are not constant.
12135
12136 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
12137
12138         * sysdeps/unix/sysv/linux/kernel-features.h
12139         (__ASSUME_POSIX_TIMERS): Remove.
12140         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
12141         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
12142         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
12143         Make code unconditional.
12144         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
12145         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
12146         Make code unconditional.
12147         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
12148         * sysdeps/unix/sysv/linux/clock_nanosleep.c
12149         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
12150         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
12151         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
12152         Make code unconditional.
12153         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
12154         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
12155         (__libc_missing_posix_timers): Remove.
12156
12157 2012-08-15  Roland McGrath  <roland@hack.frob.com>
12158
12159         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
12160         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
12161
12162         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
12163
12164         * elf/dl-sym.c: Include <stdlib.h>.
12165
12166         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
12167         constants, which avoids warnings in 32-bit builds.
12168
12169         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
12170         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
12171
12172         * misc/lseek.c: File moved to ...
12173         * io/lseek.c: ... here.
12174
12175         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
12176
12177         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
12178         shifting LEN more than 31 bits at once.
12179
12180 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12181
12182         [BZ #14195]
12183         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
12184         segmentation fault for a case of two empty input strings.
12185         * string/test-strncasecmp.c (check1): Renamed to...
12186         (bz12205): ...this.
12187         (bz14195): Add new testcase for two empty input strings and N > 0.
12188         (test_main): Call new testcase, adapt for renamed function.
12189
12190 2012-08-15  Andreas Jaeger  <aj@suse.de>
12191
12192         [BZ #14090]
12193         * crypt/md5test2.c: New test, based on test supplied by Serge
12194         Belyshev <belyshev@depni.sinp.msu.ru>.
12195         * crypt/Makefile (xtests): Add md5test-giant..
12196         * crypt/Makefile ($(objpfx)md5test-giant): Add.
12197
12198 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12199
12200         [BZ #14090]
12201         * crypt/md5.c (md5_process_block): Don't assume the buffer
12202         length is less than 2**32.
12203         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
12204         length is less than 2**64.
12205
12206 2012-08-15  Roland McGrath  <roland@hack.frob.com>
12207
12208         * string/str-two-way.h: Include <sys/param.h>.
12209         (MAX): Macro removed.
12210
12211         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
12212         Move #define and #undef of memmove to just before and after
12213         including <string.h>.
12214
12215         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
12216         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
12217         and after including <string.h>.  Move declarations of
12218         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
12219         to before #include "string/memmove.c".
12220
12221         * include/dirent.h: Declare __getdirentries.
12222
12223         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
12224         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
12225
12226 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
12227
12228         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
12229         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
12230         * sysdeps/i386/configure: Regenerated.
12231         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
12232         STABS_CURRENT_FILE, and STABS_FUN.
12233         (END): Remove call to STABS_FUN_END.
12234         (STABS_CURRENT_FILE1): Delete.
12235         (STABS_CURRENT_FILE): Likewise.
12236         (STABS_FUN): Likewise.
12237         (STABS_FUN_END): Likewise.
12238         (STABS_FUN2): Likewise.
12239         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
12240         * sysdeps/x86_64/configure: Regenerated.
12241
12242 2012-08-14  Roland McGrath  <roland@hack.frob.com>
12243
12244         * elf/dl-open.c: Include <atomic.h>.
12245         * elf/dl-lookup.c: Likewise.
12246
12247 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
12248
12249         * sysdeps/unix/sysv/linux/kernel-features.h
12250         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
12251         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
12252         unconditionally.
12253         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
12254         unconditionally.
12255         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
12256         condition on __ASSUME_CLONE_THREAD_FLAGS.
12257
12258 2012-08-14  Andreas Jaeger  <aj@suse.de>
12259
12260         * sysdeps/i386/fpu/libm-test-ulps: Update.
12261
12262 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
12263
12264         * include/atomic.h (atomic_exchange_and_add): Split into ...
12265         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
12266         New atomic macros.
12267
12268 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
12269
12270         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12271
12272 2012-08-13  Jeff Law <law@redhat.com>
12273
12274         * manual/stdio.texi (snprintf): Clarify handling of the trailing
12275         null byte in the output string.
12276
12277 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
12278
12279         * sysdeps/unix/sysv/linux/kernel-features.h
12280         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
12281         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
12282         (__ASSUME_ARG_MAX_STACK_BASED): Define.
12283         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
12284         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
12285         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
12286         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
12287
12288 2012-08-09  Jeff Law <law@redhat.com>
12289
12290         [BZ #13939]
12291         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
12292         When avoid_arena is set, don't retry in the that arena.  Pick the
12293         next one, whatever it might be.
12294         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
12295         (arena_lock): Pass in new parameter to arena_get2.
12296         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
12297         arena_get2.
12298         (__libc_malloc): Unify retrying after main arena failure with
12299         __libc_memalign version.
12300         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
12301
12302 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
12303
12304         [BZ #14166]
12305         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
12306         to __redirect_strstr.
12307         (__strstr_sse42): Use typeof __redirect_strstr.
12308         (__strstr_ia32): Likewise.
12309         (__libc_strstr): New prototype.
12310         (strstr): Renamed to ...
12311         (__libc_strstr): This.
12312         (strstr): New strong alias of __libc_strstr.
12313         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
12314         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
12315         __redirect_time.
12316         Include <time.h>.
12317         (__libc_time): New prototype.
12318         (time_ifunc): Replace time with __libc_time.
12319         (time): New strong alias and hidden definition of __libc_time.
12320         (__GI_time): Remove strong alias.
12321         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
12322         Include <stddef.h>.
12323         (memmove): Redefined to __redirect_memmove.
12324         (__memmove_sse2): Use typeof __redirect_memmove.
12325         (__memmove_ssse3): Likewise.
12326         (__memmove_ssse3_back): Likewise.
12327         (__libc_memmove): New prototype.
12328         (memmove): Renamed to ...
12329         (__libc_memmove): This.
12330         (memmove): New strong alias of __libc_memmove.
12331
12332 2012-08-08  Mark Salter  <msalter@redhat.com>
12333
12334         * elf/elf.h
12335         (R_MN10300_TLS_GD): Define.
12336         (R_MN10300_TLS_LD): Likewise.
12337         (R_MN10300_TLS_LDO): Likewise.
12338         (R_MN10300_TLS_GOTIE): Likewise.
12339         (R_MN10300_TLS_IE): Likewise.
12340         (R_MN10300_TLS_LE): Likewise.
12341         (R_MN10300_TLS_DTPMOD): Likewise.
12342         (R_MN10300_TLS_DTPOFF): Likewise.
12343         (R_MN10300_TLS_TPOFF): Likewise.
12344         (R_MN10300_SYM_DIFF): Likewise.
12345         (R_MN10300_ALIGN): Likewise.
12346         (R_MN10300_NUM): Update.
12347
12348 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
12349
12350         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
12351         Remove.
12352
12353 2012-08-08  Roland McGrath  <roland@hack.frob.com>
12354
12355         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
12356
12357         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
12358         sysdeps/unix -> sysdeps/posix move.
12359         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12360
12361 2012-08-07      Allan McRae     <allan@archlinux.org>
12362
12363         [BZ #14303]
12364         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
12365         (SUNOS_CPP): Likewise.
12366         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
12367         not found.
12368         (open_input): Call CPP using execvp.
12369
12370 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
12371
12372         * sysdeps/unix/sysv/linux/kernel-features.h
12373         (__ASSUME_PROT_GROWSUPDOWN): Remove.
12374         (__ASSUME_NO_CLONE_DETACHED): Likewise.
12375         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
12376         (__ASSUME_WAITID_SYSCALL): Likewise.
12377         * sysdeps/unix/sysv/linux/dl-execstack.c
12378         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
12379         code unconditional.
12380         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
12381         conditional code.
12382         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
12383         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
12384         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
12385         code.
12386         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
12387         unconditional.
12388         [__ASSUME_WAITID_SYSCALL]: Likewise.
12389         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
12390
12391 2012-08-07  Roland McGrath  <roland@hack.frob.com>
12392
12393         * sysdeps/unix/closedir.c: Renamed to ...
12394         * sysdeps/posix/closedir.c: ... here.
12395         * sysdeps/unix/dirfd.c: Renamed to ...
12396         * sysdeps/posix/dirfd.c: ... here.
12397         * sysdeps/unix/dirstream.h: Renamed to ...
12398         * sysdeps/posix/dirstream.h: ... here.
12399         * sysdeps/unix/fdopendir.c: Renamed to ...
12400         * sysdeps/posix/fdopendir.c: ... here.
12401         * sysdeps/unix/opendir.c: Renamed to ...
12402         * sysdeps/posix/opendir.c: ... here.
12403         * sysdeps/unix/readdir.c: Renamed to ...
12404         * sysdeps/posix/readdir.c: ... here.
12405         * sysdeps/unix/readdir_r.c: Renamed to ...
12406         * sysdeps/posix/readdir_r.c: ... here.
12407         * sysdeps/unix/rewinddir.c: Renamed to ...
12408         * sysdeps/posix/rewinddir.c: ... here.
12409         * sysdeps/unix/seekdir.c: Renamed to ...
12410         * sysdeps/posix/seekdir.c: ... here.
12411         * sysdeps/unix/telldir.c: Renamed to ...
12412         * sysdeps/posix/telldir.c: ... here.
12413         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
12414         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
12415         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12416         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12417
12418         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
12419         * bits/fcntl.h: ... here.
12420
12421         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
12422         not 0.
12423         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
12424         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
12425         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
12426         (struct flock): Move l_start, l_len to the beginning.
12427         Use __pid_t for l_pid.
12428         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
12429         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
12430         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
12431         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
12432         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
12433         [__USE_LARGEFILE64] (struct flock64): New type.
12434         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
12435
12436         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
12437         * bits/dirent.h: ... here.
12438
12439         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
12440         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
12441
12442 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
12443
12444         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12445         Change from 2.6.0 to 2.6.16.
12446         * sysdeps/unix/sysv/linux/configure: Regenerated.
12447         * sysdeps/unix/sysv/linux/kernel-features.h
12448         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
12449         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
12450         version.
12451         (__ASSUME_UTIMES): Likewise.
12452         (__ASSUME_CLONE_STOPPED): Remove.
12453         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
12454         architectures, not kernel version.
12455         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
12456         (__ASSUME_NO_CLONE_DETACHED): Likewise.
12457         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
12458         (__ASSUME_WAITID_SYSCALL): Likewise.
12459         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
12460         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
12461         * README: State 2.6.16 as minimum Linux kernel version.  Do not
12462         refer to older versions.
12463
12464 2012-08-06  Roland McGrath  <roland@hack.frob.com>
12465
12466         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
12467         Define alphasort64 as an alias.
12468         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
12469         Define versionsort64 as an alias.
12470         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
12471         Define scandir64 as an alias.
12472         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
12473         Define scandirat64 as an alias.
12474         * dirent/alphasort64.c (alphasort64):
12475         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
12476         * dirent/versionsort64.c: Likewise.
12477         * dirent/scandir64.c: Likewise.
12478         * dirent/scandirat64.c: Likewise.
12479         * sysdeps/wordsize-64/alphasort.c: File removed.
12480         * sysdeps/wordsize-64/alphasort64.c: File removed.
12481         * sysdeps/wordsize-64/scandir.c: File removed.
12482         * sysdeps/wordsize-64/scandir64.c: File removed.
12483         * sysdeps/wordsize-64/scandirat.c: File removed.
12484         * sysdeps/wordsize-64/scandirat64.c: File removed.
12485         * sysdeps/wordsize-64/versionsort.c: File removed.
12486         * sysdeps/wordsize-64/versionsort64.c: File removed.
12487         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
12488         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
12489         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
12490         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
12491         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
12492         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
12493         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
12494         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
12495
12496         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
12497         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
12498         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
12499         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12500         [defined __arch64__ || defined __sparcv9]
12501         (__INO_T_MATCHES_INO64_T): New macro.
12502         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
12503         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
12504         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
12505         * sysdeps/unix/sysv/linux/bits/dirent.h
12506         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
12507         (_DIRENT_MATCHES_DIRENT64): New macro.
12508
12509         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
12510         Define lockf64 as an alias.
12511         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
12512         Define fseeko64 as an alias.
12513         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
12514         Define ftello64 as an alias.
12515         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
12516         Define _IO_fgetpos64 and fgetpos64 as aliases.
12517         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
12518         Define _IO_fsetpos64 and fsetpos64 as aliases.
12519         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
12520         Conditionalize body on this.
12521         * libio/fseeko64.c: Likewise.
12522         * libio/ftello64.c: Likewise.
12523         * libio/iofgetpos64.c: Likewise.
12524         * libio/iofsetpos64.c: Likewise.
12525         * sysdeps/wordsize-64/lockf.c: File removed.
12526         * sysdeps/wordsize-64/lockf64.c: File removed.
12527         * sysdeps/wordsize-64/fseeko.c: File removed.
12528         * sysdeps/wordsize-64/fseeko64.c: File removed.
12529         * sysdeps/wordsize-64/ftello.c: File removed.
12530         * sysdeps/wordsize-64/ftello64.c: File removed.
12531         * sysdeps/wordsize-64/iofgetpos.c: File removed.
12532         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
12533         * sysdeps/wordsize-64/iofsetpos.c: File removed.
12534         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
12535         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
12536         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
12537         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
12538         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
12539         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
12540         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
12541         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
12542         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
12543         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
12544         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
12545
12546         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
12547         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
12548         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
12549         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12550         [defined __arch64__ || defined __sparcv9]
12551         (__OFF_T_MATCHES_OFF64_T): New macro.
12552         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
12553         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
12554         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12555         (__OFF_T_MATCHES_OFF64_T): New macro.
12556
12557 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
12558
12559         * stdlib/secure-getenv.c (__secure_getenv): Replace
12560         GLIBC_2_16 with GLIBC_2_17.
12561
12562 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
12563
12564         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
12565         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
12566
12567 2012-08-03  David S. Miller  <davem@davemloft.net>
12568
12569         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12570
12571 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
12572
12573         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
12574         Remove.
12575         (__ASSUME_CORRECT_SI_PID): Likewise.
12576         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
12577         (__ASSUME_TMPFS_NAME): Likewise.
12578         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
12579         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
12580         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
12581         (HAVE_AUX_SECURE): Make definition unconditional.
12582         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
12583         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
12584
12585 2012-08-03  Roland McGrath  <roland@hack.frob.com>
12586
12587         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
12588         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
12589         * sysdeps/mach/hurd/eloop-threshold.h: New file.
12590         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
12591         __eloop_threshold instead of SYMLOOP_MAX.
12592
12593         * sysdeps/generic/eloop-threshold.h: New file.
12594         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
12595         of MAXSYMLINKS.
12596         * elf/chroot_canon.c (chroot_canon): Likewise.
12597
12598 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
12599
12600         [BZ #13717]
12601         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12602         Change to 2.6.0 everywhere.
12603         * sysdeps/unix/sysv/linux/configure: Regenerated.
12604         * sysdeps/unix/sysv/linux/kernel-features.h
12605         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
12606         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
12607         kernel versions.
12608         (__ASSUME_POSIX_TIMERS): Define unconditionally.
12609         (__ASSUME_FUTEX_REQUEUE): Remove.
12610         (__ASSUME_STATFS64): Define unconditionally.
12611         (__ASSUME_AT_SECURE): Likewise.
12612         (__ASSUME_CORRECT_SI_PID): Likewise.
12613         (__ASSUME_TGKILL): Define without depending on kernel version for
12614         i386.
12615         (__ASSUME_UTIMES): Likewise.
12616         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
12617         kernel version.
12618         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
12619         (__ASSUME_TMPFS_NAME): Likewise.
12620         * README: Update reference to Linux kernel versions.
12621
12622 2012-08-02  Marek Polacek  <polacek@redhat.com>
12623
12624         [BZ# 14150]
12625         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
12626         libc_cv_asm_type_prefix with %.
12627         * configure: Regenerated.
12628         * include/libc-symbols.h: Remove comment about
12629         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
12630         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
12631         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
12632         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
12633         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
12634         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
12635         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
12636         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
12637         * elf/tst-unique2mod1.c: Likewise.
12638         * elf/tst-unique1mod2.c: Likewise.
12639         * elf/tst-unique1mod1.c: Likewise.
12640         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
12641         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
12642         Replace ASM_TYPE_DIRECTIVE with .type.
12643         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12644         * sysdeps/i386/sysdep.h: Likewise.
12645         * sysdeps/x86_64/sysdep.h: Likewise.
12646         * sysdeps/sh/sysdep.h: Likewise.
12647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12648         Do not define ASM_TYPE_DIRECTIVE.
12649         * sysdeps/powerpc/sysdep.h: Likewise.
12650         * sysdeps/powerpc/powerpc32/sysdep.h:
12651         Replace ASM_TYPE_DIRECTIVE with .type.
12652         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12653         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12654         * sysdeps/i386/fpu/e_powf.S: Likewise.
12655         * sysdeps/i386/fpu/e_expl.S: Likewise.
12656         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12657         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12658         * sysdeps/i386/fpu/e_pow.S: Likewise.
12659         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12660         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12661         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12662         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12663         * sysdeps/i386/fpu/e_log2.S: Likewise.
12664         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12665         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12666         * sysdeps/i386/fpu/e_powl.S: Likewise.
12667         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12668         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12669         * sysdeps/i386/fpu/e_logl.S: Likewise.
12670         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12671         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12672         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12673         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12674         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12675         * sysdeps/i386/fpu/e_log.S: Likewise.
12676         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12677         * sysdeps/i386/fpu/e_logf.S: Likewise.
12678         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12679         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12680         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12681         * sysdeps/i386/fpu/e_log10.S: Likewise.
12682         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12683         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12684         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12685         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12686         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12687         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
12688         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12689         * sysdeps/i386/i686/strtok.S: Likewise.
12690         * sysdeps/i386/i386-mcount.S: Likewise.
12691         * sysdeps/i386/strtok.S: Likewise.
12692         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
12693         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12694         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12695         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12696         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12697         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12698         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12699         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12700         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12701         * sysdeps/x86_64/_mcount.S: Likewise.
12702         * sysdeps/x86_64/strtok.S: Likewise.
12703         * sysdeps/sh/_mcount.S: Likewise.
12704
12705 2012-08-01  Roland McGrath  <roland@hack.frob.com>
12706
12707         * libio/iofopen.c: Include <fcntl.h>.
12708         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
12709         (_IO_fopen64, fopen64): Define as aliases.
12710         * libio/iofopen64.c: Include <fcntl.h>.
12711         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
12712         Conditionalize body on this.
12713         * sysdeps/wordsize-64/iofopen.c: File removed.
12714         * sysdeps/wordsize-64/iofopen64.c: File removed.
12715
12716 2012-08-01  Marek Polacek  <polacek@redhat.com>
12717
12718         * libc/Makeconfig: Use elf in place of binfmt-subdir.
12719         Use dlfcn directly instead of a variable.
12720         (binfmt-subdir): Do not define.
12721         (dlfcn): Likewise.
12722
12723 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
12724
12725         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
12726         Remove all definitions.
12727         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
12728         <kernel-features.h>.
12729         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
12730         (miss_F_GETOWN_EX): Remove all definitions.
12731         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
12732         macro definition.
12733         [!__ASSUME_FCNTL64]: Remove conditional code.
12734         [__ASSUME_FCNTL64]: Make code unconditional.
12735         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
12736         <kernel-features.h>.
12737         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
12738         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
12739         (lockf64) [__NR_fcntl64]: Make code unconditional.
12740         (lockf64) [__ASSUME_FCNTL64]: Likewise.
12741
12742         * sysdeps/unix/sysv/linux/kernel-features.h
12743         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
12744         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
12745         Make code unconditional.
12746         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
12747         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
12748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
12749         [__NR_vfork]: Make code unconditional.
12750         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
12751         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
12752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
12753         [__NR_vfork]: Make code unconditional.
12754         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
12755         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
12756
12757 2012-08-01  Roland McGrath  <roland@hack.frob.com>
12758
12759         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
12760         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
12761
12762         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12763         Define mkstemp64 as an alias.
12764         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12765         Define mkstemps64 as an alias.
12766         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12767         Define mkostemp64 as an alias.
12768         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12769         Define mkostemps64 as an alias.
12770         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
12771         Conditionalize body on this.
12772         * misc/mkostemp64.c: Likewise.
12773         * misc/mkostemps64.c: Likewise.
12774         * misc/mkstemps64.c: Likewise.
12775         * sysdeps/wordsize-64/mkstemp64.c: File removed.
12776         * sysdeps/wordsize-64/mkostemp64.c: File removed.
12777         * sysdeps/wordsize-64/mkostemp.c: File removed.
12778         * sysdeps/wordsize-64/mkstemp.c: File removed.
12779         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
12780         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
12781         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
12782         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
12783
12784         [BZ #14138]
12785         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
12786         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
12787         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
12788         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
12789
12790         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
12791         compat_symbol macros from <shlib-compat.h> rather than the underlying
12792         default_symbol_version and symbol_version macros, so that DEFAULT
12793         lines in shlib-versions are respected.
12794         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
12795
12796 2012-08-01  Florian Weimer  <fweimer@redhat.com>
12797
12798         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
12799         Declare with warn_unused_result.
12800         (setgid, setregid, setegid, setresgid): Likewise.
12801         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
12802         Likewise.
12803         * WUR-REPORT: Remove set*id functions.
12804
12805 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
12806
12807         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
12808
12809 2012-07-31  Roland McGrath  <roland@hack.frob.com>
12810
12811         [BZ #10191]
12812         * include/sys/socket.h (__libc_accept, __libc_accept4):
12813         Add attribute_hidden.
12814         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
12815
12816         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
12817         use of PTR_MANGLE.
12818         * inet/getnetgrent_r.c (setup): Likewise.
12819
12820         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
12821
12822 2012-07-31  David S. Miller  <davem@davemloft.net>
12823
12824         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12825
12826 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
12827
12828         [BZ #13629]
12829         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
12830         value between 1.0 and 2.0 and smaller part has absolute value less
12831         than 1.0.
12832         * math/s_clog10.c (__clog10): Likewise.
12833         * math/s_clog10f.c (__clog10f): Likewise.
12834         * math/s_clog10l.c (__clog10l): Likewise.
12835         * math/s_clogf.c (__clogf): Likewise.
12836         * math/s_clogl.c (__clogl): Likewise.
12837         * math/libm-test.inc (clog_test): Add more tests.
12838         (clog10_test): Likewise.
12839         * sysdeps/i386/fpu/libm-test-ulps: Update.
12840         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12841
12842 2012-07-31  Florian Weimer  <fweimer@redhat.com>
12843
12844         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
12845         Exit with zero in case no suitable GID is found, and write a
12846         message to standard error.
12847
12848 2012-07-30  Roland McGrath  <roland@hack.frob.com>
12849
12850         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
12851         rather than to 1.
12852         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
12853         (MAXPATHLEN): Removed.
12854         (NOGROUP, NODEV): New macros.
12855         (setbit, clrbit, isset, isclr): New macros.
12856         (howmany, roundup, powerof2): New macros.
12857         (DEV_BSIZE): New macro.
12858
12859         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
12860         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
12861
12862         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
12863         definition on [!__NO_LONG_DOUBLE_MATH].
12864
12865         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
12866         PTR_MANGLE and PTR_DEMANGLE.
12867
12868         * socket/accept4.c (accept4): Rename to __libc_accept4.
12869         Define accept4 as a weak alias.
12870
12871         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
12872         on [_DIRENT_HAVE_D_TYPE].
12873         * io/ftw.c (ftw_dir): Likewise.
12874
12875         * io/xmknod.c (__xmknod): Don't check PATH for being null.
12876
12877         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
12878
12879         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
12880         Use the BSD numbers rather than the arbitrary ones we had.
12881         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
12882         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
12883         (SIGXCPU, SIGXFSZ): New macros.
12884         (_NSIG): Now 32.
12885
12886         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
12887         initializer on [_LIBC_REENTRANT].
12888
12889         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
12890         definitions inside [_POSIX_MAPPED_FILES].
12891
12892         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
12893
12894         * dirent/opendir.c: Include <fcntl.h>.
12895
12896         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
12897         (__libc_getspecific): Likewise.
12898         (__libc_key_create): Likewise.
12899
12900         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
12901         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
12902         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
12903         (tmpfile64): Define as alias.
12904         * sysdeps/wordsize-64/tmpfile.c: File removed.
12905         * sysdeps/wordsize-64/tmpfile64.c: File removed.
12906         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
12907         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
12908
12909         * stdio-common/vfscanf.c: Include <stdbool.h>.
12910         * nss/makedb.c: Likewise.
12911         * stdio-common/_i18n_number.h: Likewise.
12912         * argp/argp-help.c: Likewise.
12913         * posix/wordexp.c: Likewise.
12914         * sysdeps/posix/spawni.c: Likewise.
12915         * nss/nss_files/files-initgroups.c: Likewise.
12916         * stdio-common/reg-modifier.c: Include <stdlib.h>.
12917         * nss/nss_files/files-initgroups.c: Likewise.
12918         * nss/nss_db/db-netgrp.c: Likewise.
12919         * nss/nss_db/db-initgroups.c: Likewise.
12920         * io/fchmodat.c: Include <sys/stat.h>.
12921
12922         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
12923         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
12924
12925         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
12926         [HAVE_MMAP].
12927
12928         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
12929         Add multiple inclusion protection.
12930
12931 2012-07-27  David S. Miller  <davem@davemloft.net>
12932
12933         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12934
12935 2012-07-27  Gary Benson  <gbenson@redhat.com>
12936
12937         [BZ #14298]
12938         * elf/rtld.c: Include <stap-probe.h>.
12939         (dl_main): Added static probes "init_start" and "init_complete".
12940         * elf/dl-load.c: Include <stap-probe.h>.
12941         (lose): Take new parameter "nsid".
12942         Added static probe "map_failed".
12943         (_dl_map_object_from_fd): Pass namespace id to lose.
12944         Added static probe "map_start".
12945         (open_verify): Pass namespace id to lose.
12946         * elf/dl-open.c: Include <stap-probe.h>.
12947         (dl_open_worker) Added static probes "map_complete", "reloc_start"
12948         and "reloc_complete".
12949         * elf/dl-close.c: Include <stap-probe.h>.
12950         (_dl_close_worker): Added static probes "unmap_start" and
12951         "unmap_complete".
12952         * elf/rtld-debugger-interface.txt: New file documenting the above.
12953
12954 2012-07-26  Roland McGrath  <roland@hack.frob.com>
12955
12956         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
12957         rather than a string variable.
12958         * sunrpc/rpc_main.c (h_output): Likewise.
12959         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
12960
12961 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
12962
12963         * inet/check_native.c: New file.
12964
12965 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
12966
12967         [BZ #13629]
12968         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
12969         if larger part has absolute value 1.0.
12970         * math/s_clog10.c (__clog10): Likewise.
12971         * math/s_clog10f.c (__clog10f): Likewise.
12972         * math/s_clog10l.c (__clog10l): Likewise.
12973         * math/s_clogf.c (__clogf): Likewise.
12974         * math/s_clogl.c (__clogl): Likewise.
12975         * math/libm-test.inc (clog_test): Add more tests.
12976         (clog10_test): Likewise.
12977         * sysdeps/i386/fpu/libm-test-ulps: Update.
12978         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12979
12980         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
12981         (pltexit): Likewise.
12982         (La_regs): Likewise.
12983         (La_retval): Likewise.
12984         (int_retval): Likewise.
12985         Update #error for removed macros to refer only to definitions in
12986         tst-audit.h.
12987         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
12988         macro.
12989         (pltexit): Likewise.
12990         (La_regs): Likewise.
12991         (La_retval): Likewise.
12992         (int_retval): Likewise.
12993         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
12994         macro.
12995         (pltexit): Likewise.
12996         (La_regs): Likewise.
12997         (La_retval): Likewise.
12998         (int_retval): Likewise.
12999         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
13000         macro.
13001         (pltexit): Likewise.
13002         (La_regs): Likewise.
13003         (La_retval): Likewise.
13004         (int_retval): Likewise.
13005         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
13006         macro.
13007         (pltexit): Likewise.
13008         (La_regs): Likewise.
13009         (La_retval): Likewise.
13010         (int_retval): Likewise.
13011         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
13012         macro.
13013         (pltexit): Likewise.
13014         (La_regs): Likewise.
13015         (La_retval): Likewise.
13016         (int_retval): Likewise.
13017         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
13018         macro.
13019         (pltexit): Likewise.
13020         (La_regs): Likewise.
13021         (La_retval): Likewise.
13022         (int_retval): Likewise.
13023         * sysdeps/generic/tst-audit.h: Update comment to refer only to
13024         macro definitions in tst-audit.h.
13025         * sysdeps/i386/tst-audit.h: New file.
13026         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
13027         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
13028         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
13029         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
13030         * sysdeps/sh/tst-audit.h: Likewise.
13031         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
13032         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
13033         * sysdeps/x86_64/tst-audit.h: Likewise.
13034
13035 2012-07-26  Andreas Jaeger  <aj@suse.de>
13036
13037         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
13038         ptrace.
13039
13040         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
13041         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
13042         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
13043         PTRACE_O_MASK.
13044         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
13045         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
13046         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
13047
13048         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
13049         value.
13050
13051         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
13052         _sigsys.
13053         (si_call_addr, si_syscall, si_arch): Define new macro.
13054         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
13055         _sigsys.
13056         (si_call_addr, si_syscall, si_arch): Define new marcro.
13057         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
13058         _sigsys.
13059         (si_call_addr, si_syscall, si_arch): Define new macro.
13060         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
13061         _sigsys.
13062         (si_call_addr, si_syscall, si_arch): Define new macro.
13063
13064 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
13065
13066         [BZ #13717]
13067         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
13068         Change to 2.4.21 where previously 2.4.1.
13069         * sysdeps/unix/sysv/linux/configure: Regenerated.
13070         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
13071         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
13072         Linux kernel version.
13073         (__ASSUME_STD_AUXV): Remove.
13074         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
13075         kernel version.
13076         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
13077         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
13078         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
13079         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
13080         (__ASSUME_NETLINK_SUPPORT): Likewise.
13081         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
13082         (__no_netlink_support): Remove conditional definition.
13083         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
13084         Remove.
13085         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
13086         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
13087         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
13088         (if_nameindex_ioctl): Remove.
13089         (if_nameindex_netlink): Do not handle __no_netlink_support.
13090         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
13091         code.
13092         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
13093         Remove conditional code.
13094         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
13095         code.
13096         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
13097         unconditional.
13098         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
13099         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
13100         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
13101         Remove.
13102         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
13103         [!__ASSUME_STD_AUXV]: Remove conditional code.
13104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
13105         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
13106         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
13107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
13108         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
13109         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
13110         code.
13111         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
13112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
13113         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
13114         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
13115         conditional code.
13116         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
13117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
13118         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
13119         code.
13120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
13121         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
13122         conditional code.
13123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
13124         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
13125         code unconditional.
13126         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
13127         conditional code.
13128         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
13129         unconditional.
13130         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
13131         conditional code.
13132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
13133         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
13134         unconditional.
13135         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
13136         conditional code.
13137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
13138         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
13139         code unconditional.
13140         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
13141         conditional code.
13142         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
13143         unconditional.
13144         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
13145         conditional code.
13146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
13147         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
13148         code unconditional.
13149         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
13150         conditional code.
13151         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
13152         unconditional.
13153         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
13154         conditional code.
13155
13156 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
13157
13158         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
13159         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
13160         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
13161         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
13162         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
13163         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
13164         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
13165         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
13166         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
13167         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
13168         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
13169         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
13170         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
13171         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
13172         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
13173         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
13174         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
13175         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
13176         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
13177         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
13178         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
13179         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
13180         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
13181
13182 2012-07-25  Florian Weimer  <fweimer@redhat.com>
13183
13184         * Versions.def: Add GLIBC_2.17.
13185         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
13186         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
13187         Introduce __libc_secure_getenv.
13188         * stdlib/Versions (2.17): Add secure_getenv
13189         (GLIBC_PRIVATE): Add __libc_secure_getenv.
13190         * stdlib/secure-getenv.c: Rename __secure_getenv to
13191         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
13192         symbol __secure_getenv for GLIBC_2.0.
13193         * stdlib/tst-secure-getenv.c: New.
13194         * stdlib/Makefile (tests): Add testcase.
13195         * manual/startup.texi (Environment Access): Document
13196         secure_getenv.
13197         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
13198         __libc_secure_getenv.
13199         * inet/ruserpass.c (ruserpass): Likewise.
13200         * malloc/mtrace.c (mtrace): Likewise.
13201         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
13202         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
13203         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
13204         * sysdeps/posix/tempname.c: Likewise.  Evaluate
13205         HAVE_SECURE_GETENV.
13206         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
13207         __secure_getenv to __libc_secure_getenv.
13208         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
13209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13210         Likewise.
13211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13212         Likewise.
13213         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
13214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
13215         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13216         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
13217         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
13218         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13219         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
13220
13221 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
13222
13223         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
13224         (struct La_i86_retval): Likewise.
13225         (struct La_x86_64_regs): Likewise.
13226         (struct La_x86_64_retval): Likewise.
13227         (struct La_x32_regs): Likewise.
13228         (struct La_x32_retval): Likewise.
13229         (struct La_ppc32_regs): Likewise.
13230         (struct La_ppc32_retval): Likewise.
13231         (struct La_ppc64_regs): Likewise.
13232         (struct La_ppc64_retval): Likewise.
13233         (struct La_sh_regs): Likewise.
13234         (struct La_sh_retval): Likewise.
13235         (struct La_s390_32_regs): Likewise.
13236         (struct La_s390_32_retval): Likewise.
13237         (struct La_s390_64_regs): Likewise.
13238         (struct La_s390_64_retval): Likewise.
13239         (struct La_sparc32_regs): Likewise.
13240         (struct La_sparc32_retval): Likewise.
13241         (struct La_sparc64_regs): Likewise.
13242         (struct La_sparc64_retval): Likewise.
13243         (struct audit_ifaces): Remove architecture-specific pltenter and
13244         pltexit members.
13245         * sysdeps/i386/ldsodefs.h: New file.
13246         * sysdeps/powerpc/ldsodefs.h: Likewise.
13247         * sysdeps/s390/ldsodefs.h: Likewise.
13248         * sysdeps/sh/ldsodefs.h: Likewise.
13249         * sysdeps/sparc/ldsodefs.h: Likewise.
13250         * sysdeps/x86_64/ldsodefs.h: Likewise.
13251
13252 2012-07-25  Marek Polacek  <polacek@redhat.com>
13253
13254         [BZ #6808]
13255         * math/libm-test.inc (yn_test): Add another test.
13256         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
13257         to ERANGE when the result is +-Inf.
13258         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
13259         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
13260         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
13261         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
13262
13263 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
13264
13265         * conform/data/time.h-data (NULL): Use macro-constant.  Require
13266         equal to 0.
13267         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
13268         clock_t.
13269         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
13270
13271 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
13272
13273         * configure.in <sysdeps resolving>: Correct printing
13274         Implies_before.
13275         * configure: Regenerate.
13276
13277 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
13278
13279         * math/w_ilogb.c: Include <limits.h>.
13280         * math/w_ilogbl.c: Likewise.
13281
13282 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
13283
13284         * manual/lang.texi (__va_copy): Document primarily as ISO C99
13285         va_copy.  Document allowing for unavailable va_copy only as
13286         pre-C99 compatibility.
13287         * manual/string.texi (Copying and Concatenation): Use va_copy
13288         instead of __va_copy in concat example.
13289
13290 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
13291
13292         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
13293         (__sendto): Use create_address_port.  Initialize APORT and deallocate
13294         it if not null.
13295
13296         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
13297         with O_NOLINK passed to __file_name_lookup.
13298
13299         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
13300         with O_NOLINK passed to __file_name_lookup.
13301
13302         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
13303         negative N or less than NGIDS.
13304
13305         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
13306         type to string_t.  Set ERANGE as errno and return it if NAME is not big
13307         enough.  Use memcpy instead of strncpy.
13308
13309 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
13310
13311         * elf/Makefile (check-data): Remove.
13312         (localplt.data): New vpath directive.
13313         ($(objpfx)check-localplt.out): Use localplt.data from vpath
13314         instead of $(check-data).
13315         * scripts/data/localplt-generic.data: Move to ...
13316         * sysdeps/generic/localplt.data: ... here.
13317         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
13318         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
13319         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
13320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
13321         ... here.
13322         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
13323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
13324         ... here.
13325         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
13326         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
13327         ... here.
13328         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
13329         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
13330         ... here.
13331         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
13332         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
13333         ... here.
13334         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
13335         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
13336         ... here.
13337
13338 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13339
13340         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
13341         PPC32 and PPC64 files.
13342         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
13343         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
13344
13345 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13346
13347         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
13348         __makecontext_ret to ...
13349         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
13350         ... here and call exit if uc_link is NULL.  New file.
13351         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
13352         __makecontext_ret.S.
13353         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
13354         __makecontext_ret to ...
13355         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
13356         ... here and call exit if uc_link is NULL.  New file.
13357         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
13358         __makecontext_ret.S.
13359
13360 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13361
13362         * elf/elf.h (R_390_IRELATIVE): New definition.
13363         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
13364         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
13365         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
13366         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13367         (elf_machine_lazy_rel): Likewise.
13368         * sysdeps/s390/dl-irel.h: New file.
13369         * sysdeps/s390/s390-64/memcpy.S: New asm code.
13370         * sysdeps/s390/s390-64/memset.S: New asm code.
13371         * sysdeps/s390/s390-64/memcmp.S: New asm code.
13372         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
13373         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
13374         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
13375         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
13376         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
13377         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
13378         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
13379         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
13380         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
13381         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
13382         * sysdeps/s390/s390-32/memcpy.S: New asm code.
13383         * sysdeps/s390/s390-32/memset.S: New asm code.
13384         * sysdeps/s390/s390-32/memcmp.S: New asm code.
13385
13386 2012-07-17  Marek Polacek  <polacek@redhat.com>
13387
13388         [BZ #14349]
13389         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
13390         * sysdeps/s390/s390-64/configure.in: Likewise.
13391         * sysdeps/sparc/configure.in: Likewise.
13392         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
13393         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
13394         * sysdeps/i386/configure.in: Likewise.
13395         * sysdeps/x86_64/configure.in: Likewise.
13396         * sysdeps/sh/configure.in: Likewise.
13397         * sysdeps/s390/s390-32/configure: Regenerated.
13398         * sysdeps/s390/s390-64/configure: Likewise.
13399         * sysdeps/x86_64/configure: Likewise.
13400         * sysdeps/sh/configure: Likewise.
13401         * sysdeps/powerpc/powerpc64/configure: Likewise.
13402         * sysdeps/powerpc/powerpc32/configure: Likewise.
13403         * sysdeps/sparc/configure: Likwise.
13404         * sysdeps/i386/configure: Likewise.
13405
13406         * elf/dl-open.c: Comment fixes.
13407
13408 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
13409
13410         * Makefile [CXX] (check-data): Remove.
13411         [CXX] (c++-types.data): New vpath directive.
13412         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
13413         vpath.  Do not allow for C++ type data being missing.
13414         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
13415         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
13416         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
13417         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
13418         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
13419         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
13420         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
13421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
13422         ... here.
13423         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
13424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
13425         ... here.
13426         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
13427         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
13428         ... here.
13429         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
13430         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
13431         ... here.
13432         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
13433         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
13434         ... here.
13435         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
13436         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
13437         ... here.
13438         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
13439         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
13440         ... here.
13441         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
13442         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
13443
13444         * elf/tls-macros.h (TLS_LE): Move architecture-specific
13445         definitions to architecture-specific files.
13446         (TLS_IE): Likewise.
13447         (TLS_LD): Likewise.
13448         (TLS_GD): Likewise.
13449         * sysdeps/i386/tls-macros.h: New file.
13450         * sysdeps/powerpc/tls-macros.h: Likewise.
13451         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
13452         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
13453         * sysdeps/sh/tls-macros.h: Likewise.
13454         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
13455         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
13456         * sysdeps/x86_64/tls-macros.h: Likewise.
13457
13458 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
13459
13460         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
13461         zero value for regular exit case.
13462
13463         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
13464         (__start_context): Preserve zero value for regular exit case.
13465
13466 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
13467             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13468
13469         * manual/setjmp.texi (setcontext): Clarify normal process
13470         termination when uc_link is the null pointer.
13471         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
13472         exit call.
13473
13474 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
13475
13476         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
13477         preprocessor.  Test for each exception mask separately.
13478
13479 2012-07-16  Andreas Jaeger  <aj@suse.de>
13480
13481         * po/ru.po: Update from translation team.
13482
13483 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
13484
13485         * conform/data/string.h-data (NULL): Use macro-constant.  Require
13486         equal to 0.
13487         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
13488         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
13489         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
13490         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
13491         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13492
13493 2012-07-13  Andreas Jaeger  <aj@suse.de>
13494
13495         * po/fr.po: Update from translation team.
13496
13497 2012-07-12  Marek Polacek  <polacek@redhat.com>
13498
13499         [BZ #14173]
13500         * math/libm-test.inc (yn_test): Add test for BZ #14173.
13501         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
13502         loop condition.
13503
13504 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
13505
13506         [BZ #13717]
13507         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
13508         Change to 2.4.1 where previously 2.4.0.
13509         * sysdeps/unix/sysv/linux/configure: Regenerated.
13510         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
13511         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
13512         version.
13513         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
13514         (__ASSUME_AT_CLKTCK): Remove.
13515         (__ASSUME_AT_PAGESIZE): Likewise.
13516         (__ASSUME_AT_XID): Likewise.
13517         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
13518         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
13519         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
13520         unconditionally.
13521         (HAVE_AUX_PAGESIZE): Likewise.
13522         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
13523         [__ASSUME_AT_CLKTCK]: Make code unconditional.
13524         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
13525
13526 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
13527
13528         [BZ #14307]
13529         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
13530         the temporary buffer used to invoke __gethostbyname2_r,
13531         __gethostbyaddr_r and gethostbyname4_r to make room for struct
13532         host_data / struct gaih_addrtuple.
13533         * resolv/nss_dns/dns-host.c (global scope): Move definition of
13534         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
13535         header file nss/nsswitch.h.
13536         * nss/nsswitch.h (global scope): Add definition of implementation
13537         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
13538         resolv/nss_dns/dns-host.c).
13539
13540 2012-07-11  Andreas Jaeger  <aj@suse.de>
13541
13542         * po/fr.po: Update from translation team.
13543
13544         * po/sv.po: Update from translation team
13545         * po/fr.po: Another update from translation team.
13546
13547 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13548
13549         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
13550         for subnormals or multiply small sinh result by itself.
13551         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
13552         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13553
13554 2012-07-11  David S. Miller  <davem@davemloft.net>
13555
13556         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13557
13558 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
13559
13560         [BZ #14347]
13561         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
13562         (INTERNAL_MARK): Shift it here.
13563
13564 2012-07-10  Marek Polacek  <polacek@redhat.com>
13565
13566         [BZ #14151]
13567         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
13568         libc_cv_asm_global_directive with .globl.
13569         * configure: Regenerated.
13570         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
13571         with .globl.
13572         * sysdeps/i386/configure: Regenerated.
13573         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
13574         with .globl.
13575         * sysdeps/x86_64/configure: Regenerated.
13576         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
13577         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
13578         * elf/tst-unique2mod2.c: Likewise.
13579         * elf/tst-unique2mod1.c: Likewise.
13580         * elf/tst-unique1mod2.c: Likewise.
13581         * elf/tst-unique1mod1.c: Likewise.
13582         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13583         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
13584         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13585         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
13586         * sysdeps/mach/sysdep.h: Likewise.
13587         * sysdeps/i386/sysdep.h: Likewise.
13588         * sysdeps/i386/i386-mcount.S: Likewise.
13589         * sysdeps/x86_64/_mcount.S: Likewise.
13590         * sysdeps/x86_64/sysdep.h: Likewise.
13591         * sysdeps/sh/_mcount.S: Likewise.
13592         * sysdeps/sh/sysdep.h: Likewise.
13593         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
13594         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
13595         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
13596         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13597         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
13598         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
13599         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
13600         * locale/localeinfo.h: Likewise.
13601         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
13602         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
13603
13604 2012-07-09  Roland McGrath  <roland@hack.frob.com>
13605
13606         [BZ #14336]
13607         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
13608         system".
13609         * manual/message.texi (The Uniforum approach): Likewise.
13610         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
13611         (glibc iconv Implementation): Likewise.
13612
13613 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
13614
13615         [BZ #14337]
13616         * math/s_clog.c (__clog): Avoid scaling a value down where that
13617         could result in underflow.
13618         * math/s_clog10.c (__clog10): Likewise.
13619         * math/s_clog10f.c (__clog10f): Likewise.
13620         * math/s_clog10l.c (__clog10l): Likewise.
13621         * math/s_clogf.c (__clogf): Likewise.
13622         * math/s_clogl.c (__clogl): Likewise.
13623         * math/libm-test.inc (clog_test): Add more tests.
13624         (clog10_test): Likewise.
13625         * sysdeps/i386/fpu/libm-test-ulps: Update.
13626         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13627
13628 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
13629
13630         [BZ #14283]
13631         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
13632         by 7 not 8 to examine high bit of fractional part.
13633
13634         [BZ #14042]
13635         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
13636         for call to __mcount_internal.
13637         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
13638         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
13639         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
13640
13641 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
13642
13643         [BZ #14154]
13644         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
13645         approximation for values within 0x1p-13f of an odd multiple of
13646         pi/4.
13647         * math/libm-test.inc (tan_test): Do not allow spurious underflow
13648         exception.  Add more tests.
13649         * sysdeps/i386/fpu/libm-test-ulps: Update.
13650
13651         [BZ #6778]
13652         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
13653         inputs and return -1 for them.  Do not check for +Inf in case not
13654         reachable for +Inf.
13655         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
13656         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
13657         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
13658         and return -1 for them.  Do not check for +Inf in case not
13659         reachable for +Inf.
13660         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
13661         define.
13662         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
13663         and return -1 for them.  Do not check for +Inf in case not
13664         reachable for +Inf.
13665         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
13666         spurious underflow.
13667         * sysdeps/i386/fpu/libm-test-ulps: Update.
13668         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13669
13670 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
13671
13672         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
13673
13674 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
13675
13676         [BZ #14157]
13677         [BZ #14331]
13678         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
13679         could result in spurious underflow.  Scale down values above
13680         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
13681         * math/s_csqrtf.c (__csqrtf): Likewise.
13682         * math/s_csqrtl.c (__csqrtl): Likewise.
13683         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
13684         spurious underflow.
13685         * sysdeps/i386/fpu/libm-test-ulps: Update.
13686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13687
13688 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
13689
13690         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
13691         xopen-msg.sed.
13692         * catgets/xopen-msg.awk: New file.
13693         * catgets/xopen-msg.sed: Removed.
13694
13695         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
13696         po2text.sed.
13697         * intl/po2test.awk: New file.
13698         * intl/po2test.sed: Removed.
13699
13700 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
13701
13702         [BZ #14328]
13703         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
13704         or multiply small sinh result by itself.
13705         * math/s_ctanf.c (__ctanf): Likewise.
13706         * math/s_ctanh.c (__ctanh): Likewise.
13707         * math/s_ctanhf.c (__ctanhf): Likewise.
13708         * math/s_ctanhl.c (__ctanhl): Likewise.
13709         * math/s_ctanl.c (__ctanl): Likewise.
13710         * math/libm-test.inc (ctan_test_tonearest): New function.
13711         (ctan_test_towardzero): Likewise.
13712         (ctan_test_downward): Likewise.
13713         (ctan_test_upward): Likewise.
13714         (ctanh_test_tonearest): Likewise.
13715         (ctanh_test_towardzero): Likewise.
13716         (ctanh_test_downward): Likewise.
13717         (ctanh_test_upward): Likewise.
13718         (main): Call these new functions.
13719         * sysdeps/i386/fpu/libm-test-ulps: Update.
13720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13721
13722 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
13723
13724         * .gitignore: Delete /ports entry.
13725
13726 2012-07-03  Andreas Jaeger  <aj@suse.de>
13727
13728         * po/bg.po: Update from translation team.
13729         * po/cs.po: Likewise.
13730         * po/de.po: Likewise.
13731         * po/hr.po: Likewise.
13732         * po/nl.pl: Likewise.
13733         * po/pl.po: Likewise.
13734         * po/vi.po: Likewise.
13735
13736 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
13737
13738         * Makeconfig [!+link] (+link-before-libc): New variable.
13739         [!+link] (+link-after-libc): Likewise.
13740         [!+link] (+link-tests): Likewise.
13741         [!+link] (+link): Define in terms of $(+link-before-libc) and
13742         $(+link-after-libc).
13743         [!+link-static] (+link-static-before-libc): New variable.
13744         [!+link-static] (+link-static-after-libc): Likewise.
13745         [!+link-static] (+link-static-tests): Likewise.
13746         [!+link-static] (+link-static): Define in terms of
13747         $(+link-static-before-libc) and $(+link-static-after-libc).
13748         [build-shared] (link-libc-before-gnulib): New variable.
13749         [build-shared] (link-libc-tests): Likewise.
13750         [build-shared] (link-libc): Define in terms of
13751         $(link-libc-before-gnulib).
13752         [!build-shared] (link-libc-tests): New variable.
13753         (link-libc-static-tests): New variable.
13754         [!gnulib] (gnulib-arch): New variable.
13755         [!gnulib] (gnulib-tests): Likewise.
13756         [!gnulib] (static-gnulib-arch): Likewise.
13757         [!gnulib] (static-gnulib-tests): Likewise.
13758         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
13759         Define with "=" instead of ":=".
13760         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
13761         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
13762         * Rules (binaries-all-notests): New variable.
13763         (binaries-all-tests): Likewise.
13764         (binaries-static-notests): Likewise.
13765         (binaries-static-tests): Likewise.
13766         (binaries-all): Define using $(binaries-all-notests) and
13767         $(binaries-all-tests).
13768         (binaries-static): Define using $(binaries-static-notests) and
13769         $(binaries-static-tests).
13770         (binaries-shared-tests): New variable.
13771         (binaries-shared-notests): Likewise.
13772         (binaries-shared): Remove variable.
13773         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
13774         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
13775         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
13776         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
13777         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
13778         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
13779         * elf/Makefile (sln-modules): New variable.
13780         (extra-objs): Add $(sln-modules:=.o).
13781         (ldconfig-modules): Add static-stubs.
13782         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
13783         * elf/static-stubs.c: New file.
13784
13785         [BZ #14283]
13786         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
13787         by 7 not 8 to examine high bit of fractional part.  Use volatile
13788         variables when splitting into final array of floats if
13789         __FLT_EVAL_METHOD__ != 0.
13790         * math/libm-test.inc (cos_test): Add another test.
13791         (sin_test): Likewise.
13792         * sysdeps/i386/fpu/libm-test-ulps: Update.
13793
13794         [BZ #14273]
13795         * math/libm-test.inc (cosh_test): Add more tests.
13796
13797         * version.h (RELEASE): Set to "development".
13798         (VERSION): Set to "2.16.90".
13799
13800 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
13801
13802         * NEWS: Update copyright. Remove last-updated date.
13803         Mention math library bug fixes and timezone data changes.
13804         * README: Mention GNU/Hurd, x32, and HPPA support status.
13805
13806 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
13807
13808         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
13809
13810 2012-06-27  Andreas Jaeger  <aj@suse.de>
13811
13812         * manual/contrib.texi (Contributors): Add Samuel Thibault.
13813
13814 2012-06-25  Andreas Jaeger  <aj@suse.de>
13815
13816         * sysdeps/s390/fpu/libm-test-ulps: Update.
13817
13818 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
13819             Thomas Schwinge  <thomas@codesourcery.com>
13820
13821         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
13822         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
13823         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
13824         fanotify_mark.
13825
13826 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
13827
13828         * sysdeps/mach/start.c: Remove file.
13829         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
13830         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
13831         * sysdeps/sh/init-first.c: Likewise.
13832
13833         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
13834         registers for frame unwinding purposes, add CFI directives.
13835         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
13836         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
13837         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
13838         Likewise.
13839
13840         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
13841         __fortify_fail returning.
13842         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
13843
13844         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
13845         sysdeps/sh/____longjmp_chk.S.
13846         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
13847         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
13848         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
13849         (gen-as-const-headers): Append sigaltstack-offsets.sym.
13850
13851         * sysdeps/sh/abort-instr.h: New file.
13852         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
13853         process in case exit returns.
13854
13855         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
13856         initialize the GOT register before use.
13857
13858         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
13859         calculation of ARGC > 4.
13860
13861         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
13862         meaningful names to some local labels.
13863
13864 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13865             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13866
13867         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
13868         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
13869         (__arch_compare_and_exchange_val_16_acq): Likewise.
13870         (__arch_compare_and_exchange_val_32_acq): Likewise.
13871         (atomic_exchange_and_add): Fix gUSA sequence.
13872         (atomic_add): Likewise.
13873         (atomic_add_negative): Likewise.
13874         (atomic_add_zero): Likewise.
13875         (atomic_bit_test_set): Likewise.
13876
13877 2012-06-22  Andreas Schwab  <schwab@redhat.com>
13878
13879         [BZ #13579]
13880         * include/link.h (struct link_map): Add l_free_initfini.
13881         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
13882         l_initfini.
13883         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
13884         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
13885         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
13886         set.
13887
13888 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
13889
13890         * configure.in: Use AC_LANG_SOURCE.
13891         * configure: Regenerate.
13892
13893 2012-06-22  Roland McGrath  <roland@hack.frob.com>
13894
13895         * configure.in (libc_cv_localstatedir): New substituted variable.
13896         * configure: Regenerated.
13897         * config.make.in (localstatedir): New variable, substituted from
13898         libc_cv_localstatedir.
13899         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
13900         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
13901         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
13902         * sysdeps/gnu/configure: Regenerated.
13903
13904 2012-06-21  Jeff Law  <law@redhat.com>
13905
13906         [BZ #14277]
13907         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
13908         free.  Simplify list management for _LIBC case.
13909
13910 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
13911
13912         [BZ #14273]
13913         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
13914         Clear sign bit of 64-bit integer value before comparing against
13915         overflow value.
13916
13917         * sysdeps/mach/configure: Regenerated.
13918
13919 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13920
13921         [BZ #14278]
13922         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
13923
13924 2012-06-21  Jeff Law  <law@redhat.com>
13925
13926         [BZ #13882]
13927         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
13928         uint16_t for elements in the "seen" array to avoid char overflows.
13929         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13930         * elf/dl-open.c (dl_open_worker): Likewise.
13931
13932 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
13933
13934         * scripts/list-sources.sh: Scan PORTS for translations.
13935         * po/libc.pot: Regenerated.
13936
13937 2012-06-21  Andreas Jaeger  <aj@suse.de>
13938
13939         [BZ #12194]
13940         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
13941         warning.
13942         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
13943         * bits/byteswap-16.h (__bswap_16): Likewise.
13944         * bits/byteswap.h (__bswap_constant_16): Likewise.
13945
13946 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13947
13948         [BZ #14117]
13949         * sysdeps/i386/fpu_control.h: Removed.
13950         * sysdeps/x86_64/fpu_control.h: Moved to ...
13951         * sysdeps/x86/fpu_control.h: Here.
13952
13953         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
13954         (_FPU_SETCW): Likewise.
13955
13956 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
13957
13958         [BZ #14117]
13959         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
13960         * sysdeps/x86/fpu/bits/mathinline.h: This.
13961         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
13962
13963         [BZ #14050]
13964         [BZ #14117]
13965         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
13966         functions if __x86_64__ is defined.
13967
13968 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
13969
13970         * string/endian.h: Add !__ASSEMBLER__ condition for including
13971         conversion interfaces.
13972
13973 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
13974
13975         [BZ #14241]
13976         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
13977         of ABS(x) in calculating zero to negative powers other than odd
13978         integers.
13979         * math/libm-test.inc (pow_test): Add more tests.
13980
13981 2012-06-15  Andreas Jaeger  <aj@suse.de>
13982
13983         * manual/contrib.texi (Contributors): Update entry of Liubov
13984         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
13985         Machado Filho.
13986
13987 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
13988
13989         * string/string.h: Add __wur to GNU version of strerror_r.
13990
13991 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13992
13993         [BZ #14229]
13994         * string/Makefile (tests): Add tst-strtok_r.
13995         * string/tst-strtok_r.c: New file.
13996         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
13997         RAX_LP/RDX_LP on SAVE_PTR.
13998
13999 2012-06-14  Roland McGrath  <roland@hack.frob.com>
14000
14001         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
14002
14003 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
14004
14005         * libm_test.inc (csqrt_test): Allow more spurious underflow
14006         exceptions.
14007         (j0_test): Likewise.
14008         (j1_test): Likewise.
14009         (y0_test): Likewise.
14010         (y1_test): Likewise.
14011
14012 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
14013
14014         * po/Makefile (libc.pot): Use UTF-8 charset.
14015
14016 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
14017
14018         [BZ #14210]
14019         Suppress sign-conversion warning from FD_SET.
14020         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
14021         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
14022         not unsigned long int.
14023         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
14024
14025 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
14026
14027         [BZ #14050]
14028         [BZ #14117]
14029         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
14030         __extern_always_inline instead of __extern_inline.
14031         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
14032         (__signbit): Likewise.
14033         (__signbitl): Support C++ namespace.
14034         (lrintf): New inline function.
14035         (lrint): Likewise.
14036         (llrintf): Likewise.
14037         (llrint): Likewise.
14038         (fmaxf): Likewise.
14039         (fmax): Likewise.
14040         (fminf): Likewise.
14041         (fmin): Likewise.
14042         (rint): Likewise.
14043         (rintf): Likewise.
14044         (ceil): Likewise.
14045         (ceilf): Likewise.
14046         (floor): Likewise.
14047         (floorf): Likewise.
14048         (nearbyint): Likewise.
14049         (nearbyintf): Likewise.
14050
14051 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
14052
14053         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
14054         non-default versions.
14055
14056 2012-06-11  Roland McGrath  <roland@hack.frob.com>
14057
14058         [BZ #14218]
14059         * manual/argp.texi (Argp): Reword argp_parse description slightly.
14060
14061 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
14062
14063         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
14064         (FE_UPWARD, FE_DOWNWARD): Don't define.
14065         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
14066         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
14067
14068         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
14069         reading it.
14070         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
14071         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14072
14073 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14074
14075         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
14076         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
14077         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
14078         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
14079
14080 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
14081
14082         [BZ #14117]
14083         * sysdeps/i386/fpu/bits/fenv.h: Removed.
14084         * sysdeps/i386/fpu/Implies: New file.
14085         * sysdeps/x86_64/fpu/Implies: Likewise.
14086         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
14087         * sysdeps/x86/fpu/bits/fenv.h: This.
14088
14089         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
14090         __SSE_MATH__.
14091
14092 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
14093
14094         [BZ #14134]
14095         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
14096         character 0xffff that matches the last element of the
14097         conversion table.
14098
14099 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14100
14101         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
14102         fmodl commit.
14103
14104 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14105
14106         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
14107         values higher than 25.6283.
14108
14109 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14110
14111         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
14112         subnormal exponent extraction and add some __builtin_expect.
14113         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
14114         Fix for subnormal mantissa calculation.
14115
14116 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
14117
14118         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
14119         cpu2 is -1 and errno is not ENOSYS.
14120
14121 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
14122
14123         [BZ #14117]
14124         * sysdeps/i386/i486/bits/string.h: Renamed to ...
14125         * sysdeps/x86/bits/string.h: This.
14126         * sysdeps/x86_64/bits/string.h: Removed.
14127
14128         * sysdeps/i386/i486/bits/string.h: Define inline functions only
14129         if not compiling for x86-64, but compiling for >= i486.
14130
14131         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
14132         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
14133
14134         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
14135         New macro from Linux kernel 3.4.0.
14136         (FP_XSTATE_MAGIC2): Likewise.
14137         (FP_XSTATE_MAGIC2_SIZE): Likewise.
14138         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
14139         (struct _fpx_sw_bytes): New struct.
14140         (struct _xsave_hdr): Likewise.
14141         (struct _ymmh_state): Likewise.
14142         (struct _xstate): Likewise.
14143
14144         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
14145         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
14146         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
14147         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
14148         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
14149         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
14150
14151         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
14152         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
14153         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
14154         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
14155         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
14156         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
14157
14158 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14159
14160         [BZ #13743]
14161         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
14162         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
14163         (sysdep_headers): Include sys/platform/ppc.h.
14164         * sysdeps/powerpc/test-gettimebase.c: Test for
14165         __ppc_get_timebase() to catch future ISA opcode/insn changes.
14166         * manual/Makefile (appendices): Include platform.texi.
14167         * manual/contrib.texi (Contributors): Update @node pointers.
14168         * manual/maint.texi (Maintenance): Likewise.
14169         (Platform): New node.
14170         * manual/platform.texi: New file.  Document the new features.
14171
14172 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14173             Jakub Jelinek  <jakub@redhat.com>
14174
14175         [BZ #14188]
14176         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
14177         where __builtin_expect is unavailable.
14178
14179 2012-06-03  David S. Miller  <davem@davemloft.net>
14180
14181         * stdlib/longlong.h: Updated from GCC.
14182
14183 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
14184
14185         [BZ #14042]
14186         * sysdeps/powerpc/powerpc32/mcount.c: New file.
14187         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
14188         __mcount_internal.
14189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
14190         (GLIBC_2.16): Likewise.
14191
14192 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
14193
14194         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
14195
14196 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
14197
14198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
14199         (default-abi): New variable.
14200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
14201         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
14202         variable.
14203         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
14204         Likewise.
14205         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
14206         Likewise.
14207         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
14208         Likewise.
14209
14210         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
14211         definition.  Document in comment.
14212
14213 2012-06-01  David S. Miller  <davem@davemloft.net>
14214
14215         * stdlib/longlong.h: Updated from GCC.
14216
14217 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
14218
14219         [BZ #14117]
14220         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
14221         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
14222         sys/debugreg.h sys/io.h here.
14223         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
14224         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
14225         sys/io.h.
14226         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
14227         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
14228         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
14229         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
14230         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
14231         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
14232
14233         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
14234         Define only if __x86_64__ is defined.
14235
14236 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
14237
14238         [BZ #14048]
14239         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
14240         Use int64_t for variable i.
14241         * math/libm-test.inc (fmod_test): Add more tests.
14242
14243         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
14244         z computation is not scheduled after fetestexcept.
14245         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
14246         Use math_force_eval instead of asm to ensure calculation scheduled
14247         before exception test.
14248         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
14249         Ensure a1 + u.d computation is not scheduled after fetestexcept.
14250
14251 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
14252
14253         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
14254         computation is not scheduled after fetestexcept.
14255
14256 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
14257
14258         [BZ #14117]
14259         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
14260         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
14261
14262 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14263
14264         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
14265         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
14266
14267 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
14268
14269         [BZ #14117]
14270         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
14271         <bits/wordsize.h>.
14272         (__WCHAR_MIN): Support __WORDSIZE == 64.
14273         (__WCHAR_MAX): Likewise.
14274
14275         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
14276         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
14277
14278         [BZ #14183]
14279         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
14280         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
14281
14282         [BZ #14117]
14283         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
14284         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
14285
14286         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
14287         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
14288
14289         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
14290         Defined to 1 if __x86_64__ isn't defined.
14291         (_STAT_VER_LINUX_OLD): New.
14292         (st_atime): Remove duplicate.
14293         (st_mtime): Likewise.
14294         (st_ctime): Likewise.
14295
14296 2012-05-31  David S. Miller  <davem@davemloft.net>
14297
14298         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
14299         entries.
14300
14301 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
14302
14303         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
14304         gen-libm-test.pl.
14305
14306         [BZ #14132]
14307         * elf/dl-reloc.c: Include <_itoa.h>.
14308         (_dl_reloc_bad_type): Remove use of INTUSE.
14309         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
14310         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
14311         * stdio-common/psiginfo.c (psiginfo): Likewise.
14312         * stdio-common/psignal.c (psignal): Likewise.
14313         * string/strsignal.c (strsignal): Likewise.
14314         * include/signal.h (_sys_siglist): Declare hidden proto.
14315         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
14316         INTVARDEF with libc_hidden_data_def.
14317         * stdio-common/itoa-udigits.c: Likewise.
14318         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
14319         (_itoa_lower_digits_internal): Remove declaration.
14320         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
14321         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
14322         (_sys_sigabbrev_internal): Remove aliases.
14323         (_sys_siglist): Define hidden alias.
14324
14325 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
14326
14327         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14328         bits/sysctl.h.
14329
14330 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
14331
14332         [BZ #14117]
14333         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
14334         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
14335
14336         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
14337         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
14338         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
14339         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
14340         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
14341         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
14342
14343         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
14344         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
14345         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
14346
14347         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
14348         with __addr.
14349         (insw): Likewise.
14350         (insl): Likewise.
14351         (outsb): Likewise.
14352         (outsw): Likewise.
14353         (outsl): Likewise.
14354
14355         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
14356         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
14357         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
14358
14359         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
14360         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
14361         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
14362         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
14363         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
14364         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
14365
14366         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
14367         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
14368
14369         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
14370         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
14371
14372         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
14373         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
14374         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
14375
14376         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
14377         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
14378         to ...
14379         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
14380
14381         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
14382         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
14383         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
14384
14385         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
14386         for x86-64.
14387         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
14388
14389 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
14390
14391         * math/math.h (M_El): Use two more decimal places.
14392         (M_LOG2El): Likewise.
14393         (M_LOG10El): Likewise.
14394         (M_LN2l): Likewise.
14395         (M_LN10l): Likewise.
14396         (M_PIl): Likewise.
14397         (M_PI_2l): Likewise.
14398         (M_PI_4l): Likewise.
14399         (M_1_PIl): Likewise.
14400         (M_2_PIl): Likewise.
14401         (M_2_SQRTPIl): Likewise.
14402         (M_SQRT2l): Likewise.
14403         (M_SQRT1_2l): Likewise.
14404
14405 2012-05-31  David S. Miller  <davem@davemloft.net>
14406
14407         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
14408         values between float registers.
14409         * sysdeps/sparc/sparc64/memset.S: Likewise.
14410         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
14411
14412 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
14413
14414         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
14415         -D_FORTIFY_SOURCE=1.
14416         (CPPFLAGS-tst-longjmp_chk.c): Define.
14417         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
14418         (CPPFLAGS-tst-longjmp_chk2.c): Define.
14419         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
14420         CFLAGS-tst-wchar-h.c.
14421
14422 2012-05-31  Marek Polacek  <polacek@redhat.com>
14423
14424         [BZ #14132]
14425         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
14426         __endmntent_internal): Remove declaration.
14427         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
14428         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
14429         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
14430
14431 2012-05-30  David S. Miller  <davem@davemloft.net>
14432
14433         * sysdeps/sparc/sparc32/soft-fp/q_util.c
14434         (___Q_simulate_exceptions): Use real FP ops rather than writing
14435         into the %fsr.
14436         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
14437         Likewise.
14438
14439 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
14440
14441         [BZ #14117]
14442         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
14443         * sysdeps/x86/bits/xtitypes.h: This.
14444
14445         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
14446         * sysdeps/x86/bits/wordsize.h: This.
14447
14448         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
14449         * sysdeps/x86/bits/huge_vall.h: This.
14450
14451         * sysdeps/i386/bits/select.h: Removed.
14452         * sysdeps/x86_64/bits/select.h: Renamed to ...
14453         * sysdeps/x86/bits/select.h: This.
14454
14455         * sysdeps/i386/bits/setjmp.h: Removed.
14456         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
14457         * sysdeps/x86/bits/setjmp.h: This.
14458
14459         * sysdeps/i386/bits/mathdef.h: Removed.
14460         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
14461         * sysdeps/x86/bits/mathdef.h: This.
14462
14463 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
14464
14465         [BZ #14132]
14466         * include/sys/socket.h (__connect_internal)
14467         (__libc_sa_len_internal): Remove declaration.
14468         (__connect, __libc_sa_len): Declare hidden_proto.
14469         (SA_LEN): Remove use of INTUSE.
14470         * socket/connect.c: Add libc_hidden_def.
14471         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
14472         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
14473         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
14474         alias.
14475         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
14476         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
14477         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
14478         of adding _internal alias.
14479
14480 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
14481
14482         [BZ #14117]
14483         * sysdeps/i386/bits/link.h: Removed.
14484         * sysdeps/i386/bits/linkmap.h: Likewise.
14485         * sysdeps/x86_64/bits/link.h: Renamed to ...
14486         * sysdeps/x86/bits/link.h: This.
14487         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
14488         * sysdeps/x86/bits/linkmap.h: This.
14489
14490         * sysdeps/i386/bits/endian.h: Removed.
14491         * sysdeps/x86_64/bits/endian.h: Renamed to ...
14492         * sysdeps/x86/bits/endian.h: This.
14493
14494         * sysdeps/i386/bits/byteswap.h: Removed.
14495         * sysdeps/i386/bits/byteswap-16.h: Likewise.
14496         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
14497         * sysdeps/x86/bits/byteswap.h: This.
14498         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
14499         * sysdeps/x86/bits/byteswap-16.h: This.
14500         * sysdeps/i386/Implies: Add x86.
14501         * sysdeps/x86_64/Implies: Likewise.
14502
14503 2012-05-30  David S. Miller  <davem@davemloft.net>
14504
14505         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
14506         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
14507         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
14508         (FP_TRAPPING_EXCEPTIONS): Define.
14509         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
14510         (FP_TRAPPING_EXCEPTIONS): Define.
14511         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
14512         subnormals only when inexact has been signalled or underflow
14513         exceptions are enabled.
14514         (_FP_PACK_CANONICAL): Likewise.
14515
14516 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
14517
14518         [BZ #14183]
14519         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
14520         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
14521
14522 2012-05-30  Richard Henderson  <rth@twiddle.net>
14523
14524         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
14525         with #ifndef NOT_IN_libc.
14526
14527         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
14528         marked to avoid plt entry.
14529
14530 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
14531
14532         [BZ #14112]
14533         * Makeconfig (default-abi): New macro.
14534         (abi-includes): Likewise.
14535         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
14536         $(abi-$(default-abi)-lib-soname) for soname if defined.
14537         ($(common-objpfx)gnu/lib-names.stmp): Generate from
14538         abi-variants.
14539         * Makefile (installed-stubs): Likewise.
14540         * include/stubs-biarch.h: Removed.
14541         * scripts/lib-names.awk: Only handle one library at a time.
14542         * scripts/soversions.awk: Remove WORDSIZE support.
14543         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
14544         entries.
14545         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
14546         Removed.
14547         (syscall-list-default-condition): Likewise.
14548         (syscall-list-default-condition): Likewise.
14549         (syscall-list-includes): Likewise.
14550         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
14551         syscall-list-* with abi-*.  Handle undefined abi-variants.
14552         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
14553         * sysdeps/unix/sysv/linux/i386/Implies: New file.
14554         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
14555         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
14556         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
14557         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
14558         Removed.
14559         (syscall-list-32-options): Likewise.
14560         (syscall-list-32-condition): Likewise.
14561         (syscall-list-64-options): Likewise.
14562         (syscall-list-64-condition): Likewise.
14563         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
14564         macro.
14565         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
14566         Renamed to ...
14567         (abi-*): This.
14568         (abi-64-ld-soname): New macro.
14569         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
14570         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
14571         Renamed to ...
14572         (abi-*): This.
14573         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
14574         * sysdeps/x86_64/x32/shlib-versions: Likewise.
14575
14576 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
14577
14578         * sysdeps/unix/sysv/linux/kernel-features.h
14579         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
14580         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
14581         include <kernel-features.h>.
14582         [!__NR_ftruncate64]: Remove conditional code.
14583         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14584         [__NR_ftruncate64]: Make code unconditional.
14585         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14586         * sysdeps/unix/sysv/linux/truncate64.c: Do not
14587         include <kernel-features.h>.
14588         [!__NR_ftruncate64]: Remove conditional code.
14589         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14590         [__NR_ftruncate64]: Make code unconditional.
14591         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
14593         include <kernel-features.h>.
14594         [!__NR_ftruncate64]: Remove conditional code.
14595         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14596         [__NR_ftruncate64]: Make code unconditional.
14597         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
14599         include <kernel-features.h>.
14600         [!__NR_ftruncate64]: Remove conditional code.
14601         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14602         [__NR_ftruncate64]: Make code unconditional.
14603         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14604
14605         * configure.in (libc_cv_fpie): Weaken to a compile test using
14606         LIBC_TRY_CC_OPTION.
14607         * configure: Regenerated.
14608
14609 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14610
14611         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
14612         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
14613         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
14614         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
14615         Refreshed.
14616         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
14617         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
14618         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
14619         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
14620         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
14621         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
14622         Refreshed.
14623
14624 2012-05-27  David S. Miller  <davem@davemloft.net>
14625
14626         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
14627         (___Q_zero): New.
14628         (__Q_simulate_exceptions): Return void.  Change to simulate
14629         exceptions by writing into the %fsr.
14630         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
14631         (__Qp_handle_exceptions): Likewise.
14632         (numbers): Delete.
14633         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
14634         __Qp_handle_exceptions.
14635         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
14636         __Qp_handle_exceptions.
14637         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
14638         as unused and give dummy FP_RND_NEAREST initializer.
14639         (FP_INHIBIT_RESULTS): Define.
14640         (___Q_simulate_exceptions): Update declaration.
14641         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
14642         formatting.
14643         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
14644         as unused and give dummy FP_RND_NEAREST initializer.
14645         (__Qp_handle_exceptions): Update declaration.
14646         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
14647         formatting.
14648
14649 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
14650
14651         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
14652         the temporary FPU control word.
14653         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
14654         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
14655         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
14656         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
14657         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
14658         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
14659         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
14660         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
14661         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
14662         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
14663         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14664
14665 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14666
14667         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
14668         fields.
14669
14670 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
14671
14672         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
14673         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
14674         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
14675         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
14676         Likewise.
14677         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
14678         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
14679         Likewise.
14680
14681 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
14682
14683         * po/h.po: Update from translation team.
14684
14685 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
14686
14687         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
14688
14689         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
14690         handling of denormals.
14691         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
14692         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
14693         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
14694         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
14695         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14696         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
14697         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
14698         Likewise.
14699
14700 2012-05-26  Marek Polacek  <polacek@redhat.com>
14701
14702         [BZ #14152]
14703         * math/libm-test.inc (fma_test): Don't always expect underflow
14704         exception.
14705
14706 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14707
14708         [BZ #12416]
14709         * elf/tst-execstack.c: Include stackinfo.h.
14710         (do_test): Adjust test case to ensure that pthread_getattr_np
14711         behaviour remains the same after marking stack executable.
14712
14713 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
14714
14715         * sysdeps/unix/sysv/linux/kernel-features.h
14716         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
14717         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
14718         kernel-features.h.
14719         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
14720         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
14721         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
14722         kernel-features.h.
14723         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
14724         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
14725
14726 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14727
14728         * configure.in: Define the default includes to being none.
14729         * configure: Regenerated.
14730
14731 2012-05-25  Roland McGrath  <roland@hack.frob.com>
14732
14733         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
14734         * sysdeps/x86_64/setjmp.S: Likewise.
14735         * sysdeps/i386/bsd-setjmp.S: Likewise.
14736         * sysdeps/i386/bsd-_setjmp.S: Likewise.
14737         * sysdeps/i386/setjmp.S: Likewise.
14738         * sysdeps/i386/__longjmp.S: Likewise.
14739         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14740         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
14741
14742         * include/stap-probe.h: New file.
14743         * configure.in: Handle --enable-systemtap.
14744         * configure: Regenerated.
14745         * config.h.in (USE_STAP_PROBE): New #undef.
14746         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
14747         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
14748         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
14749
14750 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
14751
14752         [BZ #13717]
14753         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
14754         to 2.4.0 where earlier.
14755         * sysdeps/unix/sysv/linux/configure: Regenerated.
14756         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
14757         <kernel-features.h>.
14758         [__ASSUME_32BITUIDS]: Make code unconditional.
14759         [!__ASSUME_32BITUIDS]: Remove conditional code.
14760         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
14761         <kernel-features.h>.
14762         [__ASSUME_32BITUIDS]: Make code unconditional.
14763         [!__ASSUME_32BITUIDS]: Remove conditional code.
14764         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
14765         [__ASSUME_32BITUIDS]: Make code unconditional.
14766         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
14767         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
14768         <kernel-features.h>.
14769         [__ASSUME_32BITUIDS]: Make code unconditional.
14770         [!__ASSUME_32BITUIDS]: Remove conditional code.
14771         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
14772         <kernel-features.h>.
14773         [__ASSUME_32BITUIDS]: Make code unconditional.
14774         [!__ASSUME_32BITUIDS]: Remove conditional code.
14775         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
14776         <kernel-features.h>.
14777         [__ASSUME_32BITUIDS]: Make code unconditional.
14778         [!__ASSUME_32BITUIDS]: Remove conditional code.
14779         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
14780         <kernel-features.h>.
14781         [__ASSUME_32BITUIDS]: Make code unconditional.
14782         [!__ASSUME_32BITUIDS]: Remove conditional code.
14783         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
14784         <kernel-features.h>.
14785         [__ASSUME_32BITUIDS]: Make code unconditional.
14786         [!__ASSUME_32BITUIDS]: Remove conditional code.
14787         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
14788         <kernel-features.h>.
14789         [__ASSUME_32BITUIDS]: Make code unconditional.
14790         [!__ASSUME_32BITUIDS]: Remove conditional code.
14791         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
14792         <kernel-features.h>.
14793         [__ASSUME_32BITUIDS]: Make code unconditional.
14794         [!__ASSUME_32BITUIDS]: Remove conditional code.
14795         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
14796         <kernel-features.h>.
14797         [__ASSUME_32BITUIDS]: Make code unconditional.
14798         [!__ASSUME_32BITUIDS]: Remove conditional code.
14799         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
14800         <kernel-features.h>.
14801         [__ASSUME_32BITUIDS]: Make code unconditional.
14802         [!__ASSUME_32BITUIDS]: Remove conditional code.
14803         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
14804         <kernel-features.h>.
14805         [__ASSUME_32BITUIDS]: Make code unconditional.
14806         [!__ASSUME_32BITUIDS]: Remove conditional code.
14807         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
14808         <kernel-features.h>.
14809         [__NR_setresgid] (__setresgid): Do not declare.
14810         [__ASSUME_32BITUIDS]: Make code unconditional.
14811         [!__ASSUME_32BITUIDS]: Remove conditional code.
14812         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
14813         <kernel-features.h>.
14814         [__NR_setresuid] (__setresuid): Do not declare.
14815         [__ASSUME_32BITUIDS]: Make code unconditional.
14816         [!__ASSUME_32BITUIDS]: Remove conditional code.
14817         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
14818         <kernel-features.h>.
14819         [__ASSUME_32BITUIDS]: Make code unconditional.
14820         [!__ASSUME_32BITUIDS]: Remove conditional code.
14821         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
14822         <kernel-features.h>.
14823         [__ASSUME_32BITUIDS]: Make code unconditional.
14824         [!__ASSUME_32BITUIDS]: Remove conditional code.
14825         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
14826         <kernel-features.h>.
14827         [__ASSUME_32BITUIDS]: Make code unconditional.
14828         [!__ASSUME_32BITUIDS]: Remove conditional code.
14829         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
14830         <kernel-features.h>.
14831         [__ASSUME_32BITUIDS]: Make code unconditional.
14832         [!__ASSUME_32BITUIDS]: Remove conditional code.
14833         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
14834         <kernel-features.h>.
14835         [__ASSUME_32BITUIDS]: Make code unconditional.
14836         [!__ASSUME_32BITUIDS]: Remove conditional code.
14837         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
14838         <kernel-features.h>.
14839         [__ASSUME_32BITUIDS]: Make code unconditional.
14840         [!__ASSUME_32BITUIDS]: Remove conditional code.
14841         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
14842         <kernel-features.h>.
14843         [__ASSUME_32BITUIDS]: Make code unconditional.
14844         [!__ASSUME_32BITUIDS]: Remove conditional code.
14845         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
14846         <kernel-features.h>.
14847         [__ASSUME_32BITUIDS]: Make code unconditional.
14848         [!__ASSUME_32BITUIDS]: Remove conditional code.
14849         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
14850         <kernel-features.h>.
14851         [__ASSUME_32BITUIDS]: Make code unconditional.
14852         [!__ASSUME_32BITUIDS]: Remove conditional code.
14853         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
14854         <kernel-features.h>.
14855         [__ASSUME_32BITUIDS]: Make code unconditional.
14856         [!__ASSUME_32BITUIDS]: Remove conditional code.
14857         * sysdeps/unix/sysv/linux/kernel-features.h
14858         (__ASSUME_SETRESUID_SYSCALL): Remove.
14859         (__ASSUME_SETRESGID_SYSCALL): Likewise.
14860         (__ASSUME_32BITUIDS): Likewise.
14861         (__ASSUME_LDT_WORKS): Likewise.
14862         (__ASSUME_O_DIRECTORY): Likewise.
14863         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
14864         architecture but not kernel version.
14865         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
14866         (__ASSUME_MMAP2_SYSCALL): Likewise.
14867         (__ASSUME_STAT64_SYSCALL): Likewise.
14868         (__ASSUME_IPC64): Likewise.
14869         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
14870         <kernel-features.h>.
14871         [__ASSUME_32BITUIDS]: Make code unconditional.
14872         [!__ASSUME_32BITUIDS]: Remove conditional code.
14873         * sysdeps/unix/sysv/linux/opendir.c: Do not include
14874         <kernel-features.h>.
14875         [__ASSUME_O_DIRECTORY]: Make code unconditional.
14876         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
14877         132096]: Remove conditional code.
14878         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
14879         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
14880         <kernel-features.h>.
14881         [__ASSUME_32BITUIDS]: Make code unconditional.
14882         [!__ASSUME_32BITUIDS]: Remove conditional code.
14883         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
14884         <kernel-features.h>.
14885         [__ASSUME_32BITUIDS]: Make code unconditional.
14886         [!__ASSUME_32BITUIDS]: Remove conditional code.
14887         * sysdeps/unix/sysv/linux/setegid.c: Do not include
14888         <kernel-features.h>.
14889         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
14890         unconditional.
14891         (__setresgid): Do not declare.
14892         [__ASSUME_32BITUIDS]: Make code unconditional.
14893         [!__ASSUME_32BITUIDS]: Remove conditional code.
14894         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
14895         <kernel-features.h>.
14896         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
14897         unconditional.
14898         (__setresuid): Do not declare.
14899         [__ASSUME_32BITUIDS]: Make code unconditional.
14900         [!__ASSUME_32BITUIDS]: Remove conditional code.
14901         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
14902         <kernel-features.h>.
14903         [__ASSUME_32BITUIDS]: Make code unconditional.
14904         [!__ASSUME_32BITUIDS]: Remove conditional code.
14905         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
14906         <kernel-features.h>.
14907         [__ASSUME_32BITUIDS]: Make code unconditional.
14908         [!__ASSUME_32BITUIDS]: Remove conditional code.
14909
14910 2012-05-25  Richard Henderson  <rth@twiddle.net>
14911
14912         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
14913         dl_hwcap to ifunc resolver.
14914         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
14915         elf_ifunc_invoke.
14916         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
14917         dl_hwcap to ifunc resolver.
14918         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
14919
14920 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14921
14922         [BZ #14153]
14923         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
14924         for |x| <= 2**-26, not 2**-57.
14925         * math/libm-test.inc (acos_test): Do not allow spurious underflow
14926         exception.
14927
14928 2012-05-24  Jeff Law  <law@redhat.com>
14929
14930         * stdio-common/Makefile (tests): Add bug25.
14931         * stdio-common/bug25.c: New test.
14932
14933 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14934
14935         [BZ #13576]
14936         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
14937         multiple of MALLOC_ALIGNMENT in size.
14938         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
14939
14940 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14941
14942         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
14943         Require >= 256.
14944         (FILENAME_MAX): Use macro-int-constant.
14945         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
14946         (_IOFBF): Use macro-int-constant.
14947         (_IOLBF): Likewise.
14948         (_IONBF): Likewise.
14949         (SEEK_CUR): Likewise.
14950         (SEEK_END): Likewise.
14951         (SEEK_SET): Likewise.
14952         (TMP_MAX): Likewise.
14953         (EOF): Use macro-int-constant.  Require < 0.
14954         (NULL): Use macro-constant.  Require == 0.
14955         (stdin): Require type to be FILE *.
14956         (stdout): Likewise.
14957         (stderr): Likewise.
14958         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
14959         macro-int-constant.
14960         (EXIT_SUCCESS): Likewise.
14961         (NULL): Use macro-constant.  Require == 0.
14962         (RAND_MAX): Use macro-int-constant.
14963         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
14964         [C99-based standards] (strtof): Require function.
14965         [C99-based standards] (strtold): Likewise.
14966         [C99-based standards] (strtoll): Likewise.
14967         [C99-based standards] (strtoull): Likewise.
14968         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
14969         [ISO || ISO99 || ISO11] (limits.h): Likewise.
14970         [ISO || ISO99 || ISO11] (math.h): Likewise.
14971         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
14972         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
14973         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14974
14975 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
14976
14977         [BZ #14132]
14978         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
14979         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
14980         * intl/dgettext.c (DCGETTEXT): Likewise.
14981         * intl/gettext.c (DCGETTEXT): Likewise.
14982         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
14983         * posix/regex_internal.h (gettext): Likewise.
14984         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
14985         Remove declaration.
14986         * include/argz.h (__argz_count_internal)
14987         (__argz_stringify_internal): Remove declaration.
14988         (__argz_count, __argz_stringify): Declare hidden proto.
14989         * intl/dcgettext.c: Remove use of INTDEF.
14990         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
14991         * string/argz-stringify.c: Likewise.
14992         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
14993         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
14994         Declare hidden proto.
14995         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
14996         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
14997         Declare hidden proto.
14998         * include/stdio.h (__asprintf_internal): Don't declare.
14999         (__asprintf): Don't define as macro.  Declare hidden proto.
15000         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
15001         (__fsetlocking): Declare hidden proto.
15002         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
15003         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
15004         hidden proto.
15005         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
15006         (_IO_setlinebuf): Remove use of INTUSE.
15007         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
15008         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
15009         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
15010         Remove declaration.
15011         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
15012         (_IO_do_flush): Remove use of INTUSE.
15013         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
15014         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
15015         (_IO_adjust_column, _IO_least_wmarker)
15016         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
15017         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
15018         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
15019         (_IO_default_doallocate, _IO_wdefault_doallocate)
15020         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
15021         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
15022         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
15023         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
15024         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
15025         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
15026         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
15027         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
15028         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
15029         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
15030         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
15031         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
15032         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
15033         proto.
15034         (_IO_flush_all_internal, _IO_adjust_column_internal)
15035         (_IO_default_uflow_internal, _IO_default_finish_internal)
15036         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
15037         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
15038         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
15039         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
15040         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
15041         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
15042         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
15043         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
15044         (_IO_file_close_internal, _IO_file_close_it_internal)
15045         (_IO_file_underflow_internal, _IO_file_overflow_internal)
15046         (_IO_file_init_internal, _IO_file_attach_internal)
15047         (_IO_file_fopen_internal, _IO_file_read_internal)
15048         (_IO_file_sync_internal, _IO_file_seek_internal)
15049         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
15050         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
15051         (_IO_str_underflow_internal, _IO_str_overflow_internal)
15052         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
15053         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
15054         (_IO_list_all_internal, _IO_link_in_internal)
15055         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
15056         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
15057         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
15058         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
15059         (_IO_do_write_internal, _IO_padn_internal)
15060         (_IO_getline_info_internal, _IO_getline_internal)
15061         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
15062         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
15063         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
15064         (_IO_vfscanf_internal, _IO_vfprintf_internal)
15065         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
15066         (_IO_init_internal, _IO_un_link_internal): Don't declare.
15067         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
15068         with libc_hidden_ver, remove use of INTUSE.
15069         * libio/genops.c: Likewise.
15070         * libio/freopen.c: Likewise.
15071         * libio/freopen64.c: Likewise.
15072         * libio/iofclose.c: Likewise.
15073         * libio/iofdopen.c: Likewise.
15074         * libio/iofflush.c: Likewise.
15075         * libio/iofflush_u.c: Likewise.
15076         * libio/iofgets.c: Likewise.
15077         * libio/iofgets_u.c: Likewise.
15078         * libio/iofopen.c: Likewise.
15079         * libio/iofopncook.c: Likewise.
15080         * libio/iofread.c: Likewise.
15081         * libio/iofread_u.c: Likewise.
15082         * libio/ioftell.c: Likewise.
15083         * libio/iofwrite.c: Likewise.
15084         * libio/iogetline.c: Likewise.
15085         * libio/iogets.c: Likewise.
15086         * libio/iogetwline.c: Likewise.
15087         * libio/iopadn.c: Likewise.
15088         * libio/iopopen.c: Likewise.
15089         * libio/ioseekoff.c: Likewise.
15090         * libio/ioseekpos.c: Likewise.
15091         * libio/iosetbuffer.c: Likewise.
15092         * libio/iosetvbuf.c: Likewise.
15093         * libio/ioungetc.c: Likewise.
15094         * libio/ioungetwc.c: Likewise.
15095         * libio/iovdprintf.c: Likewise.
15096         * libio/iovsprintf.c: Likewise.
15097         * libio/iovsscanf.c: Likewise.
15098         * libio/memstream.c: Likewise.
15099         * libio/obprintf.c: Likewise.
15100         * libio/oldfileops.c: Likewise.
15101         * libio/oldiofclose.c: Likewise.
15102         * libio/oldiofdopen.c: Likewise.
15103         * libio/oldiofopen.c: Likewise.
15104         * libio/oldiopopen.c: Likewise.
15105         * libio/oldstdfiles.c: Likewise.
15106         * libio/putc.c: Likewise.
15107         * libio/setbuf.c: Likewise.
15108         * libio/setlinebuf.c: Likewise.
15109         * libio/stdfiles.c: Likewise.
15110         * libio/strops.c: Likewise.
15111         * libio/vasprintf.c: Likewise.
15112         * libio/vscanf.c: Likewise.
15113         * libio/vsnprintf.c: Likewise.
15114         * libio/vswprintf.c: Likewise.
15115         * libio/wfiledoalloc.c: Likewise.
15116         * libio/wfileops.c: Likewise.
15117         * libio/wgenops.c: Likewise.
15118         * libio/wmemstream.c: Likewise.
15119         * libio/wstrops.c: Likewise.
15120         * libio/__fpurge.c: Likewise.
15121         * libio/__fsetlocking.c: Likewise.
15122         * assert/assert.c: Likewise.
15123         * debug/fgets_chk.c: Likewise.
15124         * debug/fgets_u_chk.c: Likewise.
15125         * debug/fread_chk.c: Likewise.
15126         * debug/fread_u_chk.c: Likewise.
15127         * debug/gets_chk.c: Likewise.
15128         * debug/obprintf_chk.c: Likewise.
15129         * debug/vasprintf_chk.c: Likewise.
15130         * debug/vdprintf_chk.c: Likewise.
15131         * debug/vsnprintf_chk.c: Likewise.
15132         * debug/vsprintf_chk.c: Likewise.
15133         * malloc/mtrace.c: Likewise.
15134         * misc/error.c: Likewise.
15135         * misc/syslog.c: Likewise.
15136         * stdio-common/asprintf.c: Likewise.
15137         * stdio-common/fxprintf.c: Likewise.
15138         * stdio-common/getw.c: Likewise.
15139         * stdio-common/isoc99_fscanf.c: Likewise.
15140         * stdio-common/isoc99_scanf.c: Likewise.
15141         * stdio-common/isoc99_vfscanf.c: Likewise.
15142         * stdio-common/isoc99_vscanf.c: Likewise.
15143         * stdio-common/isoc99_vsscanf.c: Likewise.
15144         * stdio-common/printf-prs.c: Likewise.
15145         * stdio-common/printf_fp.c: Likewise.
15146         * stdio-common/printf_fphex.c: Likewise.
15147         * stdio-common/printf_size.c: Likewise.
15148         * stdio-common/putw.c: Likewise.
15149         * stdio-common/scanf.c: Likewise.
15150         * stdio-common/sprintf.c: Likewise.
15151         * stdio-common/tmpfile.c: Likewise.
15152         * stdio-common/vfprintf.c: Likewise.
15153         * stdio-common/vfscanf.c: Likewise.
15154         * stdlib/strfmon_l.c: Likewise.
15155         * sunrpc/openchild.c: Likewise.
15156         * sunrpc/xdr_stdio.c: Likewise.
15157         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
15158         * sysdeps/mach/hurd/tmpfile.c: Likewise.
15159
15160 2012-05-24  Roland McGrath  <roland@hack.frob.com>
15161
15162         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
15163
15164         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
15165         in the third column, to generate for the shared library an IFUNC
15166         that uses _dl_vdso_vsym.
15167         * Makerules (COMPILE.c, compile-stdin.c): New variables.
15168         * Makeconfig (object-suffixes-noshared): New variable.
15169
15170         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
15171         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
15172         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
15173         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
15174
15175         [BZ #14132]
15176         * include/sys/time.h (__gettimeofday): Remove macro.
15177         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
15178         * time/gettimeofday.c (__gettimeofday): Remove #undef.
15179         Remove INTDEF.
15180         (__gettimeofday): Add libc_hidden_def.
15181         (gettimeofday): Add libc_hidden_weak.
15182         * sysdeps/mach/gettimeofday.c: Likewise.
15183         * sysdeps/posix/gettimeofday.c: Likewise.
15184         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
15185         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
15186         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
15187         (__gettimeofday_internal): Remove strong_alias.
15188         (__gettimeofday): Add libc_hidden_def.
15189         (gettimeofday): Add libc_hidden_weak.
15190         * sysdeps/unix/syscalls.list (gettimeofday):
15191         Remove __gettimeofday_internal alias.
15192
15193 2012-05-24  Daniel Jacobowitz  <drow@false.org>
15194             H.J. Lu  <hongjiu.lu@intel.com>
15195
15196         [BZ #12495]
15197         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
15198         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
15199         (largebin_index_32_big): New.
15200         (largebin_index): Use it for 16-byte alignment.
15201         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
15202         correction with front_misalign.
15203
15204 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15205
15206         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
15207         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
15208         Likewise.
15209         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
15210         Likewise.
15211         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
15212         Likewise.
15213         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
15214         Likewise.
15215         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
15216         Likewise.
15217         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
15218         Likewise.
15219         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
15220         Likewise.
15221         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
15222         Likewise.
15223         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
15224         Likewise.
15225         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
15226         Likewise.
15227         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
15228         Likewise.
15229         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
15230         Likewise.
15231
15232         * scripts/data/c++-types-x32-linux-gnu.data: New file.
15233         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
15234
15235 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
15236
15237         [BZ #10846]
15238         [BZ #14036]
15239         * math/libm-test.inc (exp_test): Add test from bug 14036.
15240         (pow_test): Add test from bug 10846.
15241
15242         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
15243         and other flags.
15244         (special_function): Do not include flags in test name.
15245         (parse_args): Likewise.
15246         * sysdeps/i386/fpu/libm-test-ulps: Update.
15247         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
15248         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
15249         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
15250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15251
15252         * math/gen-libm-test.pl (%beautify): Add entries for underflow
15253         exceptions.
15254         * math/libm-test.inc ("Philosophy"): Update comment about
15255         exception testing.
15256         (UNDERFLOW_EXCEPTION): New macro.
15257         (UNDERFLOW_EXCEPTION_OK): Likewise.
15258         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
15259         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
15260         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
15261         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
15262         (INVALID_EXCEPTION_OK): Update value.
15263         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
15264         (OVERFLOW_EXCEPTION_OK): Likewise.
15265         (IGNORE_ZERO_INF_SIGN): Likewise.
15266         (test_exceptions): Handle underflow exceptions.
15267         (acos_test): Update for underflow exception expectations.
15268         (cexp_test): Likewise.
15269         (clog_test): Likewise.
15270         (clog10_test): Likewise.
15271         (csqrt_test): Likewise.
15272         (ctan_test): Likewise.
15273         (ctanh_test): Likewise.
15274         (exp_test): Likewise.
15275         (exp10_test): Likewise.
15276         (exp2_test): Likewise.
15277         (expm1_test): Likewise.
15278         (fma_test): Likewise.
15279         (j0_test): Likewise.
15280         (jn_test): Likewise.
15281         (nexttoward_test): Likewise.
15282         (pow_test): Likewise.
15283         (scalbn_test): Likewise.
15284         (scalbln_test): Likewise.
15285         (tan_test): Likewise.
15286         (y1_test): Likewise.
15287         * sysdeps/i386/fpu/libm-test-ulps: Update.
15288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15289
15290 2012-05-23  David S. Miller  <davem@davemloft.net>
15291
15292         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15293         (__libc_sigaction): Remove unused local variables.
15294
15295 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15296
15297         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
15298
15299 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15300
15301         mktime: avoid signed integer overflow
15302         * time/mktime.c (__mktime_internal): Do not mishandle the case
15303         where diff == INT_MIN.
15304
15305         mktime: simplify computation of average
15306         * time/mktime.c (ranged_convert): Use new time_t_avg function
15307         instead of rolling our own (probably-slower) code.
15308
15309         mktime: do not assume signed right shift propagates sign bit
15310         * time/mktime.c (isdst_differ): New static function.
15311         (__mktime_internal): No need to normalize tm_isdst now.
15312         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
15313         tm_isdst values.
15314
15315         mktime: merge another wrapv change from gnulib
15316         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
15317         from some compilers.
15318
15319         mktime: remove incorrect attempt at unusual arithmetics
15320         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
15321         The code didn't really work on such machines anyway.
15322         (TYPE_MINIMUM): Assume two's complement.
15323         (twos_complement_arithmetic): Verify that long_int and time_t
15324         are two's complement (or unsigned, in the latter case).
15325
15326         mktime: check signed shifts on long_int and time_t, too
15327         * time/mktime.c (SHR): Check that shifts work as desired
15328         on the types long_int and time_t too, as SHR is used on
15329         such types.
15330
15331         mktime: do not assume 'long' is wide enough
15332         * time/mktime.c (verify): Move decl up.
15333         (long_int): New type.
15334         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
15335         to remove assumption in the code that 'long' is wide enough to
15336         store year values.  This assumption is not true on x32 and on
15337         some non-glibc platforms.
15338
15339         mktime: merge wrapv change from gnulib
15340         * time/mktime.c (WRAPV): New macro.
15341         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
15342         (guess_time_tm, __mktime_internal): Do not assume that signed
15343         integer overflow wraps around; modern compilers generate code
15344         where this assumption is no longer valid.
15345
15346 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15347
15348         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
15349         Replace "jmp L(pseudo_end)" with "ret".
15350         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
15351         Likewise.
15352
15353 2012-05-23  Andreas Jaeger  <aj@suse.de>
15354
15355         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
15356         * sysdeps/unix/sysv/linux/poll.c: Remove file.
15357
15358 2012-05-23  Andreas Jaeger  <aj@suse.de>
15359             Maximilian Attems  <max@stro.at>
15360
15361         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
15362         New macros.
15363
15364 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15365
15366         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
15367         code so that pseudo_end is just ret and the stack pointer is
15368         correct also for static library in error case.
15369
15370 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
15371
15372         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
15373         move to syscalls.list.
15374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
15375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
15376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
15377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
15378
15379         * manual/install.texi (Running make install): Do not mention Linux
15380         kernel version for which pt_chown is not needed.
15381         (Linux): Do not mention problems with nscd with 2.0 kernels.
15382         * INSTALL: Regenerated.
15383
15384 2012-05-23  Andreas Jaeger  <aj@suse.de>
15385
15386         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
15387         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
15388         macro.
15389         * sysdeps/unix/sysv/linux/s390/bits/mman.h
15390         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
15391         * sysdeps/unix/sysv/linux/sh/bits/mman.h
15392         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
15393         * sysdeps/unix/sysv/linux/i386/bits/mman.h
15394         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
15395         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
15396         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
15397         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
15398         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
15399         * sysdeps/unix/sysv/linux/bits/in.h
15400         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
15401
15402 2012-05-22  Roland McGrath  <roland@hack.frob.com>
15403
15404         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
15405         (PREPARE_VERSION): Just use assert instead, it will be elided
15406         under [NDEBUG] anyway.
15407
15408 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
15409
15410         * sysdeps/unix/sysv/linux/Makefile: Include
15411         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
15412         (sysdep_routines): Remove sysctl.
15413         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
15414         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
15415         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
15416         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
15417         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
15418
15419 2012-05-22  Andreas Jaeger  <aj@suse.de>
15420
15421         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
15422         that pseudo_end is just ret and the stack pointer is correct also
15423         for static library in error case.
15424
15425 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
15426
15427         [BZ #14122]
15428         * nss/nsswitch.c (defconfig_entries): New variable.
15429         (__nss_database_lookup): Don't leak defconfig entries.
15430         (nss_parse_service_list): Don't leak on error paths.
15431         (free_database_entries): New function.
15432         (free_defconfig): New function.
15433         (free_mem): Move common code to free_database_entries.
15434
15435 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
15436
15437         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
15438         Add arch_prctl.
15439         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
15440
15441         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
15442         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
15443         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
15444         New macro.
15445         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
15446         (INTERNAL_SYSCALL_TYPES): Likewise.
15447         (LOAD_ARGS_TYPES_[1-6]): Likewise.
15448         (LOAD_REGS_TYPES_[1-6]): Likewise.
15449         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
15450         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
15451
15452 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15453
15454         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
15455         copysignl for GLIBC_2_0.
15456         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
15457         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
15458         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
15459         logbl for GLIBC_2_0.
15460         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
15461         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
15462
15463 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
15464
15465         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
15466         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
15467
15468         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
15469         Use "neg %eax".
15470
15471         * time/mktime.c: Update copyright years.
15472
15473 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15474
15475         mktime: merge comment-quoting-style change from gnulib
15476         * time/mktime.c: Quote 'like this' in comments.
15477         The GNU coding standards suggest that we no longer quote `like this',
15478         as "`" and "'" are typically rendered asymmetrically nowadays.
15479         The typical gnulib style is to quote 'like this' when quoting
15480         code, and "like this" when quoting English.
15481
15482         * time/mktime.c (compile-command): Add "-I.".
15483
15484         mktime: merge mktime-internal.h change from gnulib
15485         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
15486
15487         mktime: merge time_r change from gnulib
15488         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
15489
15490         mktime: merge DEBUG change from gnulib
15491         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
15492         case system <time.h> has a #define.
15493
15494         mktime: merge <sys/types.h> change from gnulib
15495         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
15496         since <time.t> is now guaranteed to define time_t.
15497
15498         mktime: merge HAVE_CONFIG_H change from gnulib
15499         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
15500
15501 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
15502
15503         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
15504         Use "neg %eax".
15505
15506         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
15507         __rlim_t cast.
15508         (struct rusage): Use anonymous union to pad each field to
15509         __syscall_slong_t.
15510
15511 2012-05-21  David S. Miller  <davem@davemloft.net>
15512
15513         * Makefules (o-iterator): Remove .s cases.
15514         (compile-command.s): Delete.
15515         (COMPILE.s): Delete.
15516         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
15517
15518 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
15519
15520         * configure.in (libc_cv_predef_stack_protector): Only consider
15521         "foobar" and "__stack_chk_fail" lines in libc_undefs.
15522         * configure: Regenerated.
15523
15524 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15525
15526         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
15527         New macro.  Use R*LP on int and pointer.
15528         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
15529         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
15530         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
15531         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
15532
15533         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
15534         [__WORDSIZE_TIME64_COMPAT32] instead of
15535         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
15536         (struct utmp): Likewise.
15537         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
15538         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
15539         Renamed to ...
15540         (__WORDSIZE_TIME64_COMPAT32): This.
15541         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
15542         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
15543         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
15544         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
15545         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
15546         (__WORDSIZE_TIME64_COMPAT32): New macro.
15547
15548 2012-05-21  Andreas Jaeger  <aj@suse.de>
15549
15550         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
15551         only if [SHARED]. Add prototype for __wcschr_ia32.
15552
15553 2012-05-21  Roland McGrath  <roland@hack.frob.com>
15554
15555         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
15556         of %rbp unmolested in the jmp_buf while mangling the low bits.
15557         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
15558         unmolested high bits of %rbp while demangling the low bits.
15559         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
15560
15561 2012-05-21  Andreas Jaeger  <aj@suse.de>
15562
15563         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
15564         * sunrpc/svc_simple.c: Use it for registerrpc.
15565         * sunrpc/xcrypt.c: Use it for passwd2des.
15566
15567         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
15568
15569 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15570
15571         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
15572         Don't define if [__SYSCALL_WORDSIZE != 32].
15573         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
15574         New macro.
15575
15576 2012-05-21  Bruno Haible  <bruno@clisp.org>
15577             Andreas Jaeger  <aj@suse.de>
15578
15579         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
15580         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
15581         inptr and inend for must_buffer_ch.
15582         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
15583         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
15584         * stdio-common/Makefile (tests): Remove bug15.
15585         (bug15-ENV): Remove macro.
15586         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
15587         anymore.
15588
15589 2012-05-19  Andreas Jaeger  <aj@suse.de>
15590             Roland McGrath  <roland@hack.frob.com>
15591
15592         * manual/contrib.texi: Completely rewritten. It contains now an
15593         alphabetical list of contributors and their contributions.
15594
15595 2012-05-21  Richard Henderson  <rth@twiddle.net>
15596
15597         * misc/getauxval.c (__getauxval): Use unsigned long int.
15598         * misc/sys/auxv.h: Include <sys/cdefs.h>.
15599         (getauxval): Use unsigned long int.
15600
15601 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15602
15603         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
15604
15605 2012-05-21  Roland McGrath  <roland@hack.frob.com>
15606
15607         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
15608         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
15609         __alignof__ (long double).
15610
15611 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15612
15613         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15614
15615 2012-05-20  Richard Henderson  <rth@twiddle.net>
15616
15617         * misc/getauxval.c: New file.
15618         * misc/sys/auxv.h: New file.
15619         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
15620         (routines): Add getauxval.
15621         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
15622         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
15623         * elf/dl-sysdep.c (_dl_auxv): Remove.
15624         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
15625         * elf/dl-support.c (_dl_auxv): New variable.
15626         (_dl_aux_init): Initialize it.
15627         * manual/startup.texi (Auxiliary Vector): New node.
15628         * sysdeps/generic/bits/hwcap.h: New file.
15629         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
15630         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
15631         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
15632         * sysdeps/sparc/sysdep.h: ... here.  Include it.
15633         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
15634         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
15635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15636         Update.
15637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
15638         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
15639         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
15640         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
15641         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
15642         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
15643         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
15644         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
15645
15646 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15647
15648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15649
15650 2012-05-19  David S. Miller  <davem@davemloft.net>
15651
15652         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15653
15654 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
15655
15656         [BZ #14123]
15657         * math/s_ccosh.c: Include <float.h>
15658         (__ccosh): Avoid internal overflow calculating sinh and cosh
15659         values before multiplying by sin and cos values.
15660         * math/s_ccoshf.c: Likewise.
15661         * math/s_ccoshl.c: Likewise.
15662         * math/s_csin.c: Likewise.
15663         * math/s_csinf.c: Likewise.
15664         * math/s_csinl.c: Likewise.
15665         * math/s_csinh.c: Likewise.
15666         * math/s_csinhf.c: Likewise.
15667         * math/s_csinhl.c: Likewise.
15668         * math/libm-test.inc (ccos_test): Add more tests.
15669         (ccosh_test): Likewise.
15670         (csin_test): Likewise.
15671         (csinh_test): Likewise.
15672         * sysdeps/i386/fpu/libm-test-ulps: Update.
15673         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15674
15675 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15676
15677         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
15678         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
15679
15680         * sysdeps/x86_64/x32/_itoa.h: Add comment.
15681
15682 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
15683
15684         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
15685         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
15686         * sysdeps/powerpc/soft-fp/Versions: Likewise.
15687         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
15688         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
15689         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
15690         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
15691         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
15692         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
15693         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
15694         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
15695         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
15696         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
15697         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
15698         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
15699         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
15700         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
15701         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
15702         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
15703         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
15704         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
15705         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
15706         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
15707         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
15708         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
15709         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
15710         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
15711         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
15712         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
15713         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
15714         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
15715
15716 2012-05-18  Andreas Jaeger  <aj@suse.de>
15717
15718         * csu/.gitignore: Delete.
15719
15720 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15721
15722         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
15723         (timex): Use __syscall_slong_t.
15724
15725 2012-05-18  Andreas Jaeger  <aj@suse.de>
15726             Carlos O'Donell  <carlos_odonell@mentor.com>
15727
15728         * manual/install.texi (Configuring and compiling): Update
15729         description about files modified in the source directory.
15730         * INSTALL: Regenerated.
15731
15732 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15733
15734         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
15735         value.  Use "or" to set return value to -1.
15736         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
15737         negate return value.
15738
15739 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15740
15741         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
15742         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
15743         failure if the compiler has Graphite support disabled.
15744         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
15745         Likewise.
15746         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
15747         CFLAGS-memmove.c): Likewise.
15748         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
15749         Likewise.
15750
15751 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15752
15753         * sysdeps/x86_64/x32/_itoa.h: New file.
15754
15755         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
15756         getdents system call only if kernel and user dirents have the
15757         same d_ino and d_off.
15758
15759         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
15760         LLONG_MAX != LONG_MAX.
15761         (_itoa_word): Use _ITOA_WORD_TYPE on value.
15762         (_fitoa_word): Likewise.
15763
15764         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
15765         years.
15766         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
15767         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
15768         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
15769
15770         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
15771         include <bits/wordsize.h>.  Check __x86_64__ instead of
15772         __WORDSIZE.
15773         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
15774         if __x86_64__ is defined.  Use anonymous union on fpstate.
15775
15776         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
15777         anonymous union.
15778
15779 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
15780
15781         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
15782         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
15783         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
15784         Refer to _rtld_local_ro instead of _rtld_global_ro.
15785         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
15786         Likewise.
15787         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
15788         Likewise.
15789         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
15790         Likewise.
15791         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
15792         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
15793         of _rtld_global, and rtld_progname instead of _dl_argv[0].
15794
15795         * sysdeps/powerpc/powerpc32/dl-machine.c
15796         (__elf_machine_runtime_setup) [PROF]: Don't reference
15797         _dl_prof_resolve.
15798
15799 2012-05-18  Andreas Jaeger  <aj@suse.de>
15800
15801         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
15802         function only available for GCCs before 3.4 since GCC 3.4
15803         introduced a builtin.
15804         (lrint): Likewise.
15805         (llrintf): Likewise.
15806         (llrint): Likewise.
15807         (fmaxf): Likewise.
15808         (fmax): Likewise.
15809         (fminf): Likewise.
15810         (fmin): Likewise.
15811         (rint): Likewise.
15812         (rintf): Likewise.
15813         (nearbyint): Likewise.
15814         (nearbyintf): Likewise.
15815         (ceil): Likewise.
15816         (ceilf): Likewise.
15817         (floor): Likewise.
15818         (floorf): Likewise.
15819
15820 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15821
15822         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
15823         on both fields and cast pointer to __syscall_ulong_t.
15824
15825         * bits/types.h (__fsword_t): New type.
15826         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
15827         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
15828         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15829         (__FSWORD_T_TYPE): Likewise.
15830         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15831         (__FSWORD_T_TYPE): Likewise.
15832         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15833         (__FSWORD_T_TYPE): Likewise.
15834         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
15835         (__FSWORD_T_TYPE): Likewise.
15836         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
15837         __SWORD_TYPE with __fsword_t.
15838         (statfs64): Likewise.
15839
15840 2012-05-17  David S. Miller  <davem@davemloft.net>
15841
15842         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
15843
15844 2012-05-17  Andreas Jaeger  <aj@suse.de>
15845
15846         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
15847         warning.
15848
15849 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15850
15851         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
15852
15853 2012-05-17  Andreas Jaeger  <aj@suse.de>
15854
15855         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
15856         when it is used.
15857
15858 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
15859
15860         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
15861
15862 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15863
15864         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
15865         * sysdeps/x86_64/tst-mallocalign1.c: New file.
15866
15867 2012-05-17  Andreas Jaeger  <aj@suse.de>
15868             Carlos O'Donell  <carlos_odonell@mentor.com>
15869
15870         [BZ #14059]
15871         * sysdeps/x86_64/multiarch/init-arch.h
15872         (bit_YMM_Usable): Rename to...
15873         (bit_AVX_Usable): ... this.
15874         (bit_FMA4_Usable): New macro.
15875         (bit_XMM_state): New macro.
15876         (bit_YMM_state): New macro.
15877         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
15878         [__ASSEMBLER__] (index_AVX_Usable): ... this.
15879         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
15880         (CPUID_OSXSAVE): New macro.
15881         (CPUID_AVX): New macro.
15882         (CPUID_FMA4): New macro.
15883         (index_YMM_Usable): Rename to...
15884         (index_AVX_Usable): ... this.
15885         (HAS_AVX): Use HAS_ARCH_FEATURE.
15886         (HAS_FMA4): Likewise.
15887         (HAS_YMM_USABLE): Remove.
15888         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15889         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
15890         are present.
15891         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
15892         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
15893         * sysdeps/x86_64/multiarch/Makefile: Likewise.
15894         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
15895         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
15896
15897 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
15898
15899         * math/libm-test.c: Support platforms without multiple rounding modes.
15900         * math/bug-nextafter.c: Support platforms without FP exceptions.
15901         * math/bug-nexttoward.c: Likewise.
15902         * math/test-fenv.c: Likewise.
15903         * math/test-misc.c: Likewise.
15904         * stdlib/bug-getcontext.c: Likewise.
15905
15906 2012-05-17  Andreas Jaeger  <aj@suse.de>
15907
15908         * manual/examples/search.c (critter_cmp): Change signature to
15909         avoid warnings.
15910         * manual/string.texi (Collation Functions): Likewise.
15911
15912 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15913
15914         * bits/types.h: Fold copyright years.
15915         * bits/typesizes.h: Likewise.
15916         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
15917         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
15918         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
15919         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
15920         * time/time.h: Likewise.
15921
15922 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
15923
15924         [BZ #208]
15925         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
15926         in instead of returning them.  Return void.
15927         (__libc_mallinfo): Accumulate over all arenas.
15928         (__malloc_stats): Adjust for change in int_mallinfo interface.
15929
15930 2012-05-16  Roland McGrath  <roland@hack.frob.com>
15931
15932         [BZ #10375]
15933         * configure.in (NM): Add AC_CHECK_TOOL for it.
15934         (libc_extra_cflags): New substituted variable.
15935         Check for -fstack-protector being used implicitly.
15936         * configure: Regenerated.
15937         * config.make.in (config-extra-cflags): New variable,
15938         gets @libc_extra_cflags@.
15939         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
15940
15941         [BZ #10375]
15942         * configure.in: Check for _FORTIFY_SOURCE being predefined.
15943         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
15944         * configure: Regenerated.
15945         * config.make.in (CPPUNDEFS): New substituted variable.
15946         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
15947         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
15948         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
15949
15950 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15951
15952         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
15953         (mq_attr): Use __syscall_slong_t.
15954
15955 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15956
15957         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
15958         Check __x86_64__ instead of __WORDSIZE.
15959         (_STAT_VER_LINUX): Likewise.
15960         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
15961         __syscall_ulong_t and __syscall_slong_t.
15962         (stat64): Likewise.
15963
15964 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15965
15966         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
15967
15968 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15969
15970         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
15971
15972 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15973
15974         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
15975         __syscall_ulong_t.
15976
15977         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
15978         include <bits/wordsize.h>.  Check __x86_64__ instead of
15979         __WORDSIZE.
15980         (greg_t): Use "__extension__ long long int" if __x86_64__ is
15981         defined.
15982         (mcontext_t): Replace "unsigned long" with "unsigned long long".
15983
15984         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
15985         include <bits/wordsize.h>.  Check __x86_64__ instead of
15986         __WORDSIZE.
15987         (user_regs_struct): Use "__extension__ unsigned long long"
15988         instead of "unsigned long" if __x86_64__ is defined.
15989         (user): Likewise.  Pad after pointer field if __ILP32__ is
15990         defined.
15991
15992 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
15993
15994         * configure.in (makeinfo): Require version 4.5 or later.  Allow
15995         versions 5 to 9.
15996         * configure: Regenerated.
15997         * manual/install.texi (texinfo): Increase version requirement to
15998         4.5 or later.
15999         * INSTALL: Regenerated.
16000
16001         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
16002
16003 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16004
16005         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
16006
16007         * sysdeps/x86_64/x32/ffs.c: New file.
16008
16009         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
16010         __syscall_ulong_t.
16011         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
16012         defined.  Use __syscall_ulong_t.
16013         (shminfo): Use __syscall_ulong_t.
16014         (shm_info): Likewise.
16015
16016         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
16017         __syscall_ulong_t.
16018
16019         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
16020         <bits/wordsize.h>.
16021         (msgqnum_t): Use __syscall_ulong_t.
16022         (msglen_t): Likewise.
16023         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
16024         __syscall_ulong_t.
16025
16026         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
16027         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
16028
16029         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
16030
16031         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
16032         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
16033
16034         * sysvipc/sys/msg.h (msgbuf): Replace long int with
16035         __syscall_slong_t.
16036
16037         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
16038         include <bits/wordsize.h>.  Check __x86_64__ instead of
16039         __WORDSIZE.
16040
16041         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
16042         "unsigned long long int" if __x86_64__ is defined.
16043         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
16044
16045         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
16046         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
16047         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
16048
16049         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
16050         <stdint.h>.
16051         (GET_PC): Cast to uintptr_t first.
16052         (GET_FRAME): Likewise.
16053         (GET_STACK): Likewise.
16054
16055         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
16056         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
16057         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
16058         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
16059         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
16060         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
16061         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
16062         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
16063         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
16064         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
16065         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
16066         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
16067         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
16068         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
16069         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
16070         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
16071         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
16072         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
16073         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
16074         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
16075         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
16076         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
16077         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
16078         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
16079         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
16080         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
16081         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
16082         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
16083         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
16084
16085 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
16086
16087         * Makerules (+depfiles): Also collect depfiles from .oS in
16088         $(extra-objs).
16089         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
16090         .oS, $(libnldbl-routines)).
16091
16092         * Makerules (native-compile-mkdep-flags): Define.
16093         * sunrpc/Makefile (extra-objs): Add $(addprefix
16094         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
16095         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
16096         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
16097         calling $(make-target-directory).
16098
16099 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16100
16101         * bits/types.h (__snseconds_t): Removed.
16102         * time/time.h (struct timespec): Replace __snseconds_t with
16103         __syscall_slong_t.
16104         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
16105         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
16106         Likewise.
16107         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16108         (__SNSECONDS_T_TYPE): Likewise.
16109         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
16110         (__SNSECONDS_T_TYPE): Likewise.
16111         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16112         (__SNSECONDS_T_TYPE): Likewise.
16113
16114 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16115
16116         * sysdeps/mach/hurd/bits/typesizes.h
16117         (__SYSCALL_SLONG_TYPE): New macro.
16118         (__SYSCALL_ULONG_TYPE): Likewise.
16119
16120 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16121
16122         * bits/types.h (__syscall_slong_t): New type.
16123         (__syscall_ulong_t): Likewise.
16124
16125         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
16126         (__SYSCALL_ULONG_TYPE): Likewise.
16127         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16128         (__SYSCALL_SLONG_TYPE): Likewise.
16129         (__SYSCALL_ULONG_TYPE): Likewise.
16130         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
16131         (__SYSCALL_SLONG_TYPE): Likewise.
16132         (__SYSCALL_ULONG_TYPE): Likewise.
16133         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16134         (__SYSCALL_SLONG_TYPE): Likewise.
16135         (__SYSCALL_ULONG_TYPE): Likewise.
16136
16137 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16138
16139         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
16140         Add sigaltstack-offsets.sym.
16141         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
16142         <sigaltstack-offsets.h>.
16143         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
16144         longjmp_msg pointer.
16145         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
16146         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
16147         signal stack.
16148         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
16149
16150 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
16151
16152         * elf/stackguard-macros.h: Remove file.
16153         * sysdeps/generic/stackguard-macros.h: New file.
16154         * sysdeps/i386/stackguard-macros.h: Likewise.
16155         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
16156         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
16157         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
16158         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
16159         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
16160         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
16161         * sysdeps/x86_64/stackguard-macros.h: Likewise.
16162         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
16163         <elf/stackguard-macros.h>.
16164
16165         [BZ #14109]
16166         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
16167         __aligned__ in attribute.
16168         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
16169         (gregset_t): Likewise.
16170
16171 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16172
16173         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
16174         * sysdeps/x86_64/64/Implies-after: Here.  New file.
16175         * sysdeps/x86_64/x32/Implies-after: New file.
16176
16177 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16178
16179         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
16180         and access return value for _dl_profile_fixup.  Use R10_LP to
16181         load frame size.
16182
16183 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16184
16185         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
16186
16187 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16188
16189         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
16190         * sysdeps/x86_64/x32/sysdep.h: New file.
16191
16192 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16193
16194         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
16195         * sysdeps/x86_64/setjmp.S: Likewise.
16196
16197 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16198
16199         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
16200         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
16201         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
16202         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
16203         remove unused global constant.
16204
16205 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
16206
16207         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
16208         include of <not-cancel.h>.
16209
16210 2012-05-15  Roland McGrath  <roland@hack.frob.com>
16211
16212         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
16213
16214 2012-05-15  Jeff Law  <law@redhat.com>
16215             Andreas Jaeger  <aj@suse.de>
16216
16217         [BZ #13594]
16218         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
16219         out from...
16220         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
16221         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
16222         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
16223         code changing __hst_map_handle.map.
16224
16225 2012-05-15  Roland McGrath  <roland@hack.frob.com>
16226
16227         * configure.in (sysnames): Look for Implies-before and Implies-after
16228         files.
16229         * configure: Regenerated.
16230
16231 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16232
16233         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
16234         8-byte data alignment with LP_SIZE alignment.
16235
16236 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16237
16238         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
16239         into R10_LP.
16240
16241 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16242
16243         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
16244
16245 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16246
16247         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
16248         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
16249         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
16250         Likewise.
16251         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16252
16253 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16254
16255         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
16256         (stackinfo_sub_sp): Likewise.
16257
16258 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16259
16260         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
16261         RAX_LP.
16262
16263 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16264
16265         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
16266         into R*_LP.
16267
16268 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16269
16270         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
16271         sizes into R*_LP.
16272
16273 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16274
16275         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
16276
16277 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16278
16279         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
16280         into R11_LP and load __x86_64_shared_cache_size_half into
16281         R8_LP.
16282
16283 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16284
16285         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
16286         R8_LP.
16287
16288 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16289
16290         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
16291         logb for POWER7.
16292         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
16293         logbf for POWER7.
16294         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
16295         logbl for POWER7.
16296         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
16297         powerpc32/power7/fpu/s_logb.c via #include.
16298         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
16299         powerpc32/power7/fpu/s_logbf.c via #include.
16300         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
16301         powerpc32/power7/fpu/s_logbl.c via #include.
16302
16303 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
16304
16305         * README.libm: Remove file.
16306
16307 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16308
16309         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
16310         count for x32.  Use R*_LP and omit operand-size suffix.
16311
16312 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16313
16314         * shlib-versions: Move x86_64-.*-linux.* entries to ...
16315         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
16316         * sysdeps/x86_64/x32/shlib-versions: New file.
16317
16318 2012-05-14  Roland McGrath  <roland@hack.frob.com>
16319
16320         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
16321         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
16322         Use _dl_fatal_printf instead.
16323
16324 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
16325
16326         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
16327         set if not set by the user.  Do not allow for being unset.
16328         * sysdeps/unix/sysv/linux/configure: Regenerated.
16329
16330 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16331
16332         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
16333         the `q' suffix from lea and replace .quad with ASM_ADDR.
16334
16335 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16336
16337         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
16338         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
16339         instead of $17.
16340         (PTR_DEMANGLE): Likewise.
16341
16342 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16343
16344         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
16345         (LP_OP): Likewise.
16346         (ASM_ADDR): Likewise.
16347         (RAX_LP): Likewise.
16348         (RBP_LP): Likewise.
16349         (RBX_LP): Likewise.
16350         (RCX_LP): Likewise.
16351         (RDI_LP): Likewise.
16352         (RSI_LP): Likewise.
16353         (RSP_LP): Likewise.
16354         (R8_LP): Likewise.
16355         (R9_LP): Likewise.
16356         (R10_LP): Likewise.
16357         (R10_LP): Likewise.
16358         (R11_LP): Likewise.
16359         (R12_LP): Likewise.
16360         (R13_LP): Likewise.
16361         (R14_LP): Likewise.
16362         (R15_LP): Likewise.
16363
16364 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16365
16366         * sysdeps/x86_64/x32/dl-machine.h: New file.
16367
16368 2012-05-14  Andreas Jaeger  <aj@suse.de>
16369
16370         * manual/Makefile (subdir): Remove export of subdir.
16371         (all): Remove target.
16372         (.PHONY): Remove all from list.
16373         (mkinstalldirs): Remove.
16374         (.PHONY): Remove installdirs from list.
16375         ($(inst_infodir)/libc.info): Use make-target-directory.
16376         (installdirs): Remove.
16377         (subdir_%): Remove.
16378         (glibc-targets): Remove.
16379         (lib): Remove.
16380         (stubs): Remove.
16381         ($(objpfx)stubs ../po/manual.pot): Remove.
16382         ($(objpfx)stamp%): Remove.
16383         (make-target-directory): Remove.
16384         (subdir_install): Remove.
16385         (routines): Remove.
16386         (aux): Remove.
16387         (sources): Remove.
16388         (objects): Remove.
16389         (headers): Remove.
16390
16391         [BZ #13750]
16392         * manual/.gitignore: Remove, it's not needed anymore.
16393         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
16394         all files in it.
16395         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
16396         directory.
16397         (texis): Renamed to $(objpfx)texis.
16398         (texis-path): New, contains path to generated files.
16399         (chapters.%): Use texis-path for complete path, add extra argument
16400         libc-texinfo.sh.
16401         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
16402         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
16403         (summary,texi, stamp-summary): Use complete path of
16404         files. Generate files in build dir.
16405         (dir-add.texi): Build in build dir.
16406         (libm-err.texi,stamp-libm-err): Likewise.
16407         (version.texi, stamp-version): Likewise.
16408         (.%c.texi): Likewise.
16409         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
16410         (mostlyclean): Remove target.
16411         (realclean): Remove target.
16412         (generated): Add new variable with contents from mostlyclean and
16413         realclean, remove entries duplicated in common-mostlyclean, add
16414         stamp-libm-err and stamp-version.
16415         (generated-dirs): Add libc directory.
16416         ($(inst_infodir)/libc.info): Install files from build dir.
16417
16418         * manual/install.texi (Configuring and compiling): Adjust since
16419         the info files are not part of the tar ball anymore.
16420
16421 2012-05-14  Andreas Jaeger  <aj@suse.de>
16422
16423         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
16424         variable.
16425
16426 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
16427
16428         [BZ #13717]
16429         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
16430         to 2.2.0 where earlier.
16431         * sysdeps/unix/sysv/linux/configure: Regenerated.
16432         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
16433         Remove conditional code.
16434         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
16435         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
16436         Remove conditional code.
16437         [!__NR_lchown]: Likewise.
16438         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
16439         [__NR_lchown]: Likewise.
16440         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
16441         comment referencing __ASSUME_LCHOWN_SYSCALL.
16442         * sysdeps/unix/sysv/linux/i386/sigaction.c
16443         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
16444         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
16445         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
16446         Remove conditional code.
16447         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
16448         (__protocol_available): Remove #if 0 code.
16449         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
16450         conditional code.
16451         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
16452         * sysdeps/unix/sysv/linux/kernel-features.h
16453         (__ASSUME_GETCWD_SYSCALL): Don't define.
16454         (__ASSUME_REALTIME_SIGNALS): Likewise.
16455         (__ASSUME_PREAD_SYSCALL): Likewise.
16456         (__ASSUME_PWRITE_SYSCALL): Likewise.
16457         (__ASSUME_POLL_SYSCALL): Likewise.
16458         (__ASSUME_LCHOWN_SYSCALL): Likewise.
16459         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
16460         non-SPARC.
16461         (__ASSUME_SIOCGIFNAME): Don't define.
16462         (__ASSUME_MSG_NOSIGNAL): Likewise.
16463         (__ASSUME_SENDFILE): Define unconditionally.
16464         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
16465         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
16466         conditional code.
16467         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
16468         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
16469         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
16470         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
16471         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
16472         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
16473         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
16474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
16475         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
16476         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
16477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
16478         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
16479         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
16480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
16481         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
16482         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
16483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
16484         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
16485         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
16486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
16487         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
16488         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
16489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
16490         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
16491         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
16492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
16493         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
16494         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
16495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
16496         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
16497         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
16498         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
16499         Remove conditional code.
16500         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
16501         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
16502         Remove conditional code.
16503         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
16504         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
16505         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
16506         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
16507         Remove conditional code.
16508         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
16509         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
16510         Remove conditional code.
16511         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
16512         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
16513         Remove conditional code.
16514         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
16515         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
16516         Remove conditional code.
16517         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
16518         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
16519         Remove conditional code.
16520         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
16521         * sysdeps/unix/sysv/linux/sh/pwrite64.c
16522         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
16523         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
16524         * sysdeps/unix/sysv/linux/sigaction.c
16525         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
16526         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
16527         * sysdeps/unix/sysv/linux/sigpending.c
16528         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
16529         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
16530         * sysdeps/unix/sysv/linux/sigprocmask.c
16531         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
16532         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
16533         * sysdeps/unix/sysv/linux/sigsuspend.c
16534         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
16535         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
16536         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
16537         (__libc_missing_rt_sigs): Remove.
16538         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
16539         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
16540         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
16541         Remove conditional code.
16542         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
16543         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
16544         return 1.
16545         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
16546         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
16547         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
16548         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
16549
16550 2012-05-14  Andreas Jaeger  <aj@suse.de>
16551
16552         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
16553         it's not used in glibc.
16554         (__coshm1): Likewise.
16555         (__acosh1p): Likewise.
16556         (__sgn): Likewise.
16557
16558         * manual/string.texi (Copying and Concatenation): Add missing
16559         variable in concat example.
16560         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
16561
16562 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16563
16564         [BZ #14103]
16565         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
16566         __builtin_clzl with __builtin_clzll.
16567
16568 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16569
16570         [BZ #14104]
16571         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
16572         libc_freeres_ptr.
16573
16574 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16575
16576         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
16577         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
16578         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
16579         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
16580
16581 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
16582
16583         * NEWS: Update ia64 info.
16584
16585 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
16586
16587         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
16588         used as bcopy.
16589
16590 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
16591
16592         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
16593         * sysdeps/unix/syscalls.list (dup3): Likewise.
16594         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
16595         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
16596
16597 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16598
16599         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
16600         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
16601
16602 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16603
16604         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
16605         thread pointer.
16606         (TLS_IE): Use mov/add instead of movq/addq to load thread
16607         pointer.
16608         (TLS_GD_PREFIX): New.
16609         (TLS_GD): Use it.
16610
16611 2012-05-11  David S. Miller  <davem@davemloft.net>
16612
16613         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
16614         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
16615         (_FPU_SETCW): Likewise.
16616
16617 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16618
16619         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
16620         is 32-byte aligned.
16621
16622 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
16623
16624         [BZ #11837]
16625         * iconvdata/gb18030.c: Update tables.
16626         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
16627         characters specially.
16628         (BODY for TO_LOOP): Add encoding of missing ranges.
16629
16630 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
16631
16632         [BZ #13673]
16633         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
16634         * sysdeps/mach/hurd/dup3.c: Likewise.
16635         * sysdeps/mach/hurd/readlinkat.c: Likewise.
16636         * sysdeps/powerpc/memmove.c:: Likewise.
16637
16638 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16639
16640         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
16641         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
16642
16643 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16644
16645         * elf/elf.h (R_X86_64_RELATIVE64): New.
16646         (R_X86_64_NUM): Updated.
16647         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
16648         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
16649         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
16650         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
16651         tst-quad1pie tst-quad2pie
16652         (modules-names): Add tst-quadmod1 tst-quadmod2.
16653         ($(objpfx)tst-quad1): New dependency.
16654         ($(objpfx)tst-quad2): Likewise.
16655         ($(objpfx)tst-quad1pie): Likewise.
16656         ($(objpfx)tst-quad2pie): Likewise.
16657         * sysdeps/x86_64/tst-quad1.c: New file.
16658         * sysdeps/x86_64/tst-quad1pie.c: New file.
16659         * sysdeps/x86_64/tst-quad2.c: Likewise.
16660         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
16661         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
16662         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
16663         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
16664         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
16665
16666 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16667
16668         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
16669         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
16670         * streams/stropts.h (t_scalar_t): Define type.
16671
16672         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
16673         (_PATH_PRESERVE): Set to "/var/lib".
16674         (_PATH_RWHODIR): Set to "/var/spool/rwho".
16675
16676         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
16677         instead of int.
16678
16679         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
16680         if __dir_mkfile succeeded.
16681
16682         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
16683         checking for _hurd_dtablesize.  Unlock it right after having
16684         finished _hurd_dtable allocation.
16685
16686 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16687
16688         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
16689         * sysdeps/mach/hurd/configure: Regenerated.
16690         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
16691         special-casing to...
16692         * sysdeps/gnu/configure.in: ... this new file.
16693         * sysdeps/unix/sysv/linux/configure: Regenerated.
16694         * sysdeps/gnu/configure: New generated file.
16695
16696         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
16697         for Linux: use nsec instead of usec, as well as:
16698         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
16699         members of type struct timespec.
16700         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
16701         New macros.
16702         (struct stat64): Likewise.
16703         (_STATBUF_ST_NSEC): New macro.
16704         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
16705
16706         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16707         __strtoul_internal rather than strtoul.
16708
16709 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16710
16711         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
16712         and reject them.
16713
16714 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16715
16716         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
16717         which preserves existing values.
16718         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
16719
16720 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16721
16722         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
16723         TIMEOUT values.  Return EINVAL for NFDS values either negative or
16724         greater than FD_SETSIZE.
16725
16726 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16727
16728         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
16729         allocated, call __vm_protect to finish enabling the existing space, and
16730         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
16731         allocate the remainder.
16732
16733 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16734
16735         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
16736         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
16737
16738 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16739
16740         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
16741         sysdeps/mach/hurd/readlink.c.
16742
16743         * posix/tst-sysconf.c (posix_options): Only use
16744         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
16745         _POSIX_SYNCHRONIZED_IO when they are defined
16746         * sysdeps/mach/hurd/bits/posix_opt.h:
16747         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
16748         (_XOPEN_REALTIME): Undefine macro.
16749         (_XOPEN_REALTIME_THREADS): Undefine macro.
16750         (_XOPEN_SHM): Undefine macro.
16751         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
16752         macro to -1.
16753         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
16754         macro to -1.
16755         (_POSIX_ASYNC_IO): Undefine macro.
16756         (_POSIX_PRIORITIZED_IO): Undefine macro.
16757         (_POSIX_SPIN_LOCKS): Define macro to -1.
16758
16759         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
16760         SA_NODEFER, SA_RESETHAND.
16761         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
16762         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
16763         F_DUPFD_CLOEXEC.
16764
16765 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16766
16767         * elf/Makefile (pldd-modules): Define unconditionally.
16768
16769 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16770
16771         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
16772
16773 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16774
16775         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
16776         Return ENOENT when name is empty.
16777         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
16778
16779 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16780
16781         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
16782
16783         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
16784
16785 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16786
16787         Fix mlock in all cases except non-readable pages.
16788         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
16789         instead of VM_PROT_ALL as parameter to __vm_wire function.
16790
16791         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
16792         (__mkdir): When path is `/', just fail with EEXIST.
16793         * sysdeps/mach/hurd/mkdirat.c: Likewise.
16794
16795 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16796
16797         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
16798         <sys/uio.h> (for writev).
16799         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
16800         and <sys/param.h> (for MIN).
16801
16802 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16803
16804         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
16805         REQUESTED_TIME.  Properly set the remaining time and return EINTR
16806         if interrupted.
16807
16808 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16809
16810         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
16811         Depend on against $(link-rpcuserlibs).
16812
16813 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16814
16815         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
16816         (__libc_stack_end): Do not use attribute_relro.
16817         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
16818         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
16819         to libthread-provided value.
16820         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
16821         attribute_relro.
16822
16823 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16824
16825         [BZ #3748]
16826         * bits/libc-lock.h (__libc_once_get): New macro.
16827         * sysdeps/mach/bits/libc-lock.h: Likewise.
16828         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
16829         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
16830         instead of using implementation details.
16831
16832         * libio/fileops.c: Unconditionally include <kernel-features.h>.
16833         * libio/freopen.c: Likewise.
16834         * libio/freopen64.c: Likewise.
16835         * misc/syslog.c: Likewise.
16836         * nscd/connections.c: Likewise.
16837         * nscd/netgroupcache.c: Likewise.
16838         * sysdeps/posix/getcwd.c: Likewise.
16839
16840 2012-05-10  Roland McGrath  <roland@hack.frob.com>
16841
16842         * math/w_ilogbf.c: Add #include <limits.h>.
16843
16844 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16845
16846         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
16847         path instead of returning without unlocking.
16848
16849         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
16850         immediate-write ioctls.
16851         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
16852
16853 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16854
16855         * sysdeps/mach/hurd/i386/init-first.c (init): Use
16856         __builtin_frame_address instead of making assumptions about the
16857         location of the return address relative to DATA.  Force early load of
16858         the return address.
16859         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
16860         __builtin_frame_address.
16861
16862         dup3 for GNU Hurd.
16863         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
16864         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
16865         implement dup3 and do some further code clean-ups.
16866         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
16867         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
16868
16869 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16870
16871         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
16872
16873         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
16874         HURD_CRITICAL_END around holding _hurd_dtable_lock.
16875         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
16876         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
16877         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
16878         d->port.lock.
16879
16880         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
16881         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
16882         when handler == SIG_ERR, not when handler != SIG_ERR.
16883
16884 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16885
16886         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
16887         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
16888         definitions.
16889
16890         accept4 for GNU Hurd.
16891         * include/sys/socket.h (__libc_accept4): New prototype.
16892         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
16893         to implement __libc_accept4.
16894         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
16895         __libc_accept4.
16896         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
16897
16898         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
16899         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
16900         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
16901         signal-defines.sym.
16902
16903 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16904
16905         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
16906
16907 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16908
16909         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
16910         assertion on O_CLOEXEC flag.
16911         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
16912         * hurd/intern-fd.c: Likewise.
16913         * hurd/port2fd.c: Likewise.
16914
16915 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16916
16917         [BZ #3906]
16918         * bits/in.h (IPV6_PKTINFO): Define new macro.
16919         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
16920
16921 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16922
16923         [BZ #13954]
16924         [BZ #13955]
16925         [BZ #13956]
16926         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
16927         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
16928         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
16929         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
16930         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
16931         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
16932         * math/libm-test.inc (logb_test) : Additional logb tests.
16933
16934 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
16935             Andreas Jaeger  <aj@suse.de>
16936
16937         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
16938         * configure: Regenerated.
16939         * config.h.in (LINK_OBSOLETE_RPC): New macro.
16940         * config.make.in (link-obsolete-rpc): New substituted variable.
16941         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
16942         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
16943         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
16944         (shared-only-routines): Don't set it under [link-obsolete-rpc],
16945         so that libc.a contains the symbols.
16946         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
16947         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
16948         * sunrpc/auth_none.c: Likewise.
16949         * sunrpc/auth_unix.c: Likewise.
16950         * sunrpc/authdes_prot.c: Likewise.
16951         * sunrpc/authuxprot.c: Likewise.
16952         * sunrpc/clnt_gen.c: Likewise.
16953         * sunrpc/clnt_perr.c: Likewise.
16954         * sunrpc/clnt_raw.c: Likewise.
16955         * sunrpc/clnt_simp.c: Likewise.
16956         * sunrpc/clnt_tcp.c: Likewise.
16957         * sunrpc/clnt_udp.c: Likewise.
16958         * sunrpc/clnt_unix.c: Likewise.
16959         * sunrpc/des_crypt.c: Likewise.
16960         * sunrpc/des_soft.c: Likewise.
16961         * sunrpc/get_myaddr.c: Likewise.
16962         * sunrpc/key_call.c: Likewise.
16963         * sunrpc/key_prot.c: Likewise.
16964         * sunrpc/netname.c: Likewise.
16965         * sunrpc/pm_getmaps.c: Likewise.
16966         * sunrpc/pm_getport.c: Likewise.
16967         * sunrpc/pmap_clnt.c: Likewise.
16968         * sunrpc/pmap_prot.c: Likewise.
16969         * sunrpc/pmap_prot2.c: Likewise.
16970         * sunrpc/pmap_rmt.c: Likewise.
16971         * sunrpc/publickey.c: Likewise.
16972         * sunrpc/rpc_cmsg.c: Likewise.
16973         * sunrpc/rpc_common.c: Likewise.
16974         * sunrpc/rpc_dtable.c: Likewise.
16975         * sunrpc/rpc_prot.c: Likewise.
16976         * sunrpc/rpc_thread.c: Likewise.
16977         * sunrpc/rtime.c: Likewise.
16978         * sunrpc/svc.c: Likewise.
16979         * sunrpc/svc_auth.c: Likewise.
16980         * sunrpc/svc_raw.c: Likewise.
16981         * sunrpc/svc_run.c: Likewise.
16982         * sunrpc/svc_tcp.c: Likewise.
16983         * sunrpc/svc_udp.c: Likewise.
16984         * sunrpc/svc_unix.c: Likewise.
16985         * sunrpc/svcauth_des.c: Likewise.
16986         * sunrpc/xcrypt.c: Likewise.
16987         * sunrpc/xdr.c: Likewise.
16988         * sunrpc/xdr_array.c: Likewise.
16989         * sunrpc/xdr_float.c: Likewise.
16990         * sunrpc/xdr_intXX_t.c: Likewise.
16991         * sunrpc/xdr_mem.c: Likewise.
16992         * sunrpc/xdr_rec.c: Likewise.
16993         * sunrpc/xdr_ref.c: Likewise.
16994         * sunrpc/xdr_sizeof.c: Likewise.
16995         * sunrpc/xdr_stdio.c: Likewise.
16996
16997 2012-05-10  Roland McGrath  <roland@hack.frob.com>
16998
16999         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
17000         change.  Update copyright years.
17001
17002 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
17003
17004         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
17005
17006 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
17007             Joseph Myers  <joseph@codesourcery.com>
17008             Paul Pluzhnikov  <ppluzhnikov@google.com>
17009
17010         [BZ #14012]
17011         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
17012         requiring rpcgen.
17013         [cross-compiling] (extra-libs): Likewise.
17014         [cross-compiling] (extra-libs-others): Likewise.
17015         [cross-compiling] (librpcsvc-routines): Likewise.
17016         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
17017         [cross-compiling] (omit-deps): Likewise.
17018         (sunrpc-CPPFLAGS): New variable.
17019         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
17020         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
17021         (cross-rpcgen-objs): New variable.
17022         (extra-objs): Append $(cross-rpcgen-objs).
17023         ($(cross-rpcgen-objs)): New rule.
17024         ($(objpfx)cross-rpcgen): Likewise.
17025         (rpcgen-cmd): Define to use $(built-program-file).  Expand
17026         comment.
17027         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
17028         ($(objpfx)x%.stmp): Likewise.
17029         * sunrpc/proto.h [IS_IN_build] (_): Define.
17030         [IS_IN_build] (_libc_intl_domainname): Likewise.
17031
17032 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
17033
17034         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
17035         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
17036         and R_X86_64_TPOFF64.
17037
17038 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
17039
17040         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
17041         sysdeps/unix/sysv/syscalls.list.
17042         (stime): Likewise.
17043         (utime): Likewise.
17044         * sysdeps/unix/sysv/syscalls.list: Remove file.
17045
17046 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
17047
17048         [BZ #3440]
17049         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
17050         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
17051         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
17052         (__LC_IDENTIFICATION): Make these macros useful in #if
17053         expressions, as required by C99.
17054
17055 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
17056
17057         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
17058         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
17059         after this.
17060
17061 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17062
17063         * stdlib/longlong.h: Updated from GCC.
17064
17065 2012-05-09  Andreas Jaeger  <aj@suse.de>
17066
17067         * nscd/nscd.c (run_modes): Make named enum, reorder so that
17068         default is first entry.
17069         (run_mode): Set type.
17070         (main): Remove informal message about syslog.
17071         (options): Fix typo.
17072
17073         [BZ #14053]
17074         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
17075         to asm.
17076         (lrint): Likewise.
17077         (llrintf): Likewise.
17078         (llrint): Likewise.
17079         (rint): Likewise.
17080         (rintf): Likewise.
17081         (nearbyint): Likewise.
17082         (nearbyintf): Likewise.
17083
17084 2012-05-09  Andreas Jaeger  <aj@suse.de>
17085             Pedro Alves  <palves@redhat.com>
17086
17087         * nscd/nscd.c (run_mode): Use enum.
17088         (main): Cleanup coding style issue.
17089
17090 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
17091             Andreas Jaeger  <aj@suse.de>
17092
17093         * nscd/nscd.c (go_background): Replaced with...
17094         (run_mode): ... this.
17095         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
17096         (options): Add -F --foreground.
17097         (main): Implement it.
17098         (parse_opt): Parse it.
17099
17100 2012-05-09  Andreas Jaeger  <aj@suse.de>
17101
17102         [BZ #14083]
17103         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
17104         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
17105         -Wconversion warning.
17106         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
17107         Likewise.
17108
17109 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
17110
17111         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
17112         == 0.
17113         (LC_ALL): Use macro-int-constant.
17114         (LC_COLLATE): Likewise.
17115         (LC_CTYPE): Likewise.
17116         (LC_MESSAGES): Likewise.
17117         (LC_MONETARY): Likewise.
17118         (LC_NUMERIC): Likewise.
17119         (LC_TIME): Likewise.
17120         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
17121         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
17122         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17123         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
17124         Specify type.
17125         [C99-based standards] (float_t): Expect type.
17126         [C99-based standards] (double_t): Expect type.
17127         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
17128         type.
17129         [C99-based standards] (HUGE_VALL): Likewise.
17130         [C99-based standards] (INFINITY): Likewise.
17131         [C99-based standards] (NAN): Likewise.
17132         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
17133         [C99-based standards] (FP_NAN): Likewise.
17134         [C99-based standards] (FP_NORMAL): Likewise.
17135         [C99-based standards] (FP_SUBNORMAL): Likewise.
17136         [C99-based standards] (FP_ZERO): Likewise.
17137         [C99-based standards] (FP_FAST_FMA): Use
17138         optional-macro-int-constant.  Specify type.  Require == 1.
17139         [C99-based standards] (FP_FAST_FMAF): Likewise.
17140         [C99-based standards] (FP_FAST_FMAL): Likewise.
17141         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
17142         [C99-based standards] (FP_ILOGBNAN): Likewise.
17143         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
17144         Specify type.
17145         [C99-based standards] (MATH_ERREXCEPT): Likewise.
17146         [C99-based standards] (math_errhandling): Specify type.
17147         [ISO99 || ISO11] (signgam): Do not allow.
17148         [non-C99-based standards] (copysignf): Do not allow.
17149         [non-C99-based standards] (exp2f): Likewise.
17150         [non-C99-based standards] (log2f): Likewise.
17151         [non-C99-based standards] (modff): Allow.
17152         [non-C99-based standards] (erff): Do not allow.
17153         [non-C99-based standards] (erfcf): Likewise.
17154         [non-C99-based standards] (gammaf): Likewise.
17155         [non-C99-based standards] (hypotf): Likewise.
17156         [non-C99-based standards] (j0f): Likewise.
17157         [non-C99-based standards] (j1f): Likewise.
17158         [non-C99-based standards] (jnf): Likewise.
17159         [non-C99-based standards] (lgammaf): Likewise.
17160         [non-C99-based standards] (tgammaf): Likewise.
17161         [non-C99-based standards] (y0f): Likewise.
17162         [non-C99-based standards] (y1f): Likewise.
17163         [non-C99-based standards] (ynf): Likewise.
17164         [non-C99-based standards] (isnanf): Likewise.
17165         [non-C99-based standards] (acoshf): Likewise.
17166         [non-C99-based standards] (asinhf): Likewise.
17167         [non-C99-based standards] (atanhf): Likewise.
17168         [non-C99-based standards] (cbrtf): Likewise.
17169         [non-C99-based standards] (expm1f): Likewise.
17170         [non-C99-based standards] (ilogbf): Likewise.
17171         [non-C99-based standards] (log1pf): Likewise.
17172         [non-C99-based standards] (logbf): Likewise.
17173         [non-C99-based standards] (nextafterf): Likewise.
17174         [non-C99-based standards] (remainderf): Likewise.
17175         [non-C99-based standards] (rintf): Likewise.
17176         [non-C99-based standards] (scalbf): Likewise.
17177         [non-C99-based standards] (copysignl): Likewise.
17178         [non-C99-based standards] (exp2l): Likewise.
17179         [non-C99-based standards] (log2l): Likewise.
17180         [non-C99-based standards] (modfl): Allow.
17181         [non-C99-based standards] (erfl): Do not allow.
17182         [non-C99-based standards] (erfcl): Likewise.
17183         [non-C99-based standards] (gammal): Likewise.
17184         [non-C99-based standards] (hypotl): Likewise.
17185         [non-C99-based standards] (j0l): Likewise.
17186         [non-C99-based standards] (j1l): Likewise.
17187         [non-C99-based standards] (jnl): Likewise.
17188         [non-C99-based standards] (lgammal): Likewise.
17189         [non-C99-based standards] (tgammal): Likewise.
17190         [non-C99-based standards] (y0l): Likewise.
17191         [non-C99-based standards] (y1l): Likewise.
17192         [non-C99-based standards] (ynl): Likewise.
17193         [non-C99-based standards] (isnanl): Likewise.
17194         [non-C99-based standards] (acoshl): Likewise.
17195         [non-C99-based standards] (asinhl): Likewise.
17196         [non-C99-based standards] (atanhl): Likewise.
17197         [non-C99-based standards] (cbrtl): Likewise.
17198         [non-C99-based standards] (expm1l): Likewise.
17199         [non-C99-based standards] (ilogbl): Likewise.
17200         [non-C99-based standards] (log1pl): Likewise.
17201         [non-C99-based standards] (logbl): Likewise.
17202         [non-C99-based standards] (nextafterl): Likewise.
17203         [non-C99-based standards] (remainderl): Likewise.
17204         [non-C99-based standards] (rintl): Likewise.
17205         [non-C99-based standards] (scalbl): Likewise.
17206         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17207         [non-C99-based standards] (FP_*): Do not allow.
17208         [C99-based standards] (FP_*): Change to
17209         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
17210         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
17211         allow.
17212         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
17213         (SIG_ERR): Likewise.
17214         [X/Open-based standards] (SIG_HOLD): Likewise.
17215         (SIG_IGN): Likewise.
17216         (SIGABRT): Use macro-int-constant.  Specify type.  Require
17217         positive value.
17218         (SIGFPE): Likewise.
17219         (SIGILL): Likewise.
17220         (SIGINT): Likewise.
17221         (SIGSEGV): Likewise.
17222         (SIGTER): Likewise.
17223         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
17224         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
17225         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
17226         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
17227         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
17228         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
17229         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
17230         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
17231         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
17232         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
17233         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
17234         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
17235         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
17236         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
17237         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
17238         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
17239         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
17240         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
17241         [X/Open-based standards] (SIGTRAP): Likewise.
17242         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
17243         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
17244         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
17245         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
17246         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
17247         allow.
17248
17249 2012-05-08  Ian Wienand  <ianw@vmware.com>
17250
17251         [BZ #14080]
17252         * time/tzset.c (__tzset_parse_tz): Update default rules for
17253         daylight time changes in the Energy Policy Act of 2005.
17254
17255 2012-05-09  Andreas Jaeger  <aj@suse.de>
17256
17257         [BZ #13983]
17258         * elf/ldconfig.c (parse_conf): Change string to make clear that
17259         ldconfig only issued a warning if ld.so.conf does not exist.
17260
17261 2012-05-08  David S. Miller  <davem@davemloft.net>
17262
17263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
17264         movxtod instead of popping the value on the stack.
17265
17266         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17267
17268 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
17269
17270         * config.h.in: Add HAVE_ARM_PCS_VFP.
17271
17272 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
17273
17274         [BZ #13979]
17275         * include/features.h: Warn if user requests __FORTIFY_SOURCE
17276         checking but the checks are disabled for any reason.
17277
17278 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
17279
17280         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
17281         and ELF64_R_TYPE with ELFW(R_TYPE).
17282
17283 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
17284
17285         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
17286         (ulimit): Likewise.
17287
17288         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
17289         (settimeofday): Likewise.
17290
17291 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
17292
17293         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
17294         a struct th_u2 inside the union, and move tu_block/tu_code into
17295         a new th_u3 union of tu_block/tu_code inside of that.  Move
17296         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
17297         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
17298         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
17299         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
17300         (th_stuff): Change to th_u1.tu_stuff.
17301         (th_data): Define.
17302         (th_msg): Change to th_u1.th_u2.tu_data.
17303
17304 2012-05-07  David S. Miller  <davem@davemloft.net>
17305
17306         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17307
17308         [BZ #14074]
17309         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
17310         (SETUP_PIC_REG): Use it.
17311         (SETUP_PIC_REG_LEAF): Use it.
17312
17313 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
17314
17315         [BZ #13885]
17316         [BZ #13923]
17317         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
17318         USE_AS_EXPM1L.
17319         (EXPL_FINITE): Likewise.
17320         (FLDLOG): Likewise.
17321         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
17322         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
17323         e_expl.S.
17324         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
17325         USE_AS_EXPM1L.
17326         (EXPL_FINITE): Likewise.
17327         (FLDLOG): Likewise.
17328         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
17329         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
17330         e_expl.S.
17331         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
17332         test of -max_value argument for long double.
17333         * sysdeps/i386/fpu/libm-test-ulps: Update.
17334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17335
17336 2012-05-06  David S. Miller  <davem@davemloft.net>
17337
17338         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
17339         quad soft-float symbols whose references which are compiler
17340         generated.
17341         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17342
17343 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
17344
17345         [BZ #13884]
17346         [BZ #13914]
17347         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
17348         USE_AS_EXP10L.
17349         (EXPL_FINITE): Likewise.
17350         (FLDLOG): Likewise.
17351         (c0): Likewise.
17352         (c1): Likewise.
17353         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
17354         Adjust comments for base varying.
17355         (__expl_finite): Change alias to EXPL_FINITE.
17356         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
17357         e_expl.S.
17358         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
17359         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17360         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17361         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
17362         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
17363         USE_AS_EXP10L.
17364         (EXPL_FINITE): Likewise.
17365         (FLDLOG): Likewise.
17366         (c0): Likewise.
17367         (c1): Likewise.
17368         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
17369         Adjust comments for base varying.
17370         (__expl_finite): Change alias to EXPL_FINITE.
17371         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
17372         tests for bugs.
17373         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17374
17375         [BZ #14064]
17376         * math/libm-test.inc (check_float_internal): Correct ulp
17377         calculation for subnormal expected results.
17378
17379 2012-05-06  Andreas Jaeger  <aj@suse.de>
17380
17381         * Makeconfig (+math-flags): New, set to -frounding-math.
17382         (+cflags): Add +math-flags so that all of glibc gets compiled with
17383         it.
17384
17385         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
17386
17387 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
17388
17389         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
17390         Disable one test.
17391
17392         [BZ #13787]
17393         [BZ #13922]
17394         [BZ #14036]
17395         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
17396         (__ieee754_expl): Allow for and saturate large arguments.
17397         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
17398         (u_threshold): Likewise.
17399         (__exp): Call __ieee754_exp before checking for overflow and
17400         underflow.
17401         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
17402         (u_threshold): Likewise.
17403         (__expf): Call __ieee754_expf before checking for overflow and
17404         underflow.
17405         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
17406         (u_threshold): Likewise.
17407         (__expl): Call __ieee754_expl before checking for overflow and
17408         underflow.
17409         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
17410         (__ieee754_expl): Allow for and saturate large arguments.
17411         * math/libm-test.inc (exp_test): Add another test.  Do not allow
17412         missing overflow exception on overflow.
17413         (expm1_test): Do not allow missing overflow exception on overflow.
17414
17415         * sysdeps/i386/fpu/e_expl.c: Move to ...
17416         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
17417         rather than using inline asm.
17418         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
17419         * sysdeps/x86_64/fpu/e_expl.S: Copy from
17420         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
17421
17422         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
17423         (nice): Likewise.
17424         (poll): Likewise.
17425         (signal): Likewise.
17426         (time): Likewise.
17427         (times): Likewise.
17428
17429 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
17430
17431         * sysdeps/unix/syscalls.list (adjtime): Add entry from
17432         sysdeps/unix/common/syscalls.list.
17433         (fchmod): Likewise.
17434         (fchown): Likewise.
17435         (ftruncate): Likewise.
17436         (getrusage): Likewise.
17437         (gettimeofday): Likewise.
17438         (setpgid): Likewise.
17439         (setregid): Likewise.
17440         (setreuid): Likewise.
17441         (sigaction): Likewise.
17442         (truncate): Likewise.
17443         (vhangup): Likewise.
17444         * sysdeps/unix/common/syscalls.list: Remove file.
17445         * sysdeps/unix/bsd/Implies: Don't include unix/common.
17446         * sysdeps/unix/sysv/linux/Implies: Likewise.
17447
17448 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
17449
17450         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
17451         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
17452         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
17453         Moved to ...
17454         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
17455         Here.
17456         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
17457         to ...
17458         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
17459         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
17460         to ...
17461         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
17462         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
17463         to ...
17464         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
17465         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
17466         to ...
17467         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
17468         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
17469         to ...
17470         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
17471         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
17472         to ...
17473         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
17474         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
17475         to ...
17476         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
17477         Here.
17478         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
17479         to ...
17480         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
17481         Here.
17482         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
17483         to ...
17484         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
17485         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
17486         Moved to ...
17487         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
17488         Here.
17489         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
17490         to ...
17491         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
17492
17493 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
17494
17495         * sysdeps/unix/common/bits/dirent.h: Remove file.
17496         * sysdeps/unix/common/bits/fcntl.h: Likewise.
17497
17498         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
17499         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
17500         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
17501         * sysdeps/unix/bsd/isatty.c: Likewise.
17502         * sysdeps/unix/bsd/tcdrain.c: Likewise.
17503         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
17504         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
17505
17506 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17507
17508         [BZ #13563]
17509         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
17510         long double comparison inaccuracies.
17511         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
17512         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17513
17514 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
17515
17516         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
17517         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
17518
17519 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
17520
17521         [BZ #14049]
17522         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
17523         nonzero digits before rounding a hex value.
17524         * stdlib/tst-strtod.c (tests): Add another test.
17525
17526 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17527
17528         * sysdeps/s390/fpu/libm-test-ulps: Update.
17529
17530 2012-05-03  Andreas Jaeger  <aj@suse.de>
17531
17532         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
17533         does not get optimized out.
17534         (malloc_opt_barrier): New.
17535
17536 2012-05-03  Andreas Jaeger  <aj@suse.de>
17537             Roland McGrath  <roland@hack.frob.com>
17538
17539         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
17540         intermediate file deletion.
17541         (generated): Add .symlist files.
17542
17543 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
17544
17545         [BZ #13775]
17546         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
17547         Redirect under this condition.
17548         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
17549         [__USE_GNU] (__dprintf_chk): Not under this condition.
17550         [__USE_GNU] (__vdprintf_chk): Likewise.
17551         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
17552         under this condition.
17553         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
17554         [__USE_XOPEN2K8] (dprintf): Define under this condition.
17555         [__USE_XOPEN2K8] (vdprintf): Likewise.
17556         [__USE_GNU] (__dprintf_chk): Not under this condition.
17557         [__USE_GNU] (__vdprintf_chk): Likewise.
17558         [__USE_GNU] (dprintf): Likewise.
17559         [__USE_GNU] (vdprintf): Likewise.
17560
17561 2012-05-03  Roland McGrath  <roland@hack.frob.com>
17562
17563         * elf/Makefile (common-generated): Set this instead of generated for
17564         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
17565         $(all-built-dso)-derived lists.
17566
17567 2012-05-03  Andreas Jaeger  <aj@suse.de>
17568
17569         * sysdeps/i386/fpu/libm-test-ulps: Update.
17570
17571         * FAQ: Removed.
17572         * FAQ.in: Likewise.
17573         * scripts/gen-FAQ.pl: Likewise.
17574         * manual/install.texi (Installation): Point to online location of
17575         FAQ.
17576         * Makefile (files-for-dist): Remove FAQ.
17577         (FAQ): Remove.
17578
17579 2012-05-02  Allan McRae  <allan@archlinux.org>
17580
17581         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
17582         (LDFLAGS-reldepmod5.so): Likewise.
17583         (LDFLAGS-reldep6mod1.so): Likewise.
17584         (LDFLAGS-reldep6mod4.so): Likewise.
17585         (LDFLAGS-reldep8mod3.so): Likewise.
17586         (LDFLAGS-unload4mod1.so): Likewise.
17587         (LDFLAGS-unload4mod2.so): Likewise.
17588         (LDFLAGS-tst-initorder): Likewise.
17589         (LDFLAGS-tst-initordera2.so): Likewise.
17590         (LDFLAGS-tst-initordera3.so): Likewise.
17591         (LDFLAGS-tst-initordera4.so): Likewise.
17592         (LDFLAGS-tst-initorderb2.so): Likewise.
17593         (LDFLAGS-noload): Likewise.
17594         (LDFLAGS-next): Likewise.
17595         (LDFLAGS-order2mod1.so): Likewise.
17596         (LDFLAGS-order2mod2.so): Likewise.
17597         (LDFLAGS-tst-initorder2): Likewise.
17598         (LDFLAGS-tst-initorder2a.so): Likewise.
17599         (LDFLAGS-tst-initorder2b.so): Likewise.
17600         (LDFLAGS-tst-initorder2c.so): Likewise.
17601         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
17602
17603 2012-05-02  David S. Miller  <davem@davemloft.net>
17604
17605         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17606
17607 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
17608
17609         [BZ #14055]
17610         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
17611
17612 2012-05-02  Andreas Jaeger  <aj@suse.de>
17613
17614         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
17615         since we manipulate rounding mode.
17616         (CPPFLAGS-test-idouble.c): Likewise.
17617         (CPPFLAGS-test-ifloat.c): Likewise.
17618         (CFLAGS-test-ldouble.c): Likewise.
17619         (CFLAGS-test-double.c): Likewise.
17620         (CFLAGS-test-float.c): Likewise.
17621         (CFLAGS-test-misc.c): Likewise.
17622         (CFLAGS-test-test-fenv.c): Likewise.
17623
17624 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17625
17626         [BZ #2550]
17627         [BZ #2570]
17628         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
17629         comparisons to determine direction to adjust input.
17630
17631 2012-05-01  Roland McGrath  <roland@hack.frob.com>
17632
17633         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
17634         output to the target.
17635
17636         * scripts/localplt.awk: New file.
17637         * elf/Makefile ($(objpfx)check-localplt): Target removed.
17638         (check-localplt-CFLAGS): Variable removed.
17639         ($(all-built-dso:=.jmprel)): New static pattern rule.
17640         (generated): Add those targets.
17641         (localplt-built-dso): New variable.
17642         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
17643
17644         * elf/check-localplt.c: File removed.
17645
17646         * scripts/check-execstack.awk: New file.
17647         * elf/Makefile ($(objpfx)check-execstack): Target removed.
17648         (check-execstack-CFLAGS): Variable removed.
17649         ($(objpfx)check-execstack.h): Target removed.
17650         ($(objpfx)execstack-default): New target.
17651         (generated): Add that instead of check-execstack.h.
17652         ($(all-built-dso:=.phdr)): New static pattern rule.
17653         (generated): Add those targets.
17654         * elf/check-execstack.c: File removed.
17655
17656         * scripts/check-textrel.awk: New file.
17657         * elf/Makefile ($(objpfx)check-textrel): Target removed.
17658         (check-textrel-CFLAGS): Variable removed.
17659         (all-built-dso): Use := to define.o
17660         ($(all-built-dso:=.dyn)): New static pattern rule.
17661         (generated): Add those targets.
17662         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
17663         * config.make.in (READELF): New substituted variable.
17664         * elf/check-textrel.c: File removed.
17665
17666 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
17667
17668         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
17669         allow.
17670         * conform/data/ctype.h-data [C99-based standards] (isblank):
17671         Expect function.
17672         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
17673         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
17674         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17675         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
17676         Specify type.  Require positive value.
17677         (EILSEQ): Likewise.
17678         (ERANGE): Likewise.
17679         [ISO || POSIX] (EILSEQ): Do not expect.
17680         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
17681         Specify type.  Require positive value.
17682         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
17683         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
17684         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
17685         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
17686         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
17687         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
17688         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
17689         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
17690         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
17691         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
17692         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
17693         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
17694         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
17695         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
17696         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
17697         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
17698         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
17699         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
17700         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
17701         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
17702         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
17703         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
17704         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
17705         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
17706         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
17707         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
17708         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
17709         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
17710         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
17711         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
17712         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
17713         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
17714         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
17715         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
17716         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
17717         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
17718         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
17719         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
17720         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
17721         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
17722         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
17723         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
17724         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
17725         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
17726         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
17727         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
17728         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
17729         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
17730         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
17731         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
17732         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
17733         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
17734         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
17735         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
17736         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
17737         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
17738         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
17739         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
17740         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
17741         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
17742         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
17743         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
17744         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
17745         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
17746         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
17747         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
17748         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
17749         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
17750         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
17751         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
17752         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
17753         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
17754         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
17755         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
17756         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
17757         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
17758         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
17759         Require >= 2.
17760         (FLT_ROUNDS): Expect as macro, not constant.
17761         (FLT_MANT_DIG): Use macro-int-constant.
17762         (DBL_MANT_DIG): Likewise.
17763         (LDBL_MANT_DIG): Likewise.
17764         (FLT_DIG): Likewise.
17765         (DBL_DIG): Likewise.
17766         (LDBL_DIG): Likewise.
17767         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
17768         (DBL_MIN_EXP): Likewise.
17769         (LDBL_MIN_EXP): Likewise.
17770         (FLT_MAX_EXP): Use macro-int-constant.
17771         (DBL_MAX_EXP): Likewise.
17772         (LDBL_MAX_EXP): Likewise.
17773         (FLT_MAX_10_EXP): Likewise.
17774         (DBL_MAX_10_EXP): Likewise.
17775         (LDBL_MAX_10_EXP): Likewise.
17776         (FLT_MAX): Use macro-constant.
17777         (DBL_MAX): Likewise.
17778         (LDBL_MAX): Likewise.
17779         (FLT_EPSILON): Use macro-constant.  Give upper bound.
17780         (DBL_EPSILON): Likewise.
17781         (LDBL_EPSILON): Likewise.
17782         (FLT_MIN): Likewise.
17783         (DBL_MIN): Likewise.
17784         (LDBL_MIN): Likewise.
17785         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
17786         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
17787         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
17788         [ISO11] (FLT_HAS_SUBNORM): Likewise.
17789         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
17790         [ISO11] (DBL_DECIMAL_DIG): Likewise.
17791         [ISO11] (FLT_DECIMAL_DIG): Likewise.
17792         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
17793         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
17794         [ISO11] (FLT_TRUE_MIN): Likewise.
17795         [ISO11] (LDBL_TRUE_MIN): Likewise.
17796         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17797         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
17798         (SCHAR_MIN): Use macro-int-constant.  Specify type.
17799         (SCHAR_MAX): Likewise.
17800         (UCHAR_MAX): Likewise.
17801         (CHAR_MIN): Likewise.
17802         (CHAR_MAX): Likewise.
17803         (MB_LEN_MAX): Use macro-int-constant.
17804         (SHRT_MIN): Use macro-int-constant.  Specify type.
17805         (SHRT_MAX): Likewise.
17806         (USHRT_MAX): Likewise.
17807         (INT_MAX): Likewise.
17808         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
17809         bound negative.
17810         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17811         bound with "U".
17812         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17813         bound with "L".
17814         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
17815         bound negative.  Suffix upper bound with "L".
17816         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17817         bound with "UL".
17818         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
17819         Specify type.
17820         [C99-based standards] (LLONG_MAX): Likewise.
17821         [C99-based standards] (ULLONG_MAX): Likewise.
17822         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
17823         == 0.
17824         [ISO11] (max_align_t): Require type.
17825         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17826
17827         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
17828         from $CFLAGS, without defining away __attribute__ calls.
17829         (checknamespace): Use $CFLAGS_namespace.
17830
17831         * conform/conformtest.pl (@keywords): Only include C99 keywords
17832         for standards based on C99 or C11.
17833
17834         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
17835         Disable tests.
17836         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
17837         UNIX98]: Likewise.
17838
17839         * conform/conformtest.pl: Handle "macro-int-constant" and test for
17840         usability of symbols in #if.
17841
17842         * conform/conformtest.pl: If macro or constant types start
17843         "promoted:", expect the symbol to be of the following type
17844         promoted by the integer promotions.
17845
17846         * conform/conformtest.pl: Parse all "constant" and "macro" lines
17847         in one place.  Also handle "macro-constant".
17848
17849         * conform/conformtest.pl: Only accept expected macro values with
17850         "==".  Parse all "macro" lines in one place.
17851         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
17852
17853         * conform/conformtest.pl: Handle braced types on "constant" lines
17854         instead of handling "typed-constant".
17855         * conform/data/signal.h-data: Use "constant" instead of
17856         "typed-constant".
17857
17858         * conform/conformtest.pl: Handle "optional-" at start of lines in
17859         one place rather than duplicating several cases.  Handle each
17860         format of "macro" line with initial "optional-".
17861
17862         * conform/conformtest.pl: Only accept expected constant or
17863         optional-constant values with "==".  Parse all "constant" lines in
17864         one place.  Parse all "optional-constant" lines in one place.
17865         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
17866         * conform/data/fmtmsg.h-data: Likewise.
17867         * conform/data/netinet/in.h-data: Likewise.
17868         * conform/data/tar.h-data: Likewise.
17869         * conform/data/limits.h-data: Use "==" form on "constant" and
17870         "optional-constant" lines.
17871
17872         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
17873         Use -std=c99 for XOPEN2K.
17874         (@knownproblems): Remove.
17875         (newtoken): Don't check %isknown.
17876
17877         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
17878         Do not expect macro.
17879         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
17880         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
17881         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
17882         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
17883         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
17884         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
17885         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
17886         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
17887         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
17888         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
17889         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
17890         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
17891         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
17892         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
17893         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
17894         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
17895         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
17896         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
17897         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
17898         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
17899         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
17900         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
17901         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
17902         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
17903         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
17904         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
17905         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
17906         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
17907         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
17908         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
17909         [XPG3] (acosh): Likewise.
17910         [XPG3] (asinh): Likewise.
17911         [XPG3] (atanh): Likewise.
17912         [XPG3] (cbrt): Likewise.
17913         [XPG3] (expm1): Likewise.
17914         [XPG3] (ilogb): Likewise.
17915         [XPG3] (log1p): Likewise.
17916         [XPG3] (logb): Likewise.
17917         [XPG3] (nextafter): Likewise.
17918         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
17919         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
17920         [XPG3] (remainder): Likewise.
17921         [XPG3] (rint): Likewise.
17922         [XPG3 || XPG4 || UNIX98] (round): Likewise.
17923         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
17924         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
17925         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
17926         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
17927         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
17928         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
17929         [UNIX98 || XOPEN2K] (scalb): Expect.
17930         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
17931         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
17932         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
17933         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
17934         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
17935         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
17936         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
17937         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
17938         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
17939         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
17940         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
17941         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
17942         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
17943         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
17944         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
17945         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
17946         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
17947         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
17948         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
17949         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
17950         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
17951         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
17952         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
17953         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
17954         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
17955         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
17956         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
17957         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
17958         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
17959         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
17960         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
17961         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
17962         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
17963         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
17964         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
17965         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
17966         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
17967         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
17968         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
17969         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
17970         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
17971         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
17972         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
17973         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
17974         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
17975         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
17976         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
17977         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
17978         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
17979         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
17980         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
17981         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
17982         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
17983         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
17984         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
17985         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
17986         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
17987         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
17988         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
17989         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
17990         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
17991         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
17992         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
17993         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
17994         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
17995         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
17996         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
17997         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
17998         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
17999         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
18000         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
18001         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
18002         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
18003         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
18004         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
18005         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
18006         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
18007         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
18008         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
18009         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
18010         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
18011         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
18012         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
18013         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
18014         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
18015         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
18016         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
18017         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
18018         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
18019         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
18020         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
18021         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
18022         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
18023         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
18024         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
18025         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
18026         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
18027         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
18028         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
18029         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
18030         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
18031         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
18032         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
18033         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
18034         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
18035         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
18036         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
18037         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
18038         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
18039         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
18040         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
18041         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
18042         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
18043         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
18044         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
18045         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
18046         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
18047         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
18048         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
18049         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
18050         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
18051         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
18052         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
18053         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
18054         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
18055         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
18056         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
18057         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
18058         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
18059         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
18060         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
18061         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
18062         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
18063         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
18064         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
18065         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
18066         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
18067
18068         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
18069         _XOPEN_SOURCE_EXTENDED for XPG4.
18070
18071         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
18072
18073         * Makeconfig (localtime): Remove variable.
18074         (inst_localtime-file): Likewise.
18075
18076 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
18077
18078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
18079         Update.
18080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
18081         Update.
18082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
18083         Update.
18084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
18085         Update.
18086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
18087         Update.
18088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
18089         Update.
18090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
18091         Update.
18092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
18093         Update.
18094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
18095         Update.
18096
18097 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
18098
18099         [BZ #2550]
18100         [BZ #2570]
18101         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
18102         comparisons to determine direction to adjust input.
18103         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
18104         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
18105         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
18106         Likewise.
18107         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
18108         Likewise.
18109         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
18110         Likewise.
18111         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
18112         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
18113         Likewise.
18114         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
18115         Likewise.
18116         * math/libm-test.inc (nexttoward_test): Add more tests.
18117
18118 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
18119
18120         [BZ #14040]
18121         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
18122         in version GLIBC_2.1, not GLIBC_2.0.
18123         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
18124         Likewise.
18125
18126 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
18127
18128         [BZ #13942]
18129         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
18130         (1 - x) * (1 + x).
18131         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
18132         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
18133         * math/libm-test.inc (acos_test): Add more tests.
18134         (asin_test): Likewise.
18135         * sysdeps/i386/fpu/libm-test-ulps: Update.
18136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18137
18138         [BZ #14034]
18139         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
18140         of square root.
18141         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
18142         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
18143         * math/libm-test.inc (acos_test_tonearest): New function.
18144         (acos_test_towardzero): Likewise.
18145         (acos_test_downward): Likewise.
18146         (acos_test_upward): Likewise.
18147         (asin_test_tonearest): Likewise.
18148         (asin_test_towardzero): Likewise.
18149         (asin_test_downward): Likewise.
18150         (asin_test_upward): Likewise.
18151         (main): Call the new functions.
18152         * sysdeps/i386/fpu/libm-test-ulps: Update.
18153         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18154
18155         [BZ #13884]
18156         [BZ #13924]
18157         * math/e_exp10.c: Include <float.h>.
18158         (__ieee754_exp10): Handle underflow here rather than multiplying
18159         large negative argument by M_LN10.
18160         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
18161         of __ieee754_expf.
18162         * math/e_exp10l.c: Include <float.h>.
18163         (__ieee754_exp10l): Handle underflow here rather than multiplying
18164         large negative argument by M_LN10l.
18165         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
18166         spurious overflow exception on underflow.
18167
18168 2012-04-29  Marek Polacek  <polacek@redhat.com>
18169
18170         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
18171         (__fortify_function): New macro.
18172         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
18173         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
18174         __extern_always_inline.
18175         * libio/bits/stdio2.h: Likewise.
18176         * libio/bits/stdio.h: Likewise.
18177         * string/string.h: Likewise.
18178         * string/bits/string3.h: Likewise.
18179         * include/stdio.h: Likewise.
18180         * stdlib/bits/stdlib.h: Likewise.
18181         * stdlib/stdlib.h: Likewise.
18182         * rt/bits/mqueue2.h: Likewise.
18183         * rt/mqueue.h: Likewise.
18184         * posix/bits/unistd.h: Likewise.
18185         * posix/unistd.h: Likewise.
18186         * io/bits/poll2.h: Likewise.
18187         * io/bits/fcntl2.h: Likewise.
18188         * io/fcntl.h: Likewise.
18189         * io/sys/poll.h: Likewise.
18190         * misc/bits/syslog.h: Likewise.
18191         * misc/bits/syslog-ldbl.h: Likewise.
18192         * misc/sys/syslog.h: Likewise.
18193         * socket/bits/socket2.h: Likewise.
18194         * socket/sys/socket.h: Likewise.
18195         * debug/tst-chk1.c: Likewise.
18196         * wcsmbs/bits/wchar2.h: Likewise.
18197         * wcsmbs/bits/wchar-ldbl.h: Likewise.
18198         * wcsmbs/wchar.h: Likewise.
18199
18200 2012-04-29  Andreas Jaeger  <aj@suse.de>
18201
18202         * Makerules (tests): Remove enable-check-abi protection.
18203         (check-abi-warn): Remove.
18204         (check-abi-%): Remove check-abi-warn usage.
18205
18206         * configure.in: Remove check-abi configure option.
18207         * configure: Regenerated.
18208         * config.make.in (enable-check-abi): Remove.
18209
18210 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
18211
18212         [BZ #14033]
18213         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
18214         double functions to double *_finite functions.
18215
18216         [BZ #13941]
18217         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
18218         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
18219         LDBL_MIN_EXP.
18220         * stdio-common/Makefile (tests): Add tst-sprintf3.
18221         * stdio-common/tst-sprintf3.c: New file.
18222
18223         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
18224         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
18225
18226 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
18227
18228         * conform/conformtest.pl: Remove duplicate typed-constant
18229         handling.
18230
18231 2012-04-28  David S. Miller  <davem@davemloft.net>
18232
18233         * Makerules (%.abilist): Add vpath on sysdep_dirs.
18234         (check-abi-%): Remove AWK script prerequisite and explicit
18235         abilist directory.
18236         (check-abi): Rewrite to just diff the symlist with the abilist.
18237         (config-tls, config-abi-config): Delete, no longer used.
18238         (update-abi-%): Remove AWK script and explicit abilist directory.
18239         (update-abi): Rewrite to simply compare and conditionally copy the
18240         symlist and the sysdep abilist file.  Remove update-abi-config
18241         checks.
18242         * abilist/ld.abilist: Remove.
18243         * abilist/libBrokenLocale.abilist: Remove.
18244         * abilist/libanl.abilist: Remove.
18245         * abilist/libcrypt.abilist: Remove.
18246         * abilist/libdl.abilist: Remove.
18247         * abilist/librt.abilist: Remove.
18248         * abilist/libthread_db.abilist: Remove.
18249         * abilist/libutil.abilist: Remove.
18250         * scripts/extract-abilist.awk: Remove.
18251         * scripts/merge-abilist.awk: Remove.
18252         * sysdeps/generic/libcidn.abilist: New file.
18253         * sysdeps/generic/libnss_compat.abilist: New file.
18254         * sysdeps/generic/libnss_db.abilist: New file.
18255         * sysdeps/generic/libnss_dns.abilist: New file.
18256         * sysdeps/generic/libnss_files.abilist: New file.
18257         * sysdeps/generic/libnss_hesiod.abilist: New file.
18258         * sysdeps/generic/libnss_nis.abilist: New file.
18259         * sysdeps/generic/libnss_nisplus.abilist: New file.
18260         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
18261         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
18262         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
18263         file.
18264         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
18265         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
18266         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
18267         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
18268         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
18269         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
18270         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
18271         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
18272         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
18273         file.
18274         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
18275         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
18276         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
18277         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
18278         file.
18279         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
18280         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
18281         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
18282         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
18283         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
18284         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
18285         file.
18286         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
18287         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
18288         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
18289         file.
18290         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
18291         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
18292         New file.
18293         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
18294         New file.
18295         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
18296         New file.
18297         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
18298         New file.
18299         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
18300         New file.
18301         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
18302         New file.
18303         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
18304         New file.
18305         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
18306         New file.
18307         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
18308         New file.
18309         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
18310         New file.
18311         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
18312         New file.
18313         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
18314         New file.
18315         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
18316         New file.
18317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
18318         file.
18319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
18320         New file.
18321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
18322         New file.
18323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
18324         file.
18325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
18326         New file.
18327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
18328         New file.
18329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
18330         file.
18331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
18332         New file.
18333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
18334         New file.
18335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
18336         New file.
18337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
18338         New file.
18339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
18340         New file.
18341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
18342         New file.
18343         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
18344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
18345         file.
18346         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
18347         New file.
18348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
18349         file.
18350         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
18351         file.
18352         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
18353         file.
18354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
18355         file.
18356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
18357         file.
18358         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
18359         New file.
18360         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
18361         file.
18362         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
18363         file.
18364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
18365         New file.
18366         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
18367         file.
18368         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
18369         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
18370         file.
18371         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
18372         New file.
18373         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
18374         file.
18375         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
18376         file.
18377         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
18378         file.
18379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
18380         file.
18381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
18382         file.
18383         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
18384         New file.
18385         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
18386         file.
18387         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
18388         file.
18389         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
18390         New file.
18391         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
18392         file.
18393         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
18394         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
18395         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
18396         file.
18397         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
18398         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
18399         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
18400         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
18401         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
18402         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
18403         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
18404         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
18405         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
18406         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
18407         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
18408         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
18409         file.
18410         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
18411         New file.
18412         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
18413         file.
18414         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
18415         file.
18416         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
18417         file.
18418         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
18419         file.
18420         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
18421         file.
18422         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
18423         New file.
18424         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
18425         New file.
18426         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
18427         file.
18428         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
18429         New file.
18430         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
18431         file.
18432         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
18433         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
18434         file.
18435         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
18436         New file.
18437         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
18438         file.
18439         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
18440         file.
18441         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
18442         file.
18443         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
18444         file.
18445         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
18446         file.
18447         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
18448         New file.
18449         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
18450         New file.
18451         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
18452         file.
18453         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
18454         New file.
18455         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
18456         file.
18457
18458 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
18459
18460         * conform/conformtest.pl: Fix typo in handling typed-constant from
18461         allow-header.
18462
18463 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
18464
18465         * README: Cut down references to pre-2.6 Linux kernels and
18466         Linuxthreads.  Update lists of configurations in libc and ports
18467         and sort alphabetically.  Say "or newer" with Linux kernel version
18468         requirements.
18469
18470         * config.h.in [IS_IN_build]: Allow compiling without optimization.
18471
18472 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
18473
18474         [BZ #887]
18475         * math/libm-test.inc (logb_test_downward): New test to expose
18476         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
18477         rounding mode.
18478
18479 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
18480
18481         [BZ #14027]
18482         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
18483         to be done.
18484         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
18485         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
18486
18487 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
18488
18489         * sysdeps/unix/i386/brk.S: Remove file.
18490         * sysdeps/unix/i386/dl-brk.S: Likewise.
18491         * sysdeps/unix/i386/pipe.S: Likewise.
18492         * sysdeps/unix/i386/sigreturn.S: Likewise.
18493         * sysdeps/unix/i386/syscall.S: Likewise.
18494         * sysdeps/unix/i386/vfork.S: Likewise.
18495         * sysdeps/unix/i386/wait.S: Likewise.
18496
18497         * sysdeps/unix/common/tcsendbrk.c: Move to ...
18498         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
18499
18500         * configure.in (arm*-none*): Do not allow without
18501         --enable-hacker-mode.
18502         (netbsd*): Remove case setting base_os.
18503         (386bsd*): Likewise.
18504         (freebsd*): Likewise.
18505         (bsdi*): Likewise.
18506         (osf*): Likewise.
18507         (sunos*): Likewise.
18508         (ultrix*): Likewise.
18509         (newsos*): Likewise.
18510         (dynix*): Likewise.
18511         (*bsd*): Likewise.
18512         (sysv*): Likewise.
18513         (isc*): Likewise.
18514         (esix*): Likewise.
18515         (sco*): Likewise.
18516         (minix*): Likewise.
18517         (irix4*): Likewise.
18518         (irix6*): Likewise.
18519         (solaris[2-9]*): Likewise.
18520         (none): Likewise.
18521         * configure: Regenerated.
18522
18523 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18524
18525         [BZ #11521]
18526         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
18527         overflow or cancellation in calculating denominator.
18528         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
18529         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
18530         down expression to avoid unexpected rounding in newer GCCs.
18531         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
18532
18533 2012-04-26  David S. Miller  <davem@davemloft.net>
18534
18535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
18536         long-double compat symbols.
18537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
18538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
18539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
18541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
18542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
18543         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
18544         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
18545         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
18546         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
18547         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
18548         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
18549         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
18550
18551 2012-04-25  David S. Miller  <davem@davemloft.net>
18552
18553         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
18554         HWCAP_* values only after the memory barriers have been defined.
18555         (atomic_full_barrier): Define.
18556         (atomic_read_barrier): Define.
18557         (atomic_write_barrier): Define.
18558
18559 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18560
18561         * shlib-versions: Add libgcc_s version information.
18562         * sysdeps/generic/libgcc_s.h: Remove.
18563         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
18564         libgcc_s.h.
18565         * sysdeps/gnu/unwind-resume.c: Likewise.
18566         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
18567
18568 2012-04-25  David S. Miller  <davem@davemloft.net>
18569
18570         * sysdeps/unix/sparc/brk.S: Delete.
18571         * sysdeps/unix/sparc/dl-brk.S: Delete.
18572         * sysdeps/unix/sparc/pipe.S: Delete.
18573         * sysdeps/unix/sparc/sysdep.S: Delete.
18574         * sysdeps/unix/sparc/sysdep.h: Delete.
18575         * sysdeps/unix/sparc/vfork.S: Delete.
18576         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
18577         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
18578         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
18579         ret_ERRVAL, r0, r1, MOVE): Define.
18580         (JUMPTARGET): Remove.
18581         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
18582         sysdeps/unix/sparc/sysdep.h
18583         (ENTRY, END): Remove.
18584         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18585
18586 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
18587
18588         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
18589         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
18590         -DIS_IN_build.
18591
18592         * timezone/README: Update upstream location and email address for
18593         tzcode and tzdata.
18594         * timezone/zdump.c: Update from tzcode 2012b.
18595         * timezone/zic.c: Likewise.
18596
18597         * configure.in (libc_cv_as_needed): Remove test.
18598         * configure: Regenerated.
18599         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
18600         conditional definition.
18601         [$(have-as-needed) != yes] (no-as-needed): Likewise.
18602         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
18603         * config.make.in (have-as-needed): Remove variable.
18604
18605 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18606             Paul Pluzhnikov  <ppluzhnikov@google.com>
18607
18608         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
18609         strings correctly.
18610
18611 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
18612
18613         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
18614         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
18615         * sysdeps/sh/strlen.S: Likewise.
18616
18617 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
18618
18619         * sysdeps/unix/fork.S: Remove file.
18620         * sysdeps/unix/i386/fork.S: Likewise.
18621         * sysdeps/unix/sparc/fork.S: Likewise.
18622
18623         * sysdeps/unix/system.c: Remove file.
18624         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
18625
18626         * sysdeps/unix/getegid.S: Remove file.
18627         * sysdeps/unix/geteuid.S: Likewise.
18628
18629 2012-04-24  Roland McGrath  <roland@hack.frob.com>
18630
18631         * scripts/check-localplt.awk: New file.
18632         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
18633         of diff.
18634         * scripts/data/localplt-generic.data: Add a comment.
18635
18636         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
18637         NODE when __dir_mkfile failed.
18638         * sysdeps/mach/hurd/symlinkat.c: Likewise.
18639         Reported by Ludovic Courtès <ludo@gnu.org>.
18640
18641 2012-04-24  Andreas Jaeger  <aj@suse.de>
18642
18643         * Makerules (common-clean): Also remove gen-as-const-headers
18644         files.
18645
18646 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
18647
18648         * Makerules (native-compile): Do not change working directory for
18649         build.  Use $(OUTPUT_OPTION) in command.
18650         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
18651
18652 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18653
18654         [BZ #13886]
18655         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
18656         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
18657         * math/libm-test.inc (floor_test): Add more tests.
18658         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
18659
18660 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
18661
18662         * sysdeps/unix/getdents.c: Remove file.
18663         * sysdeps/unix/sysv/getdents.c: Likewise.
18664         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
18665
18666         * sysdeps/unix/syscalls.list (madvise): Add syscall from
18667         sysdeps/unix/mman/syscalls.list.
18668         (mmap): Likewise.
18669         (mprotect): Likewise.
18670         (msync): Likewise.
18671         (munmap): Likewise.
18672         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
18673         * sysdeps/unix/mman/syscalls.list: Remove.
18674         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
18675
18676         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
18677         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
18678         * configure: Regenerated.
18679         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
18680         $(libgcc_s_suffix).
18681         * config.make.in (libgcc_s_suffix): Remove variable.
18682
18683 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
18684
18685         * sysdeps/unix/sysv/gethostname.c: Move to ...
18686         * sysdeps/posix/gethostname.c: ... here.
18687
18688         * sysdeps/unix/execve.S: Remove file.
18689
18690         * sysdeps/unix/_exit.S: Remove file.
18691
18692 2012-04-23  Andreas Jaeger  <aj@suse.de>
18693
18694         [BZ #13739]
18695         * manual/Makefile: Remove make dist support, there's no
18696         need for a stand-alone documentation tar ball.
18697         (TEXI2DVI): Define always, it's not in Makeconfig.
18698         (dist): Removed.
18699         (tar-it): Removed.
18700         (edition): Removed.
18701         (glibc-doc-$(edition).tar): Removed
18702         (%.Z): Removed.
18703         (%.gz): Removed.
18704         (%.uu): Removed.
18705         (ETAGS): Remove, it's in Makeconfig.
18706         (move-if-change): Remove, it's in Makeconfig.
18707
18708 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
18709
18710         [BZ #13970]
18711         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
18712         (strtod, strtof, strtold, strtol, strtoul, strtoq)
18713         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
18714         (strtod_l, strtof_l, strtold_l): Remove __wur.
18715         It is not necessarily an error to ignore strtol's return value.
18716         One can reliably look at the stored endptr to decide whether
18717         the number had valid syntax.
18718
18719 2012-04-21  Andreas Jaeger  <aj@suse.de>
18720
18721         [BZ #13739]
18722         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
18723
18724 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
18725
18726         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
18727         * sysdeps/unix/sysv/Versions: Remove file.
18728
18729 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
18730
18731         [BZ #13927]
18732         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18733
18734 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
18735
18736         [BZ #7064]
18737         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
18738         version from __vm86.
18739
18740 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
18741
18742         * sysdeps/unix/common/lxstat.c: Remove file.
18743         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
18744
18745         * sysdeps/unix/sysv/Makefile: Remove file.
18746
18747         * sysdeps/unix/sysv/direct.h: Remove file.
18748
18749         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
18750         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
18751         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
18752         * sysdeps/unix/sysv/bits/signum.h: Likewise.
18753         * sysdeps/unix/sysv/bits/stat.h: Likewise.
18754         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
18755         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
18756
18757         * sysdeps/unix/sysv/setrlimit.c: Remove file.
18758
18759         * sysdeps/unix/xmknod.c: Remove file.
18760         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
18761
18762         * sysdeps/unix/sysv/settimeofday.c: Remove file.
18763
18764         * sysdeps/unix/sysv/i386/time.S: Remove file.
18765
18766         * sysdeps/unix/fxstat.c: Remove file.
18767         * sysdeps/unix/xstat.c: Likewise.
18768         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
18769
18770         * sysdeps/unix/sysv/sigaction.c: Remove file.
18771
18772         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
18773         (sysdep_headers): Remove variable.
18774         [termio.h not in sysdep_headers] (generated): Likewise.
18775         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
18776         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
18777         * sysdeps/unix/sysv/tcdrain.c: Likewise.
18778         * sysdeps/unix/sysv/tcflow.c: Likewise.
18779         * sysdeps/unix/sysv/tcflush.c: Likewise.
18780         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
18781         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
18782         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
18783         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
18784         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
18785
18786         * sysdeps/unix/siglist.c: Remove file.
18787
18788         * sysdeps/unix/getppid.S: Remove file.
18789
18790         * sysdeps/unix/mkdir.c: Remove file.
18791         * sysdeps/unix/rmdir.c: Likewise.
18792
18793 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
18794
18795         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
18796         ERR_MAX value.
18797         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
18798         errlist-compat value.
18799
18800 2012-04-18  David S. Miller  <davem@davemloft.net>
18801
18802         * sysdeps/generic/memcopy.h (reg_char): Delete.
18803         * debug/strcat_chk.c: Use char, not reg_char.
18804         * debug/strcpy_chk.c: Likewise.
18805         * debug/strncat_chk.c: Likewise.
18806         * debug/strncpy_chk.c: Likewise.
18807         * string/memchr.c: Likewise.
18808         * string/memrchr.c: Likewise.
18809         * string/rawmemchr.c: Likewise.
18810         * string/strcat.c: Likewise.
18811         * string/strchr.c: Likewise.
18812         * string/strchrnul.c: Likewise.
18813         * string/strcmp.c: Likewise.
18814         * string/strcpy.c: Likewise.
18815         * string/strncat.c: Likewise.
18816         * string/strncmp.c: Likewise.
18817         * string/strncpy.c: Likewise.
18818
18819 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18820
18821         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
18822         __builtin_memcopy is called when src and dest ranges are known to not
18823         overlap.
18824
18825 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18826
18827         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
18828         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
18829         fwd_align_merge macro call.
18830         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
18831         bwd_align_merge macro call.
18832         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
18833
18834 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18835
18836         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
18837         bwd_align_merge macros.
18838         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
18839         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
18840         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
18841
18842 2012-04-18  David S. Miller  <davem@davemloft.net>
18843
18844         * sysdeps/sparc/sparc64/memcopy.h: Delete.
18845
18846 2012-04-18  Andreas Jaeger  <aj@suse.de>
18847
18848         [BZ# 6794]
18849         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
18850         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
18851         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18852
18853         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
18854         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
18855         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18856
18857         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
18858         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
18859         Adjust for changed ldbl-128 files.
18860
18861         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
18862         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
18863         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18864
18865 2012-04-17  David S. Miller  <davem@davemloft.net>
18866
18867         * sysdeps/sparc/sparc32/memcopy.h: Delete.
18868
18869 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
18870
18871         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
18872         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
18873         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
18874         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
18875         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
18876         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
18877
18878 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18879
18880         [BZ #6794]
18881         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
18882         * math/libm-test.inc: Add ilogb errno and exception tests.
18883         * math/w_ilogb.c: New file: ilogb wrapper.
18884         * math/w_ilogbf.c: New file: ilogbf wrapper.
18885         * math/w_ilogbl.c: New file: ilogbl wrapper.
18886         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
18887         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
18888         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
18889         exception being thrown with 0.0 as argument.
18890         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
18891         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
18892         exception being thrown with 0.0 as argument.
18893         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
18894         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
18895         exception being thrown with 0.0 as argument.
18896         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
18897         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
18898         exception being thrown with 0.0 as argument.
18899         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
18900         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
18901         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
18902         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
18903         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
18904         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
18905         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
18906         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
18907         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
18908
18909 2012-04-17  Petr Baudis  <pasky@ucw.cz>
18910
18911         * include/sys/uio.h: Change __vector to __iovec to avoid clash
18912         with altivec.
18913
18914 2012-04-16  Marek Polacek  <polacek@redhat.com>
18915
18916         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
18917
18918 2012-04-16  Marek Polacek  <polacek@redhat.com>
18919
18920         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
18921         operands of fdivp instruction.
18922
18923 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18924
18925         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
18926         * elf/tst-auditmod3b.c: Likewise.
18927         * elf/tst-auditmod4b.c: Likewise.
18928         * elf/tst-auditmod5b.c: Likewise.
18929         * elf/tst-auditmod6b.c: Likewise.
18930         * elf/tst-auditmod6c.c: Likewise.
18931         * elf/tst-auditmod7b.c: Likewise.
18932         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
18933         * sysdeps/x86_64/preconfigure.in: Likewise.
18934         * sysdeps/x86_64/preconfigure: Regenerated.
18935
18936 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18937
18938         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
18939         __ILP32__.
18940
18941 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
18942
18943         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18944         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
18945
18946 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
18947
18948         [BZ #13973]
18949         * locale/iso-639.def: Fix gl language name. Spotted by
18950         Yaron Shahrabani.
18951
18952 2012-04-12  Roland McGrath  <roland@hack.frob.com>
18953
18954         [BZ #2074]
18955         * libio/libio.h (__io_write_fn): Update comment.
18956
18957 2012-04-12  Petr Baudis  <pasky@ucw.cz>
18958
18959         [BZ #2074]
18960         * stdio.texi (Hook Functions): The user provided writer function
18961         is not allowed to return -1.
18962
18963 2012-04-11  David S. Miller  <davem@davemloft.net>
18964
18965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18966
18967 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
18968
18969         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
18970         Add a leading slash to rtkaio.
18971
18972 2012-04-11  Jim Meyering  <meyering@redhat.com>
18973
18974         [BZ #11959]
18975         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
18976         It is not necessarily an error to ignore fwrite's return
18977         value.  One can reliably use ferror to test for errors after
18978         the fact.
18979
18980 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
18981
18982         * bits/types.h (__snseconds_t): New type.
18983         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
18984
18985         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
18986         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18987         (__SNSECONDS_T_TYPE): Likewise.
18988         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18989         (__SNSECONDS_T_TYPE): Likewise.
18990         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18991         (__SNSECONDS_T_TYPE): Likewise.
18992
18993 2012-04-10  Andreas Jaeger  <aj@suse.de>
18994
18995         [BZ #2636]
18996         * manual/time.texi (Processor Time): Return type of times is
18997         elapsed real time since an arbitrary point in the past.
18998         (CPU Time): Move CLK_TCK from here...
18999         (Processor Time): ...to here.  Correct description.
19000         * manual/conf.texi (Constants for Sysconf): Correct description of
19001         _SC_CLK_TCK.
19002
19003 2012-04-10  David S. Miller  <davem@davemloft.net>
19004
19005         [BZ #13967]
19006         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
19007         where the is a gap between DT_REL(A) and DT_JMPREL.
19008
19009 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
19010
19011         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
19012         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
19013         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
19014
19015 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19016
19017         * elf/dl-support.c (_dl_inhibit_cache): New variable.
19018         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
19019         (dl_main): Handle --inhibit-cache.
19020         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
19021         _dl_inhibit_cache.
19022         * elf/dl-load.c (_dl_map_object): Use it.
19023         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
19024
19025 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
19026
19027         [BZ #13872]
19028         * sysdeps/i386/fpu/e_powl.S (p78): New object.
19029         (__ieee754_powl): Saturate large exponents rather than testing for
19030         overflow of y*log2(x).
19031         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
19032         * math/libm-test.inc (pow_test): Do not permit spurious overflow
19033         exceptions.
19034
19035         [BZ #11521]
19036         * math/s_ctan.c: Include <float.h>.
19037         (__ctan): Avoid internal overflow or cancellation in calculating
19038         denominator.
19039         * math/s_ctanf.c: Likewise.
19040         * math/s_ctanl.c: Likewise.
19041         * math/s_ctanh.c: Likewise.
19042         * math/s_ctanhf.c: Likewise.
19043         * math/s_ctanhl.c: Likewise.
19044         * math/libm-test.inc (ctan_test): Add more tests.
19045         (ctanh_test): Likewise.
19046         * sysdeps/i386/fpu/libm-test-ulps: Update.
19047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19048
19049 2012-04-09  Andreas Jaeger  <aj@suse.de>
19050
19051         [BZ #6894]
19052         * manual/filesys.texi (Directory Entries): Mention that d_namlen
19053         is an optional BSD extension.
19054
19055         [BZ #10254]
19056         * manual/stdio.texi (Opening Streams): Document additional fopen
19057         parameters.
19058
19059 2012-04-09  Roland McGrath  <roland@hack.frob.com>
19060
19061         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
19062         %eax without telling the compiler.
19063
19064 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
19065
19066         [BZ # 13963]
19067         * manual/install.texi: Use sourceware.org.
19068
19069 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
19070
19071         [BZ #13873]
19072         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
19073         (__ieee754_pow): Generate overflow and underflow using huge*huge
19074         and tiny*tiny rather than just returning constant infinity or zero
19075         for large exponents.
19076         * math/libm-test.inc (pow_test): Require overflow exceptions for
19077         applicable cases of large exponents.
19078
19079         [BZ #706]
19080         * sysdeps/i386/fpu/e_pow.S (p10): New object.
19081         (__ieee754_pow): Use iterative multiplication algorithm only for
19082         integer exponents with absolute value below 1024.  Check for odd
19083         integer exponents when using algorithm for real exponents.
19084         * math/libm-test.inc (pow_test): Add more tests.
19085         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19086
19087 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
19088
19089         [BZ #13705]
19090         * math/libm-test.inc (exp_test): Do not allow overflow exception
19091         on underflow test.
19092
19093 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
19094
19095         [BZ #13705]
19096         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
19097         instead of __kernel_standard_f.
19098
19099 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
19100
19101         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
19102         * sysdeps/x86_64/memset_chk.S: Likewise.
19103
19104 2012-04-08  Andreas Jaeger  <aj@suse.de>
19105
19106         [BZ #10153]
19107         * manual/startup.texi (Environment Access): Describe return value
19108         for putenv and setenv.
19109
19110         [BZ #6895]
19111         * manual/filesys.texi (Directory Entries): Add description for
19112         DT_LNK.
19113
19114         [BZ #6890]
19115         * manual/filesys.texi (Directory Entries): Clarify that it's file
19116         system not operating system in the description of DT_UNKNOWN.
19117
19118         [BZ #6578]
19119         * manual/syslog.texi (closelog): Fix reference, it's openlog.
19120
19121 2012-04-08  Stephen Compall  <s11@member.fsf.org>
19122
19123         [BZ #6649]
19124         * manual/llio.texi (Opening and Closing Files): Add cross
19125         reference to explain mode argument.
19126
19127 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
19128
19129         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
19130         * sysdeps/x86_64/memset_chk.S: Likewise.
19131
19132 2012-04-07  David S. Miller  <davem@davemloft.net>
19133
19134         * elf/elf.h (R_SPARC_WDISP10): Define.
19135         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
19136         R_SPARC_SIZE32.
19137         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
19138         R_SPARC_SIZE64 and R_SPARC_H34.
19139
19140 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
19141
19142         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
19143         conditions and remove no longer applicable assertion.
19144
19145 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
19146
19147         * bits/byteswap.h: Include <features.h>.
19148         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
19149         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
19150
19151 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
19152
19153         * bits/byteswap.h (__bswap_16): Removed.
19154         Include <bits/byteswap-16.h> to get __bswap_16.
19155         * sysdeps/i386/bits/byteswap.h: Likewise.
19156         * sysdeps/s390/bits/byteswap.h: Likewise.
19157         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19158         * bits/byteswap-16.h: New file.
19159         * sysdeps/i386/bits/byteswap-16.h: Likewise.
19160         * sysdeps/s390/bits/byteswap-16.h: Likewise.
19161         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
19162         * string/Makefile (headers): Add bits/byteswap-16.h.
19163
19164 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19165
19166         [BZ #13895]
19167         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
19168         extra indirection.
19169         * nss/Makefile (tests-static, tests): Add tst-nss-static.
19170         * nss/tst-nss-static.c: New.
19171
19172 2012-04-06  Robert Millan  <rmh@gnu.org>
19173
19174         [BZ #6486]
19175         * manual/llio.texi (File Position Primitive): lseek
19176         refers to WHENCE when it really means OFFSET.
19177
19178 2012-04-06  Andreas Jaeger  <aj@suse.de>
19179
19180         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
19181         strncmp declarations.
19182
19183         * abilist/libc.abilist: Add __poll and __ppoll.
19184
19185 2012-04-05  David S. Miller  <davem@davemloft.net>
19186
19187         * scripts/check-local-headers.sh: Accept a host triplet in the
19188         path matched by the exclude regexp.
19189
19190         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
19191         definition.
19192         * sysdeps/powerpc/powerpc32/dl-machine.h
19193         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
19194         * sysdeps/s390/s390-32/dl-machine.h
19195         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
19196         * sysdeps/sparc/sparc32/dl-machine.h
19197         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
19198         * sysdeps/sparc/sparc64/dl-machine.h
19199         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
19200
19201         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
19202         lazy binding.
19203         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
19204         undefined symbol errors.
19205
19206         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
19207         DT_NEEDED entries.
19208
19209 2012-04-05  Michael Matz  <matz@suse.de>
19210
19211         [BZ #13592]
19212         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
19213
19214 2012-04-05  Andreas Jaeger  <aj@suse.de>
19215
19216         [BZ #13908]
19217         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
19218         comment.
19219
19220 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19221
19222         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
19223         which ROUND is no valid rounding mode.
19224
19225 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19226
19227         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
19228         read again.
19229         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
19230
19231 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19232
19233         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
19234         an exception using FPU order intentionally.
19235
19236 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19237
19238         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
19239         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
19240         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
19241         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
19242
19243 2012-04-05  Simon Josefsson  <simon@josefsson.org>
19244
19245         [BZ #12340]
19246         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
19247         EINVAL when BUFLEN is too smal.
19248
19249 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
19250
19251         [BZ #13553]
19252         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
19253         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
19254
19255 2012-04-03  Andreas Jaeger  <aj@suse.de>
19256
19257         [BZ #13938]
19258         * manual/setjmp.texi (System V contexts): Fix sentence.
19259
19260         [BZ #13926]
19261         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
19262         New macro for this case.
19263         [!__GNUC__] (__bswap_64): New inline function for this case.
19264         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19265         * bits/byteswap.h: Likewise.
19266         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
19267         ull, guard with __GLIBC_HAVE_LONG_LONG.
19268
19269         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
19270         __GLIBC_HAVE_LONG_LONG.
19271
19272         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
19273         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
19274
19275 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19276
19277         [BZ #13691]
19278         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
19279         inptr and inend, rather than using last_ch.
19280
19281 2012-04-02  David S. Miller  <davem@davemloft.net>
19282
19283         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
19284         * stdio-common/printf-parse.h (read_int): Change return type to
19285         'int', return -1 on INT_MAX overflow.
19286         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
19287         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
19288         overflows INT_MAX.  Check for overflow of in-format-string precision
19289         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
19290         SIZE_MAX not INT_MAX for integer overflow test.
19291         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
19292         skip the construct in the format string but do not record anything.
19293         * stdio-common/bug22.c: Adjust to test both width/prevision
19294         INT_MAX overflow as well as total length INT_MAX overflow.  Check
19295         explicitly for proper errno values.
19296
19297 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
19298
19299         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
19300         CHAR_MAX.
19301         * string/test-strcmp.c [! WIDE]: Likewise.
19302         * time/tst-mktime2.c: Likewise for INT_MAX.
19303         * string/test-string.h: #include <sys/param.h> for MIN.
19304
19305         * csu/init-first.c (__libc_init_first): Call __ctype_init.
19306         * sysdeps/i386/init-first.c (init): Likewise.
19307         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
19308         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
19309         * sysdeps/sh/init-first.c (init): Likewise.
19310
19311 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
19312
19313         * po/ru.po: Update from translation team.
19314         * po/vi.po: Likewise.
19315
19316 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
19317
19318         * resolv/nss_dns/dns-host.c: Merge copyright years.
19319
19320 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19321
19322         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
19323         Optimize memcpy with prefetch if
19324         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
19325         src, dst pointers have unequal 16 byte alignments.
19326
19327 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
19328
19329         [BZ #13928]
19330         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
19331         from a CNAME entry and return the minimum ttl for the query.
19332         (gaih_getanswer_slice): Likewise.
19333
19334 2012-03-30  Jeff Law  <law@redhat.com>
19335
19336         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
19337         due to long keys.
19338         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
19339         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
19340
19341         * resolv/nss_dns/dns-host.c: Update copyright year.
19342
19343 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
19344
19345         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
19346         requests to save a system call.  Fix check that all bytes are sent.
19347
19348         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
19349         comments for sendmmsg.
19350
19351 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19352
19353         [BZ #13691]
19354         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
19355         with only 1 character between 0x0041 and 0x01b0.
19356         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
19357         * wcsmbs/tst-mbsnrtowcs.c: New file.
19358
19359 2012-03-29  David S. Miller  <davem@davemloft.net>
19360
19361         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
19362         small copies by hand.
19363
19364 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19365
19366         [BZ #13761]
19367         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
19368         _nss_compat_initgroups_dyn): Fall back to malloc/free
19369         for large group memberships.
19370
19371 2012-03-28  David S. Miller  <davem@davemloft.net>
19372
19373         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
19374         that branches into memcpy.
19375         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
19376         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
19377         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
19378         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
19379         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
19380         bits.
19381         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
19382         implementation too.
19383         * sysdeps/sparc/mempcpy.S: New file.
19384
19385         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
19386         the IFUNC routine in the libc case.
19387         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
19388
19389         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
19390         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
19391         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
19392         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
19393         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
19394         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
19395         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
19396         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
19397
19398         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
19399         loop to 256 bytes instead of 64 bytes and fix test signedness.
19400
19401         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
19402         * sysdeps/sparc/sparc32/Makefile: rather than here...
19403         * sysdeps/sparc/sparc64/Makefile: and here.
19404
19405 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
19406
19407         * malloc/mallocbug.c: Avoid warnings about unused variables.
19408
19409 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
19410
19411         [BZ #13760]
19412         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
19413         in the right place. Discard and retry query if response is
19414         larger than input buffer size.
19415
19416 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
19417
19418         [BZ #369]
19419         [BZ #2678]
19420         [BZ #3866]
19421         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
19422         x for large integer exponent.
19423         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
19424         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
19425         sign of result as needed afterwards.
19426         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
19427         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
19428         result for underflowing pow the same as for overflow.
19429         (__kernel_standard_l): Handle powl overflow and underflow here
19430         rather than calling __kernel_standard.
19431         * math/libm-test.inc (pow_test): Add more tests.
19432
19433         [BZ #3868]
19434         [BZ #13879]
19435         [BZ #13910]
19436         [BZ #13911]
19437         [BZ #13912]
19438         [BZ #13913]
19439         [BZ #13915]
19440         [BZ #13916]
19441         [BZ #13917]
19442         [BZ #13918]
19443         [BZ #13919]
19444         [BZ #13920]
19445         [BZ #13921]
19446         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
19447         * sysdeps/ieee754/k_standard.c: Include <float.h>.
19448         (__kernel_standard_l): New function.
19449         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
19450         __kernel_standard.
19451         * math/w_acosl.c (__acosl): Likewise.
19452         * math/w_asinl.c (__asinl): Likewise.
19453         * math/w_atan2l.c (__atan2l): Likewise.
19454         * math/w_atanhl.c (__atanhl): Likewise.
19455         * math/w_coshl.c (__coshl): Likewise.
19456         * math/w_exp10l.c (__exp10l): Likewise.
19457         * math/w_exp2l.c (__exp2l): Likewise.
19458         * math/w_fmodl.c (__fmodl): Likewise.
19459         * math/w_hypotl.c (__hypotl): Likewise.
19460         * math/w_j0l.c (__j0l, __y0l): Likewise.
19461         * math/w_j1l.c (__j1l, __y1l): Likewise.
19462         * math/w_jnl.c (__jnl, __ynl): Likewise.
19463         * math/w_lgammal.c (__lgammal): Likewise.
19464         * math/w_log10l.c (__log10l): Likewise.
19465         * math/w_log2l.c (__log2l): Likewise.
19466         * math/w_logl.c (__logl): Likewise.
19467         * math/w_powl.c (__powl): Likewise.
19468         * math/w_remainderl.c (__remainderl): Likewise.
19469         * math/w_scalbl.c (sysv_scalbl): Likewise.
19470         * math/w_sinhl.c (__sinhl): Likewise.
19471         * math/w_sqrtl.c (__sqrtl): Likewise.
19472         * math/w_tgammal.c (__tgammal): Likewise.
19473         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
19474         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
19475         * math/libm-test.inc (acos_test): Add more tests.
19476         (acosh_test): Likewise.
19477         (asin_test): Likewise.
19478         (atanh_test): Likewise.
19479         (exp_test): Likewise.
19480         (exp10_test): Likewise.
19481         (exp2_test): Likewise.
19482         (expm1_test): Likewise.
19483         (lgamma_test): Likewise.
19484         (log_test): Likewise.
19485         (log10_test): Likewise.
19486         (log1p_test): Likewise.
19487         (log2_test): Likewise.
19488         (pow_test): Do not allow some spurious overflow exceptions.
19489         (sqrt_test): Add more tests.
19490         (tgamma_test): Likewise.
19491         (y0_test): Likewise.
19492         (y1_test): Likewise.
19493         (yn_test): Likewise.
19494
19495 2012-03-27  Anton Blanchard  <anton@samba.org>
19496
19497         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
19498         MAP_HUGETLB.
19499         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19500         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19501         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19502
19503 2012-03-27  David S. Miller  <davem@davemloft.net>
19504
19505         * conform/Makefile: Run run-conformtest.sh using $(BASH).
19506
19507         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
19508         have-as-vis3 check.
19509
19510 2012-03-27  Andreas Jaeger  <aj@suse.de>
19511
19512         * sysdeps/x86_64/elf/configure.in: Moved to ...
19513         * sysdeps/x86_64/configure.in: ... here.
19514         * sysdeps/x86_64/elf/start.S: Moved to ...
19515         * sysdeps/x86_64/start.S: ... here.
19516         * sysdeps/x86_64/elf/configure: Delete.
19517
19518         * sysdeps/x86_64/configure.in: Merge contents from
19519         sysdeps/i386/configure.in (without i686 check).
19520
19521         * sysdeps/i386/elf/Versions: Merge into ...
19522         * sysdeps/i386/Versions: ... this.
19523         * sysdeps/i386/elf/Versions: Delete file.
19524         * sysdeps/i386/elf/start.S: Moved to ...
19525         * sysdeps/i386/start.S: ...here.
19526         * sysdeps/i386/elf/configure.in: Merge into...
19527         * sysdeps/i386/configure.in: ...here.
19528         * sysdeps/i386/elf/configure.in: Delete file.
19529         * sysdeps/i386/elf/configure: Delete file.
19530
19531         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
19532         * debug/backtracesyms.c: ... here.
19533         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
19534         * debug/backtracesymsfd.c: ... here.
19535         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
19536         * sysdeps/generic/ifunc-sel.h: ... here.
19537
19538         * sysdeps/unix/i386/start.c: Delete file.
19539         * sysdeps/unix/sparc/start.c: Delete file.
19540         * sysdeps/unix/start.c: Delete file.
19541
19542         * sysdeps/sh/elf/configure.in: Moved to ...
19543         * sysdeps/sh/configure.in: ... here.
19544         * sysdeps/sh/elf/start.S: Moved to ...
19545         * sysdeps/sh/start.S: ... here.
19546         * sysdeps/sh/elf/configure: Delete file.
19547
19548         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
19549         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
19550         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
19551         * sysdeps/powerpc/powerpc64/entry.h: ... here.
19552         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
19553         * sysdeps/powerpc/powerpc64/start.S: here.
19554         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
19555         * sysdeps/powerpc/powerpc64/Makefile: ... this.
19556         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
19557         * sysdeps/powerpc/powerpc64/configure.in: ... this.
19558         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
19559
19560         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
19561         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
19562         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
19563         * sysdeps/powerpc/powerpc32/start.S: ... here.
19564         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
19565         * sysdeps/powerpc/powerpc32/configure.in: ... this.
19566         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
19567
19568         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
19569         * sysdeps/powerpc/ifunc-sel.h: ... here.
19570         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
19571         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
19572
19573         * sysdeps/sparc/elf/configure.in: Moved to ...
19574         * sysdeps/sparc/configure.in: ... here.
19575         * sysdeps/sparc/elf/configure: Delete file.
19576         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
19577         * sysdeps/sparc/sparc32/start.S: ... here.
19578         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
19579         * sysdeps/sparc/sparc64/start.S: ... here.
19580         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
19581         * sysdeps/sparc/sparc32/Makefile: ... this.
19582         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
19583         * sysdeps/sparc/sparc64/Makefile: ... this.
19584
19585         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
19586         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
19587         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
19588         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
19589         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
19590         * sysdeps/s390/s390-32/setjmp.S: ... here.
19591         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
19592         * sysdeps/s390/s390-32/configure.in: ... here.
19593         * sysdeps/s390/s390-32/elf/configure: Delete file.
19594         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
19595         * sysdeps/s390/s390-32/start.S: ... here.
19596
19597         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
19598         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
19599         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
19600         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
19601         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
19602         * sysdeps/s390/s390-64/setjmp.S: ... here.
19603         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
19604         * sysdeps/s390/s390-64/configure.in: ... here
19605         * sysdeps/s390/s390-64/elf/configure: Delete file.
19606         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
19607         * sysdeps/s390/s390-64/start.S: ... here.
19608         * sysdeps/s390/s390-64/elf/configure: Delete.
19609
19610         * configure.in: Remove support for elf directories in sysdeps.
19611
19612         * configure: Regenerated.
19613         * sysdeps/i386/configure: Regenerated.
19614         * sysdeps/powerpc/powerpc32/configure: Regenerated.
19615         * sysdeps/powerpc/powerpc64/configure: Regenerated.
19616         * sysdeps/s390/s390-32/configure: Regenerated.
19617         * sysdeps/s390/s390-64/configure: Regenerated.
19618         * sysdeps/sh/configure: Regenerated.
19619         * sysdeps/sparc/configure: Regenerated.
19620         * sysdeps/x86_64/configure: Regenerated.
19621
19622 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
19623
19624         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19625
19626         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
19627         denormal result into account.
19628
19629 2012-03-25  Roland McGrath  <roland@hack.frob.com>
19630
19631         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
19632         Reported by Allan McRae <allan@archlinux.org>.
19633
19634 2012-03-23  Jeff Law  <law@redhat.com>
19635
19636         * nss/getnssent.c (__nss_getent): Fix typo.
19637
19638 2012-03-23  David S. Miller  <davem@davemloft.net>
19639
19640         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19641
19642 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
19643
19644         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
19645         to pad to uint64_t for each field.
19646         (dl_tls_index): Replace unsigned long with uint64_t.
19647
19648 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
19649         Paul Pluzhnikov  <ppluzhnikov@google.com>
19650
19651         [BZ #6528]
19652         * grp/Makefile (otherlibs): Don't set it.
19653         * inet/Makefile (otherlibs): Likewise.
19654         * login/Makefile (otherlibs): Likewise.
19655         * nscd/Makefile (otherlibs): Likewise.
19656         * posix/Makefile (otherlibs): Likewise.
19657         * pwd/Makefile (otherlibs): Likewise.
19658         * rt/Makefile (otherlibs): Likewise.
19659         * sunrpc/Makefile (otherlibs): Likewise.
19660         * nss/Makefile (otherlibs): Likewise.
19661         Add libnss_files to routines and static-only-routines.
19662         ($(objpfx)getent): Remove rule.
19663         * resolv/Makefile: Add libnss_dns and libresolv to routines and
19664         static-only-routines.
19665
19666 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
19667
19668         [BZ #13892]
19669         * math/s_cexp.c: Include <float.h>.
19670         (__cexp): Handle exp result overflowing not necessarily
19671         overflowing both real and imaginary parts of result.
19672         * math/s_cexpf.c: Likewise.
19673         * math/s_cexpl.c: Likewise.
19674         * math/libm-test.inc (cexp_test): Add more tests.
19675         * sysdeps/i386/fpu/libm-test-ulps: Update.
19676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19677
19678 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19679
19680         * include/link.h (ELFW): New macro.
19681         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
19682         Replace ELF64_R_TYPE with ELFW(R_TYPE).
19683
19684 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19685
19686         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
19687         with uint64_t.
19688
19689 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19690
19691         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
19692         declaration.
19693         (struct La_x32_retval): Likewise.
19694
19695 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19696
19697         * sysdeps/x86_64/preconfigure.in: New file.
19698         * sysdeps/x86_64/preconfigure: New generated file.
19699
19700 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
19701
19702         [BZ #13824]
19703         * math/e_exp2l.c: Include <float.h>.
19704         (__ieee754_exp2l): Handle overflow and underflow cases
19705         separately.  Only pass fractional part of argument to
19706         __ieee754_expl.
19707         * math/libm-test.inc (exp2_test): Add more tests.
19708
19709         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
19710         negating x to take absolute value.
19711         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
19712         Likewise.
19713         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
19714         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
19715         Likewise.
19716         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
19717         computing low part if x was negated.
19718         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
19719
19720 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
19721
19722         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
19723         la_x32_gnu_pltexit.
19724         (pltexit): Cast int_retval to ptrdiff_t.
19725         * elf/tst-auditmod3b.c: Likewise.
19726         * elf/tst-auditmod4b.c: Likewise.
19727         * elf/tst-auditmod5b.c: Likewise.
19728         * elf/tst-auditmod6b.c: Likewise.
19729         * elf/tst-auditmod6c.c: Likewise.
19730         * elf/tst-auditmod7b.c: Likewise.
19731
19732         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
19733         and x32_gnu_pltexit.
19734
19735         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
19736         __ELF_NATIVE_CLASS.
19737         (La_x32_regs): New macro.
19738         (La_x32_retval): Likewise.
19739         (la_x32_gnu_pltenter): New function prototype.
19740         (la_x32_gnu_pltexit): Likewise.
19741
19742 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
19743
19744         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
19745         exponent.
19746
19747         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19748
19749         * configure.in (libc_cv_cc_nofma): Check for option to disable
19750         generation of FMA instructions.
19751         * configure: Regenerate.
19752         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
19753         * sysdeps/ieee754/dbl-64/Makefile: New file.
19754         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19755         Remove brandred-fma4.
19756         (CFLAGS-brandred-fma4.c): Remove.
19757         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
19758         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
19759         define.
19760         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
19761         define.
19762
19763 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
19764
19765         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
19766         LLONG_MAX != LONG_MAX.
19767         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19768         (_fitoa_word): Likewise.
19769         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
19770         LLONG_MAX != LONG_MAX.
19771         * stdio-common/_itowa.h: Include <_itoa.h>.
19772         (_itowa_word): Use _ITOA_WORD_TYPE on value.
19773         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
19774         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
19775         only if not defined.
19776         (_ITOA_WORD_TYPE): Likewise.
19777         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19778         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
19779
19780 2012-03-21  David S. Miller  <davem@davemloft.net>
19781
19782         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19783
19784 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
19785
19786         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
19787         of x86_64 when setting libc_cv_slibdir, libdir and
19788         libc_cv_localedir.
19789         * sysdeps/unix/sysv/linux/configure: Regenerated.
19790
19791 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19792
19793         * manual/lang.texi (Old Varargs): Remove section.
19794         (How Variadic): Update menu.
19795         (va_start): Do not mention varargs.h.
19796
19797 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19798             Joseph Myers  <joseph@codesourcery.com>
19799
19800         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
19801         link test.
19802         * configure: Regenerated.
19803
19804 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19805
19806         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
19807         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
19808         conformtest.pl
19809
19810 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19811
19812         * NOTES: Remove.
19813         * Makefile (files-for-dist): Remove NOTES.
19814         (NOTES): Remove rule.
19815         * README: Don't refer to NOTES.
19816         * manual/creature.texi: Don't include macros.texi.
19817         * manual/intro.texi (creature.texi): Remove comment referring to
19818         NOTES.
19819
19820         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
19821         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
19822         * configure: Regenerated.
19823         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
19824         LIBC_TRY_CC_OPTION.
19825         (libc_cv_as_i686): Likewise.
19826         (libc_cv_cc_avx): Likewise.
19827         (libc_cv_cc_sse2avx): Likewise.
19828         (libc_cv_cc_fma4): Likewise.
19829         (libc_cv_cc_novzeroupper): Likewise.
19830         * sysdeps/i386/configure: Regenerated.
19831
19832         [BZ #13883]
19833         * sysdeps/i386/fpu/s_cexp.S: Remove.
19834         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
19835         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
19836         * math/libm-test.inc (cexp_test): Add more tests.
19837         * sysdeps/i386/fpu/libm-test-ulps: Update.
19838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19839
19840 2012-03-21  Allan McRae  <allan@archlinux.org>
19841
19842         * timezone/Makefile: Do not install iso3166.tab and zone.tab
19843
19844 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19845
19846         [BZ #13871]
19847         * math/w_exp2.c: Do not include <float.h>.
19848         (o_threshold, u_threshold): Remove.
19849         (__exp2): Calculate result before checking finiteness and calling
19850         __kernel_standard.
19851         * math/w_exp2f.c: Likewise.
19852         * math/w_exp2l.c: Likewise.
19853         * math/libm-test.inc (exp2_test): Require overflow exception for
19854         1e6 input.
19855
19856         [BZ #3866]
19857         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
19858         range of signed 64-bit integers before using fistpll.  Remove
19859         checks for whether integers fit in mantissa bits.
19860         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
19861         the range of signed 32-bit integers before using fistpl.  Remove
19862         checks for whether integers fit in mantissa bits.
19863         * sysdeps/i386/fpu/e_powl.S (p64): New object.
19864         (__ieee754_powl): Test for y outside the range of signed 64-bit
19865         integers before using fistpll.  Reduce 64-bit values to 63-bit
19866         ones as needed.
19867         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
19868         divide-by-zero is raised for zero to large negative powers.
19869         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
19870         (__ieee754_powl): Test for y outside the range of signed 64-bit
19871         integers before using fistpll.  Reduce 64-bit values to 63-bit
19872         ones as needed.
19873         * math/libm-test.inc (pow_test): Add more tests.
19874
19875 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19876
19877         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
19878         <stdio-common/_itoa.h>.
19879         * debug/segfault.c: Likewise.
19880         * elf/dl-cache.c: Likewise.
19881         * elf/dl-minimal.c: Likewise.
19882         * elf/dl-misc.c: Likewise.
19883         * elf/dl-sysdep.c: Likewise.
19884         * elf/dl-version.c: Likewise.
19885         * elf/rtld.c: Likewise.
19886         * hurd/hurdsock.c: Likewise.
19887         * hurd/lookup-retry.c: Likewise.
19888         * malloc/malloc.c: Likewise.
19889         * malloc/mtrace.c: Likewise.
19890         * nscd/nscd_getgr_r.c: Likewise.
19891         * nscd/nscd_getpw_r.c: Likewise.
19892         * nscd/nscd_getserv_r.c: Likewise.
19893         * posix/getopt_init.c: Likewise.
19894         * posix/wordexp.c: Likewise.
19895         * stdio-common/_itoa.c: Likewise.
19896         * stdio-common/printf_fphex.c: Likewise.
19897         * stdio-common/vfprintf.c: Likewise.
19898         * string/_strerror.c: Likewise.
19899         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
19900         * sysdeps/i386/i686/hp-timing.h: Likewise.
19901         * sysdeps/mach/_strerror.c: Likewise.
19902         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
19903         * sysdeps/mach/hurd/sethostid.c: Likewise.
19904         * sysdeps/mach/hurd/xmknodat.c: Likewise.
19905         * sysdeps/mach/xpg-strerror.c: Likewise.
19906         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
19907         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
19908         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
19909         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
19910         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
19911         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
19912         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
19913         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
19914         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
19915         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
19916         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
19917         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
19918         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
19919         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
19920         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
19921         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
19922         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
19923         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
19924         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
19925         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
19926         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
19927
19928         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
19929
19930         * stdio-common/_itoa.h: Moved to ...
19931         * sysdeps/generic/_itoa.h: Here.
19932
19933         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
19934
19935         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
19936         instead of "_itoa.h" and "_itowa.h".
19937         * stdio-common/vfprintf.: Likewise.
19938
19939 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19940
19941         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
19942         <bits/wordsize.h>.
19943         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
19944         (__signbit): Likwise.
19945         (llrintf): Likwise.
19946         (llrint): Likwise.
19947
19948 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19949
19950         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
19951         __WORDSIZE != 64.
19952
19953 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
19954
19955         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
19956         OVERFLOW_EXCEPTION_OK.
19957         * math/libm-test.inc ("Philosophy"): Update comment about
19958         exception testing.
19959         (OVERFLOW_EXCEPTION): Define.
19960         (OVERFLOW_EXCEPTION_OK): Likewise.
19961         (INVALID_EXCEPTION_OK): Renumber.
19962         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
19963         (IGNORE_ZERO_INF_SIGN): Likewise.
19964         (test_exceptions): Handle FE_OVERFLOW.
19965         (exp10_test): Expect overflow exceptions.
19966         (exp2_test): Likewise.
19967         (expm1_test): Likewise.
19968         (nextafter_test): Likewise.
19969         (pow_test): Likewise.
19970         (scalbn_test): Likewise.
19971         (scalbln_test): Likewise.
19972
19973 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19974
19975         * sysdeps/x86_64/bits/atomic.h
19976         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
19977         64bit integer.
19978         (atomic_exchange_acq): Likewise.
19979         (__arch_exchange_and_add_body): Likewise.
19980         (__arch_add_body): Likewise.
19981         (atomic_add_negative): Likewise.
19982         (atomic_add_zero): Likewise.
19983
19984 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19985
19986         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
19987         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
19988
19989 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19990
19991         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
19992         Check __x86_64__ instead of __WORDSIZE.
19993
19994 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19995
19996         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
19997
19998 2012-03-19  David S. Miller  <davem@davemloft.net>
19999
20000         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20001
20002         * sysdeps/sparc/fpu/fenv_private.h: New file.
20003         * sysdeps/sparc/fpu/math_private.h: Use it.
20004         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
20005         Remove.
20006         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
20007         (libc_feholdexcept_setroundl): Remove.
20008         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
20009         Remove.
20010         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
20011         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
20012
20013 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
20014
20015         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
20016         int64_t instead of long int.
20017         (INSERT_WORDS64): Likwise.
20018
20019 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
20020
20021         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
20022         _Unwind_GetCFA return to _Unwind_Ptr first.
20023
20024 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
20025
20026         [BZ #13629]
20027         * math/s_clog.c: Include <float.h>.
20028         (__clog): Scale large or subnormal inputs.
20029         * math/s_clogf.c: Likewise.
20030         * math/s_clogl.c: Likewise.
20031         * math/s_clog10.c: Include <float.h>.
20032         (M_LOG10_2): Define.
20033         (__clog10): Scale large or subnormal inputs.
20034         * math/s_clog10f.c: Likewise.
20035         * math/s_clog10l.c: Likewise.
20036         * math/libm-test.inc (clog_test): Add more tests.
20037         (clog10_test): Likewise.
20038         * sysdeps/i386/fpu/libm-test-ulps: Update.
20039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20040
20041         [BZ #11451]
20042         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
20043         x and y.
20044         * math/libm-test.inc (atan2_test): Add another test.
20045
20046         * Makerules (common-objdir-compile): Remove.
20047         * sysdeps/unix/Makefile (config-generated): Do not add
20048         $(unix-generated) to variable.
20049         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
20050         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
20051         Remove rule.
20052         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
20053         Likewise.
20054         [generic bits/local_lim.h] (before-compile): Do not append to
20055         variable.
20056         [generic bits/local_lim.h] (common-generated): Likewise.
20057         [generic sys/param.h] (before-compile): Do not append to variable.
20058         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
20059         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
20060         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
20061         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
20062         include.
20063         [generic sys/param.h] (sys/param.h-includes): Remove variable.
20064         [generic sys/param.h] (sys/param.h-includes): Remove rule.
20065         [generic sys/param.h] ($(addprefix
20066         $(common-objpfx),$(sys/param.h-includes))): Likewise.
20067         [generic sys/param.h] (common-generated): Do not append to
20068         variable.
20069         [generic sys/param.h] (sysdep_headers): Likewise.
20070         [generic bits/errno.h] (before-compile): Do not append to
20071         variable.
20072         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
20073         rule.
20074         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
20075         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
20076         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
20077         [generic bits/errno.h] (common-generated): Do not append to
20078         variable.
20079         [generic bits/ioctls.h] (before-compile): Do not append to
20080         variable.
20081         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
20082         rule.
20083         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
20084         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
20085         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
20086         rule.
20087         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
20088         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
20089         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
20090         [generic bits/ioctls.h] (common-generated): Do not append to
20091         variable.
20092         [generic sys/syscall.h] (syscall.h): Remove variable.
20093         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
20094         rule.
20095         [generic sys/syscall.h] (before-compile): Do not append to
20096         variable.
20097         [generic sys/syscall.h] (common-generated): Likewise.
20098         * sysdeps/unix/errnos-tmpl.c: Remove file.
20099         * sysdeps/unix/errnos.awk: Likewise.
20100         * sysdeps/unix/ioctls-tmpl.c: Likewise.
20101         * sysdeps/unix/ioctls.awk: Likewise.
20102         * sysdeps/unix/mk-local_lim.c: Likewise.
20103         * sysdeps/unix/snarf-ioctls: Likewise.
20104
20105 2012-03-19  Richard Henderson  <rth@twiddle.net>
20106
20107         * sysdeps/i386/fpu/fenv_private.h: New file.
20108         * sysdeps/i386/fpu/math_private.h: Use it.
20109         (math_opt_barrier, math_force_eval): Remove.
20110         (libc_feholdexcept_setround_53bit): Remove.
20111         (libc_feupdateenv_53bit): Remove.
20112         * sysdeps/x86_64/fpu/math_private.h: Likewise.
20113         (math_opt_barrier, math_force_eval): Remove.
20114         (libc_feholdexcept): Remove.
20115         (libc_feholdexcept_setround): Remove.
20116         (libc_fetestexcept, libc_fesetenv): Remove.
20117         (libc_feupdateenv_test): Remove.
20118         (libc_feupdateenv, libc_feholdsetround): Remove.
20119         (libc_feresetround): Remove.
20120
20121         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
20122         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
20123
20124         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
20125         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
20126         (libc_feupdateenv_testl): New.
20127         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
20128         (libc_feupdateenv_testf): New.
20129         (libc_feupdateenv): Use libc_feupdateenv_test.
20130         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
20131         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
20132
20133         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
20134         (libc_feholdsetroundf, libc_feholdsetroundl): New.
20135         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
20136         (libc_feresetround_noex): New.
20137         (libc_feresetround_noexf): New.
20138         (libc_feresetround_noexl): New.
20139         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
20140         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
20141         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
20142         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
20143         SET_RESTORE_ROUND.
20144         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
20145         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
20146         (__cos): Likewise.
20147         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
20148         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
20149         SET_RESTORE_ROUND_NOEX.
20150         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
20151         SET_RESTORE_ROUND_NOEXF.
20152         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
20153         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
20154         (libc_feholdsetroundf): New.
20155         (libc_feresetround, libc_feresetroundf): New.
20156
20157         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
20158         (libc_feholdexcept_setround_53bit): Convert from macro to function.
20159         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
20160
20161         * sysdeps/generic/math_private.h: Include <fenv.h>.
20162         (default_libc_feholdexcept): New.
20163         (default_libc_feholdexcept_setround): New.
20164         (default_libc_fesetenv, default_libc_feupdateenv): New.
20165         (libc_feholdexcept): Only define if undefined.
20166         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
20167         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
20168         (libc_feholdexcept_setroundl): Likewise.
20169         (libc_feholdexcept_setround_53bit): Likewise.
20170         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
20171         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
20172         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
20173         (libc_feupdateenv_53bit): Likewise.
20174         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
20175         (libc_feholdexcept): Convert from macro to inline function.
20176         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
20177         (libc_fesetenv, libc_feupdateenv): Likewise.
20178
20179         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
20180         not previously defined.
20181         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
20182         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
20183         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
20184         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
20185         * sysdeps/ieee754/flt-32/math_private.h: New file.
20186         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
20187         math_private.h below SET_FLOAT_WORD.
20188         (__isnan, __isinf_ns, __finite): Remove.
20189         (__isnanf, __isinf_nsf, __finitef): Remove.
20190
20191 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
20192
20193         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20194
20195 2012-03-17  David S. Miller  <davem@davemloft.net>
20196
20197         [BZ #6471]
20198         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
20199         for 2.16.
20200
20201 2012-03-16  David S. Miller  <davem@davemloft.net>
20202
20203         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
20204         warnings.
20205
20206         [BZ #6471]
20207         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
20208         properly.
20209         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
20210         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
20211         sysdep_routines when subdir is sysvipc.
20212         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
20213         __getshmlba helper.
20214
20215         * sysdeps/sparc/fpu/libm-test/ulps: Update.
20216
20217 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
20218
20219         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
20220         [__LP64__].
20221
20222 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
20223
20224         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
20225         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
20226         (__lround): Renamed to ...
20227         (__llround): This.  Replace long int with long long int.
20228         Define lround functions as aliases of llround functions.
20229         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
20230
20231 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
20232
20233         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
20234         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
20235         adresses to uintptr_t.  Replace "long int" and "unsigned long
20236         int" with "greg_t" on va_arg.
20237
20238 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
20239
20240         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
20241         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
20242
20243         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
20244         Move e_machine check before EI_CLASS check.  Handle x32
20245         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
20246         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
20247         SKIP_EM_IA_64 and include
20248         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
20249
20250         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
20251         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
20252         (add_system_dir): New macro.
20253
20254         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
20255         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
20256
20257 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
20258
20259         [BZ #2551]
20260         [BZ #2552]
20261         [BZ #2553]
20262         [BZ #2554]
20263         [BZ #2562]
20264         [BZ #2563]
20265         [BZ #2565]
20266         [BZ #2566]
20267         [BZ #2576]
20268         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
20269         (y0): Likewise.
20270         * math/w_j0f.c (j0f): Likewise.
20271         (y0f): Likewise.
20272         * math/w_j0l.c (__j0l): Likewise.
20273         (__y0l): Likewise.
20274         * math/w_j1.c (j1): Likewise.
20275         (y1): Likewise.
20276         * math/w_j1f.c (j1f): Likewise.
20277         (y1f): Likewise.
20278         * math/w_j1l.c (__j1l): Likewise.
20279         (__y1l): Likewise.
20280         * math/w_jn.c (jn): Likewise.
20281         (yn): Likewise.
20282         * math/w_jnf.c (jnf): Likewise.
20283         (ynf): Likewise.
20284         * math/w_jnl.c (__jnl): Likewise.
20285         (__ynl): Likewise.
20286         * math/libm-test.inc (j0_test): Add more tests.
20287         (j1_test): Likewise.
20288         (jn_test): Likewise.  Add trailing semicolon to existing test.
20289         (y0_test): Likewise.
20290         (y1_test): Likewise.
20291         * sysdeps/i386/fpu/libm-test-ulps: Update.
20292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20293
20294         [BZ #13851]
20295         [BZ #13854]
20296         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
20297         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
20298         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
20299         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
20300         (__tanl): Set errno for infinite argument.
20301         * sysdeps/i386/fpu/mptan.c: Remove.
20302         * sysdeps/i386/fpu/s_tan.S: Likewise.
20303         * sysdeps/i386/fpu/s_tanl.S: Likewise.
20304         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
20305         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
20306         * math/libm-test.inc (tan_test): Add more tests and enable more
20307         tests for double and long double.
20308         * sysdeps/i386/fpu/libm-test-ulps: Update.
20309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20310
20311 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
20312
20313         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
20314         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
20315
20316 2012-03-16  Roland McGrath  <roland@hack.frob.com>
20317
20318         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
20319         * configure.in: Use it for both main tree and add-ons.
20320         * configure: Regenerated.
20321
20322 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
20323
20324         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
20325
20326 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
20327
20328         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
20329         in comment.
20330
20331         [BZ #13851]
20332         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
20333         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
20334         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
20335         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
20336         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
20337         infinite argument.
20338         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
20339         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
20340         != 0 for prec == 2.
20341         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
20342         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
20343         * sysdeps/i386/fpu/s_cosl.S: Likewise.
20344         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
20345         * sysdeps/i386/fpu/s_sinl.S: Likewise.
20346         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
20347         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
20348         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
20349         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
20350         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
20351         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
20352         * math/libm-test.inc (cos_test): Add more tests and enable more
20353         tests for long double.
20354         (sin_test): Likewise.
20355         (sincos_test): Likewise.
20356         * sysdeps/i386/fpu/libm-test-ulps: Update.
20357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20358
20359 2012-03-16  David S. Miller  <davem@davemloft.net>
20360
20361         * sysdeps/sparc/fpu/math_private.h: New file.
20362
20363 2012-03-15  David S. Miller  <davem@davemloft.net>
20364
20365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
20366         file.
20367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
20368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
20369         file.
20370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
20371         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
20372         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
20373         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
20374         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
20375         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
20376         sysdep routines.
20377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
20378
20379         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
20380         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
20381
20382         * sysdeps/sparc/sparc-ifunc.h: New file.
20383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
20384         sparc-ifunc.h
20385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
20386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20387         Likewise.
20388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20389         Likewise.
20390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
20391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
20393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
20394         Likewise.
20395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
20396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
20397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
20398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
20399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
20400         Likewise.
20401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
20402         Likewise.
20403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
20404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
20406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
20407         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
20408         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
20409         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
20410         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
20411         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
20412         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
20413         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
20414         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
20415         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
20416         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
20417         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
20418         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20419         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
20420         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20421         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
20422         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20423         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
20424         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20425         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
20426         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20427
20428 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
20429
20430         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
20431         scaling.
20432         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20433
20434 2012-03-15  Andreas Jaeger  <aj@suse.de>
20435
20436         [BZ #13852]
20437         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
20438         ieee754/flt-32 implementation for sin, cos and sincos.
20439         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
20440         * sysdeps/i386/fpu/s_cosf.S: Likewise.
20441         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
20442         * sysdeps/i386/fpu/s_sinf.S: Likewise.
20443         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
20444         ieee754/flt-32 implementation for tan.
20445
20446         * math/libm-test.inc (cos_test): Enable some large input tests for
20447         float as well
20448         (sin_test): Likewise.
20449         (sincos_test): Likewise.
20450         (tan_test): Add tests for large input.
20451
20452         * sysdeps/i386/fpu/libm-test-ulps: Update.
20453
20454 2012-03-15  Andreas Jaeger  <aj@suse.de>
20455
20456         [BZ #13658]
20457         * math/libm-test.inc (cos_test): Add more test cases.
20458         (sin_test): Likewise.
20459         (sincos_test): Likewise.
20460
20461 2012-03-15  Andreas Jaeger  <aj@suse.de>
20462
20463         [BZ #13837]
20464         * math/libm-test.inc (cos_test): Add a test case for large input
20465         value.
20466         (sin_test): Likewise.
20467         (sincos_test): Likewise.
20468
20469 2012-03-15  Andreas Jaeger  <aj@suse.de>,
20470         Joseph Myers  <joseph@codesourcery.com>
20471
20472         [BZ #13658]
20473         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
20474         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
20475         * sysdeps/i386/fpu/branred.c: Likewise.
20476         * sysdeps/i386/fpu/dosincos.c: Likewise.
20477         * sysdeps/i386/fpu/mpa.c: Likewise.
20478         * sysdeps/i386/fpu/s_cos.S: Likewise.
20479         * sysdeps/i386/fpu/s_sin.S: Likewise.
20480         * sysdeps/i386/fpu/s_sincos.S: Likewise.
20481         * sysdeps/i386/fpu/sincos32.c: Likewise.
20482
20483         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
20484         Define.
20485         (libc_feupdateenv_53bit): Define.
20486         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
20487         Define.
20488         (libc_feupdateenv_53bit): Define.
20489
20490         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
20491         53 bit (without extend i386 double precision).
20492
20493         * math/libm-test.inc (sincos_test): Add tests for large input.
20494         (sin): Likewise.
20495         (cos): Likewise.
20496
20497         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
20498
20499 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
20500
20501         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20502
20503 2012-03-15  David S. Miller  <davem@davemloft.net>
20504
20505         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
20506         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
20507         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
20508         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
20509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
20510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
20511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
20512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
20513         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
20514         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
20515         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
20516         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
20517         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
20518         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
20519         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
20520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
20521         file.
20522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
20523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
20524         file.
20525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
20526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
20527         file.
20528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
20529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
20530         file.
20531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
20532         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
20533         fmin/fmax sysdep routines.
20534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
20535
20536 2012-03-14  David S. Miller  <davem@davemloft.net>
20537
20538         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
20539         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
20540         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
20541         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
20542         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
20543         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
20544         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
20545         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
20546         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
20547         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
20548         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
20549         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
20550         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
20551         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
20552         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
20553         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
20554         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
20555         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
20556         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
20557         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
20558         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
20559         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
20560         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
20561         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
20562         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
20563         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
20564         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
20565         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
20566         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
20567         routines.
20568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
20569         file.
20570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
20571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
20572         file.
20573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
20574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
20575         file.
20576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
20577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
20578         file.
20579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
20580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
20581         file.
20582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
20583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
20584         file.
20585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
20586         file.
20587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
20588         file.
20589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
20590         file.
20591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
20592         New file.
20593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
20594         file.
20595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
20596         file.
20597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
20598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
20599         file.
20600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
20601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
20602         file.
20603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
20604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
20605         file.
20606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
20607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
20608         VIS3 routines.
20609
20610         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
20611         New file.
20612
20613         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20614
20615         * sysdeps/sparc/configure.in: New file.
20616         * sysdeps/sparc/configure: Generate.
20617         * configure.in (libc_cv_sparc_as_vis3): Substitute.
20618         * configure: Regenerate.
20619         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
20620         * config.make.in (have-as-vis3): New.
20621         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
20622         available use -Av9d instead of -Av9a.
20623         * sysdeps/sparc/sparc64/Makefile: Likewise.
20624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
20625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
20626         New file.
20627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
20628         file.
20629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
20630         New file.
20631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
20632         file.
20633         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
20634         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
20635         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
20636         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
20637         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
20638
20639         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
20640         fzeros/fnegs to load 0x80000000 into a float register instead of
20641         using the stack.
20642         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
20643
20644 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
20645
20646         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20647         bits/syscall.h.
20648         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
20649         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
20650         ($(inst_includedir)/bits/syscall.h): Remove rule.
20651         ($(objpfx)bits/syscall.d): Include instead of
20652         $(objpfx)syscall-list.d.
20653         (generated): Change syscall-list.h and syscall-list.d to
20654         bits/syscall.h and bits/syscall.d.
20655
20656 2012-03-14  Roland McGrath  <roland@hack.frob.com>
20657
20658         [BZ #13846]
20659         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
20660
20661 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
20662
20663         [BZ #13841]
20664         * math/s_csqrt.c: Include <float.h>.
20665         (__csqrt): Scale large or subnormal inputs.
20666         * math/s_csqrtf.c: Likewise.
20667         * math/s_csqrtl.c: Likewise.
20668         * math/libm-test.inc (csqrt_test): Add more tests.
20669         * sysdeps/i386/fpu/libm-test-ulps: Update.
20670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20671
20672         [BZ #13840]
20673         * math/libm-test.inc (hypot_test): Add more tests.
20674
20675 2012-03-13  David S. Miller  <davem@davemloft.net>
20676
20677         [BZ #13840]
20678         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
20679         double-precision for the calculation instead of scaling.
20680
20681 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
20682
20683         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
20684         manipulate bits before adding and subtracting TWO52[sx].
20685         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
20686         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
20687         Likewise.
20688         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
20689
20690 2012-03-13  David S. Miller  <davem@davemloft.net>
20691
20692         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
20693         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
20694         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
20695         rtld-global-offsets.h
20696         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20697
20698         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
20699         large parameters.
20700
20701         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
20702
20703         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
20704         'err' in the ifdef scope in which it is actually used.
20705
20706         * nss/nss_db/db-init.c: Include string.h
20707
20708 2012-03-12  David S. Miller  <davem@davemloft.net>
20709
20710         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
20711         masking out of the most significant byte of random value used.
20712         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20713         Fix coding style in previous change.
20714
20715         * sysdeps/unix/sysv/linux/kernel-features.h
20716         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
20717         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
20718         expression.
20719         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
20720         later.
20721
20722 2012-03-11  David S. Miller  <davem@davemloft.net>
20723
20724         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
20725         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
20726         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
20727         for 'resultvar' otherwise things get truncated on 64-bit.
20728
20729         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20730         Fix masking out of the most significant byte of random value used.
20731
20732         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20733
20734 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
20735
20736         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20737
20738 2012-03-09  David S. Miller  <davem@davemloft.net>
20739
20740         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
20741         variables with appropriate CPP guards.
20742         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
20743         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
20744         on resulting framesize and the management of the outregs buffer for pltexit.
20745         Preserve floating point return values across _dl_call_pltexit call.
20746         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
20747         framesize and the management of the outregs buffer for pltexit.
20748         Preserve floating point return values across _dl_call_pltexit
20749         call.
20750         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
20751         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
20752         (print_exit): Fix format string for return register value.
20753
20754 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
20755
20756         * sunrpc/Makefile (others): Add rpcgen.
20757         ($(objpfx)rpcgen): Remove special build rule and dependency on
20758         libc.
20759         * sunrpc/rpcgen.c: New file.
20760
20761 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
20762
20763         [BZ #13673]
20764         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
20765         * stdio-common/bug-vfprintf-nargs.c: Likewise.
20766         * sysdeps/i386/crti.S: Likewise.
20767         * sysdeps/i386/crtn.S: Likewise.
20768         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
20769         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
20770         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
20771         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
20772         * sysdeps/sh/crti.S: Likewise.
20773         * sysdeps/sh/crtn.S: Likewise.
20774         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20775
20776         [BZ #13673]
20777         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
20778         with URL.
20779         * locale/programs/locfile-kw.gperf: Likewise.
20780         * locale/programs/charmap-kw.h: Regenerated.
20781         * locale/programs/locfile-kw.h: Likewise.
20782
20783         [BZ #13673]
20784         * intl/plural.y: Replace FSF snail mail address with URL.
20785         * intl/plural.c: Regenerated.
20786
20787 2012-03-09  Richard Henderson  <rth@twiddle.net>
20788
20789         * include/math_private.h: Remove file.
20790         * math/math_private.h: Move file ...
20791         * sysdeps/generic/math_private.h: ... here.
20792
20793         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
20794         * sysdeps/powerpc/fpu/math_private.h: Likewise.
20795         * sysdeps/x86_64/fpu/math_private.h: Likewise.
20796
20797         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
20798         and <math_private.h>.
20799         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
20800         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
20801         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
20802         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
20803         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
20804         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
20805         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
20806         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20807         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
20808         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
20809         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20810         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20811         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
20812         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20813         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
20814         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
20815         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20816         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
20817         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
20818         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
20819         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20820         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
20821         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
20822         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20823         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
20824         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
20825         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
20826         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
20827         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20828         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
20829         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
20830         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20831         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
20832         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
20833         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
20834         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
20835         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
20836         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
20837         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
20838         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20839         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
20840         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
20841         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
20842         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
20843         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
20844         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20845         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
20846         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
20847         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
20848         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
20849         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
20850         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
20851         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
20852         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
20853         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
20854         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
20855         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20856         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
20857         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
20858         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
20859         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
20860         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
20861         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20862         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
20863         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
20864         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
20865         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
20866         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20867         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
20868         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
20869         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
20870         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20871         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
20872         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20873         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
20874         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
20875         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
20876         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20877         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
20878         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
20879         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
20880         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
20881         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
20882         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
20883         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
20884         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
20885         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
20886         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
20887         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
20888         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20889         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20890         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
20891         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20892         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
20893         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
20894         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
20895         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
20896         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
20897         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
20898         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
20899         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
20900         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
20901         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
20902         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
20903         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
20904         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
20905         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
20906         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
20907         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
20908         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
20909         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
20910         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
20911         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
20912         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
20913         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
20914         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20915         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
20916         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
20917         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
20918         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
20919         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
20920         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
20921         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20922         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
20923         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
20924         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
20925         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
20926         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
20927         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
20928         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
20929         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
20930         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
20931         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
20932         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
20933         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
20934         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
20935         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
20936         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
20937         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
20938         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
20939         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20940         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
20941         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
20942         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
20943         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
20944         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20945         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
20946         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
20947         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
20948         * sysdeps/ieee754/k_standard.c: Likewise.
20949         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
20950         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
20951         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20952         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
20953         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
20954         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
20955         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
20956         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
20957         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
20958         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
20959         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
20960         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
20961         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
20962         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
20963         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
20964         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
20965         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
20966         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
20967         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
20968         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
20969         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
20970         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
20971         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
20972         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
20973         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
20974         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
20975         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
20976         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
20977         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
20978         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
20979         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
20980         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
20981         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
20982         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
20983         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
20984         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
20985         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
20986         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
20987         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
20988         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
20989         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
20990         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
20991         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
20992         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
20993         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
20994         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
20995         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
20996         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
20997         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
20998         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
20999         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
21000         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
21001         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
21002         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
21003         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
21004         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
21005         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
21006         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
21007         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
21008         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
21009         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
21010         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
21011         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
21012         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
21013         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21014         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21015         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
21016         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
21017         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
21018         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
21019         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
21020         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21021         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
21022         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
21023         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
21024         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
21025         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
21026         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
21027         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
21028         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
21029         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
21030         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
21031         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
21032         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
21033         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
21034         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
21035         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
21036         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
21037         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21038         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
21039         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
21040         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
21041         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
21042         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
21043         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
21044         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
21045         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
21046         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
21047         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
21048         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
21049         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
21050         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
21051         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
21052         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
21053         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
21054         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
21055         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
21056         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
21057         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
21058         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
21059         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
21060         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
21061         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
21062         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21063         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
21064         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
21065         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
21066         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21067         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
21068         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
21069         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21070         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
21071         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
21072         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
21073         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21074         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
21075         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
21076         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
21077         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
21078         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
21079         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
21080         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
21081         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
21082         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
21083         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
21084         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
21085         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
21086         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
21087         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
21088         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
21089         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
21090         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
21091         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
21092         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
21093         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21094         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
21095         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
21096         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
21097         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
21098         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
21099         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
21100         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
21101         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21102         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21103         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
21104         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
21105         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
21106         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
21107         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
21108         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
21109         * sysdeps/ieee754/s_lib_version.c: Likewise.
21110         * sysdeps/ieee754/s_matherr.c: Likewise.
21111         * sysdeps/ieee754/s_signgam.c: Likewise.
21112         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
21113         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
21114         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
21115         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
21116         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
21117         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
21118         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
21119         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
21120         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
21121         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
21122         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
21123         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
21124         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
21125         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
21126         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
21127         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
21128         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
21129         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
21130         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
21131         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
21132         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
21133
21134 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
21135
21136         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
21137         * sunrpc/rpc_main.c: Likewise.
21138         * sunrpc/rpc_svcout.c: Likewise.
21139
21140 2012-03-09  David S. Miller  <davem@davemloft.net>
21141
21142         * include/math_private.h: New file.
21143
21144 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
21145
21146         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
21147         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
21148         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
21149         from <bits/socket_type.h>.
21150         (enum __socket_type): Don't define here.
21151         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
21152         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21153         bits/socket_type.h.
21154
21155         [BZ #13566]
21156         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
21157         checking __USE_GNU.
21158
21159         * Makerules ($(inst_includedir)/%.h): New rule.
21160         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
21161         (install-others): Remove variable setting.
21162         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
21163
21164 2012-03-08  Richard Henderson  <rth@twiddle.net>
21165
21166         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
21167         from macro to inline function; merge with the
21168         !__LIBC_INTERNAL_MATH_INLINES version.
21169         (__ieee754_sqrtf): Likewise.
21170
21171         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
21172         to inline function.
21173         (__rintf, __floor, __floorf): Likewise.
21174
21175         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
21176         macro to inline function.
21177         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
21178
21179         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
21180         not <math/math_private.h>.
21181
21182 2012-03-08  David S. Miller  <davem@davemloft.net>
21183
21184         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
21185         copyright year.
21186         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
21187
21188 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
21189
21190         * resolv/gai_misc.c (handle_requests): Fix struct timespec
21191         normalization.
21192         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
21193         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
21194
21195 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
21196
21197         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
21198         be defined individually, they must be defined as a block.  Define
21199         S for printing a string instead of hidint the different by using a
21200         macro for adding the 'l'.
21201         * stdio-common/tst-fphex-wide.c: Adjust.
21202
21203 2012-03-07  Marek Polacek  <polacek@redhat.com>
21204
21205         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
21206
21207 2012-03-08  Marek Polacek  <polacek@redhat.com>
21208
21209         [BZ #13806]
21210         * stdio-common/Makefile (tests): Add tst-fphex-wide.
21211         * stdio-common/tst-fphex.c: Define a few macros to make the
21212         test reusable.  Use them.
21213         * stdio-common/tst-fphex-wide.c: New file.
21214
21215 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
21216
21217         [BZ #6911]
21218         * manual/macros.texi (gnusystems): New macro.
21219         (nongnusystems): Likewise.
21220         (gnulinuxhurdsystems): Likewise.
21221         (gnuhurdsystems): Likewise..
21222         (gnulinuxsystems): Likewise.
21223         * manual/charset.texi: Use new macros or @theglibc{} to refer to
21224         variants of the GNU system, not "GNU system".
21225         * manual/conf.texi: Likewise.
21226         * manual/errno.texi: Likewise.  Update example of errno macro
21227         expansion.
21228         * manual/filesys.texi: Likewise.
21229         (getumask): Document as specific to GNU/Hurd.
21230         * manual/install.texi: Likewise.  Reword some references to
21231         GNU/Linux.
21232         * manual/intro.texi: Likewise.
21233         * manual/io.texi: Likewise.
21234         (File Name Portability): Detail which constraints are inapplicable
21235         to all GNU systems and which are only inapplicable to GNU/Hurd.
21236         * manual/job.texi: Likewise.
21237         * manual/llio.texi: Likewise.
21238         (O_NOCTTY): Document as present on GNU/Linux.
21239         * manual/maint.texi: Likewise.
21240         * manual/memory.texi: Likewise.
21241         * manual/pattern.texi: Likewise.
21242         * manual/pipe.texi: Likewise.
21243         * manual/process.texi: Likewise.
21244         * manual/resource.texi: Likewise.
21245         (RUSAGE_CHILDREN): Remove statement about specifying a particular
21246         child on GNU/Hurd.
21247         * manual/setjmp.texi: Likewise.
21248         * manual/signal.texi: Likewise.
21249         * manual/startup.texi: Likewise.
21250         * manual/stdio.texi: Likewise.
21251         * manual/terminal.texi: Likewise.
21252         (ONLCR): Document as POSIX.
21253         (OXTABS): Document availability on GNU/Linux as XTABS.
21254         (ONOEOT): Document availability separately from other bits.
21255         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
21256         * manual/time.texi: Likewise.
21257         * manual/users.texi: Likewise.
21258         * INSTALL: Regenerated.
21259         * sysdeps/gnu/errlist.c: Regenerated.
21260
21261         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
21262         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
21263         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
21264         puts.
21265         * configure: Regenerated.
21266
21267 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
21268
21269         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
21270         default includes instead of AC_HEADER_CHECK.
21271         * sysdeps/i386/configure: Regenerated.
21272
21273         [BZ #10716]
21274         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
21275         * math/s_cacoshf.c (__cacoshf): Likewise.
21276         * math/s_cacoshl.c (__cacoshl): Likewise.
21277         * math/s_casinh.c (__casinh): Set signs of result from argument.
21278         * math/s_casinhf.c (__casinhf): Likewise.
21279         * math/s_casinhl.c (__casinhl): Likewise.
21280         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
21281         (casinh_test): Add more tests.
21282         * sysdeps/i386/fpu/libm-test-ulps: Update.
21283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21284
21285 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
21286
21287         * po/zh_TW.po: Update from translation team.
21288
21289         * login/Makefile (distribute): Remove variable.
21290         * catgets/Makefile: Likewise.
21291         * mach/Makefile: Likewise.
21292         * malloc/Makefile: Likewise.
21293         * misc/Makefile: Likewise.
21294         * iconv/Makefile: Likewise.
21295         * nscd/Makefile: Likewise.
21296         * hurd/Makefile: Likewise.
21297         * manual/Makefile: Likewise.
21298         * locale/Makefile: Likewise.
21299         * intl/Makefile: Likewise.
21300         * conform/Makefile: Likewise.
21301         * nss/Makefile: Likewise.
21302         * time/Makefile: Likewise.
21303         * soft-fp/Makefile: Likewise.
21304         * dirent/Makefile: Likewise.
21305         * gmon/Makefile: Likewise.
21306         * po/Makefile: Likewise.
21307         * rt/Makefile: Likewise.
21308         * socket/Makefile: Likewise.
21309         * math/Makefile: Likewise.
21310         * signal/Makefile: Likewise.
21311         * debug/Makefile: Likewise.
21312         * elf/Makefile: Likewise.
21313         * timezone/Makefile: Likewise.
21314         * stdlib/Makefile: Likewise.
21315         * iconvdata/Makefile: Likewise.
21316         * sunrpc/Makefile: Likewise.
21317         * io/Makefile: Likewise.
21318         * argp/Makefile: Likewise.
21319         * inet/Makefile: Likewise.
21320         * hesiod/Makefile: Likewise.
21321         * grp/Makefile: Likewise.
21322         * csu/Makefile: Likewise.
21323         * wctype/Makefile: Likewise.
21324         * crypt/Makefile: Likewise.
21325         * libio/Makefile: Likewise.
21326         * string/Makefile: Likewise.
21327         * nis/Makefile: Likewise.
21328         * resolv/Makefile: Likewise.
21329         * stdio-common/Makefile: Likewise.
21330         * wcsmbs/Makefile: Likewise.
21331         * dlfcn/Makefile: Likewise.
21332         * posix/Makefile: Likewise.
21333
21334         [BZ #6959]
21335         * timezone/Makefile: Don't install timezone files, just the programs
21336         and scripts.
21337
21338 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
21339
21340         * nss/databases.def: Add missing gshadow entry.
21341
21342         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
21343
21344 2012-03-06  Marek Polacek  <polacek@redhat.com>
21345
21346         [BZ #13726]
21347         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
21348         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
21349         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
21350         * stdio-common/tst-long-dbl-fphex.c: New file.
21351
21352 2012-03-06  David S. Miller  <davem@davemloft.net>
21353
21354         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
21355         (set_obp_int): New function.
21356         (get_obp_int): New function.
21357         (__get_clockfreq_via_dev_openprom): Likewise.
21358         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
21359         Avoid unused variable warnings on 'val' and use builtin_expect.
21360         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
21361         __builtin_expect.
21362         (INLINE_CLONE_SYSCALL): Likewise.
21363
21364 2012-03-05  David S. Miller  <davem@davemloft.net>
21365
21366         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21367
21368 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
21369
21370         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21371
21372         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
21373         only for |x| >= 40.
21374         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
21375
21376 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
21377
21378         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
21379         Replace gettimeofday with __vdso_gettimeofday.
21380
21381         * sysdeps/unix/sysv/linux/x86_64/init-first.c
21382         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
21383         __vdso_clock_gettime and __vdso_getcpu.
21384
21385         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
21386         time with __vdso_time.
21387
21388 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
21389
21390         * manual/lang.texi (size_t): Note types to which size_t may be
21391         equivalent with the GNU C Library, but do not describe when
21392         differences between them are significant.
21393
21394 2012-03-05  Andreas Jaeger  <aj@suse.de>
21395
21396         * sysdeps/i386/fpu/libm-test-ulps: Update.
21397
21398 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
21399
21400         [BZ #3976]
21401         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
21402         (__ieee754_pow): Save and restore rounding mode and use
21403         round-to-nearest for main computations.
21404         * math/libm-test.inc (pow_test_tonearest): New function.
21405         (pow_test_towardzero): Likewise.
21406         (pow_test_downward): Likewise.
21407         (pow_test_upward): Likewise.
21408         (main): Call the new functions.
21409         * sysdeps/i386/fpu/libm-test-ulps: Update.
21410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21411
21412         [BZ #3976]
21413         * math/libm-test.inc (cosh_test_tonearest): New function.
21414         (cosh_test_towardzero): Likewise.
21415         (cosh_test_downward): Likewise.
21416         (cosh_test_upward): Likewise.
21417         (sinh_test_tonearest): Likewise.
21418         (sinh_test_towardzero): Likewise.
21419         (sinh_test_downward): Likewise.
21420         (sinh_test_upward): Likewise.
21421         (main): Call the new functions.
21422         * sysdeps/i386/fpu/libm-test-ulps: Update.
21423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21424
21425 2012-03-05  Tom de Vries  <tom@codesourcery.com>
21426
21427         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
21428         default stack guard is set in last bytes.
21429         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
21430
21431 2012-03-05  Kees Cook  <keescook@chromium.org>
21432
21433         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
21434
21435         [BZ #13656]
21436         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
21437         possibly allocate from heap instead of stack.
21438         * stdio-common/bug-vfprintf-nargs.c: New file.
21439         * stdio-common/Makefile (tests): Add nargs overflow test.
21440
21441 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
21442
21443         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21444
21445 2012-03-03  Marek Polacek  <polacek@redhat.com>
21446
21447         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
21448         * math/math_private.h: Likewise.
21449         * stdlib/tst-strtod.c: Likewise.
21450         * sysdeps/i386/i486/bits/atomic.h: Likewise.
21451         * sysdeps/x86_64/bits/atomic.h: Likewise.
21452
21453 2012-03-02  David S. Miller  <davem@davemloft.net>
21454
21455         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
21456         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
21457         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
21458         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
21459         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
21460         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
21461         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
21462         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
21463
21464 2012-03-02  Roland McGrath  <roland@hack.frob.com>
21465
21466         [BZ #13792]
21467         * manual/examples/README: New file, says the example source files
21468         can be used under GPL>=2.
21469         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
21470         line containing just "*/".
21471         * manual/examples/add.c: Add copyright header (GPL>=2).
21472         * manual/examples/argp-ex1.c: Likewise.
21473         * manual/examples/argp-ex2.c: Likewise.
21474         * manual/examples/argp-ex3.c: Likewise.
21475         * manual/examples/argp-ex4.c: Likewise.
21476         * manual/examples/atexit.c: Likewise.
21477         * manual/examples/db.c: Likewise.
21478         * manual/examples/dir.c: Likewise.
21479         * manual/examples/dir2.c: Likewise.
21480         * manual/examples/execinfo.c: Likewise.
21481         * manual/examples/filecli.c: Likewise.
21482         * manual/examples/filesrv.c: Likewise.
21483         * manual/examples/fmtmsgexpl.c: Likewise.
21484         * manual/examples/genpass.c: Likewise.
21485         * manual/examples/inetcli.c: Likewise.
21486         * manual/examples/inetsrv.c: Likewise.
21487         * manual/examples/isockad.c: Likewise.
21488         * manual/examples/longopt.c: Likewise.
21489         * manual/examples/memopen.c: Likewise.
21490         * manual/examples/memstrm.c: Likewise.
21491         * manual/examples/mkfsock.c: Likewise.
21492         * manual/examples/mkisock.c: Likewise.
21493         * manual/examples/mygetpass.c: Likewise.
21494         * manual/examples/pipe.c: Likewise.
21495         * manual/examples/popen.c: Likewise.
21496         * manual/examples/rprintf.c: Likewise.
21497         * manual/examples/search.c: Likewise.
21498         * manual/examples/select.c: Likewise.
21499         * manual/examples/setjmp.c: Likewise.
21500         * manual/examples/sigh1.c: Likewise.
21501         * manual/examples/sigusr.c: Likewise.
21502         * manual/examples/stpcpy.c: Likewise.
21503         * manual/examples/strdupa.c: Likewise.
21504         * manual/examples/strftim.c: Likewise.
21505         * manual/examples/strncat.c: Likewise.
21506         * manual/examples/subopt.c: Likewise.
21507         * manual/examples/swapcontext.c: Likewise.
21508         * manual/examples/termios.c: Likewise.
21509         * manual/examples/testopt.c: Likewise.
21510         * manual/examples/testpass.c: Likewise.
21511         * manual/examples/timeval_subtract.c: Likewise.
21512
21513         [BZ #13792]
21514         * manual/time.texi (Elapsed Time): Move timeval_subtract example
21515         function to ...
21516         * manual/timeval_subtract.c.texi: ... here, new file.
21517
21518 2012-03-02  David S. Miller  <davem@davemloft.net>
21519
21520         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
21521
21522 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
21523
21524         [BZ #3976]
21525         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
21526         (__sin): Save and restore rounding mode and use round-to-nearest
21527         for all computations.
21528         (__cos): Save and restore rounding mode and use round-to-nearest
21529         for all computations.
21530         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
21531         <fenv.h>.
21532         (tan): Save and restore rounding mode and use round-to-nearest for
21533         all computations.
21534         * math/libm-test.inc (cos_test_tonearest): New function.
21535         (cos_test_towardzero): Likewise.
21536         (cos_test_downward): Likewise.
21537         (cos_test_upward): Likewise.
21538         (sin_test_tonearest): Likewise.
21539         (sin_test_towardzero): Likewise.
21540         (sin_test_downward): Likewise.
21541         (sin_test_upward): Likewise.
21542         (tan_test_tonearest): Likewise.
21543         (tan_test_towardzero): Likewise.
21544         (tan_test_downward): Likewise.
21545         (tan_test_upward): Likewise.
21546         (main): Call the new functions.
21547         * sysdeps/i386/fpu/libm-test-ulps: Update.
21548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21549
21550         [BZ #10135]
21551         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
21552         small n, then large n, before computing and testing k+n.
21553         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
21554         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
21555         Likewise.
21556         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
21557         Likewise.
21558         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
21559         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
21560         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
21561         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
21562         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
21563         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
21564         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
21565         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
21566         * math/libm-test.inc (scalbn_test): Add more tests.
21567         (scalbln_test): Likewise.
21568
21569         * manual/filesys.texi (mode_t): Describe constraints on size and
21570         signedness, not exact equivalence to a particular type.
21571         (ino_t): Likewise.
21572         (ino64_t): Likewise.
21573         (dev_t): Likewise.
21574         (nlink_t): Likewise.
21575         (blkcnt_t): Likewise.
21576         (blkcnt64_t): Likewise.
21577         * manual/llio.texi (off_t): Likewise.
21578
21579         [BZ #3976]
21580         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
21581         (__ieee754_exp): Save and restore rounding mode and use
21582         round-to-nearest for all computations.
21583         * math/libm-test.inc (exp_test_tonearest): New function.
21584         (exp_test_towardzero): Likewise.
21585         (exp_test_downward): Likewise.
21586         (exp_test_upward): Likewise.
21587         (main): Call the new functions.
21588         * sysdeps/i386/fpu/libm-test-ulps: Update.
21589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21590
21591 2012-03-01  Chris Demetriou  <cgd@google.com>
21592
21593         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
21594         have predictable order.
21595
21596 2012-03-01  David S. Miller  <davem@davemloft.net>
21597
21598         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
21599
21600         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
21601         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
21602         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
21603         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
21604
21605         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
21606         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
21607         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
21608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
21609         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
21610         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
21611         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
21612         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
21613         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
21614
21615         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21616
21617         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
21618         * sysdeps/sparc/fpu/libm-test-ulps: to here.
21619         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
21620
21621         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
21622         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
21623         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
21624         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
21625         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
21626         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
21627         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
21628         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
21629         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
21630         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
21631         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
21632         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21633         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
21634         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
21635         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
21636         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21637         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
21638         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
21639         * sysdeps/sparc/elf/configure: Regenerated.
21640
21641 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
21642
21643         * configure.in (AS, LD): Require binutils 2.20 or later.
21644         * configure: Regenerated.
21645         * manual/install.texi (Tools for Compilation): Give binutils 2.20
21646         as required minimum version.
21647         * INSTALL: Regenerated.
21648
21649         [BZ #2541]
21650         [BZ #4108]
21651         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
21652         before squaring exponent.
21653         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
21654         bottom long double and 27 bits of top long double before squaring
21655         exponent.
21656         * math/libm-test.inc (erfc_test): Add more tests.
21657         * sysdeps/i386/fpu/libm-test-ulps: Update.
21658         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21660
21661 2012-03-01  Kai Tietz  <ktietz@redhat.com>
21662
21663         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
21664         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
21665         containing bit-fields.
21666         * soft-fp/extended.h (_FP_UNION_E): Likewise.
21667         * soft-fp/single.h (_FP_UNION_S): Likewise.
21668         * soft-fp/double.h (_FP_UNION_D): Likewise.
21669
21670 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
21671
21672         [BZ #13786]
21673         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
21674         not include ../strcmp.S.
21675         [USE_AS_STRNCASECMP_L]: Likewise.
21676         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
21677         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
21678         * sysdeps/i386/i686/multiarch/strncase_l-c.c
21679         (__strncasecmp_l_ia32): Define as alias to
21680         __strncasecmp_l_nonascii.
21681
21682         [BZ #5794]
21683         * math/libm-test.inc (expm1_test): Add test for bug 5794.
21684         * sysdeps/i386/fpu/libm-test-ulps: Update.
21685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21686
21687         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
21688         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21689
21690 2012-02-29  Jeff Law  <law@redhat.com>
21691
21692         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
21693         out of bounds read.
21694
21695 2012-02-29  Marek Polacek  <polacek@redhat.com>
21696
21697         [BZ #13706]
21698         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
21699         * elf/Makefile: Add rules to run tst-unused-dep.out.
21700
21701 2012-02-28  David S. Miller  <davem@davemloft.net>
21702
21703         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
21704         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
21705         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
21706         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
21707         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
21708         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
21709
21710 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
21711
21712         * math/libm-test.inc (llround_test): Move one test from
21713         lround_test.  Use TEST_f_L in moved test.
21714         (lround_test): Move misplaced test to llround_test.  Add testcase
21715         from bug 2561.
21716
21717 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
21718
21719         * sysdeps/x86_64/fpu/e_expf.S: New file.
21720         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
21721
21722 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
21723
21724         [BZ #13637]
21725         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
21726         of remain_len that may cause incomplete multi-byte character and
21727         false match.
21728         * posix/bug-regex33.c: New file.
21729         * posix/Makefile (tests): Add bug-regex33.
21730
21731 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
21732
21733         * manual/macros.texi: New file.
21734         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
21735         * manual/libc.texinfo: Include macros.texi.
21736         * manual/creatute.texi: Likewise.
21737         * manual/install.texi: Likewise.
21738         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
21739         @glibcadj{} in references to the GNU C Library.
21740         * manual/charset.texi: Likewise.
21741         * manual/conf.texi: Likewise.
21742         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
21743         when not using those macros.
21744         * manual/creature.texi: Likewise.
21745         * manual/crypt.texi: Likewise.
21746         * manual/errno.texi: Likewise.
21747         * manual/filesys.texi: Likewise.
21748         * manual/header.texi: Likewise.
21749         * manual/install.texi: Likewise.
21750         * manual/intro.texi: Likewise.
21751         * manual/io.texi: Likewise.
21752         * manual/job.texi: Likewise.
21753         * manual/lang.texi: Likewise.
21754         * manual/libc.texiinfo: Likewise.
21755         * manual/llio.texi: Likewise.
21756         * manual/locale.texi: Likewise.
21757         * manual/maint.texi: Likewise.
21758         * manual/math.texi: Likewise.
21759         * manual/memory.texi: Likewise.
21760         * manual/message.texi: Likewise.
21761         * manual/nss.texi: Likewise.
21762         * manual/pattern.texi: Likewise.
21763         * manual/process.texi: Likewise.
21764         * manual/resource.texi: Likewise.
21765         * manual/search.texi: Likewise.
21766         * manual/setjmp.texi: Likewise.
21767         * manual/signal.texi: Likewise.
21768         * manual/socket.texi: Likewise.
21769         * manual/startup.texi: Likewise.
21770         * manual/stdio.texi: Likewise.
21771         * manual/string.texi: Likewise.
21772         * manual/sysinfo.texi: Likewise.
21773         * manual/syslog.texi: Likewise.
21774         * manual/terminal.texi: Likewise.
21775         * manual/time.texi: Likewise.
21776         * manual/users.texi: Likewise.
21777         * INSTALL: Regenerated.
21778         * NOTES: Regenerated.
21779         * sysdeps/gnu/errlist.c: Regenerated.
21780
21781 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
21782
21783         * include/dirent.h: Include <dirstream.h> before
21784         <dirent/dirent.h>.
21785
21786 2012-02-28  David S. Miller  <davem@davemloft.net>
21787
21788         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
21789         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
21790         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
21791         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
21792
21793 2012-02-27  David S. Miller  <davem@davemloft.net>
21794
21795         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
21796         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
21797         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
21798         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
21799
21800         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
21801         frame pointer instead of stack pointer relative arg slot.
21802         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
21803         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
21804         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
21805
21806 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
21807
21808         [BZ #3992]
21809         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
21810
21811 2012-02-27  David S. Miller  <davem@davemloft.net>
21812
21813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
21814         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
21815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
21816         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
21817         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
21818         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
21819         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
21820         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
21821
21822 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
21823
21824         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
21825         later.  Allow versions 5-9.
21826         * configure: Regenerated.
21827         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
21828         required minimum version and 4.6 as recommended version.  Do not
21829         mention bugs in GCC 2.7 and 2.8.
21830         * INSTALL: Regenerated.
21831
21832 2012-02-27  David S. Miller  <davem@davemloft.net>
21833
21834         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
21835         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
21836         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
21837         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
21838         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
21839         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
21840         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
21841         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
21842
21843         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
21844         manipulate bits before adding and subtracting TWO112[sx].
21845         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
21846
21847 2012-02-27  Roland McGrath  <roland@hack.frob.com>
21848
21849         [BZ #13775]
21850         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
21851         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
21852         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
21853         being in POSIX, because they are in 1003.1-2008.
21854
21855         * rt/tst-aio.c: Include <fcntl.h>.
21856         * rt/tst-aio7.c: Likewise.
21857         * rt/tst-aio64.c: Likewise.
21858
21859         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
21860
21861 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
21862
21863         * manual/install.texi (--with-headers): Describe headers as
21864         interface headers, not private headers.
21865         (Specific advice for GNU/Linux systems): Describe use of headers
21866         from "make headers_install", not private headers from older
21867         kernels.
21868         * INSTALL: Regenerated.
21869         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
21870         Change to 2.6.19.
21871         * sysdeps/unix/sysv/linux/configure: Regenerated.
21872
21873         * manual/llio.texi (fclean): Remove documentation.
21874
21875         * manual/Makefile (libc-texi-generated): New variable.  Include
21876         version.texi.
21877         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
21878         $(libc-texi-generated), not duplicated list of files.
21879         (version.texi, stamp-version): New rules.
21880         (realclean): Remove $(libc-texi-generated), not individual files
21881         from that list.  Do not remove dir-add.texinfo.
21882         * manual/libc.texinfo: Comment out uses of edition numbers and
21883         references to printed manual.  Remove last-updated dates.
21884         (EDITION): Comment out.
21885         (ISBN): Likewise.
21886         (VERSION, UPDATED): Remove.
21887         (version.texi): Include.
21888
21889 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
21890
21891         * sysdeps/posix/spawni.c: Include <signal.h>.
21892         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
21893         * sysdeps/pthread/aio_fsync.c: Likewise.
21894
21895 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
21896
21897         * conform/Makefile (tests): Run only when not cross-compiling and
21898         when fast-check is not defined.
21899
21900         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
21901         * conform/data/limits.h-data: Fixes for POSIX2008.
21902         * conform/run-conformtest.sh: Run all tests.
21903         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
21904         headers.
21905         * include/bits/dlfcn.h: Likewise.
21906         * include/langinfo.h: Likewise.
21907         * include/monetary.h: Likewise.
21908         * include/sys/poll.h: Likewise.
21909
21910         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
21911         for __USE_GNU.
21912         * posix/spawn.h: Define __need_sigset_t.
21913         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
21914         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
21915         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
21916         to get sigevent_t only.
21917         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
21918         only for __USE_GNU.
21919         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21920         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
21921         process_vm_writev only for __USE_GNU.
21922         * termios/termios.h: Declare tcgetsid also for POSIX2008.
21923
21924         * conform/Makefile: For now ignore errors from run-conformtest.
21925         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
21926         POSIX to avoid namespace pollution.  Don't prepend headers.
21927         * conform/data/aio.h-data: Fixes for POSIX testing.
21928         * conform/data/fcntl.h-data: Likewise.
21929         * conform/data/glob.h-data: Likewise.
21930         * conform/data/grp.h-data: Likewise.
21931         * conform/data/pthread.h-data: Likewise.
21932         * conform/data/pwd.h-data: Likewise.
21933         * conform/data/signal.h-data: Likewise.
21934         * conform/data/spawn.h-data: Likewise.
21935         * conform/data/stdio.h-data: Likewise.
21936         * conform/data/stdlib.h-data: Likewise.
21937         * conform/data/stropts.h-data: Likewise.
21938         * conform/data/sys/mman.h-data: Likewise.
21939         * conform/data/sys/stat.h-data: Likewise.
21940         * conform/data/sys/types.h-data: Likewise.
21941         * conform/data/sys/wait.h-data: Likewise.
21942         * conform/data/time.h-data: Likewise.
21943         * conform/data/unistd.h-data: Likewise.
21944         * conform/data/utime.h-data: Likewise.
21945
21946         * io/sys/stat.h: fchmod was always in POSIX.
21947         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
21948         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
21949         * rt/aio.h: Define __need_timespec before including <time.h>.
21950         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
21951         struct.  Add forward declaration of pthread_attr_t and use it in
21952         sigevent.
21953         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
21954         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
21955         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
21956         always remove CLK_TCK definition.
21957
21958 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
21959
21960         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
21961
21962 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
21963
21964         * conform/run-conformtest.sh: New file.
21965         * conform/Makefile: Run run-conformtest for tests.
21966         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
21967         support.
21968
21969         * conform/data/uchar.h-data: New file.
21970         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
21971         * conform/data/arpa/inet.h-data: Likewise.
21972         * conform/data/assert.h-data: Likewise.
21973         * conform/data/complex.h-data: Likewise.
21974         * conform/data/cpio.h-data: Likewise.
21975         * conform/data/ctype.h-data: Likewise.
21976         * conform/data/dirent.h-data: Likewise.
21977         * conform/data/dlfcn.h-data: Likewise.
21978         * conform/data/errno.h-data: Likewise.
21979         * conform/data/fcntl.h-data: Likewise.
21980         * conform/data/float.h-data: Likewise.
21981         * conform/data/fmtmsg.h-data: Likewise.
21982         * conform/data/fnmatch.h-data: Likewise.
21983         * conform/data/ftw.h-data: Likewise.
21984         * conform/data/glob.h-data: Likewise.
21985         * conform/data/grp.h-data: Likewise.
21986         * conform/data/iconv.h-data: Likewise.
21987         * conform/data/inttypes.h-data: Likewise.
21988         * conform/data/langinfo.h-data: Likewise.
21989         * conform/data/libgen.h-data: Likewise.
21990         * conform/data/limits.h-data: Likewise.
21991         * conform/data/locale.h-data: Likewise.
21992         * conform/data/math.h-data: Likewise.
21993         * conform/data/monetary.h-data: Likewise.
21994         * conform/data/mqueue.h-data: Likewise.
21995         * conform/data/ndbm.h-data: Likewise.
21996         * conform/data/net/if.h-data: Likewise.
21997         * conform/data/netdb.h-data: Likewise.
21998         * conform/data/netinet/in.h-data: Likewise.
21999         * conform/data/nl_types.h-data: Likewise.
22000         * conform/data/poll.h-data: Likewise.
22001         * conform/data/pthread.h-data: Likewise.
22002         * conform/data/pwd.h-data: Likewise.
22003         * conform/data/regex.h-data: Likewise.
22004         * conform/data/sched.h-data: Likewise.
22005         * conform/data/search.h-data: Likewise.
22006         * conform/data/semaphore.h-data: Likewise.
22007         * conform/data/setjmp.h-data: Likewise.
22008         * conform/data/signal.h-data: Likewise.
22009         * conform/data/spawn.h-data: Likewise.
22010         * conform/data/stdarg.h-data: Likewise.
22011         * conform/data/stdio.h-data: Likewise.
22012         * conform/data/stdlib.h-data: Likewise.
22013         * conform/data/string.h-data: Likewise.
22014         * conform/data/strings.h-data: Likewise.
22015         * conform/data/stropts.h-data: Likewise.
22016         * conform/data/sys/ipc.h-data: Likewise.
22017         * conform/data/sys/mman.h-data: Likewise.
22018         * conform/data/sys/msg.h-data: Likewise.
22019         * conform/data/sys/resource.h-data: Likewise.
22020         * conform/data/sys/select.h-data: Likewise.
22021         * conform/data/sys/sem.h-data: Likewise.
22022         * conform/data/sys/shm.h-data: Likewise.
22023         * conform/data/sys/socket.h-data: Likewise.
22024         * conform/data/sys/stat.h-data: Likewise.
22025         * conform/data/sys/statvfs.h-data: Likewise.
22026         * conform/data/sys/time.h-data: Likewise.
22027         * conform/data/sys/timeb.h-data: Likewise.
22028         * conform/data/sys/times.h-data: Likewise.
22029         * conform/data/sys/types.h-data: Likewise.
22030         * conform/data/sys/uio.h-data: Likewise.
22031         * conform/data/sys/un.h-data: Likewise.
22032         * conform/data/sys/utsname.h-data: Likewise.
22033         * conform/data/sys/wait.h-data: Likewise.
22034         * conform/data/syslog.h-data: Likewise.
22035         * conform/data/tar.h-data: Likewise.
22036         * conform/data/termios.h-data: Likewise.
22037         * conform/data/utime.h-data: Likewise.
22038         * conform/data/utmpx.h-data: Likewise.
22039         * conform/data/varargs.h-data: Likewise.
22040         * conform/data/wchar.h-data: Likewise.
22041         * conform/data/wctype.h-data: Likewise.
22042         * conform/data/wordexp.h-data: Likewise.
22043
22044         * include/stropts.h: New file.
22045         * include/uchar.h: New file.
22046         * include/aio.h: Changes to allow conformtest.pl to use the headers.
22047         * include/assert.h: Likewise.
22048         * include/ctype.h: Likewise.
22049         * include/dirent.h: Likewise.
22050         * include/dlfcn.h: Likewise.
22051         * include/fcntl.h: Likewise.
22052         * include/fnmatch.h: Likewise.
22053         * include/glob.h: Likewise.
22054         * include/grp.h: Likewise.
22055         * include/libio.h: Likewise.
22056         * include/locale.h: Likewise.
22057         * include/math.h: Likewise.
22058         * include/net/if.h: Likewise.
22059         * include/netdb.h: Likewise.
22060         * include/netinet/in.h: Likewise.
22061         * include/pthread.h: Likewise.
22062         * include/pwd.h: Likewise.
22063         * include/regex.h: Likewise.
22064         * include/sched.h: Likewise.
22065         * include/search.h: Likewise.
22066         * include/setjmp.h: Likewise.
22067         * include/signal.h: Likewise.
22068         * include/stdio.h: Likewise.
22069         * include/stdlib.h: Likewise.
22070         * include/string.h: Likewise.
22071         * include/sys/cdefs.h: Likewise.
22072         * include/sys/mman.h: Likewise.
22073         * include/sys/msg.h: Likewise.
22074         * include/sys/resource.h: Likewise.
22075         * include/sys/select.h: Likewise.
22076         * include/sys/socket.h: Likewise.
22077         * include/sys/stat.h: Likewise.
22078         * include/sys/statvfs.h: Likewise.
22079         * include/sys/time.h: Likewise.
22080         * include/sys/times.h: Likewise.
22081         * include/sys/uio.h: Likewise.
22082         * include/sys/utsname.h: Likewise.
22083         * include/sys/wait.h: Likewise.
22084         * include/termios.h: Likewise.
22085         * include/time.h: Likewise.
22086         * include/ulimit.h: Likewise.
22087         * include/unistd.h: Likewise.
22088         * include/utime.h: Likewise.
22089         * include/wchar.h: Likewise.
22090         * include/wctype.h: Likewise.
22091         * include/wordexp.h: Likewise.
22092
22093         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
22094
22095         * time/time.h: TIME_UTC must be a macro.
22096         Make timespec_get available for ISO C11 only as well.
22097
22098 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
22099
22100         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
22101         Reported by Peng Haitao <penght@cn.fujitsu.com>.
22102
22103 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
22104
22105         * configure.in: Use -o not -a in test for unsupported multi-arch.
22106
22107 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
22108
22109         * manual/texinfo.tex: Update to version 2012-01-19.16.
22110
22111 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
22112
22113         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
22114
22115 2012-02-24  Roland McGrath  <roland@hack.frob.com>
22116
22117         [BZ #13738]
22118         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
22119         * manual/fdl-1.3.texi: New file.
22120         * manual/fdl-1.1.texi: File removed.
22121
22122         [BZ #13738]
22123         * manual/libc.texinfo (FDL_VERSION): New @set.
22124         Use it for mention of FDL in cover text.
22125         (Documentation License): Use it in @include file name.
22126
22127 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
22128             Roland McGrath  <roland@hack.frob.com>
22129
22130         [BZ #5461]
22131         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
22132         not LONG_LONG_MAX and LONG_LONG_MIN.
22133         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
22134         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
22135         name.
22136         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
22137
22138 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
22139
22140         [BZ #2547]
22141         [BZ #11365]
22142         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
22143         manipulate bits before adding and subtracting TWO23[sx].
22144         * math/libm-test.inc (nearbyint_test): Add more tests.
22145
22146 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
22147
22148         [BZ #2548]
22149         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
22150         bits before adding and subtracting TWO23[sx].
22151         * math/libm-test.inc (rint_test): Add more tests.
22152         (rint_test_tonearest): Likewise.
22153         (rint_test_towardzero): Likewise.
22154         (rint_test_downward): Likewise.
22155         (rint_test_upward: Likewise.
22156
22157 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
22158
22159         [BZ #10110]
22160         * include/stdc-predef.h: New file.  Extracted from features.h.
22161         * include/features.h: Include stdc-predef.h.
22162         * Makefile (headers): Add stdc-predef.h.
22163         * CONFORMANCE (Compiler limitations): Update.
22164
22165 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
22166
22167         * manual/libc.texinfo (VERSION, UPDATED): Revert.
22168
22169 2012-02-21  David S. Miller  <davem@davemloft.net>
22170
22171         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
22172         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
22173
22174 2012-02-20  David S. Miller  <davem@davemloft.net>
22175
22176         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
22177         using a normal save/restore sequence, rather than allocating a
22178         dummy stack frame just to store a frame pointer and restore.
22179         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
22180
22181 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
22182
22183         * manual/install.texi: Fix stray word in line-wrapped comment.
22184
22185 2012-02-20  David S. Miller  <davem@davemloft.net>
22186
22187         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
22188         both binutils and gcc support GOTDATA.
22189
22190         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
22191         "rd %pc" in the PIC register setup sequences.
22192
22193         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
22194         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
22195         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
22196         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
22197         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
22198         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
22199         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
22200         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
22201         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
22202         (SYSCALL_ERROR_HANDLER): Likewise.
22203         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
22204         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
22205         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
22206         (SYSCALL_ERROR_HANDLER): Likewise.
22207
22208         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
22209         (HAVE_GCC_GOTDATA): New.
22210         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
22211         relocation support in both binutils and gcc.
22212         * sysdeps/sparc/elf/configure: Regenerate.
22213
22214         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
22215         * sysdeps/sparc/sparc32/elf/configure: Delete.
22216         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
22217         * sysdeps/sparc/sparc64/elf/configure: Delete.
22218         * sysdeps/sparc/elf/configure.in: New file.
22219         * sysdeps/sparc/elf/configure: Generate.
22220
22221         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
22222         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
22223         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
22224         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
22225         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
22226
22227 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
22228
22229         * manual/install.texi: Do not mention specific glibc version
22230         numbers.
22231         * manual/libc.texinfo (VERSION, UPDATED): Update.
22232         (@copying): Use @copyright{} and range of years.
22233
22234 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
22235
22236         [BZ #13695]
22237         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
22238         [crti.S not in sysdirs] (generated): Do not append.
22239         [crti.S not in sysdirs] (omit-deps): Likewise.
22240         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
22241         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
22242         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
22243         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
22244         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
22245         Likewise.
22246         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
22247         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
22248         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
22249         * csu/defs.awk: Remove file.
22250         * sysdeps/generic/initfini.c: Likewise.
22251         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
22252         variable.
22253         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
22254         Likewise.
22255
22256 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
22257
22258         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
22259         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
22260         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
22261         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
22262         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22263         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
22264         <bits/epoll.h>.
22265         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
22266         (__EPOLL_PACKED): Define to empty if not defined by
22267         <bits/epoll.h>.
22268         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
22269         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22270         bits/epoll.h.
22271
22272 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
22273
22274         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
22275         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
22276         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
22277         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
22278         <bits/timerfd.h>.
22279         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
22280         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22281         bits/timerfd.h.
22282
22283 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
22284
22285         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
22286         in C locale.
22287         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
22288         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
22289         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
22290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22291
22292 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
22293
22294         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22295         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
22296
22297 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
22298
22299         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
22300         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
22301         defined.
22302         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
22303         Likewise.
22304         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
22305         entry for 2.16.
22306
22307 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
22308
22309         * math/w_acos.c: Use non-signaling floating-point comparisons.
22310         * math/w_acosf.c: Likewise.
22311         * math/w_acosh.c: Likewise.
22312         * math/w_acoshf.c: Likewise.
22313         * math/w_acoshl.c: Likewise.
22314         * math/w_acosl.c: Likewise.
22315         * math/w_asin.c: Likewise.
22316         * math/w_asinf.c: Likewise.
22317         * math/w_asinl.c: Likewise.
22318         * math/w_atanh.c: Likewise.
22319         * math/w_atanhf.c: Likewise.
22320         * math/w_atanhl.c: Likewise.
22321         * math/w_exp2.c: Likewise.
22322         * math/w_exp2f.c: Likewise.
22323         * math/w_exp2l.c: Likewise.
22324         * math/w_j0.c: Likewise.
22325         * math/w_j0f.c: Likewise.
22326         * math/w_j0l.c: Likewise.
22327         * math/w_j1.c: Likewise.
22328         * math/w_j1f.c: Likewise.
22329         * math/w_j1l.c: Likewise.
22330         * math/w_jn.c: Likewise.
22331         * math/w_jnf.c: Likewise.
22332         * math/w_log.c: Likewise.
22333         * math/w_log10.c: Likewise.
22334         * math/w_log10f.c: Likewise.
22335         * math/w_log10l.c: Likewise.
22336         * math/w_log2.c: Likewise.
22337         * math/w_log2f.c: Likewise.
22338         * math/w_log2l.c: Likewise.
22339         * math/w_logf.c: Likewise.
22340         * math/w_logl.c: Likewise.
22341         * math/w_sqrt.c: Likewise.
22342         * math/w_sqrtf.c: Likewise.
22343         * math/w_sqrtl.c: Likewise.
22344         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
22345         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
22346         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
22347         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
22348         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
22349
22350 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
22351
22352         [BZ #9739]
22353         * manual/string.texi (strnlen): Use correct parameter name in
22354         equivalent expression.
22355
22356 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
22357
22358         [BZ #11174]
22359         * manual/users.texi (seteuid): Consistently use neweuid for
22360         argument name.
22361
22362 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
22363
22364         [BZ #13704]
22365         * manual/nss.texi (Services in the NSS configuration): Correct
22366         list of services in example configuration file.
22367
22368 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
22369
22370         [BZ #11322]
22371         * manual/arith.texi: Remove statements about negative zero
22372         behaving identically to zero.
22373
22374 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
22375
22376         [BZ #5993]
22377         * manual/install.texi: Do not document upgrading from libc5.
22378
22379 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
22380
22381         [BZ #4596]
22382         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
22383
22384 2012-02-18  David S. Miller  <davem@davemloft.net>
22385
22386         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
22387         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
22388         %o7 across the call.
22389         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
22390         instead.
22391         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
22392         SETUP_PIC_REG_LEAF.
22393         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22394         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
22395         * sysdeps/sparc/crtn.S: Likewise.
22396
22397 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
22398
22399         * aout/Makefile: Remove.
22400
22401 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
22402
22403         [BZ #13058]
22404         * manual/examples/argp-ex1.c (main): Format definition in GNU
22405         style.
22406         * manual/examples/argp-ex2.c (main): Likewise.
22407         * manual/examples/argp-ex3.c (main): Likewise.
22408         * manual/examples/argp-ex4.c (main): Likewise.
22409         * manual/examples/longopt.c (main): Use new-style prototype
22410         definition.
22411         * manual/examples/strncat.c (main): Specify return type and use
22412         (void) for arguments.
22413         * manual/examples/subopt.c (main): Use char **argv argument.
22414
22415 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
22416
22417         [BZ #5077]
22418         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
22419         rounding modes.
22420
22421 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
22422
22423         [BZ #6907]
22424         * manual/string.texi (strchr): Change when strchrnul is
22425         recommended.
22426
22427 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
22428
22429         [BZ #174]
22430         * manual/locale.texi (setlocale): Document LOCPATH.
22431
22432 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
22433
22434         [BZ #10210]
22435         * manual/process.texi (execle): Move @dots{} before last argument.
22436
22437 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
22438
22439         [BZ #12047]
22440         * manual/charset.texi (Generic Charset Conversion): Fix typo
22441         (LC_TYPE -> LC_CTYPE).
22442
22443 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
22444
22445         [BZ #5805]
22446         * manual/arith.texi (scalbn): Use @var{} on parameter names.
22447         (scalbnf): Likewise.
22448         (scalbnl): Likewise.
22449         (scalbln): Likewise.
22450         (scalblnf): Likewise.
22451         (scalblnl): Likewise.
22452         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
22453         (vwarnx): Likewise.
22454         (verr): Likewise.
22455         (verrx): Likewise.
22456         * manual/filesys.texi (telldir): Use braces around return type.
22457         * manual/llio.texi (mmap): Add space after comma.
22458         (mmap64): Likewise.
22459         * manual/math.texi (jn): Use @var{} on parameter names.
22460         (jnf): Likewise.
22461         (jnl): Likewise.
22462         (yn): Likewise.
22463         (ynf): Likewise.
22464         (ynl): Likewise.
22465         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
22466         line.
22467         * manual/resource.texi (ulimit): Use @dots{} instead of literal
22468         "...".
22469         (sched_get_priority_min): Remove semicolon on @deftypefun line.
22470         (sched_get_priority_max): Likewise.
22471         * manual/signal.texi (sigvec): Add space after comma.
22472         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
22473         names.
22474         (if_indextoname): Likewise.
22475         (if_freenameindex): Likewise.
22476         (sendto): Use ',' instead of '.' in prototype.
22477         * manual/startup.texi (syscall): Use @dots{} instead of literal
22478         "...".
22479         * manual/stdio.texi (__fpending): Separate initial words of
22480         paragraph from @deftypefun line.
22481         * manual/syslog.texi (syslog): Use @dots{} instead of literal
22482         "...".
22483         (vsyslog): Use @var{} on parameter names.
22484         * manual/terminal.texi (stty): Use @var{} on parameter names.
22485         * manual/users.texi (getutmp): Use @var{} on parameter names.
22486         (getutmpx): Likewise.
22487
22488 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
22489
22490         [BZ #6884]
22491         * manual/stdio.texi (fopen): Fix typos in description of
22492         ",ccs=STRING".
22493
22494 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
22495
22496         [BZ #4026]
22497         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
22498         get clock_id definition.
22499
22500 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
22501
22502         [BZ #4822]
22503         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
22504         (madvise): Cast every argument to void on its own.
22505
22506 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
22507
22508         [BZ #9902]
22509         * manual/startup.texi (Exit Status): Fix typo.
22510
22511 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
22512
22513         [BZ #10140]
22514         * manual/examples/argp-ex1.c: Include <stdlib.h>.
22515         * manual/examples/argp-ex2.c: Likewise.
22516         * manual/examples/argp-ex3.c: Likewise.
22517
22518 2012-02-16  Richard Henderson  <rth@redhat.com>
22519
22520         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
22521         * sysdeps/s390/s390-32/initfini.c: Remove.
22522         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
22523         * sysdeps/s390/s390-64/initfini.c: Remove.
22524
22525 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22526
22527         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
22528         compiler output for sysdeps/generic/initfini.c.
22529         * sysdeps/sh/elf/initfini.c: Remove file.
22530
22531 2012-02-16  David S. Miller  <davem@davemloft.net>
22532
22533         [BZ #11494]
22534         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
22535
22536         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
22537         * sysdeps/sparc/crti.S: New file.
22538         * sysdeps/sparc/crtn.S: New file.
22539         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
22540         * sysdeps/sparc/sparc64/Makefile: Likewise.
22541
22542 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
22543
22544         [BZ #3335]
22545         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
22546
22547 2012-02-15  Roland McGrath  <roland@hack.frob.com>
22548
22549         [BZ #4822]
22550         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
22551
22552         * mach/devstream.c (cookie_io_functions_t): Macro removed.
22553         (write, read, close): Likewise.
22554         Patch by Aurelien Jarno <aurelien@aurel32.net>.
22555
22556 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
22557
22558         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
22559         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
22560         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
22561         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
22562         <bits/signalfd.h>.
22563         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
22564         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22565         bits/signalfd.h.
22566
22567 2012-02-14  Marek Polacek  <polacek@redhat.com>
22568
22569         * sysdeps/x86_64/crti.S: New file.
22570         * sysdeps/x86_64/crtn.S: New file.
22571         * sysdeps/x86_64/elf/initfini.c: Remove file.
22572
22573 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
22574
22575         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
22576         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
22577         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
22578         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
22579         <bits/inotify.h>.
22580         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
22581         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22582         bits/inotify.h.
22583
22584 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
22585
22586         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
22587         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
22588         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
22589         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
22590         <bits/eventfd.h>.
22591         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
22592         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22593         bits/eventfd.h.
22594
22595 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
22596
22597         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
22598         __feraiseexcept instead of feraiseexcept.
22599
22600         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
22601         nanosleep invocations.
22602         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
22603         strings, and add error checking for a nanosleep invocations.
22604
22605 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22606
22607         Replace FSF snail mail address with URLs, as per GNU coding standards.
22608         Most of the snail mail addresses were wrong anyway, and omitting
22609         them makes the source code easier to maintain.  Almost all of the
22610         changes are to license notices and to locale LC_IDENTIFICATION
22611         addresses, except for this one:
22612         * manual/libc.texinfo: In "Published by", give the FSF's URL,
22613         not its snail mail address.
22614
22615 2012-02-09  Richard Henderson  <rth@twiddle.net>
22616
22617         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
22618         of kernel-features.h.
22619
22620         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
22621
22622 2012-02-08  Marek Polacek  <polacek@redhat.com>
22623
22624         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
22625         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
22626         * sysdeps/gnu/_G_config.h: Likewise.
22627         * sysdeps/generic/_G_config.h: Likewise.
22628
22629 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
22630
22631         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
22632         tests.
22633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22634
22635         * sysdeps/powerpc/powerpc32/crti.S: New file.
22636         * sysdeps/powerpc/powerpc32/crtn.S: New file.
22637         * sysdeps/powerpc/powerpc64/crti.S: New file.
22638         * sysdeps/powerpc/powerpc64/crtn.S: New file.
22639
22640         * Makeconfig (have-initfini): Don't set.
22641         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
22642         * configure.in (nopic_initfini): Don't substitute.
22643         * config.h.in (HAVE_INITFINI): Don't #undef.
22644         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
22645         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
22646
22647 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
22648
22649         Support crti.S and crtn.S provided directly by architectures.
22650         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
22651         [crti.S in sysdirs] (omit-deps): Likewise.
22652         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
22653         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
22654         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
22655         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
22656         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
22657         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
22658         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
22659         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
22660         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
22661         compiler output for sysdeps/generic/initfini.c.
22662         * sysdeps/i386/elf/Makefile: Remove file.
22663         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
22664
22665 2012-02-07  Marek Polacek  <polacek@redhat.com>
22666
22667         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
22668         * sysdeps/gnu/_G_config.h: Likewise.
22669         * sysdeps/mach/hurd/_G_config.h: Likewise.
22670
22671 2012-02-07  Marek Polacek  <polacek@redhat.com>
22672
22673         * math/Makefile (tests): Add tst-CMPLX2.
22674         * math/tst-CMPLX2.c: New file.
22675
22676 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
22677
22678         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22679
22680         * math/libm-test.inc (jn_test): Add missing L suffix.
22681
22682 2012-02-06  Marek Polacek  <polacek@redhat.com>
22683
22684         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
22685         * sysdeps/i386/fpu/e_powf.S: Likewise.
22686         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
22687         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
22688         * sysdeps/i386/fpu/e_acosh.S: Likewise.
22689         * sysdeps/i386/fpu/e_pow.S: Likewise.
22690         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
22691         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
22692         * sysdeps/i386/fpu/s_expm1.S: Likewise.
22693         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
22694         * sysdeps/i386/fpu/e_log2.S: Likewise.
22695         * sysdeps/i386/fpu/e_log2l.S: Likewise.
22696         * sysdeps/i386/fpu/e_scalb.S: Likewise.
22697         * sysdeps/i386/fpu/e_powl.S: Likewise.
22698         * sysdeps/i386/fpu/s_log1p.S: Likewise.
22699         * sysdeps/i386/fpu/e_log10f.S: Likewise.
22700         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
22701         * sysdeps/i386/fpu/e_logl.S: Likewise.
22702         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
22703         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
22704         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
22705         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
22706         * sysdeps/i386/fpu/e_log2f.S: Likewise.
22707         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
22708         * sysdeps/i386/fpu/e_log.S: Likewise.
22709         * sysdeps/i386/fpu/s_cexp.S: Likewise.
22710         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
22711         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
22712         * sysdeps/i386/fpu/e_logf.S: Likewise.
22713         * sysdeps/i386/fpu/e_log10l.S: Likewise.
22714         * sysdeps/i386/fpu/e_atanh.S: Likewise.
22715         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
22716         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
22717         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
22718         * sysdeps/i386/fpu/e_log10.S: Likewise.
22719         * sysdeps/i386/fpu/s_frexp.S: Likewise.
22720         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
22721         * sysdeps/i386/fpu/s_asinh.S: Likewise.
22722         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
22723         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
22724         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
22725         * sysdeps/i386/asm-syntax.h: Likewise.
22726         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
22727         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
22728         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
22729         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
22730         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
22731         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
22732         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
22733         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
22734         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
22735         * sysdeps/powerpc/sysdep.h: Likewise.
22736         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22737         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
22738
22739 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
22740
22741         [BZ #411]
22742         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
22743
22744 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
22745
22746         * sysdeps/i386/sysdep.h: Include <features.h>.
22747         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
22748         version.
22749
22750 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
22751
22752         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
22753         Define.
22754         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
22755         LOAD_PIC_REG_STR.
22756
22757 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22758
22759         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
22760         (SETUP_PIC_REG): Use GET_PC_THUNK.
22761         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
22762         macro.
22763
22764 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22765
22766         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
22767         for non-PIC compilation.
22768         (SETUP_PIC_REG): Add .p2align directive.
22769         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
22770         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
22771         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
22772         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
22773         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
22774         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
22775         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
22776         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
22777         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22778         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22779         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22780         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22781         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22782         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22783         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
22784         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
22785         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
22786         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
22787         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
22788         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
22789         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
22790         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
22791         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
22792         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
22793         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
22794         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
22795         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22796         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
22797         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
22798         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
22799         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
22800         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22801         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
22802         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
22803         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
22804         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
22805         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
22806         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
22807         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
22808         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
22809         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
22810
22811 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22812
22813         * math/tst-CMPLX.c: Include <stdio.h>.
22814
22815 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
22816
22817         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
22818         float.
22819         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
22820         * sysdeps/sparc/bits/mathdef.h: Likewise.
22821
22822 2012-01-31  Marek Polacek  <polacek@redhat.com>
22823
22824         * libio/libio.h: Don't define _PARAMS.
22825         * locale/programs/config.h: Don't define PARAMS.
22826         * stdlib/strtol_l.c: Likewise.
22827         (__strtol_l): Remove PARAMS from the prototype.
22828
22829 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
22830
22831         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
22832         names.  Just use the correct names.  Remove unnecessary wrapper
22833         functions.
22834         * malloc/arena.c: Likewise.
22835         * malloc/hooks.c: Likewise.
22836
22837         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
22838         ARENA_TEST says not to.  Simplify test for creation of a new arena.
22839         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
22840
22841 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
22842
22843         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
22844         into tail calls.
22845         (update_get_addr): New function.
22846         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
22847         GET_ADDR_MODULE parameter.
22848
22849 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
22850
22851         * crypt/cert.c: Remove __STDC__ conditionals.
22852         * crypt/crypt-entry.c: Likewise.
22853         * crypt/crypt_util.c: Likewise.
22854         * libio/filedoalloc.c: Likewise.
22855         * libio/fileops.c: Likewise.
22856         * libio/genops.c: Likewise.
22857         * libio/iofclose.c: Likewise.
22858         * libio/iofdopen.c: Likewise.
22859         * libio/iofopen.c: Likewise.
22860         * libio/iofopen64.c: Likewise.
22861         * libio/iogetdelim.c: Likewise.
22862         * libio/iopopen.c: Likewise.
22863         * libio/obprintf.c: Likewise.
22864         * libio/oldfileops.c: Likewise.
22865         * libio/oldiofclose.c: Likewise.
22866         * libio/oldiofdopen.c: Likewise.
22867         * libio/oldiofopen.c: Likewise.
22868         * libio/oldiopopen.c: Likewise.
22869         * libio/wfiledoalloc.c: Likewise.
22870         * libio/wgenops.c: Likewise.
22871         * locale/programs/xmalloc.c: Likewise.
22872         * misc/syslog.c: Likewise.
22873         * stdio-common/xbug.c: Likewise.
22874         * string/memchr.c: Likewise.
22875         * string/memcmp.c: Likewise.
22876         * string/memrchr.c: Likewise.
22877         * string/rawmemchr.c: Likewise.
22878         * sysdeps/posix/getcwd.c: Likewise.
22879         * time/strftime_l.c: Likewise.
22880
22881 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
22882
22883         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
22884         * config.make.in (config-cflags-sse2avx): Define.
22885         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
22886         Fix typo.
22887
22888 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
22889
22890         * scripts/config.guess: Update from upstream config git repository.
22891         * scripts/config.sub: Likewise.
22892
22893 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
22894
22895         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
22896         (EM_NUM): Update.
22897         (R_TILEPRO_*, R_TILEGX_*): New macros.
22898
22899         * scripts/firstversions.awk: Fix bug in version range handling.
22900
22901         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
22902
22903         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
22904
22905         * include/sys/epoll.h: New file.
22906         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
22907         libc_hidden_def.
22908
22909 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
22910
22911         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
22912         Avoid unnecessary __WORDSIZE == 64 test.
22913         (fmaxf): Use VEX format if possible.
22914         (fmax): Likewise.
22915         (fminf): Likewise.
22916         (fmin): Likewise.
22917
22918         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
22919         * math/math_private.h: Remove libc_fegetround* and
22920         libc_fesetround*.
22921         * sysdeps/i386/configure.in: Check for -msse2avx.
22922         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
22923         also if SSE2AVX is defined.
22924         Remove libc_fegetround* and libc_fesetround*.
22925         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
22926         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
22927         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
22928         of HAS_YMM_USABLE.
22929         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22930         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22931         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22932         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22933         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22934
22935         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
22936
22937 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22938
22939         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
22940         size is not set.
22941         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
22942
22943 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
22944
22945         [BZ #13618]
22946         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
22947         relocation.
22948         * Makeconfig (libm): Define.
22949         * elf/Makefile: Add rules to build and run tst-relsort1.
22950         * elf/tst-relsort1.c: New file.
22951         * elf/tst-relsort1mod1.c: New file.
22952         * elf/tst-relsort1mod2.c: New file.
22953
22954 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
22955
22956         * math/s_ldexp.c: Remove __STDC__ conditionals.
22957         * math/s_ldexpf.c: Likewise.
22958         * math/s_ldexpl.c: Likewise.
22959         * math/s_nextafter.c: Likewise.
22960         * math/s_nexttowardf.c: Likewise.
22961         * math/s_significand.c: Likewise.
22962         * math/s_significandf.c: Likewise.
22963         * math/s_significandl.c: Likewise.
22964         * math/w_jnl.c: Likewise.
22965         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
22966         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
22967         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
22968         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
22969         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
22970         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
22971         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
22972         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
22973         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
22974         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
22975         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
22976         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22977         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
22978         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
22979         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
22980         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
22981         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
22982         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
22983         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
22984         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
22985         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
22986         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
22987         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
22988         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
22989         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
22990         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
22991         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
22992         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
22993         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
22994         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
22995         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
22996         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
22997         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
22998         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
22999         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
23000         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
23001         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
23002         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23003         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
23004         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
23005         * sysdeps/ieee754/k_standard.c: Likewise.
23006         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
23007         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
23008         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
23009         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
23010         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
23011         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
23012         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
23013         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
23014         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
23015         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
23016         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
23017         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
23018         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
23019         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
23020         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
23021         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
23022         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
23023         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
23024         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
23025         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
23026         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
23027         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
23028         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
23029         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
23030         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
23031         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
23032         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23033         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23034         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23035         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
23036         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
23037         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
23038         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23039         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
23040         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
23041         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
23042         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
23043         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23044         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
23045         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
23046         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
23047         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
23048         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
23049         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
23050         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23051         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
23052         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
23053         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
23054         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
23055         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
23056         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
23057         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
23058         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23059         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
23060         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
23061         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
23062         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
23063         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
23064         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
23065         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
23066         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
23067         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
23068         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
23069         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
23070         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
23071         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
23072         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
23073         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
23074         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
23075         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
23076         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
23077         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
23078         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
23079         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
23080         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
23081         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
23082         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
23083         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
23084         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
23085         * sysdeps/ieee754/s_matherr.c: Likewise.
23086         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
23087         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
23088         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
23089         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
23090
23091 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
23092
23093         * crypt/md5.h: Remove __STDC__ conditionals.
23094         * libio/libioP.h: Likewise.
23095         * locale/programs/config.h: Likewise.
23096         * sysdeps/generic/sysdep.h: Likewise.
23097         * sysdeps/i386/asm-syntax.h: Likewise.
23098         * sysdeps/s390/asm-syntax.h: Likewise.
23099         * sysdeps/unix/sysdep.h: Likewise.
23100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23102
23103 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
23104
23105         * libio/libio.h: Remove __STDC__ conditionals.
23106         * malloc/obstack.h: Likewise.
23107         * math/complex.h: Likewise.
23108         * math/math.h: Likewise.
23109         * sysdeps/generic/_G_config.h: Likewise.
23110         * sysdeps/gnu/_G_config.h: Likewise.
23111         * sysdeps/mach/hurd/_G_config.h: Likewise.
23112         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23113         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
23114         * sysdeps/sparc/bits/mathdef.h: Likewise.
23115
23116 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
23117
23118         [BZ #13583]
23119         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
23120         Clean up HAS_* macros.
23121         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
23122         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
23123         possible.
23124         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
23125         HAS_AVX.
23126         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23127         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23128         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23129         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23130         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23131
23132 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
23133
23134         * elf/tst-unique3.cc (gets): Remove declaration.
23135         * elf/tst-unique3lib.cc (gets): Likewise.
23136         * elf/tst-unique3lib2.cc (gets): Likewise.
23137         * elf/tst-unique4.cc (gets): Likewise.
23138
23139 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
23140
23141         * include/stdio.h: Add C++ protection.  Add gets declarations and
23142         definitions.
23143         * debug/tst-chk1.c: Don't declare gets here.
23144         * stdio-common/tst-gets.c: Likewise.
23145
23146 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
23147
23148         * posix/glob: Remove directory.
23149
23150 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
23151
23152         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
23153
23154 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
23155
23156         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
23157         of the non-standard EPFNOSUPPORT.
23158
23159 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23160
23161         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
23162         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
23163         ANYWHERE set to 1 only on KERN_NO_SPACE error.
23164
23165 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
23166
23167         * wcsmbs/uchar.h: Test __STDC_VERSION__.
23168
23169 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
23170
23171         * nscd/aicache.c (addhstaiX): Do not cache negative results of
23172         transient errors.
23173         * nscd/grpcache.c (cache_addgr): Likewise.
23174         * nscd/hstcache.c (cache_addhst): Likewise.
23175         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23176         * nscd/pwdcache.c (cache_addpw): Likewise.
23177         * nscd/servicescache.c (cache_addserv): Likewise.
23178
23179 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
23180
23181         * malloc/malloc.c: Various cleanups.
23182         * malloc/hooks.c: Likewise.
23183
23184         * stdlib/Makefile (tests): Add bug-fmtmsg1.
23185         * stdlib/bug-fmtmsg1.c: New file.
23186
23187         * stdlib/fmtmsg.c (init): Add missing unlock.
23188         Patch by Peng Haitao <penght@cn.fujitsu.com>.
23189
23190 2012-01-12  Marek Polacek  <polacek@redhat.com>
23191
23192         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
23193         and _GNU_SOURCE.
23194
23195 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
23196
23197         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
23198         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
23199         macro to ensure uniqueness of label name.
23200         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
23201         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
23202
23203 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
23204
23205         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
23206
23207         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
23208         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
23209         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
23210         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
23211
23212 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
23213
23214         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
23215
23216         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
23217         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
23218         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
23219
23220         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
23221
23222         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
23223         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
23224         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
23225         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
23226
23227         * math/bits/math-finite.h: Add ldexp support.
23228
23229 2012-01-10  Marek Polacek  <polacek@redhat.com>
23230
23231         * locale/programs/localedef.h (show_archive_content): Add noreturn
23232         attribute.
23233
23234 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
23235
23236         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
23237
23238 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
23239
23240         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
23241
23242         * io/Makefile (headers): Add bits/poll2.h.
23243
23244 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
23245
23246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
23247         typo #include statement.
23248
23249 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
23250
23251         * include/sys/cdefs.h: Define __attribute_alloc_size.
23252         * catgets/gencat.c: Add alloc_size attribute and apply consistently
23253         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
23254         * elf/pldd.c: Likewise.
23255         * iconv/iconv_charmap.c: Likewise.
23256         * iconv/iconvconfig.c: Likewise.
23257         * iconv/strtab.c: Likewise.
23258         * locale/programs/locale.c: Likewise.
23259         * locale/programs/localedef.h: Likewise.
23260         * locale/programs/simple-hash.c: Likewise.
23261         * nscd/nscd.h: Likewise.
23262         * nss/makedb.c: Likewise.
23263         * sysdeps/generic/ldconfig.h: Likewise.
23264         * locale/programs/localedef.c: Remove xmalloc prototype.
23265         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
23266
23267 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
23268
23269         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
23270         appropriate.
23271
23272 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
23273
23274         * math/Makefile (tests): Add tst-CMPLX.
23275         * math/tst-CMPLX.c: New file.
23276
23277         * math/complex.h (CMPLXL): Fix typo.
23278
23279         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
23280         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
23281         GLIBC_2.16.
23282         * debug/tst-chk1.c: Add poll and ppoll tests.
23283         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
23284         * include/sys/poll.h: Add hidden proto for ppoll.
23285         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
23286         * sysdeps/mach/hurd/ppoll.c: Likewise.
23287         * io/ppoll.c: Likewise.
23288         * debug/poll_chk.c: New file.
23289         * debug/ppoll_chk.c: New file.
23290         * include/bits/poll2.h: New file.
23291         * io/bits/poll2.h: New file.
23292
23293         [BZ #1350]
23294         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
23295
23296         * configure.in: static is always set to yes.  Remove.
23297         * config.make.in: Don't set build-static.
23298         * Makeconfig: Remove use of build-static.
23299         * dlfcn/Makefile: Likewise.
23300         * elf/Makefile: Likewise.
23301         * math/Makefile: Likewise.
23302         * misc/Makefile: Likewise.
23303         * nptl/Makefile: Likewise.
23304         * sysdeps/mach/hurd/Makefile: Likewise.
23305
23306         * configure.in: PWD_P is not used anymore.
23307         * config.make.in: Remove PWD_P entry.
23308
23309         * configure.in: Remove last remnants of RANLIB.
23310         No need to check for signed size_t anymore.
23311         Don't set libc_commonpagesize and libc_relro_required here for Alpha
23312         and IA-64.
23313         Remove __builtin_expect test because we require at least gcc 3.4.
23314         * aclocal.m4: Likewise.
23315
23316         * wcsmbs/mbrtoc16.c: Implement using towc function.
23317         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
23318         * wcsmbs/wcsmbsload.c: Likewise.
23319         * iconv/gconv_simple.c: Likewise.
23320         * iconv/gconv_int.h: Likewise.
23321         * iconv/gconv_builtin.h: Likewise.
23322         * iconv/iconv_prog.c: Remove CHAR16 handling.
23323
23324         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
23325
23326         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
23327
23328         * configure.in: Remove --with-elf and --enable-bounded options.
23329         Dont set base_machine for ia64.  More non-ELF conditions removed.
23330         Remove testing and setting of leading underscore information.
23331         * config.make.in (build-bounded): Set to no.
23332         * config.h.in: Remove NO_UNDERSCORES entry.
23333         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
23334         them.
23335         * csu/start.c: Remove !NO_UNDERSCORE code.
23336         * locale/localeinfo.h: Likewise.
23337         * sysdeps/generic/machine-gmon.h: Likewise.
23338         * sysdeps/generic/sysdep.h: Likewise.
23339         * sysdeps/i386/sysdep.h: Likewise.
23340         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
23341         * sysdeps/mach/sysdep.h: Likewise.
23342         * sysdeps/s390/s390-32/sysdep.h: Likewise.
23343         * sysdeps/s390/s390-64/sysdep.h: Likewise.
23344         * sysdeps/sh/sysdep.h: Likewise.
23345         * sysdeps/sparc/sparc32/alloca.S: Likewise.
23346         * sysdeps/unix/i386/sysdep.S: Likewise.
23347         * sysdeps/unix/sparc/start.c: Likewise.
23348         * sysdeps/unix/sparc/sysdep.S: Likewise.
23349         * sysdeps/unix/sparc/sysdep.h: Likewise.
23350         * sysdeps/unix/start.c: Likewise.
23351         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23352         * sysdeps/x86_64/sysdep.h: Likewise.
23353
23354 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
23355
23356         [BZ #13553]
23357         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
23358         for non-gcc.
23359         * argp/argp-fmtstream.h: Use const instead __const.
23360         * argp/argp.h: Likewise.
23361         * assert/assert.h: Likewise.
23362         * bits/fenv.h: Likewise.
23363         * bits/sched.h: Likewise.
23364         * bits/sigset.h: Likewise.
23365         * bits/sigthread.h: Likewise.
23366         * catgets/nl_types.h: Likewise.
23367         * conform/data/pthread.h-data: Likewise.
23368         * crypt/crypt-private.h: Likewise.
23369         * crypt/crypt.h: Likewise.
23370         * crypt/crypt_util.c: Likewise.
23371         * ctype/ctype.h: Likewise.
23372         * debug/execinfo.h: Likewise.
23373         * debug/mbsnrtowcs_chk.c: Likewise.
23374         * debug/mbsrtowcs_chk.c: Likewise.
23375         * debug/wcsnrtombs_chk.c: Likewise.
23376         * debug/wcsrtombs_chk.c: Likewise.
23377         * debug/wcstombs_chk.c: Likewise.
23378         * dirent/dirent.h: Likewise.
23379         * dlfcn/dlfcn.h: Likewise.
23380         * elf/neededtest4.c: Likewise.
23381         * grp/grp.h: Likewise.
23382         * gshadow/gshadow.h: Likewise.
23383         * iconv/gconv.h: Likewise.
23384         * iconv/gconv_int.h: Likewise.
23385         * iconv/gconv_simple.c: Likewise.
23386         * iconv/iconv.h: Likewise.
23387         * iconv/loop.c: Likewise.
23388         * iconv/skeleton.c: Likewise.
23389         * include/aio.h: Likewise.
23390         * include/aliases.h: Likewise.
23391         * include/argz.h: Likewise.
23392         * include/arpa/inet.h: Likewise.
23393         * include/assert.h: Likewise.
23394         * include/dirent.h: Likewise.
23395         * include/dlfcn.h: Likewise.
23396         * include/execinfo.h: Likewise.
23397         * include/fcntl.h: Likewise.
23398         * include/fenv.h: Likewise.
23399         * include/glob.h: Likewise.
23400         * include/grp.h: Likewise.
23401         * include/libintl.h: Likewise.
23402         * include/mntent.h: Likewise.
23403         * include/netdb.h: Likewise.
23404         * include/pwd.h: Likewise.
23405         * include/rpc/netdb.h: Likewise.
23406         * include/sched.h: Likewise.
23407         * include/search.h: Likewise.
23408         * include/shadow.h: Likewise.
23409         * include/signal.h: Likewise.
23410         * include/stdio.h: Likewise.
23411         * include/stdlib.h: Likewise.
23412         * include/string.h: Likewise.
23413         * include/sys/socket.h: Likewise.
23414         * include/sys/stat.h: Likewise.
23415         * include/sys/statfs.h: Likewise.
23416         * include/sys/statvfs.h: Likewise.
23417         * include/sys/syslog.h: Likewise.
23418         * include/sys/time.h: Likewise.
23419         * include/sys/uio.h: Likewise.
23420         * include/time.h: Likewise.
23421         * include/unistd.h: Likewise.
23422         * include/utmp.h: Likewise.
23423         * include/wchar.h: Likewise.
23424         * include/wctype.h: Likewise.
23425         * inet/aliases.h: Likewise.
23426         * inet/arpa/inet.h: Likewise.
23427         * inet/netinet/ether.h: Likewise.
23428         * inet/netinet/in.h: Likewise.
23429         * intl/libintl.h: Likewise.
23430         * io/bits/fcntl2.h: Likewise.
23431         * io/fcntl.h: Likewise.
23432         * io/ftw.h: Likewise.
23433         * io/sys/poll.h: Likewise.
23434         * io/sys/stat.h: Likewise.
23435         * io/sys/statfs.h: Likewise.
23436         * io/sys/statvfs.h: Likewise.
23437         * io/utime.h: Likewise.
23438         * libio/bits/stdio.h: Likewise.
23439         * libio/bits/stdio2.h: Likewise.
23440         * libio/libio.h: Likewise.
23441         * libio/libioP.h: Likewise.
23442         * libio/stdio.h: Likewise.
23443         * locale/lc-ctype.c: Likewise.
23444         * locale/locale.h: Likewise.
23445         * login/utmp.h: Likewise.
23446         * malloc/arena.c: Likewise.
23447         * malloc/malloc.c: Likewise.
23448         * malloc/malloc.h: Likewise.
23449         * malloc/mcheck.c: Likewise.
23450         * malloc/mtrace.c: Likewise.
23451         * math/bits/mathcalls.h: Likewise.
23452         * math/fenv.h: Likewise.
23453         * math/math_private.h: Likewise.
23454         * misc/bits/error.h: Likewise.
23455         * misc/bits/syslog.h: Likewise.
23456         * misc/err.h: Likewise.
23457         * misc/error.h: Likewise.
23458         * misc/fstab.h: Likewise.
23459         * misc/mntent.h: Likewise.
23460         * misc/regexp.h: Likewise.
23461         * misc/search.h: Likewise.
23462         * misc/sgtty.h: Likewise.
23463         * misc/sys/mman.h: Likewise.
23464         * misc/sys/syslog.h: Likewise.
23465         * misc/sys/uio.h: Likewise.
23466         * misc/sys/xattr.h: Likewise.
23467         * misc/ttyent.h: Likewise.
23468         * nis/rpcsvc/ypclnt.h: Likewise.
23469         * nss/nss.h: Likewise.
23470         * posix/bits/unistd.h: Likewise.
23471         * posix/fnmatch.h: Likewise.
23472         * posix/glob.h: Likewise.
23473         * posix/sched.h: Likewise.
23474         * posix/spawn.h: Likewise.
23475         * posix/sys/wait.h: Likewise.
23476         * posix/unistd.h: Likewise.
23477         * posix/wordexp.h: Likewise.
23478         * pwd/pwd.h: Likewise.
23479         * resolv/netdb.h: Likewise.
23480         * resource/sys/resource.h: Likewise.
23481         * rt/aio.h: Likewise.
23482         * rt/bits/mqueue2.h: Likewise.
23483         * rt/mqueue.h: Likewise.
23484         * shadow/shadow.h: Likewise.
23485         * signal/signal.h: Likewise.
23486         * socket/send.c: Likewise.
23487         * socket/sendto.c: Likewise.
23488         * socket/sys/socket.h: Likewise.
23489         * stdio-common/printf.h: Likewise.
23490         * stdlib/bits/stdlib.h: Likewise.
23491         * stdlib/fmtmsg.h: Likewise.
23492         * stdlib/monetary.h: Likewise.
23493         * stdlib/stdlib.h: Likewise.
23494         * stdlib/ucontext.h: Likewise.
23495         * streams/stropts.h: Likewise.
23496         * string/argz.h: Likewise.
23497         * string/bits/string2.h: Likewise.
23498         * string/string.h: Likewise.
23499         * string/strings.h: Likewise.
23500         * sunrpc/rpc/auth.h: Likewise.
23501         * sunrpc/rpc/auth_des.h: Likewise.
23502         * sunrpc/rpc/clnt.h: Likewise.
23503         * sunrpc/rpc/netdb.h: Likewise.
23504         * sunrpc/rpc/pmap_clnt.h: Likewise.
23505         * sunrpc/rpc/xdr.h: Likewise.
23506         * sysdeps/generic/inttypes.h: Likewise.
23507         * sysdeps/generic/net/if.h: Likewise.
23508         * sysdeps/generic/sys/swap.h: Likewise.
23509         * sysdeps/gnu/net/if.h: Likewise.
23510         * sysdeps/gnu/utmpx.h: Likewise.
23511         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
23512         * sysdeps/i386/i486/bits/string.h: Likewise.
23513         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
23514         * sysdeps/s390/bits/string.h: Likewise.
23515         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
23516         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
23517         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
23518         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
23519         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
23520         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
23521         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
23522         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
23523         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
23524         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
23525         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
23526         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
23527         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
23528         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
23529         * sysdeps/unix/sysv/linux/readv.c: Likewise.
23530         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
23531         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
23532         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
23533         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
23534         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
23535         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
23536         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
23537         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
23538         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
23539         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
23540         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
23541         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
23542         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
23543         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
23544         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
23545         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
23546         * sysvipc/sys/ipc.h: Likewise.
23547         * sysvipc/sys/msg.h: Likewise.
23548         * sysvipc/sys/sem.h: Likewise.
23549         * sysvipc/sys/shm.h: Likewise.
23550         * termios/termios.h: Likewise.
23551         * time/sys/time.h: Likewise.
23552         * time/time.h: Likewise.
23553         * wcsmbs/bits/wchar2.h: Likewise.
23554         * wcsmbs/uchar.h: Likewise.
23555         * wcsmbs/wchar.h: Likewise.
23556         * wctype/wctype.h: Likewise.
23557
23558         [BZ #13551]
23559         * Makeconfig: Remove all but ELF support including AIX support.
23560         * Makerules: Likewise.
23561         * config.h.in: Likewise.
23562         * config.make.in: Likewise.
23563         * configure: Likewise.
23564         * configure.in: Likewise.
23565         * csu/Makefile: Likewise.
23566         * csu/version.c: Likewise.
23567         * debug/Makefile: Likewise.
23568         * dlfcn/Makefile: Likewise.
23569         * elf/Makefile: Likewise.
23570         * extra-lib.mk: Likewise.
23571         * iconv/Makefile: Likewise.
23572         * include/libc-symbols.h: Likewise.
23573         * include/shlib-compat.h: Likewise.
23574         * resolv/Makefile: Likewise.
23575         * resolv/res_libc.c: Likewise.
23576         * rt/Makefile: Likewise.
23577         * sysdeps/i386/asm-syntax.h: Likewise.
23578         * sysdeps/i386/sysdep.h: Likewise.
23579         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
23580         * sysdeps/mach/sysdep.h: Likewise.
23581         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
23582         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
23583         * sysdeps/s390/asm-syntax.h: Likewise.
23584         * sysdeps/s390/s390-32/sysdep.h: Likewise.
23585         * sysdeps/s390/s390-64/sysdep.h: Likewise.
23586         * sysdeps/sh/sysdep.h: Likewise.
23587         * sysdeps/unix/sparc/sysdep.h: Likewise.
23588         * sysdeps/wordsize-32/divdi3.c: Likewise.
23589         * sysdeps/x86_64/sysdep.h: Likewise.
23590
23591         * argp/Versions: Remove _argp_unlock_xxx.
23592
23593         [BZ #13559]
23594         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
23595         * abilist/libBrokenLocale.abilist: Likewise.
23596         * abilist/libanl.abilist: Likewise.
23597         * abilist/libc.abilist: Likewise.
23598         * abilist/libcrypt.abilist: Likewise.
23599         * abilist/libdl.abilist: Likewise.
23600         * abilist/libm.abilist: Likewise.
23601         * abilist/libnsl.abilist: Likewise.
23602         * abilist/libpthread.abilist: Likewise.
23603         * abilist/libresolv.abilist: Likewise.
23604         * abilist/librt.abilist: Likewise.
23605         * abilist/libthread_db.abilist: Likewise.
23606         * abilist/libutil.abilist: Likewise.
23607         * abilist/libnss_db.abilist: New file.
23608
23609         * scripts/abilist.awk: Add support for indirect functions.
23610
23611         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
23612
23613         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
23614
23615         * shlib-versions: Remove entries for ports architectures.
23616
23617         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
23618         files in ports.
23619         * elf/stackguard-macros.h: Remove support for IA-64.
23620         * elf/tst-auditmod1.c: Likewise.
23621         * sysdeps/generic/ldsodefs.h: Likewise.
23622
23623         * sysdeps/unix/sysv/linux/configure.in: Ports should define
23624         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
23625         configure files.
23626
23627         [BZ #13552]
23628         * configure.in: Remove --enable-omitfp support.
23629         * FAQ.in: Adjust.
23630         * config.make.in: Likewise.
23631         * Makeconfig: Likewise.
23632         * manual/install.texi: Likewise.
23633
23634         In case anyone cares, the IA-64 architecture could move to ports.
23635         * sysdeps/ia64/*: Removed.
23636         * sysdeps/unix/sysv/linux/ia64/*: Removed.
23637         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
23638
23639         [BZ #13555]
23640         * configure.in: Remove entries for unsupported architectures.
23641
23642         [BZ #13533]
23643         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
23644         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
23645         routines.
23646         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
23647         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
23648         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
23649         fall back to using wcrtomb.
23650         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
23651         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
23652         renaming.
23653         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
23654         * wcsmbs/tst-c16c32-1.c: New file.
23655
23656         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
23657         local variable.
23658
23659         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
23660
23661         * elf/tst-unique3.cc: Add explicit declaration of gets.
23662         * elf/tst-unique3lib.cc: Likewise.
23663         * elf/tst-unique3lib2.cc: Likewise.
23664         * elf/tst-unique4.cc: Likewise.
23665
23666         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
23667
23668 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
23669
23670         [BZ #13566]
23671         * assert/assert.h (static_assert): Don't define for C++.
23672         * libio/stdio.h (gets): Do declare for C++ <= C++11.
23673         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
23674
23675 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
23676
23677         * iconv/loop.c (single loop): Fix assertion in storing of
23678         remaining bytes.
23679
23680         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
23681
23682 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
23683
23684         * posix/getconf.c: Update copyright year.
23685         * nss/getent.c: Likewise.
23686         * nss/makedb.c: Likewise.
23687         * iconv/iconvconfig.c: Likewise.
23688         * iconv/iconv_prog.c: Likewise.
23689         * elf/ldconfig.c: Likewise.
23690         * elf/pldd.c: Likewise.
23691         * elf/sotruss.ksh: Likewise.
23692         * catgets/gencat.c: Likewise.
23693         * csu/version.c: Likewise.
23694         * elf/ldd.bash.in: Likewise.
23695         * elf/sprof.c (print_version): Likewise.
23696         * locale/programs/locale.c: Likewise.
23697         * locale/programs/localedef.c: Likewise.
23698         * login/programs/pt_chown.c: Likewise.
23699         * nscd/nscd.c (print_version): Likewise.
23700         * debug/xtrace.sh: Likewise.
23701         * malloc/memusage.sh: Likewise.
23702         * malloc/mtrace.pl: Likewise.
23703         * debug/catchsegv.sh: Likewise.
23704
23705 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
23706
23707         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
23708         pure attribute.
23709
23710 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
23711
23712         [BZ #13533]
23713         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
23714         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
23715         transformations.
23716         * iconv/gconv_int.h: Likewise.
23717         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
23718         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
23719         from libc for GLIBC_2.16.
23720         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
23721         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
23722         * wcsmbs/uchar.h: Really define mbstate_t.
23723         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
23724         * wcsmbs/c16rtomb.c: New file.
23725         * wcsmbs/mbrtoc16.c: New file.
23726         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
23727         for C/POSIX locale.
23728         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
23729         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
23730
23731         * wcsmbs/wchar.h: Add missing __restrict.
23732
23733 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
23734
23735         [BZ #13532]
23736         * time/Makefile (routines): Add timespec_get.
23737         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
23738         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
23739         timespec for ISO C11.
23740         * time/timespec_get.c: New file.
23741         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
23742         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
23743
23744         [BZ #13531]
23745         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
23746         * stdlib/stdlib.h: Declare aligned_alloc.
23747         * Versions.def: Add GLIBC_2.16 for libc.
23748         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
23749
23750         [BZ 13527]
23751         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
23752         ISO C11.
23753
23754         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
23755         code.
23756
23757         [BZ #13528]
23758         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
23759
23760         [BZ #13529]
23761         * assert/assert.h (static_assert): Define.
23762
23763         * version.h: Update for 2.16 development version.
23764
23765         [BZ #13526]
23766         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
23767         _ISOC11_SOURCE.
23768
23769         * version.h (RELEASE): Bump for 2.15 release.
23770         * include/features.h (__GLIBC_MINOR__): Bump to 15.
23771
23772         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
23773         Patch by Marek Polacek <mpolacek@redhat.com>.
23774
23775         * bits/byteswap.h: Protect long long constants with __extension__.
23776         * sysdeps/i386/bits/byteswap.h: Likewise.
23777         * sysdeps/ia64/bits/byteswap.h: Likewise.
23778         * sysdeps/s390/bits/byteswap.h: Likewise.
23779         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23780
23781 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23782
23783         [BZ #13540]
23784         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
23785         destination buffer.
23786         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23787
23788 2011-12-23  Marek Polacek  <polacek@redhat.com>
23789
23790         * elf/dl-addr.c (determine_info): Add inline keyword.
23791         * elf/tst-auditmod4b.c (check_avx): Likewise.
23792         * elf/tst-auditmod6b.c (check_avx): Likewise.
23793         * elf/tst-auditmod6c.c (check_avx): Likewise.
23794         * elf/tst-auditmod7b.c (check_avx): Likewise.
23795
23796 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
23797
23798         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
23799         !__SSE_MATH__.
23800
23801 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23802
23803         [BZ #13540]
23804         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
23805         processing for last bytes.
23806
23807 2011-08-06  Bruno Haible  <bruno@clisp.org>
23808
23809         [BZ #13061]
23810         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
23811         U+0385, not to U+1FEE.
23812
23813         [BZ #13062]
23814         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
23815         entry for U+00A5 U+0301.
23816
23817 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
23818
23819         [BZ #13166]
23820         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
23821         buffer for the output is too small.
23822
23823         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
23824         optimization.
23825
23826         [BZ #13185]
23827         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
23828         SSE flags if possible.
23829
23830 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23831
23832         [BZ #13540]
23833         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
23834         processing for last bytes.
23835
23836 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
23837
23838         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
23839         (syscall-list-default-options, syscall-list-default-condition)
23840         (syscall-list-includes): Define.
23841         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
23842         list of ABIs and options and #if conditions for each ABI.  Do not
23843         handle common syscalls between ABIs specially.
23844         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
23845         Remove.
23846         (syscall-list-variants, syscall-list-32bit-options)
23847         (syscall-list-32bit-condition, syscall-list-64bit-options)
23848         (syscall-list-64bit-condition): Define.
23849         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
23850         (syscall-list-variants, syscall-list-32bit-options)
23851         (syscall-list-32bit-condition, syscall-list-64bit-options)
23852         (syscall-list-64bit-condition): Define.
23853         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
23854         Remove.
23855         (syscall-list-variants, syscall-list-32bit-options)
23856         (syscall-list-32bit-condition, syscall-list-64bit-options)
23857         (syscall-list-64bit-condition): Define.
23858         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
23859         Remove.
23860         (syscall-list-variants, syscall-list-32bit-options)
23861         (syscall-list-32bit-condition, syscall-list-64bit-options)
23862         (syscall-list-64bit-condition): Define.
23863
23864 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
23865
23866         * locale/iso-639.def: Add brx entry.
23867
23868         [BZ #13328]
23869         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
23870         Proposed by Mariusz_Cukr <marcukr@op.pl>.
23871
23872         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
23873         __feraiseexcept_renamed.
23874
23875 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
23876
23877         [BZ #13538]
23878         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
23879         EPOLLET with unsigned values.
23880         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
23881         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
23882
23883         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
23884         to large cancellation.
23885         * math/s_cacoshf.c: Likewise.
23886         * math/s_cacoshl.c: Likewise.
23887
23888 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
23889
23890         [BZ #13305]
23891         [BZ #12786]
23892         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
23893         * math/s_cacoshf.c: Likewise.
23894         * math/s_cacoshl.c: Likewise.
23895
23896 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
23897
23898         [BZ #13439]
23899         * iconv/gconv.h: Define __GCONV_SWAP.
23900         * iconvdata/unicode.c: The swap bit must be stored in __flags.
23901         * iconvdata/utf-16.c: Likewise.
23902         * iconvdata/utf-32.c: Likewise.
23903
23904 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
23905
23906         [BZ #13524]
23907         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
23908         numerator after shifting it by one limb.
23909
23910 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
23911
23912         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
23913         under [__USE_EXTERN_INLINES].
23914
23915 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
23916
23917         [BZ #13446]
23918         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
23919
23920 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23921
23922         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
23923         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
23924         optimized code.
23925         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
23926         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
23927         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
23928         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
23929         for strncasecmp/strncasecmp_l compilation.
23930         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
23931         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
23932
23933 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
23934
23935         [BZ #13484]
23936         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
23937         of __asm__.
23938
23939 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
23940
23941         [BZ #13506]
23942         * time/tzfile.c (__tzfile_read): Check values from file header.
23943
23944 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
23945
23946         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
23947         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
23948         * powerpc/powerpc32/dl-start.S: Likewise.
23949         * powerpc/powerpc32/elf/start.S: Likewise.
23950         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23951         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
23952         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
23953         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
23954         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
23955         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
23956         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
23957         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
23958         * powerpc/powerpc32/fpu/s_round.S: Likewise.
23959         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
23960         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
23961         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
23962         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23963         * powerpc/powerpc32/memset.S: Likewise.
23964         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
23965         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23966         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23967         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23968         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23969         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23970         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23971         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23972         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
23973         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
23974         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
23975         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
23976         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
23977
23978 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23979
23980         * math/libm-test.inc: Added more nearbyint tests.
23981         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
23982         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
23983         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
23984         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
23985
23986 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
23987
23988         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
23989         FD_CLOEXEC.
23990
23991 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23992
23993         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
23994         Add wcscpy-ssse3 wcscpy-c.
23995         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
23996         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
23997         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
23998         * sysdeps/x86_64/wcschr.S: New file.
23999         * sysdeps/x86_64/wcsrchr.S: New file.
24000         * string/test-strcmp.c: Remove checking of wcscmp function for
24001         wrong alignments.
24002         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
24003         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
24004         wcsrchr-sse2 wcsrchr-c.
24005         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
24006         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
24007         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
24008         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
24009         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
24010         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
24011         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
24012         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
24013         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
24014         * wcsmbc/wcschr.c (WCSCHR): New macro.
24015
24016 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24017
24018         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
24019         * wcsmbs/test-wcsrchr.c: New file.
24020         * string/test-strrchr.c: Add wcsrchr support.
24021         (WIDE): New macro.
24022         * wcsmbs/test-wcscpy.c: New file.
24023         * string/test-strcpy.c: Add wcscpy support.
24024         (WIDE): New macro.
24025
24026 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
24027
24028         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
24029         the inner loop.
24030
24031 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
24032
24033         [BZ #13472]
24034         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
24035
24036 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
24037
24038         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
24039         Minor optimizations.
24040
24041         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
24042         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
24043         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
24044
24045 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
24046
24047         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
24048         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
24049         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
24050         for gcc to avoid warnings.
24051         * inet/Makefile (tests): Add tst-checks.
24052         * inet/tst-checks.c: New file.
24053
24054         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
24055         warning.
24056
24057         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
24058         __wmemcmp_sse2.
24059
24060         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
24061         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
24062
24063         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
24064
24065 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
24066
24067         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
24068         problem.
24069
24070         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
24071
24072 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
24073
24074         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
24075         conditional on GCC version.
24076         (__arch_compare_and_exchange_val_8_acq)
24077         (__arch_compare_and_exchange_val_16_acq)
24078         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
24079         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
24080         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
24081
24082 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
24083
24084         * sysdeps/sh/backtrace.c: New file.
24085
24086 2011-12-02  Andreas Schwab  <schwab@redhat.com>
24087
24088         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
24089         parenthesis.
24090
24091 2011-12-01  Andreas Schwab  <schwab@redhat.com>
24092
24093         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
24094         falling back to utime.
24095
24096 2011-11-30  Andreas Schwab  <schwab@redhat.com>
24097
24098         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
24099         expectations for float.
24100
24101 2011-11-29  Andreas Schwab  <schwab@redhat.com>
24102
24103         * locale/weight.h (findidx): Add parameter len.
24104         * locale/weightwc.h (findidx): Likewise.
24105         * posix/fnmatch_loop.c (FCT): Adjust caller.
24106         * posix/regcomp.c (build_equiv_class): Likewise.
24107         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
24108         * posix/regexec.c (check_node_accept_bytes): Likewise.
24109         * string/strcoll_l.c (STRCOLL): Likewise.
24110         * string/strxfrm_l.c (STRXFRM): Likewise.
24111
24112 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
24113
24114         * Makefile.in: Remove CVSOPT handling.
24115         * configure.in: Remove use of AC_REVISION.
24116         * iconvdata/Makefile (distribute): No need to filter out CVS.
24117         * scripts/list-sources.sh: Remove CVS, subversion and monotone
24118         handling.
24119
24120 2011-11-16  Andreas Schwab  <schwab@redhat.com>
24121
24122         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
24123         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
24124         [USE_AS_STRNCASECMP_L]: Likewise.
24125         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
24126         NO_TLS_DIRECT_SEG_REFS.
24127         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
24128         Fix argument offsets for non-PIC.
24129         [USE_AS_STRNCASECMP_L]: Likewise.
24130         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
24131         NO_TLS_DIRECT_SEG_REFS.
24132
24133 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
24134
24135         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
24136         O_CLOEXEC.
24137         * locale/loadlocale.c (_nl_load_locale): Likewise.
24138
24139 2011-11-15  Andreas Schwab  <schwab@redhat.com>
24140
24141         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
24142         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
24143         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
24144         (SYSCALL_GETTIME): Set errno on error.
24145
24146         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
24147         count references to noai6ai_cached.
24148
24149 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
24150
24151         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
24152
24153         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
24154         FD_CLOEXEC for /proc/self/maps.
24155
24156         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
24157         FD_CLOEXEC for /proc/meminfo.
24158
24159         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
24160         gai.conf.
24161
24162         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
24163         FD_CLOEXEC for given file.
24164
24165         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
24166
24167         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
24168         FD_CLOEXEC for /etc/hosts.
24169         (_gethtent): Likewise.
24170
24171         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
24172
24173         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
24174         cancellation and set FD_CLOEXEC for /etc/netgroup.
24175
24176         * nss/nss_files/files-key.c (search): Don't allow cancellation when
24177         reading /etc/publickey.
24178
24179         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
24180         allow cancellation when reading /etc/group.
24181
24182         * nss/nss_files/files-alias.c (internal_setent): Don't allow
24183         cancellation.
24184         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
24185
24186         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
24187         when using data file.
24188
24189         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
24190
24191         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
24192         (write_nis_obj): Use "c" and "e" in fopen.
24193
24194         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
24195
24196         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
24197
24198         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
24199
24200         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
24201
24202         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
24203         locale.alias.
24204
24205         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
24206
24207         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
24208
24209         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
24210
24211         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
24212         file parsing and set FD_CLOEXEC.
24213
24214 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
24215
24216         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
24217
24218 2011-11-14  Andreas Schwab  <schwab@redhat.com>
24219
24220         * malloc/arena.c (arena_get2): Don't call reused_arena when
24221         _int_new_arena failed.
24222
24223 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
24224
24225         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
24226         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
24227         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
24228         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24229         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
24230         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
24231         to compile strcasecmp and strncasecmp.
24232         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
24233         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
24234
24235         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
24236
24237 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
24238
24239         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
24240         locale-defines.sym to gen-as-const-headers.
24241         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
24242         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
24243         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
24244         to compile strcasecmp and strncasecmp.
24245         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
24246         strcasecmp_l and strncasecmp_l.
24247         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
24248         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
24249         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
24250         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
24251         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
24252         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
24253         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
24254         * sysdeps/i386/i686/multiarch/strncase.S: New file.
24255         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
24256         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
24257         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
24258
24259 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
24260
24261         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
24262         result of SYSDEP_GETTIME_CPU to retval.
24263         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
24264         parameter list to macro.  Remove trailing semicolon.  Adjust users.
24265
24266         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
24267         variable.
24268
24269         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
24270         mantissa words.
24271         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
24272
24273         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
24274         from unused variable.
24275
24276         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
24277         DWARF definitions.
24278         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
24279         for assembling.
24280
24281         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
24282         over namespaces.
24283
24284         * sunrpc/rpc_prot.c (rejected): Fix case value.
24285
24286         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
24287         unsigned long long int to avoid warnings in shift.
24288
24289         * posix/regex_internal.c (re_string_reconstruct): Actually use result
24290         of use of trans.
24291         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
24292         variable tmp.
24293
24294         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
24295         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24296         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24297
24298         * nis/nis_table.c (nis_list): Use variable of correct type for
24299         result of __follow_path call.
24300
24301 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24302
24303         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
24304         of math functions ceil, trunc, floor, round, and sqrt, when
24305         avaliable on the platform.
24306         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
24307         name clash.
24308         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
24309         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
24310         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
24311
24312 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
24313
24314         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
24315         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
24316
24317 2011-11-11  Roland McGrath  <roland@hack.frob.com>
24318
24319         * include/unistd.h: Fix __readlink return type.
24320         Reported by Chris Metcalf <cmetcalf@tilera.com>.
24321
24322 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
24323
24324         * stdlib/ucontext.h: Undo last change for makecontext.
24325
24326 2011-11-11  Andreas Schwab  <schwab@redhat.com>
24327
24328         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
24329
24330         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
24331         * setjmp/setjmp.h: Mark functions as non-leaf.
24332         * setjmp/bits/setjmp2.h: Likewise.
24333         * stdlib/ucontext.h: Likewise.
24334
24335 2011-11-10  Andreas Schwab  <schwab@redhat.com>
24336
24337         * malloc/arena.c (_int_new_arena): Don't increment narenas.
24338         (reused_arena): Don't check arena limit.
24339         (arena_get2): Atomically check arena limit.
24340
24341 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
24342
24343         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
24344         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
24345
24346         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
24347         instructions.
24348
24349 2011-11-07  Andreas Schwab  <schwab@redhat.com>
24350
24351         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
24352         handler when locking.
24353
24354         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
24355         Fix size of allocated buffer.
24356
24357 2011-11-04  Andreas Schwab  <schwab@redhat.com>
24358
24359         [BZ #10103]
24360         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
24361         declarations for long double functions.
24362         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
24363
24364         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
24365
24366 2011-11-03  Andreas Schwab  <schwab@redhat.com>
24367
24368         * nscd/nscd.c (main): Don't start AVC thread until credentials are
24369         installed.
24370
24371         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
24372         is disabled.
24373
24374 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24375
24376         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
24377
24378 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
24379
24380         * include/alloca.h (stackinfo_alloca_round): Define.
24381         (extend_alloca): Use it.
24382         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
24383         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
24384         here.
24385
24386         * scripts/check-local-headers.sh: Ignore libaudit.h.
24387
24388         * nscd/Makefile (extra-objs): Make recursively expanded.
24389
24390 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
24391
24392         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
24393         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
24394
24395         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
24396         * posix/tst-rfc3484-2.c: Likewise.
24397         * posix/tst-rfc3484-3.c: Likewise.
24398
24399         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
24400         process_vm_writev.
24401         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
24402         process_vm_writev.
24403         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
24404         process_vm_writev from libc using GLIBC_2.15 version.
24405
24406         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
24407
24408 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
24409
24410         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
24411         stack usage.
24412
24413 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
24414
24415         [BZ #13367]
24416         * nss/getent.c (initgroups_keys): Show error message in case no group
24417         names are given.
24418
24419         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
24420         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
24421         __bump_nl_timestamp.
24422         * nscd/connections (nscd_init): When host database is served open
24423         netlink socket and request notification about configuration changes.
24424         (main_loop_poll): Track netlink file descriptor and bump timestamp
24425         in case data becomes available.
24426         (main_loop_epoll): Likewise.
24427         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
24428         (database_pers_head): Add extra_data fileds.
24429         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
24430         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
24431         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
24432         Adjust caller.
24433         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
24434         in6ai data, call __free_in6ai.
24435         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
24436         Add -DHAVE_NETLINK.
24437         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
24438         interface information.  Reuse previous data if netlink timestamp
24439         is not changed.
24440         (__bump_nl_timestamp): New function.
24441         (__free_in6ai): New function.
24442
24443 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
24444
24445         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
24446         close_not_cancel_no_status here.
24447         (__check_pf): Reorganize code a bit to not call close twice if OOM.
24448
24449 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
24450
24451         [BZ #13276]
24452         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
24453         return value.
24454
24455         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
24456         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
24457         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
24458
24459 2011-07-03  Andreas Jaeger  <aj@suse.de>
24460
24461         [BZ #10709]
24462         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
24463         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
24464         * math/libm-test.inc (sin_test): Add test case.
24465
24466 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
24467
24468         [BZ #13337]
24469         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
24470         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
24471
24472         * elf/chroot_canon.c (chroot_canon): Cleanups.
24473
24474         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
24475
24476         [BZ #13335]
24477         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
24478         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
24479
24480         * string/test-strchr.c: Make usable for strchrnul testing.
24481         * string/test-strchrnul.c: New file.
24482         * string/Makefile (strop-tests): Add strchrnul.
24483
24484         * po/it.po: Update from translation team.
24485         * po/es.po: Likewise.
24486
24487 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
24488
24489         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
24490         the three constants needed as parameters.  Drop the others.
24491         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
24492         __m128i_strloadu_tolower.
24493         Create and initialize variable zero and use it in all the places
24494         where _mm_setzero_si128 was used.
24495
24496         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
24497         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
24498         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
24499         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
24500         anymore.
24501         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
24502         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
24503         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
24504         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
24505         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
24506         __mpranred, __mptan.
24507         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
24508         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
24509         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
24510         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
24511         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
24512         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
24513         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
24514         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
24515         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
24516
24517 2011-10-28  Andreas Schwab  <schwab@redhat.com>
24518
24519         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
24520         redefine if SHARED.
24521         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
24522
24523         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
24524         wide char related routines to wcsmbs subdir.
24525
24526 2011-10-27  Andreas Schwab  <schwab@redhat.com>
24527
24528         [BZ #13344]
24529         * misc/sys/cdefs.h (__THROWNL): Define.
24530         * posix/unistd.h: Use __THREADNL instead of __THREAD
24531         for memory synchronization functions.
24532
24533 2011-10-26  Roland McGrath  <roland@hack.frob.com>
24534
24535         [BZ #13349]
24536         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
24537         doesn't exist.
24538         * manual/stdio.texi (Obstack Streams): Node removed.
24539
24540 2011-10-26  Andreas Schwab  <schwab@redhat.com>
24541
24542         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
24543         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
24544         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
24545
24546         * math/math_private.h (math_force_eval): Allow non-addressable
24547         arguments.
24548         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
24549
24550 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
24551
24552         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
24553         file is not needed.
24554
24555         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
24556         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
24557         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
24558         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
24559         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
24560         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
24561         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
24562         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
24563         Add AVX variants.
24564         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
24565         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
24566         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
24567         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
24568         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
24569         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
24570         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
24571         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
24572         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
24573         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
24574         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
24575         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
24576         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
24577         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
24578         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
24579         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
24580         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
24581         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
24582         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
24583
24584         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
24585         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
24586
24587         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
24588         place.  Use VEX encoding when compiling for AVX.
24589
24590 2011-10-25  Andreas Schwab  <schwab@redhat.com>
24591
24592         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
24593         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
24594
24595         * string/test-strchr.c (do_test): Don't generate NUL bytes.
24596
24597 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
24598
24599         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
24600         useless if() expression.
24601         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24602         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
24603         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
24604         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24605         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
24606         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
24607         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24608         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24609         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
24610         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24611         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24612         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24613         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
24614         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24615         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
24616         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
24617         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24618         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24619         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
24620
24621         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
24622
24623 2011-10-25  Andreas Schwab  <schwab@redhat.com>
24624
24625         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
24626         condition.
24627         * elf/dl-fini.c (_dl_sort_fini): Likewise.
24628
24629 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
24630
24631         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
24632         .text section.  Avoid duplicate constants.
24633         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
24634         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24635         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24636         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24637         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24638         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24639         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24640         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24641         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
24642         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
24643         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
24644         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
24645         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
24646         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
24647         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
24648         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
24649         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
24650         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
24651         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
24652         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24653         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
24654         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
24655         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
24656         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
24657         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
24658         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
24659         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
24660         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
24661         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
24662         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
24663         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
24664         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
24665         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
24666         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
24667         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
24668         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
24669         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
24670         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
24671         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
24672         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
24673         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
24674         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
24675         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
24676         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24677         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
24678
24679 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
24680
24681         * sysdeps/x86_64/dla.h: Move to ...
24682         * sysdeps/x86_64/fpu/dla.h: ...here.
24683         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
24684         situations.  Use __builtin_fma only for gcc 4.6 and up.
24685
24686         * config.make.in: Add have-mfma4 entry.
24687         * configure.in: Substitute libc_cv_cc_fma4.
24688         * math/Makefile (dbl-only-routines): Add sincostab.
24689         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
24690         Use __sincostab not sincos.
24691         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
24692         name is a macro.
24693         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24694         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24695         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24696         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
24697         using __copysign.
24698         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
24699         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
24700         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
24701         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
24702         and __inv.
24703         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
24704         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
24705         __copysign.
24706         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
24707         define aliases when function name is a macro.
24708         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
24709         sysdeps/ieee754/dbl-64/sincos.tbl.
24710         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
24711         fma4-enabled routines.
24712         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
24713         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
24714         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
24715         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
24716         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
24717         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
24718         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
24719         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
24720         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
24721         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
24722         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
24723         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
24724         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
24725         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
24726         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
24727         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
24728         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
24729         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
24730         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
24731         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
24732         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
24733         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
24734         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
24735         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
24736         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
24737         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
24738         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
24739         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
24740         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
24741         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
24742
24743         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
24744         rename.
24745         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24746         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24747         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24748         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24749         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24750         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24751         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24752         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24753
24754 2011-10-24  Andreas Schwab  <schwab@redhat.com>
24755
24756         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
24757
24758 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24759
24760         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
24761
24762         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
24763         prediction.
24764         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
24765
24766         * string/strnlen.c: Don't define STRNLEN, reverse logic.
24767         Remove unused variable magic_bits.
24768         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
24769
24770         * string/strnlen.c: Define and use STRNLEN macro.
24771         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
24772         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
24773         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
24774         * wcsmbs/wcslen.c: Define and use WCSLEN.
24775         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
24776         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
24777         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
24778         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
24779         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
24780         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
24781         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24782
24783 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24784
24785         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24786         strnlen-sse2-no-bsf.
24787         Rename strlen-no-bsf to strlen-sse2-no-bsf.
24788         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
24789         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
24790         Add strnlen support.
24791         (USE_AS_STRNLEN): New macro.
24792         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
24793         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
24794         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
24795         * sysdeps/x86_64/wcslen.S: New file.
24796
24797 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
24798
24799         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
24800         XMM-moves are used for copying on small sizes.
24801
24802 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24803
24804         * wcsmbs/Makefile (strop-tests): Add wcschr.
24805         * wcsmbs/test-wcschr.c: New file.
24806         * string/test-strchr.c: Update.
24807         Add wcschr support.
24808         (WIDE): New macro.
24809
24810 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24811
24812         * wcsmbs/Makefile (strop-tests): Add wcslen.
24813         * wcsmbs/test-wcslen.c: New file.
24814         * string/test-strlen.c: Update.
24815         Add wcslen support.
24816         (WIDE): New macro.
24817
24818 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24819
24820         * po/it.po: Update from translation team.
24821
24822 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24823
24824         * sysdeps/x86_64/wcscmp.S: Update.
24825         Fix wrong comparison semantics.
24826         wcscmp shall use signed comparison not unsigned.
24827         Don't use substraction to avoid overflow bug.
24828         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24829         * wcsmbc/wcscmp.c: Likewise.
24830         * string/test-strcmp.c: Likewise.
24831         Add new tests to check cases with negative values.
24832
24833 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24834
24835         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
24836         * sysdeps/x86_64/dla.h: ...here.  New file.
24837         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
24838         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24839         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24840         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24841         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24842         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24843         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24844         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24845         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24846
24847 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
24848
24849         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
24850         __ynl_finite aliases.
24851
24852 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
24853
24854         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24855
24856         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
24857         define DLA_FMA.
24858         [DLA_FMA] (EMULV): Use DLA_FMA.
24859         [DLA_FMA] (MUL12): Use EMULV.
24860         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
24861         that are not needed.
24862         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24863         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24864         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24865         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24866         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24867         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24868         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24869
24870 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
24871
24872         * math/s_nan.c: Undef __nan.
24873         * math/s_nanf.c: Undef __nanf.
24874         * math/s_nanl.c: Undef __nanl.
24875         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
24876         "math_private.h".
24877
24878 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
24879
24880         * math/s_catan.c: Add branch predictions.
24881         * math/s_catanf.c: Likewise.
24882         * math/s_catanh.c: Likewise.
24883         * math/s_catanhf.c: Likewise.
24884         * math/s_catanhl.c: Likewise.
24885         * math/s_catanl.c: Likewise.
24886         * math/s_cexp.c: Likewise.
24887         * math/s_cexpf.c: Likewise.
24888         * math/s_cexpl.c: Likewise.
24889         * math/s_clog.c: Likewise.
24890         * math/s_clog10.c: Likewise.
24891         * math/s_clog10f.c: Likewise.
24892         * math/s_clog10l.c: Likewise.
24893         * math/s_clogf.c: Likewise.
24894         * math/s_clogl.c: Likewise.
24895         * math/s_csqrt.c: Likewise.
24896         * math/s_csqrtf.c: Likewise.
24897         * math/s_csqrtl.c: Likewise.
24898         * math/s_ctanf.c: Likewise.
24899         * math/s_ctanh.c: Likewise.
24900         * math/s_ctanhf.c: Likewise.
24901         * math/s_ctanhl.c: Likewise.
24902         * math/s_ctanl.c: Likewise.
24903
24904         * math/math_private.h: Define __nan, __nanf, __nanl.
24905         * math/s_cacosh.c: Include <math_private.h>.
24906         * math/s_cacoshl.c: Likewise.
24907         * math/s_casinh.c: Likewise.
24908         * math/s_casinhf.c: Likewise.
24909         * math/s_casinhl.c: Likewise.
24910         * math/s_ccos.c: Rely entire on ccosh.
24911         * math/s_ccosf.c: Rely entire on ccoshf.
24912         * math/s_ccosl.c: Rely entirely on ccoshl.
24913         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
24914         Remove tests for FE_INVALID.
24915         * math/s_ccoshf.c: Likewise.
24916         * math/s_ccoshl.c: Likewise.
24917         * math/s_csin.c: Likewise.
24918         * math/s_csinf.c: Likewise.
24919         * math/s_csinh.c Likewise.
24920         * math/s_csinhf.c: Likewise.
24921         * math/s_csinhl.c: Likewise.
24922         * math/s_csinl.c: Likewise.
24923         * math/s_ctan.c: Likewise.
24924         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
24925         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
24926         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
24927
24928 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
24929
24930         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
24931         compilation problems.
24932
24933         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
24934         __builtin_expect.
24935
24936 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
24937
24938         * sysdeps/i386/configure.in: Test for -mfma4 option.
24939         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
24940         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
24941         COMMON_CPUID_INDEX_80000001.
24942         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
24943         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
24944         use it if FMA3 is not supported.
24945         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
24946
24947         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
24948         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
24949
24950 2011-10-20  Andreas Schwab  <schwab@redhat.com>
24951
24952         [BZ #12892]
24953         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
24954         it would create a cycle with a link time dependency.
24955
24956 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
24957
24958         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
24959         instruction.
24960         * string/Makefile (strop-tests): Add rawmemchr.
24961         * string/test-rawmemchr.c: New file.
24962
24963         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
24964         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
24965         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
24966         when compiling str{,n}casecmp and when AVX is available.  Hook up
24967         new optimized code in initializers.
24968
24969 2011-10-19  Andreas Schwab  <schwab@redhat.com>
24970
24971         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
24972         __feraiseexcept instead of feraiseexcept.
24973
24974 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
24975
24976         * math/math_private.h: Define defaults for libc_fetestexcept and
24977         libc_feupdateenv.
24978         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
24979         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
24980         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
24981         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
24982         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
24983         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
24984         libc_fetestexcept and libc_feupdateenv.
24985
24986         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
24987         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
24988         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
24989         * sysdeps/x86_64/fpu/math_private.h: Define special version of
24990         libc_feholdexcept_setround.
24991
24992         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
24993         Add s_nearbyint-c and s_nearbyintf-c.
24994         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
24995         nearbyintf inlines.
24996         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
24997         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
24998         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
24999         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
25000
25001         * math/math_private.h: Define defaults for libc_fegetround,
25002         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
25003         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
25004         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
25005         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
25006         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
25007         standard functions.
25008         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
25009         Remove comments and hacks for old compiler versions.
25010         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
25011         libc_fegetround, libc_fesetround, libc_feholdexcept, and
25012         libc_feholdexceptl.
25013
25014 2011-10-18  Andreas Schwab  <schwab@redhat.com>
25015
25016         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
25017         (__feraiseexcept_renamed): Add __NTH.
25018         (feraiseexcept): Add __NTH.  Rename local variables to fix
25019         namespace violations.
25020
25021 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
25022
25023         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
25024
25025         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
25026
25027         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
25028         recently added interfaces.
25029         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
25030
25031         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
25032         about macro parameter expansion.
25033
25034         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
25035         __NO_MATH_INLINES is defined.  Cleanups.
25036
25037         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
25038         and __floorf is target has SSE4.1.
25039         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
25040         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
25041         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
25042         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
25043
25044         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
25045         name.
25046         (floorf): Likewise.
25047
25048         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
25049
25050 2011-10-17  Andreas Schwab  <schwab@redhat.com>
25051
25052         * misc/sys/cdefs.h: Fix last change.
25053
25054         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
25055         database lookup.
25056
25057 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
25058
25059         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
25060
25061         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
25062         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
25063         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
25064         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
25065         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
25066         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
25067         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
25068         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
25069         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
25070         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
25071         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
25072         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
25073         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
25074         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
25075         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
25076         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
25077         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
25078         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
25079         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
25080         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
25081         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
25082         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
25083
25084         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
25085         ceil, ceilf, floor, floorf.
25086
25087         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
25088         Perform IRELATIVE relocations last.
25089
25090         * elf/do-rel.h: Add another parameter nrelative, replacing the
25091         local variable with the same name.  Change name of the function
25092         to end in Rel or Rela (uppercase).
25093         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
25094         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
25095         elf_dynamic_do_##reloc function.
25096
25097 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
25098
25099         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
25100         is sufficient, at least on modern CPUs.
25101
25102         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
25103
25104         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
25105         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
25106
25107         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
25108         __expl_finite.
25109         * math/bits/math-finite.h: Add entries for exp.
25110         * math/e_expl.c: Add __*_finite alias.
25111         * sysdeps/i386/fpu/e_exp.S: Likewise.
25112         * sysdeps/i386/fpu/e_expf.S: Likewise.
25113         * sysdeps/i386/fpu/e_expl.c: Likewise.
25114         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
25115         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
25116         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
25117         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
25118         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
25119         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
25120         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
25121
25122         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
25123         is sufficient, at least on modern CPUs.
25124
25125         * ctype/ctype-info.c (__ctype_init): Define.
25126         * include/ctype.h (__ctype_init): Declare.
25127         (__ctype_b_loc): The variable is always initialized.
25128         (__ctype_toupper_loc): Likewise.
25129         (__ctype_tolower_loc): Likewise.
25130         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
25131         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
25132
25133 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
25134
25135         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
25136
25137         * configure.in: Also look in $cxxmachine/include for C++ system
25138         headers.
25139
25140 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25141
25142         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
25143         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
25144         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
25145         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
25146         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
25147         (USE_AS_WMEMCMP): New macro.
25148         Fixing indents.
25149         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
25150         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
25151         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
25152         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
25153         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25154         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
25155         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
25156         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
25157         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
25158         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
25159         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
25160         (USE_AS_WMEMCMP): New macro.
25161         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
25162         * sysdeps/string/test-memcmp.c: Update.
25163         Fix simple_wmemcmp.
25164         Add new tests.
25165         * wcsmbs/wmemcmp.c: Update.
25166         (WMEMCMP): New macro.
25167         Fix overflow bug.
25168
25169 2011-10-12  Andreas Jaeger  <aj@suse.de>
25170
25171         [BZ #13268]
25172         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
25173
25174 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
25175
25176         * libio/iofwide.c (do_length): Avoid warning.
25177
25178         * ctype/ctype.h (__isctype_f): Add missing __THROW.
25179
25180 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
25181
25182         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
25183
25184         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
25185         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
25186         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
25187         * sysdeps/i386/i686/fpu/e_log.S: New file.
25188         * sysdeps/i386/i686/fpu/e_logf.S: New file.
25189         * sysdeps/i386/i686/fpu/e_logl.S: New file.
25190
25191         * ctype/ctype.h: Add support for inlined isXXX functions when
25192         compiling C++ code.
25193
25194 2011-10-14  Andreas Schwab  <schwab@redhat.com>
25195
25196         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25197
25198         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
25199
25200 2011-10-13  Roland McGrath  <roland@hack.frob.com>
25201
25202         [BZ #13291]
25203         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
25204
25205 2011-10-13  Andreas Schwab  <schwab@redhat.com>
25206
25207         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
25208         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
25209         feraiseexcept.
25210
25211         * sysdeps/x86_64/memrchr.S: Check for zero size.
25212
25213         * string/stratcliff.c: Add memrchr tests.
25214
25215 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25216
25217         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25218         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
25219         rawmemchr-sse2 rawmemchr-sse2-bsf.
25220         * sysdeps/i386/i686/multiarch/memchr.S: New file.
25221         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
25222         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
25223         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
25224         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
25225         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
25226         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
25227         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
25228         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
25229         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
25230         * string/memrchr.c (MEMRCHR): New macro.
25231
25232 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
25233
25234         Add integration with gcc's -ffinite-math-only and optimize wrapper
25235         functions in libm.
25236         * Versions.def: Define GLIBC_2.15 version for libm.
25237         * math/Makefile (headers): Add bits/math-finite.h.
25238         * math/bits/math-finite.h: New file.
25239         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
25240         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
25241         * math/e_acoshl.c: Add __*_finite alias.
25242         * math/e_acosl.c: Likewise.
25243         * math/e_asinl.c: Likewise.
25244         * math/e_atan2l.c: Likewise.
25245         * math/e_atanhl.c: Likewise.
25246         * math/e_coshl.c: Likewise.
25247         * math/e_exp10.c: Likewise.
25248         * math/e_exp10f.c: Likewise.
25249         * math/e_exp10l.c: Likewise.
25250         * math/e_exp2l.c: Likewise.
25251         * math/e_fmodl.c: Likewise.
25252         * math/e_gammal_r.c: Likewise.
25253         * math/e_hypotl.c: Likewise.
25254         * math/e_j0l.c: Likewise.
25255         * math/e_j1l.c: Likewise.
25256         * math/e_jnl.c: Likewise.
25257         * math/e_lgammal_r.c: Likewise.
25258         * math/e_log10l.c: Likewise.
25259         * math/e_log2l.c: Likewise.
25260         * math/e_logl.c: Likewise.
25261         * math/e_powl.c: Likewise.
25262         * math/e_sinhl.c: Likewise.
25263         * math/e_sqrtl.c: Likewise.
25264         * math/e_scalb.c: Completely rewritten and optimized.
25265         * math/e_scalbf.c: Likewise.
25266         * math/e_scalbl.c: Likewise.
25267         * math/w_acos.c: Likewise.
25268         * math/w_acosf.c: Likewise.
25269         * math/w_acosl.c: Likewise.
25270         * math/w_acosh.c: Likewise.
25271         * math/w_acoshf.c: Likewise.
25272         * math/w_acoshl.c: Likewise.
25273         * math/w_asin.c: Likewise.
25274         * math/w_asinf.c: Likewise.
25275         * math/w_asinl.c: Likewise.
25276         * math/w_atan2.c: Likewise.
25277         * math/w_atan2f.c: Likewise.
25278         * math/w_atan2l.c: Likewise.
25279         * math/w_atanh.c: Likewise.
25280         * math/w_atanhf.c: Likewise.
25281         * math/w_atanhl.c: Likewise.
25282         * math/w_exp10.c: Likewise.
25283         * math/w_exp10f.c: Likewise.
25284         * math/w_exp10l.c: Likewise.
25285         * math/w_fmod.c: Likewise.
25286         * math/w_fmodf.c: Likewise.
25287         * math/w_fmodl.c: Likewise.
25288         * math/w_j0.c: Likewise.
25289         * math/w_j0f.c: Likewise.
25290         * math/w_j0l.c: Likewise.
25291         * math/w_j1.c: Likewise.
25292         * math/w_j1f.c: Likewise.
25293         * math/w_j1l.c: Likewise.
25294         * math/w_jn.c: Likewise.
25295         * math/w_jnf.c: Likewise.
25296         * math/w_log.c: Likewise.
25297         * math/w_logf.c: Likewise.
25298         * math/w_logl.c: Likewise.
25299         * math/w_log10.c: Likewise.
25300         * math/w_log10f.c: Likewise.
25301         * math/w_log10l.c: Likewise.
25302         * math/w_log2.c: Likewise.
25303         * math/w_log2f.c: Likewise.
25304         * math/w_log2l.c: Likewise.
25305         * math/w_pow.c: Likewise.
25306         * math/w_powf.c: Likewise.
25307         * math/w_powl.c: Likewise.
25308         * math/w_remainder.c: Likewise.
25309         * math/w_remainderf.c: Likewise.
25310         * math/w_remainderl.c: Likewise.
25311         * math/w_scalb.c: Likewise.
25312         * math/w_scalbf.c: Likewise.
25313         * math/w_scalbl.c: Likewise.
25314         * math/w_sqrt.c: Likewise.
25315         * math/w_sqrtf.c: Likewise.
25316         * math/w_sqrtl.c: Likewise.
25317         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
25318         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
25319         used.
25320         * math/math_private.h: Declare __kernel_standard_f.
25321         * math/w_cosh.c: Remove cruft and optimize a bit.
25322         * math/w_coshf.c: Likewise.
25323         * math/w_coshl.c: Likewise.
25324         * math/w_exp2.c: Likewise.
25325         * math/w_exp2f.c: Likewise.
25326         * math/w_exp2l.c: Likewise.
25327         * math/w_hypot.c: Likewise.
25328         * math/w_hypotf.c: Likewise.
25329         * math/w_hypotl.c: Likewise.
25330         * math/w_lgamma.c: Likewise.
25331         * math/w_lgamma_r.c: Likewise.
25332         * math/w_lgammaf.c: Likewise.
25333         * math/w_lgammaf_r.c: Likewise.
25334         * math/w_lgammal.c: Likewise.
25335         * math/w_lgammal_r.c: Likewise.
25336         * math/w_sinh.c: Likewise.
25337         * math/w_sinhf.c: Likewise.
25338         * math/w_sinhl.c: Likewise.
25339         * math/w_tgamma.c: Likewise.
25340         * math/w_tgammaf.c: Likewise.
25341         * math/w_tgammal.c: Likewise.
25342         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
25343         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
25344         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
25345         Minor optimizations.  Pretty printing.  Remove cruft.
25346         * sysdeps/i386/fpu/e_acosf.S: Likewise.
25347         * sysdeps/i386/fpu/e_acosh.S: Likewise.
25348         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
25349         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
25350         * sysdeps/i386/fpu/e_acosl.c: Likewise.
25351         * sysdeps/i386/fpu/e_asin.S: Likewise.
25352         * sysdeps/i386/fpu/e_asinf.S: Likewise.
25353         * sysdeps/i386/fpu/e_atan2.S: Likewise.
25354         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
25355         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
25356         * sysdeps/i386/fpu/e_atanh.S: Likewise.
25357         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
25358         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
25359         * sysdeps/i386/fpu/e_exp10.S: Likewise.
25360         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
25361         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
25362         * sysdeps/i386/fpu/e_exp2.S: Likewise.
25363         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
25364         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
25365         * sysdeps/i386/fpu/e_fmod.S: Likewise.
25366         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
25367         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
25368         * sysdeps/i386/fpu/e_hypot.S: Likewise.
25369         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
25370         * sysdeps/i386/fpu/e_log.S: Likewise.
25371         * sysdeps/i386/fpu/e_log10.S: Likewise.
25372         * sysdeps/i386/fpu/e_log10f.S: Likewise.
25373         * sysdeps/i386/fpu/e_log10l.S: Likewise.
25374         * sysdeps/i386/fpu/e_log2.S: Likewise.
25375         * sysdeps/i386/fpu/e_log2f.S: Likewise.
25376         * sysdeps/i386/fpu/e_log2l.S: Likewise.
25377         * sysdeps/i386/fpu/e_logf.S: Likewise.
25378         * sysdeps/i386/fpu/e_logl.S: Likewise.
25379         * sysdeps/i386/fpu/e_pow.S: Likewise.
25380         * sysdeps/i386/fpu/e_powf.S: Likewise.
25381         * sysdeps/i386/fpu/e_powl.S: Likewise.
25382         * sysdeps/i386/fpu/e_remainder.S: Likewise.
25383         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
25384         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
25385         * sysdeps/i386/fpu/e_scalb.S: Likewise.
25386         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
25387         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
25388         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
25389         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
25390         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
25391         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
25392         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
25393         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
25394         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
25395         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
25396         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
25397         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
25398         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
25399         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
25400         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
25401         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
25402         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
25403         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
25404         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
25405         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
25406         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
25407         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
25408         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
25409         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
25410         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
25411         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
25412         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
25413         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
25414         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
25415         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
25416         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
25417         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
25418         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
25419         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
25420         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
25421         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
25422         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
25423         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
25424         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
25425         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
25426         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
25427         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
25428         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
25429         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
25430         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
25431         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
25432         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
25433         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
25434         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
25435         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
25436         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
25437         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
25438         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
25439         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
25440         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
25441         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
25442         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
25443         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
25444         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
25445         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
25446         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
25447         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
25448         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
25449         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
25450         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
25451         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
25452         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
25453         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
25454         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
25455         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
25456         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
25457         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
25458         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
25459         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
25460         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
25461         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
25462         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
25463         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
25464         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
25465         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
25466         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
25467         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
25468         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
25469         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
25470         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
25471         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
25472         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
25473         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
25474         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
25475         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
25476         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
25477         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
25478         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
25479         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
25480         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
25481         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
25482         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
25483         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
25484         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
25485         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
25486         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
25487         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
25488         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
25489         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
25490         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
25491         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
25492         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
25493         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
25494         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
25495         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
25496         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
25497         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
25498         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
25499         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
25500         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
25501         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
25502         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
25503         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
25504         (__isnanf): Likewise.
25505         (__isinf_ns): Likewise.
25506         (__isinf_nsf): Likewise.
25507         (__finite): Likewise.
25508         (__finitef): Likewise.
25509         (__ieee754_sqrt): Define as macro.
25510         (__ieee754_sqrtf): Define as macro.
25511         (__ieee754_sqrtl): Define as macro.
25512         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
25513         inlined copy.
25514         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
25515         __FINITE_MATH_ONLY__ consistent.
25516         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
25517
25518 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
25519
25520         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
25521         of rawmemchr.
25522
25523         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
25524
25525 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
25526
25527         * po/ja.po: Update from translation team.
25528
25529 2011-10-08  Roland McGrath  <roland@hack.frob.com>
25530
25531         * locale/programs/locarchive.c (prepare_address_space): New function.
25532         (create_archive, enlarge_archive, open_archive): Use it.
25533
25534         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
25535         inside [SHARED], where it is used.
25536
25537         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
25538
25539         * nss/getent.c (netgroup_keys): Remove unused variable.
25540         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
25541
25542 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
25543
25544         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
25545         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
25546         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
25547         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
25548         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
25549         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
25550         * math/Makefile (libm-calls): Add s_isinf_ns.
25551         * math/divtc3.c: Use __isinf_nsl instead of isinf.
25552         * math/multc3.c: Likewise.
25553         * math/s_casin.c: Likewise.
25554         * math/s_casinf.c: Likewise.
25555         * math/s_casinl.c: Likewise.
25556         * math/s_ccos.c: Likewise.
25557         * math/s_ccosf.c: Likewise.
25558         * math/s_ccosl.c: Likewise.
25559         * math/s_ctan.c: Likewise.
25560         * math/s_ctanf.c: Likewise.
25561         * math/s_ctanh.c: Likewise.
25562         * math/s_ctanhf.c: Likewise.
25563         * math/s_ctanhl.c: Likewise.
25564         * math/s_ctanl.c: Likewise.
25565         * math/w_fmod.c: Likewise.
25566         * math/w_fmodf.c: Likewise.
25567         * math/w_fmodl.c: Likewise.
25568         * math/w_remainder.c: Likewise.
25569         * math/w_remainderf.c: Likewise.
25570         * math/w_remainderl.c: Likewise.
25571         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
25572         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
25573         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
25574         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
25575         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
25576         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
25577         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
25578         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
25579
25580         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
25581         of the number.
25582         * stdio-common/printf_fphex.c: Likewise.
25583         * stdio-common/printf_size.c: Likewise.
25584
25585         * math/e_exp10.c: Include math_private.h using <...> not "...".
25586         * math/e_exp10f.c: Likewise.
25587         * math/e_exp10l.c: Likewise.
25588         * math/e_exp2l.c: Likewise.
25589         * math/e_j0l.c: Likewise.
25590         * math/e_j1l.c: Likewise.
25591         * math/e_jnl.c: Likewise.
25592         * math/e_lgammal_r.c: Likewise.
25593         * math/e_rem_pio2l.c: Likewise.
25594         * math/e_scalb.c: Likewise.
25595         * math/e_scalbf.c: Likewise.
25596         * math/e_scalbl.c: Likewise.
25597         * math/k_cosl.c: Likewise.
25598         * math/k_sinl.c: Likewise.
25599         * math/k_tanl.c: Likewise.
25600         * math/s_cacoshf.c: Likewise.
25601         * math/s_catan.c: Likewise.
25602         * math/s_catanf.c: Likewise.
25603         * math/s_catanh.c: Likewise.
25604         * math/s_catanhf.c: Likewise.
25605         * math/s_catanhl.c: Likewise.
25606         * math/s_catanl.c: Likewise.
25607         * math/s_ccosh.c: Likewise.
25608         * math/s_ccoshf.c: Likewise.
25609         * math/s_ccoshl.c: Likewise.
25610         * math/s_cexp.c: Likewise.
25611         * math/s_cexpf.c: Likewise.
25612         * math/s_cexpl.c: Likewise.
25613         * math/s_clog.c: Likewise.
25614         * math/s_clog10.c: Likewise.
25615         * math/s_clog10f.c: Likewise.
25616         * math/s_clog10l.c: Likewise.
25617         * math/s_clogf.c: Likewise.
25618         * math/s_clogl.c: Likewise.
25619         * math/s_csin.c: Likewise.
25620         * math/s_csinf.c: Likewise.
25621         * math/s_csinh.c: Likewise.
25622         * math/s_csinhf.c: Likewise.
25623         * math/s_csinhl.c: Likewise.
25624         * math/s_csinl.c: Likewise.
25625         * math/s_csqrt.c: Likewise.
25626         * math/s_csqrtf.c: Likewise.
25627         * math/s_csqrtl.c: Likewise.
25628         * math/s_ctan.c: Likewise.
25629         * math/s_ctanf.c: Likewise.
25630         * math/s_ctanh.c: Likewise.
25631         * math/s_ctanhf.c: Likewise.
25632         * math/s_ctanhl.c: Likewise.
25633         * math/s_ctanl.c: Likewise.
25634         * math/s_ldexp.c: Likewise.
25635         * math/s_ldexpf.c: Likewise.
25636         * math/s_ldexpl.c: Likewise.
25637         * math/s_significand.c: Likewise.
25638         * math/s_significandf.c: Likewise.
25639         * math/s_significandl.c: Likewise.
25640         * math/w_acos.c: Likewise.
25641         * math/w_acosf.c: Likewise.
25642         * math/w_acosh.c: Likewise.
25643         * math/w_acoshf.c: Likewise.
25644         * math/w_acoshl.c: Likewise.
25645         * math/w_acosl.c: Likewise.
25646         * math/w_asin.c: Likewise.
25647         * math/w_asinf.c: Likewise.
25648         * math/w_asinl.c: Likewise.
25649         * math/w_atan2.c: Likewise.
25650         * math/w_atan2f.c: Likewise.
25651         * math/w_atan2l.c: Likewise.
25652         * math/w_atanh.c: Likewise.
25653         * math/w_atanhf.c: Likewise.
25654         * math/w_atanhl.c: Likewise.
25655         * math/w_cosh.c: Likewise.
25656         * math/w_coshf.c: Likewise.
25657         * math/w_coshl.c: Likewise.
25658         * math/w_dremf.c: Likewise.
25659         * math/w_exp10.c: Likewise.
25660         * math/w_exp10f.c: Likewise.
25661         * math/w_exp10l.c: Likewise.
25662         * math/w_exp2.c: Likewise.
25663         * math/w_exp2f.c: Likewise.
25664         * math/w_fmod.c: Likewise.
25665         * math/w_fmodf.c: Likewise.
25666         * math/w_fmodl.c: Likewise.
25667         * math/w_hypot.c: Likewise.
25668         * math/w_hypotf.c: Likewise.
25669         * math/w_hypotl.c: Likewise.
25670         * math/w_j0.c: Likewise.
25671         * math/w_j0f.c: Likewise.
25672         * math/w_j0l.c: Likewise.
25673         * math/w_j1.c: Likewise.
25674         * math/w_j1f.c: Likewise.
25675         * math/w_j1l.c: Likewise.
25676         * math/w_jn.c: Likewise.
25677         * math/w_jnf.c: Likewise.
25678         * math/w_jnl.c: Likewise.
25679         * math/w_lgamma.c: Likewise.
25680         * math/w_lgamma_r.c: Likewise.
25681         * math/w_lgammaf.c: Likewise.
25682         * math/w_lgammaf_r.c: Likewise.
25683         * math/w_lgammal.c: Likewise.
25684         * math/w_lgammal_r.c: Likewise.
25685         * math/w_log.c: Likewise.
25686         * math/w_log10.c: Likewise.
25687         * math/w_log10f.c: Likewise.
25688         * math/w_log10l.c: Likewise.
25689         * math/w_log2.c: Likewise.
25690         * math/w_log2f.c: Likewise.
25691         * math/w_log2l.c: Likewise.
25692         * math/w_logf.c: Likewise.
25693         * math/w_logl.c: Likewise.
25694         * math/w_pow.c: Likewise.
25695         * math/w_powf.c: Likewise.
25696         * math/w_powl.c: Likewise.
25697         * math/w_remainder.c: Likewise.
25698         * math/w_remainderf.c: Likewise.
25699         * math/w_remainderl.c: Likewise.
25700         * math/w_scalb.c: Likewise.
25701         * math/w_scalbf.c: Likewise.
25702         * math/w_scalbl.c: Likewise.
25703         * math/w_sinh.c: Likewise.
25704         * math/w_sinhf.c: Likewise.
25705         * math/w_sinhl.c: Likewise.
25706         * math/w_sqrt.c: Likewise.
25707         * math/w_sqrtf.c: Likewise.
25708         * math/w_sqrtl.c: Likewise.
25709         * math/w_tgamma.c: Likewise.
25710         * math/w_tgammaf.c: Likewise.
25711         * math/w_tgammal.c: Likewise.
25712
25713         * po/ja.po: Update from translation team.
25714
25715 2011-09-29  Andreas Jaeger  <aj@suse.de>
25716
25717         [BZ #13179]
25718         * sunrpc/netname.c (netname2host): Fix logic.
25719
25720         [BZ #6779]
25721         [BZ #6783]
25722         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
25723         correctly.
25724         * math/w_remainder.c (__remainder): Likewise.
25725         * math/w_remainderf.c (__remainderf): Likewise.
25726         * math/libm-test.inc (remainder_test): Add test cases.
25727
25728 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25729
25730         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
25731         sdiv_qrnnd.
25732
25733 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
25734
25735         * string/test-memcmp.c: Avoid unncessary #defines.
25736         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
25737
25738 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25739
25740         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
25741         Use new sse2 version for core i3 - i7 as it's faster
25742         than sse42 version.
25743         (bit_Prefer_PMINUB_for_stringop): New.
25744         * sysdeps/x86_64/rawmemchr.S: Update.
25745         Replace with faster SSE2 version.
25746         * sysdeps/x86_64/memrchr.S: New file.
25747         * sysdeps/x86_64/memchr.S: Update.
25748         Replace with faster SSE2 version.
25749
25750 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
25751
25752         * elf/dl-load.c (lose): Add cast to avoid warning.
25753
25754 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
25755
25756         * po/ca.po: Update from translation team.
25757
25758         * inet/getnetgrent_r.c: Hook up nscd.
25759         * nscd/Makefile (routines): Add nscd_netgroup.
25760         (nscd-modules): Add netgroupcache.
25761         (CFLAGS-netgroupcache.c): Define.
25762         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
25763         (cache_search): Add const to second parameter.
25764         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
25765         INNETGR.
25766         (dbs): Add netgrdb entry.
25767         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
25768         (verify_persistent_db): Handle netgrdb.
25769         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
25770         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
25771         GETFDNETGR.
25772         (netgroup_response_header): Define.
25773         (innetgroup_response_header): Define.
25774         (datahead): Add netgroup_response_header and innetgroup_response_header
25775         elements.
25776         * nscd/nscd.conf: Add entries for netgroup cache.
25777         * nscd/nscd.h (dbtype): Add netgrdb.
25778         (_PATH_NSCD_NETGROUP_DB): Define.
25779         (netgroup_iov_disabled): Declare.
25780         (xmalloc, xcalloc, xrealloc): Move declarations here.
25781         (cache_search): Adjust prototype.
25782         Add netgroup-related prototypes.
25783         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
25784         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
25785         (__nscd_innetgr): Declare.
25786         * nscd/selinux.c (perms): Use access_vector_t as element type and
25787         add netgroup-related initializers.
25788         * nscd/netgroupcache.c: New file.
25789         * nscd/nscd_netgroup.c: New file.
25790         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
25791         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
25792         For four parameters use innetgr.
25793         * nss/nss_files/files-init.c: Add definition and callback for netgr.
25794         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
25795         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
25796         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
25797
25798         * nscd/connections.c (register_traced_file): Don't register file
25799         for disabled databases.
25800
25801 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
25802
25803         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
25804
25805         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
25806         from tree and freeing node.
25807
25808 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
25809
25810         * nss/nsswitch.c (__nss_database_lookup): Handle
25811         nss_parse_service_list out of memory case.
25812
25813 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
25814
25815         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
25816         out of memory case.
25817
25818 2011-10-04  Andreas Schwab  <schwab@redhat.com>
25819
25820         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
25821         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
25822         pass it down.
25823         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
25824         elf_machine_rela, elf_machine_lazy_rel.
25825         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
25826         (ELF_DYNAMIC_DO_REL): Likewise.
25827         (ELF_DYNAMIC_DO_RELA): Likewise.
25828         (ELF_DYNAMIC_RELOCATE): Likewise.
25829         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
25830         to ELF_DYNAMIC_DO_REL.
25831         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
25832         (dl_main): In trace mode always set __RTLD_NOIFUNC.
25833         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
25834         elf_machine_rela.
25835         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
25836         skip_ifunc, don't call ifunc function if non-zero.
25837         (elf_machine_rela): Likewise.
25838         (elf_machine_lazy_rel): Likewise.
25839         (elf_machine_lazy_rela): Likewise.
25840         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
25841         (elf_machine_lazy_rel): Likewise.
25842         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25843         Likewise.
25844         (elf_machine_lazy_rel): Likewise.
25845         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25846         Likewise.
25847         (elf_machine_lazy_rel): Likewise.
25848         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
25849         (elf_machine_lazy_rel): Likewise.
25850         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
25851         (elf_machine_lazy_rel): Likewise.
25852         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
25853         (elf_machine_lazy_rel): Likewise.
25854         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25855         (elf_machine_lazy_rel): Likewise.
25856         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25857         (elf_machine_lazy_rel): Likewise.
25858         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
25859         (elf_machine_lazy_rel): Likewise.
25860
25861 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
25862
25863         * nss/nss_files/files-init.c (_nss_files_init): Use static
25864         initialization for all the *_traced_file variables.
25865
25866 2011-09-28  Andreas Schwab  <schwab@redhat.com>
25867
25868         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25869
25870 2011-09-27  Roland McGrath  <roland@hack.frob.com>
25871
25872         [BZ #13226]
25873         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
25874
25875 2011-09-27  Andreas Schwab  <schwab@redhat.com>
25876
25877         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
25878         Reread the line before reparsing it.
25879
25880 2011-09-26  Andreas Schwab  <schwab@redhat.com>
25881
25882         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
25883
25884 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
25885             Maxim Kuvyrkov  <maxim@codesourcery.com>
25886             Joseph Myers  <joseph@codesourcery.com>
25887
25888         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
25889         if needed for __stack_chk_guard.
25890
25891 2011-09-19  Roland McGrath  <roland@hack.frob.com>
25892
25893         * sysdeps/posix/spawni.c (script_execute): Always define it.
25894         It will be optimized away if unused.
25895         (maybe_script_execute): New function.
25896         (__spawni): Call it.
25897
25898         * Makerules: Don't include tls.make.
25899         (config-tls): Always set to thread.
25900         * tls.make.c: File removed.
25901
25902 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
25903
25904         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
25905         * config.make.in (CPPFLAGS-config): New substituted variable.
25906
25907 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
25908
25909         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
25910
25911         [BZ #13192]
25912         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
25913         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
25914
25915 2011-09-15  Roland McGrath  <roland@hack.frob.com>
25916
25917         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
25918         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
25919         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
25920         (CALL_FAIL): Likewise.
25921         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
25922         (CALL_FAIL): Macro removed.
25923         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
25924
25925 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
25926
25927         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
25928         for __FINITE_MATH_ONLY__ == 1.
25929
25930 2011-09-15  Andreas Schwab  <schwab@redhat.com>
25931
25932         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
25933         __ieee754_sqrt instead of sqrt.
25934         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
25935         __ieee754_sqrtf instead of sqrtf.
25936         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
25937         __floorf instead of floorf.
25938         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
25939         __floorf, __truncf instead of floorf, truncf.
25940
25941 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
25942
25943         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
25944
25945         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
25946         __extern_always_inline.
25947         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
25948         32-bit.
25949
25950 2011-09-14  Andreas Schwab  <schwab@redhat.com>
25951
25952         * elf/rtld.c (dl_main): Also relocate in dependency order when
25953         doing symbol dependency testing.
25954
25955 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
25956
25957         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25958         Always define `refsym'.
25959
25960 2011-09-13  Andreas Schwab  <schwab@redhat.com>
25961
25962         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
25963         (__FD_ELT): Renamed from __FDELT.
25964         * misc/bits/select2.h (__FD_ELT): Likewise.
25965         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
25966         __FD_MASK instead of __FDELT, __FDMASK.
25967         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
25968         Likewise.
25969         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
25970         Likewise.
25971
25972         * elf/Makefile (gen-ldd): Fix pattern.
25973
25974         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
25975         (init_tls): Likewise.
25976
25977 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
25978
25979         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
25980
25981 2011-09-12  Andreas Schwab  <schwab@redhat.com>
25982
25983         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
25984         `struct cmsghdr *' instead of `void *'.
25985         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
25986         Likewise.
25987
25988 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
25989
25990         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
25991         if non-absolute.
25992         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
25993         ldd_rewrite_script.
25994
25995 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
25996
25997         * configure.in: Remove --with-tls option.
25998         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
25999         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
26000         out in case it is missing.
26001         * sysdeps/ia64/elf/configure.in: Likewise.
26002         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
26003         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
26004         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
26005         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
26006         * sysdeps/sh/elf/configure.in: Likewise.
26007         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
26008         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
26009         * sysdeps/x86_64/elf/configure.in: Likewise.
26010         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
26011         * sysdeps/mach/hurd/tls.h: Likewise.
26012
26013         [BZ #13067]
26014         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
26015
26016         [BZ #13090]
26017         * configure.in: Fix use of AC_INIT.
26018
26019         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
26020
26021 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
26022
26023         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
26024         __set_errno.
26025         * malloc/hooks.c: Likewise.
26026
26027         [BZ #11929]
26028         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
26029         variables statically.
26030         (narenas): Initialize.
26031         (list_lock): Initialize.
26032         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
26033         initializtion of main_arena and list_lock.  Small cleanups.
26034         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
26035         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
26036         Add initializers to main_arena and mp_.
26037         (malloc_state): Remove pagesize member.  Change all users to use
26038         GLRO(dl_pagesize).
26039
26040         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
26041         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
26042         is always initialized.
26043
26044         * malloc/malloc.c: Removed unused configurations and dead code.
26045         * malloc/arena.c: Likewise.
26046         * malloc/hooks.c: Likewise.
26047         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
26048
26049         * include/tls.h: Removed.  USE___THREAD must always be defined.
26050         * bits/libc-tsd.h: Don't handle !USE___THREAD.
26051         * elf/dl-libc.c: Likewise.
26052         * elf/dl-tsd.c: Likewise.
26053         * include/errno.h: Likewise.
26054         * include/netdb.h: Likewise.
26055         * include/resolv.h: Likewise.
26056         * inet/herrno-loc.c: Likewise.
26057         * inet/herrno.c: Likewise.
26058         * malloc/arena.c: Likewise.
26059         * malloc/hooks.c: Likewise.
26060         * malloc/malloc.c: Likewise.
26061         * resolv/res-state.c: Likewise.
26062         * resolv/res_libc.c: Likewise.
26063         * sysdeps/i386/dl-machine.h: Likewise.
26064         * sysdeps/ia64/dl-machine.h: Likewise.
26065         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
26066         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
26067         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
26068         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
26069         * sysdeps/sh/dl-machine.h: Likewise.
26070         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
26071         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
26072         * sysdeps/unix/i386/sysdep.S: Likewise.
26073         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
26074         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
26075         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
26076         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26077         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
26078         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
26079         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
26080         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
26081         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26082         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
26083         * sysdeps/unix/x86_64/sysdep.S: Likewise.
26084         * sysdeps/x86_64/dl-machine.h: Likewise.
26085         * tls.make.c: Likewise.
26086
26087         * configure.in: Remove --with-__thread option.  Make tests for
26088         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
26089         tls_model attribute fail if no support is available.  Remove
26090         USE_IN_LIBIO.
26091         * Makeconfig: Adjust for dropped configure option.  All features are
26092         now mandatory.
26093         * Makerules: Likewise.
26094         * Versions.def: Likewise.
26095         * argp/argp-fmtstream.c: Likewise.
26096         * argp/argp-fmtstream.h: Likewise.
26097         * argp/argp-help.c: Likewise.
26098         * assert/assert.c: Likewise.
26099         * config.h.in: Likewise.
26100         * config.make.in: Likewise.
26101         * configure: Likewise.
26102         * configure.in: Likewise.
26103         * csu/Versions: Likewise.
26104         * csu/init.c: Likewise.
26105         * elf/tst-audit2.c: Likewise.
26106         * elf/tst-tls10.c: Likewise.
26107         * elf/tst-tls10.h: Likewise.
26108         * elf/tst-tls11.c: Likewise.
26109         * elf/tst-tls12.c: Likewise.
26110         * elf/tst-tls14.c: Likewise.
26111         * elf/tst-tlsmod11.c: Likewise.
26112         * elf/tst-tlsmod12.c: Likewise.
26113         * elf/tst-tlsmod13.c: Likewise.
26114         * elf/tst-tlsmod13a.c: Likewise.
26115         * elf/tst-tlsmod14a.c: Likewise.
26116         * elf/tst-tlsmod15b.c: Likewise.
26117         * elf/tst-tlsmod16a.c: Likewise.
26118         * elf/tst-tlsmod16b.c: Likewise.
26119         * elf/tst-tlsmod7.c: Likewise.
26120         * elf/tst-tlsmod8.c: Likewise.
26121         * elf/tst-tlsmod9.c: Likewise.
26122         * gmon/gmon.c: Likewise.
26123         * grp/fgetgrent_r.c: Likewise.
26124         * grp/putgrent.c: Likewise.
26125         * hurd/fopenport.c: Likewise.
26126         * include/libc-symbols.h: Likewise.
26127         * include/tls.h: Likewise.
26128         * intl/gettextP.h: Likewise.
26129         * intl/loadinfo.h: Likewise.
26130         * locale/global-locale.c: Likewise.
26131         * locale/localeinfo.h: Likewise.
26132         * mach/devstream.c: Likewise.
26133         * malloc/arena.c: Likewise.
26134         * malloc/set-freeres.c: Likewise.
26135         * misc/err.c: Likewise.
26136         * misc/getttyent.c: Likewise.
26137         * misc/mntent_r.c: Likewise.
26138         * posix/getopt.c: Likewise.
26139         * posix/wordexp.c: Likewise.
26140         * pwd/fgetpwent_r.c: Likewise.
26141         * resolv/Versions: Likewise.
26142         * resolv/res_hconf.c: Likewise.
26143         * shadow/fgetspent_r.c: Likewise.
26144         * shadow/putspent.c: Likewise.
26145         * stdio-common/printf_fphex.c: Likewise.
26146         * stdio-common/tmpfile.c: Likewise.
26147         * stdlib/abort.c: Likewise.
26148         * stdlib/fmtmsg.c: Likewise.
26149         * sunrpc/auth_unix.c: Likewise.
26150         * sunrpc/clnt_perr.c: Likewise.
26151         * sunrpc/clnt_tcp.c: Likewise.
26152         * sunrpc/clnt_udp.c: Likewise.
26153         * sunrpc/clnt_unix.c: Likewise.
26154         * sunrpc/openchild.c: Likewise.
26155         * sunrpc/svc_simple.c: Likewise.
26156         * sunrpc/svc_tcp.c: Likewise.
26157         * sunrpc/svc_udp.c: Likewise.
26158         * sunrpc/svc_unix.c: Likewise.
26159         * sunrpc/xdr.c: Likewise.
26160         * sunrpc/xdr_array.c: Likewise.
26161         * sunrpc/xdr_rec.c: Likewise.
26162         * sunrpc/xdr_ref.c: Likewise.
26163         * sunrpc/xdr_stdio.c: Likewise.
26164
26165 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
26166
26167         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26168
26169 2011-07-03  Andreas Jaeger  <aj@suse.de>
26170
26171         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
26172         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
26173         regenerate with gen-libm-tests.pl.
26174
26175 2010-05-12  Petr Baudis  <pasky@suse.cz>
26176
26177         [BZ #11589]
26178         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
26179         around j0() zero points by switching to j1().
26180         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
26181         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
26182         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
26183         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
26184
26185 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
26186
26187         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
26188         instead of 0.
26189         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
26190         instead of 0.
26191         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26192         Patch in part by Pavel Roskin <proski@gnu.org>.
26193
26194         [BZ #13138]
26195         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
26196         realloc.
26197         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
26198         Free memory block if necessary.
26199
26200         [BZ #12847]
26201         * libio/genops.c (INTDEF): For string streams the _lock pointer can
26202         be NULL.  Don't lock in this case.
26203
26204 2011-09-09  Roland McGrath  <roland@hack.frob.com>
26205
26206         * elf/elf.h (ELFOSABI_GNU): New macro.
26207         (ELFOSABI_LINUX): Define to that.
26208
26209 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
26210
26211         * string/strncat.c (strncat): Undef the symbol in case it has been
26212         defined in bits/string.h.
26213
26214 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
26215
26216         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
26217
26218         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
26219         link map.
26220
26221 2011-08-17  Andreas Jaeger  <aj@suse.de>
26222
26223         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
26224
26225 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
26226             Ian Lance Taylor  <iant@google.com>
26227
26228         * math/libm-test.inc (lround_test): New testcase.
26229         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
26230
26231 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
26232
26233         * Makefile: Remove support for automatic cvs check-ins.
26234         * Makerules: Likewise.
26235         * config.make.in: Likewise.
26236         * configure.in: Likewise.
26237         * intl/Makefile: Likewise.
26238         * locale/Makefile: Likewise.
26239         * po/Makefile: Likewise.
26240         * posix/Makefile: Likewise.
26241         * sysdeps/gnu/Makefile: Likewise.
26242         * sysdeps/mach/hurd/Makefile: Likewise.
26243         * sysdeps/sparc/sparc32/Makefile: Likewise.
26244
26245         [BZ #13118]
26246         * posix/Makefile (bug-regex32-ENV): Define.
26247         Patch by John Stanley <jpsinthemix@verizon.net>.
26248
26249         * misc/Makefile (headers): Add bits/select2.h.
26250         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
26251         * misc/bits/select2.h: New file.
26252         * include/bits/select2.h: New file.
26253         * debug/Makefile (routines): Add fdelt_chk.
26254         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
26255         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
26256         FD_ISSET.
26257         * debug/fdelt_chk.c: New file.
26258
26259         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
26260         * wcsmbs/test-wmemcmp.c: Likewise.
26261         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
26262         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
26263
26264 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26265
26266         * string/Makefile (strop-tests): Add memcmp.
26267         * string/test-wmemcmp.c: New file.
26268         * string/test-memcmp.c: Add wmemcmp support.
26269
26270 2011-09-08  Roland McGrath  <roland@hack.frob.com>
26271
26272         [BZ #13153]
26273         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
26274         2011-07-19 change.
26275
26276         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
26277         garbage value in a __mach_port_mod_refs call in the cases of the
26278         task-self and thread-self ports.
26279
26280 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26281
26282         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
26283
26284 2011-09-08  Andreas Schwab  <schwab@redhat.com>
26285
26286         * elf/dl-load.c (lose): Check for non-null L.
26287
26288 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
26289
26290         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
26291
26292         * elf/dl-libc.c (dlerror_run): Pass back error code from
26293         dl_catch_error.
26294
26295         [BZ #13123]
26296         * elf/dl-load.c (lose): Free l_origin if it is valid.
26297
26298         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
26299         names.
26300         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
26301         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
26302         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
26303         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
26304         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
26305         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
26306
26307 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26308
26309         * sysdeps/powerpc/fpu/e_hypot.c: New file.
26310         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
26311         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
26312         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
26313         * sysdeps/powerpc/fpu/k_cosf.c: New file.
26314         * sysdeps/powerpc/fpu/k_sinf.c: New file.
26315         * sysdeps/powerpc/fpu/s_cosf.c: New file.
26316         * sysdeps/powerpc/fpu/s_sinf.c: New file.
26317         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
26318         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
26319
26320 2011-08-15  Alan Modra  <amodra@gmail.com>
26321
26322         [BZ #13092]
26323         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
26324         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
26325         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
26326         ppc_mcount to static-only-routines.
26327         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
26328         __mcount_internal.
26329         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
26330         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
26331
26332 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
26333
26334         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
26335         for finite and infinity parameters.
26336
26337 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
26338
26339         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
26340         and add nop instructions for throughput optimization.
26341         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
26342
26343 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
26344
26345         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
26346         aligned copy for power7 with vector-scalar instructions.
26347         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
26348
26349 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
26350
26351         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
26352         AVX check.
26353
26354 2011-09-07  Andreas Schwab  <schwab@redhat.com>
26355
26356         [BZ #13144]
26357         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
26358         last change.
26359
26360 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
26361
26362         * sysdeps/unix/sysv/linux/x86_64/init-first.c
26363         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
26364         syscall wrapper around clock_gettime in __vdso_clock_gettime.
26365         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
26366         clock_gettime.
26367
26368 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
26369
26370         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
26371         Forgot to demangle the pointer.
26372
26373         * sysdeps/i386/sysdep.h: Define atom_text_section.
26374         * sysdeps/x86_64/sysdep.h: Likewise.
26375         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
26376         section with atom_text_section.
26377         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
26378         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
26379         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
26380         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
26381         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
26382
26383         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
26384         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
26385         already be defined.  Change to take two parameters and don't assign
26386         result to variable.  Adjust all users.
26387         Define INTERNAL_GETTIME if not already defined.
26388         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
26389         call.
26390         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
26391         HAVE_CLOCK_GETTIME_VSYSCALL.
26392         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
26393
26394         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
26395         gettimeofday vsyscall, just use time.
26396
26397 2011-09-06  Andreas Schwab  <schwab@redhat.com>
26398
26399         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
26400         <errno.h>.
26401
26402 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
26403
26404         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
26405         syscall on x86-64.
26406         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
26407         syscall.
26408         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
26409         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
26410         syscall if possible.
26411
26412 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
26413
26414         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
26415         e_ident.  Don't pass to find_mapsXX.
26416         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
26417
26418 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26419
26420         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26421         strchr-sse2-no-bsf strrchr-sse2-no-bsf
26422         * sysdeps/x86_64/multiarch/strchr.S: Update.
26423         Check bit_slow_BSF bit.
26424         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
26425         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
26426         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
26427
26428 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
26429
26430         [BZ #13134]
26431         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
26432         before glibc 2.15.
26433         (tryshell): Define.
26434         (__spawni): Change last parameter to be flag.  Test
26435         SPAWN_XFLAGS_USE_PATH flag to use path or not.
26436         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
26437         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
26438         * posix/spawni.c: Likewise.
26439         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
26440         * posix/spawnp.c: Likewise.  Change normal version to use
26441         SPAWN_XFLAGS_USE_PATH.
26442         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
26443         SPAWN_XFLAGS_TRY_SHELL.
26444
26445         [BZ #13150]
26446         * posix/glob.h: Remove gcc 1.x support.
26447
26448         [BZ #13068]
26449         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
26450
26451 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26452
26453         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26454         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
26455         strrchr-sse2-bsf
26456         * sysdeps/i386/i686/multiarch/strchr.S: New file.
26457         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
26458         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
26459         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
26460         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
26461         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
26462
26463 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26464
26465         * sysdeps/x86_64/wcscmp.S: New file.
26466
26467         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
26468         wcscmp-c wcscmp-sse2
26469         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
26470         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
26471         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
26472         * wcsmbs/wcscmp.c: Allow renaming.
26473
26474 2011-09-05  David S. Miller  <davem@davemloft.net>
26475
26476         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
26477         stack slot, rather than the struct return pointer slot.
26478         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
26479         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
26480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
26481         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
26482
26483 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
26484
26485         * po/ja.po: Update from translation team.
26486
26487         [BZ #13144]
26488         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
26489         kernel in 64-bit binaries.
26490
26491 2011-09-01  David S. Miller  <davem@davemloft.net>
26492
26493         * elf/elf.h (HWCAP_SPARC_*): Move to..
26494         * sysdeps/sparc/sysdep.h: this new file and add new values.
26495         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
26496         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
26497         _DL_HWCAP_COUNT to 24.
26498         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
26499         entries.
26500         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
26501         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
26502         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
26503         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
26504         instead of magic constants.
26505         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26506
26507 2011-08-31  David S. Miller  <davem@davemloft.net>
26508
26509         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
26510         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
26511         Reimplement to do errno handling inline.
26512         (SYSCALL_ERROR_HANDLER): New macro.
26513         (__SYSCALL_STRING): Do not do errno handling in asm.
26514         (__CLONE_SYSCALL_STRING): Delete.
26515         (__INTERNAL_SYSCALL_STRING): Delete.
26516         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
26517         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
26518         (PSEUDO): Reimplement to do errno handling inline.
26519         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
26520         (SYSCALL_ERROR_HANDLER): New macro.
26521         (__SYSCALL_STRING): Do not do errno handling in asm.
26522         (__CLONE_SYSCALL_STRING): Delete.
26523         (__INTERNAL_SYSCALL_STRING): Delete.
26524         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
26525         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
26526         i386.
26527         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
26528         (inline_syscall*): Add 'err' argument.
26529         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
26530         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
26531         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
26532         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
26533
26534         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
26535         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
26536
26537 2011-08-30  Andreas Schwab  <schwab@redhat.com>
26538
26539         * elf/rtld.c (dl_main): Relocate objects in dependency order.
26540
26541 2011-08-29  Jiri Olsa <jolsa@redhat.com>
26542
26543         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
26544         directive.
26545
26546 2011-08-24  David S. Miller  <davem@davemloft.net>
26547
26548         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
26549
26550 2011-08-24  Andreas Schwab  <schwab@redhat.com>
26551
26552         * elf/Makefile: Add rules to build and run unload8 test.
26553         * elf/unload8.c: New file.
26554         * elf/unload8mod1.c: New file.
26555         * elf/unload8mod1x.c: New file.
26556         * elf/unload8mod2.c: New file.
26557         * elf/unload8mod3.c: New file.
26558
26559         * elf/dl-close.c (_dl_close_worker): Reset private search list if
26560         it wasn't used.
26561
26562 2011-08-23  David S. Miller  <davem@davemloft.net>
26563
26564         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
26565         subtract stack bias.
26566         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
26567         %sp not %fp in calculations.
26568         (_JMPBUF_UNWINDS_ADJ): Likewise.
26569
26570         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
26571         (aio_suspend): Call it to force an exception region around the
26572         AIO_MISC_WAIT() invocation.
26573
26574 2011-08-23  Andreas Schwab  <schwab@redhat.com>
26575
26576         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
26577         backslash.
26578
26579 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
26580
26581         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
26582         protection macro.
26583         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
26584         and <dl-machine.h>.
26585         (Elf64_FuncDesc): Remove.
26586
26587 2011-08-22  David S. Miller  <davem@davemloft.net>
26588
26589         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
26590         sigaltstack check, add missing cfi directives.
26591         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
26592         missing cfi directives, and sigaltstack handling.
26593
26594 2011-08-16  Andreas Schwab  <schwab@redhat.com>
26595
26596         [BZ #11724]
26597         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
26598         object is seen twice.
26599         * elf/dl-fini.c (_dl_sort_fini): Likewise.
26600
26601         * elf/Makefile (distribute): Add tst-initorder2.c.
26602         (tests): Add tst-initorder2.
26603         (modules-names): Add tst-initorder2a tst-initorder2b
26604         tst-initorder2c tst-initorder2d.  Add rules to build them.
26605         ($(objpfx)tst-initorder2.out): New rule.
26606         * elf/tst-initorder2.c: New file.
26607         * elf/tst-initorder2.exp: New file.
26608
26609 2011-08-22  Andreas Schwab  <schwab@redhat.com>
26610
26611         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
26612
26613         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
26614         dependencies back to end of function.
26615
26616         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
26617         $(elfobjdir)/ld.so.
26618
26619 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
26620
26621         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
26622         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
26623         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
26624         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
26625         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
26626         of __vdso_gettimeofday.
26627         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
26628         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
26629         attribute_hidden.
26630         (_libc_vdso_platform_setup): Remove initialization of
26631         __vdso_gettimeofday and __vdso_time.
26632
26633 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
26634
26635         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
26636         and fgetc_unlocked.
26637         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
26638         getc_unlocked.
26639
26640         * elf/dl-open.c (add_to_global): Report additions to the global scope
26641         for LD_DEBUG=scopes.
26642         (dl_open_worker): Also print scope of newly loaded dependencies.
26643         (_dl_show_scope): Indicate if there is no scope.
26644
26645         [BZ #13114]
26646         * stdio-common/Makefile (tests): Add bug24.
26647         * stdio-common/bug24.c: New file.
26648
26649 2011-08-19  Andreas Jaeger  <aj@suse.de>
26650
26651         [BZ #13114]
26652         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
26653         non-existant file when using close-on-exec mode.
26654
26655 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
26656
26657         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
26658         the very first instruction.
26659
26660         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
26661         the CFI state in the end.
26662         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
26663         inclusion of dl-trampoline.h.
26664         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
26665
26666 2011-08-19  Andreas Schwab  <schwab@redhat.com>
26667
26668         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
26669         expectations for long double.
26670
26671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
26672         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
26673
26674 2011-08-14  David S. Miller  <davem@davemloft.net>
26675
26676         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
26677         artificual limit depends upon the system page size.
26678
26679 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
26680
26681         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
26682         * resolv/Makefile: Define CFLAGS-libresolv.
26683
26684 2011-08-17  Andreas Schwab  <schwab@redhat.com>
26685
26686         * nss/makedb.c (compute_tables): Make variables used in nested
26687         function static.
26688
26689 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
26690
26691         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
26692         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
26693         if buffer was too small.
26694
26695         * elf/pldd.c (main): Attach to all threads in the process.
26696         Rewrite /proc handling to use *at functions.
26697
26698 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
26699
26700         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
26701         specifies first scope to show.
26702         (dl_open_worker): Update callers.  Move printing scope of new
26703         object to before the relocation.
26704         * elf/rtld.c (dl_main): Update _dl_show_scope call.
26705         * sysdeps/generic/ldsodefs.h: Update declaration.
26706
26707         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
26708         string for the scope number.
26709
26710 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
26711
26712         * nscd/servicescache.c (cache_addserv): Make sure written is always
26713         initialized.
26714
26715 2011-08-14  Roland McGrath  <roland@hack.frob.com>
26716
26717         * sysdeps/i386/i486/bits/atomic.h
26718         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
26719         statement expression, so as to suppress "set but not used" warning.
26720         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
26721
26722         * string/strncat.c (STRNCAT): Use prototype definition.
26723
26724         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
26725         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
26726         -Iprograms here.
26727         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
26728         (localedef-modules): Add localedef.
26729         (locale-modules): Add locale.
26730
26731         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
26732         * elf/rtld.c (dl_main): Invert order of assignment in last change,
26733         to avoid a warning.
26734
26735 2011-08-14  David S. Miller  <davem@davemloft.net>
26736
26737         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
26738         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
26739
26740 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
26741
26742         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
26743         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
26744         * elf/rtld.c (dl_main): Set l_name of vDSO.
26745         Call _dl_show_scope when DL_DEBUG_SCOPES.
26746         (process_dl_debug): Recognize scopes flag and also set it for all.
26747         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
26748         Declare _dl_show_scope.
26749
26750         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
26751         (do_dlopen): Pass caller_dlopen to dl_open.
26752         (__libc_dlopen_mode): Initialize caller_dlopen.
26753
26754         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
26755         of libc.  Make tolower call locale-independent.  Optimize a bit by
26756         using isdigit instead of isalnum.
26757         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
26758
26759 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
26760
26761         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
26762         was a dependency or dynamically loaded.
26763
26764 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
26765
26766         * intl/l10nflist.c: Allow architecture-specific pop function.
26767         * sysdeps/x86_64/l10nflist.c: New file.
26768
26769         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
26770         classification.
26771
26772 2011-08-10  Andreas Schwab  <schwab@redhat.com>
26773
26774         * include/dirent.h: Add libc_hidden_proto for scandirat and
26775         scandirat64.  Don't declare __scandirat64.
26776         * dirent/scandirat.c: Add libc_hidden_def.
26777         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
26778         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
26779
26780 2011-08-10  David S. Miller  <davem@davemloft.net>
26781
26782         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
26783         enum.
26784         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
26785         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
26786         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
26787
26788 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
26789
26790         * Versions.def [libc]: Add GLIBC_2.15.
26791         * dirent/Makefile (routines): Add scandirat and scandirat64.
26792         * dirent/Versions [libc]: Export scandirat and scandirat64 for
26793         GLIBC_2.15.
26794         * dirent/dirent.h: Declare scandirat and scandirat64.
26795         * dirent/scandirat.c: New file.
26796         * dirent/scandirat64.c: New file.
26797         * sysdeps/wordsize-64/scandirat.c: New file.
26798         * sysdeps/wordsize-64/scandirat64.c: New file.
26799         * dirent/opendir.c: Define opendirat.
26800         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
26801         using scandirat.
26802         * dirent/scandir64.c: Adjust for scandir.c change.
26803         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
26804         __scandirat64, and __scandir_cancel_handler.
26805         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
26806         additional parameter and use openat instead of open (outside of ld.so).
26807         Add new __opendir as wrapper around __opendirat.
26808         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
26809         here without requiring old scandirat implementation.
26810
26811 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
26812
26813         * dirent/scandir.c (cancel_handler): Renamed to
26814         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
26815         defined.  Adjust users.
26816         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
26817         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
26818
26819 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
26820
26821         * string/test-string.h (IMPL): Use __STRING to expand name and then
26822         stringify it.
26823
26824         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
26825         of cleanups.
26826
26827 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26828
26829         * string/Makefile: Update.
26830         (strop-tests): Append strncat.
26831         * string/test-wcscmp.c: New file.
26832         New comprehensive test for wcscmp.
26833         * string/test-strcmp.c: Update.
26834         (WIDE): New define.
26835
26836 2011-07-22  Andreas Schwab  <schwab@redhat.com>
26837
26838         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
26839         line.
26840
26841 2011-07-26  Andreas Schwab  <schwab@redhat.com>
26842
26843         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
26844         encoding to ACE if AI_IDN.
26845
26846 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
26847
26848         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
26849         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
26850
26851 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26852
26853         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
26854         Fix overflow bug in strncat.
26855         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
26856
26857         * string/test-strncat.c: Update.
26858         Add new tests for checking overflow bugs.
26859
26860 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26861
26862         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26863         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
26864         * sysdeps/i386/i686/multiarch/strcat.S: New file.
26865         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
26866         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
26867         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
26868         * sysdeps/i386/i686/multiarch/strncat.S: New file.
26869         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
26870         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
26871
26872         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
26873         (USE_AS_STRCAT): Define.
26874         Add strcat and strncat support.
26875         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
26876
26877 2011-07-25  Andreas Schwab  <schwab@redhat.com>
26878
26879         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
26880         __n bigger than INT_MAX+1.
26881         (__strncmp_g): Likewise.
26882
26883 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
26884
26885         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
26886         * libio/stido.h: Likewise.
26887
26888         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
26889         (AF_NFC): Define.
26890         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
26891         (AF_NFC): Define.
26892
26893         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
26894         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
26895         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
26896         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
26897         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
26898
26899         [BZ #13021]
26900         * scripts/test-installation.pl: Don't expect libnss_test1 to be
26901         installed.
26902
26903         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
26904         typo.
26905         (_dl_x86_64_save_sse): Likewise.
26906
26907 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
26908
26909         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
26910         OSXSAVE.
26911         (_dl_x86_64_save_sse): Likewise.
26912
26913         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
26914
26915         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
26916
26917 2011-07-21  Andreas Schwab  <schwab@redhat.com>
26918
26919         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
26920         change.
26921         (_dl_x86_64_save_sse): Use correct AVX check.
26922
26923 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26924
26925         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
26926         bug in strncpy/strncat.
26927         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
26928
26929 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
26930
26931         * string/tester.c (test_strcat): Add tests for different alignments
26932         of source and destination.
26933         (test_strncat): Likewise.
26934
26935 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
26936
26937         [BZ #12852]
26938         * posix/glob.c (glob): Check passed in values before using them in
26939         expressions to avoid some overflows.
26940         (glob_in_dir): Likewise.
26941
26942         [BZ #13007]
26943         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
26944         check for AVX enablement so that we don't crash with old kernels and
26945         new hardware.
26946         * elf/tst-audit4.c: Add same checks here.
26947         * elf/tst-audit6.c: Likewise.
26948
26949         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
26950
26951 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
26952
26953         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
26954
26955 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
26956
26957         * po/cs.po: Update from translation team.
26958         * po/bg.po: Likewise.
26959
26960 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
26961
26962         * misc/sys/cdefs.h: Add support for const attribute.
26963         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
26964         to gnu_dev_{major,minor,makedev} functions.
26965
26966 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
26967
26968         * intl/dcigettext.c (get_output_charset): Add missing bracket.
26969
26970 2011-07-20  Andreas Schwab  <schwab@redhat.com>
26971
26972         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
26973         strlen results.
26974
26975 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26976
26977         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
26978         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
26979         register in order to avoid conflicts with the soft frame pointer
26980         being held in r11 when necessary.
26981         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26982         (INTERNAL_VSYSCALL_NCS): Likewise.
26983
26984 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
26985
26986         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
26987         * elf/dl-fini.c (_dl_fini): Adjust caller.
26988         * elf/dl-close.c (_dl_close_worker): Likewise.
26989         * sysdeps/generic/ldsodefs.h: Adjust declaration.
26990
26991 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
26992
26993         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
26994         "aux_cache->nlibs < 0".
26995
26996         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
26997         in the reload-count case.
26998
26999 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
27000
27001         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27002         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
27003         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
27004         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
27005         * sysdeps/x86_64/multiarch/strcat.S: New file.
27006         * sysdeps/x86_64/multiarch/strncat.S: New file.
27007         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
27008         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
27009         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
27010         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
27011         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
27012         (USE_AS_STRCAT): Define.
27013         Add strcat and strncat support.
27014         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
27015         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
27016         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
27017         * string/strncat.c: Update.
27018         (USE_AS_STRNCAT): Define.
27019         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27020         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
27021         and i7.
27022         * sysdeps/x86_64/multiarch/init-arch.h
27023         (bit_Prefer_PMINUB_for_stringop): New.
27024         (index_Prefer_PMINUB_for_stringop): Likewise.
27025         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
27026         bit_Prefer_PMINUB_for_stringop.
27027
27028 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
27029
27030         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
27031         buffer64.
27032         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
27033         of casting of buffer.
27034         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
27035         buffer32 and buffer64.
27036         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
27037         writes instead of casting of buffer.
27038         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
27039         buffer32.
27040         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
27041         casting of buffer.
27042
27043 2011-07-19  Andreas Schwab  <schwab@redhat.com>
27044
27045         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
27046
27047 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
27048
27049         * nscd/nscd.c (termination_handler): Don't do anything for a database
27050         if it has not yet been initialized.
27051
27052 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
27053
27054         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
27055
27056 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
27057
27058         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
27059
27060 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
27061
27062         * po/nl.po: Update from translation team.
27063         * po/sv.po: Likewise.
27064
27065 2011-07-16  Roland McGrath  <roland@hack.frob.com>
27066
27067         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
27068         now disallowed by GCC.
27069
27070         * configure.in (use-default-link): Default to yes if a test -shared
27071         link meets our qualifications.
27072         * configure: Regenerated.
27073
27074         * config.make.in (output-format): New variable.
27075         * configure.in: Check for ld --print-output-format support.
27076         * configure: Regenerated.
27077         * Makerules ($(common-objpfx)format.lds)
27078         [$(output-format) != unknown]: Just use $(output-format),
27079         instead of the linker-script munging.
27080
27081 2011-07-14  Roland McGrath  <roland@hack.frob.com>
27082
27083         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
27084         of $(common-objpfx)shlib.lds.
27085         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
27086
27087         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
27088         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
27089
27090         * configure.in (-z relro check): Adjust test code to add a large
27091         writable data section after it.
27092         * configure: Regenerated.
27093
27094 2011-07-11  Roland McGrath  <roland@hack.frob.com>
27095
27096         * configure.in (-z relro check): Fix test code to make the variable
27097         truly const.
27098         * configure: Regenerated.
27099
27100 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
27101
27102         * nscd/nscd.h (struct traced_file): Define.
27103         (struct database_dyn): Remove inotify_descr, reset_res, and filename
27104         elements.  Add traced_files.
27105         (inotify_fd): Declare.
27106         (register_traced_file): Declare.
27107         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
27108         (inotify_fd): Export.
27109         (resolv_conf_descr): Remove.
27110         (nscd_init): Move inotify descriptor creation to main.
27111         Don't register files for notification here.
27112         (register_traced_file): New function.
27113         (invalidate_cache): Don't use reset_res to determine whether to call
27114         res_init, go through the list of registered files.
27115         (main_loop_poll): The inotify descriptors are now stored in the
27116         structures for the traced files.
27117         (main_loop_epoll): Likewise
27118         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
27119         to __nss_disable_nscd.
27120         * nscd/cache.c (prune_cache): There is no single inotify descriptor
27121         for a database anymore.  Check the records for all the registered
27122         files instead.
27123         * nss/Makefile (libnss_files-routines): Add files-init.
27124         (libnss_db-routines): Add db-init.
27125         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
27126         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
27127         * nss/nss_db/db-init.c: New file.
27128         * nss/nss_files/files-init.c: New file.
27129         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
27130         __nss_lookup_function.
27131         (__nss_lookup_function): Call nss_load_library.
27132         (nss_load_all_libraries): New function.
27133         (__nss_disable_nscd): Take parameter with callback function for files
27134         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
27135         used for the cached services.
27136         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
27137         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
27138         options for features to all the files in nscd.
27139
27140         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
27141
27142 2011-07-10  Roland McGrath  <roland@hack.frob.com>
27143
27144         * csu/elf-init.c (__libc_csu_init): Comment typo.
27145
27146 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
27147
27148         * po/pl.po: Update from translation team.
27149         * po/ja.po: Likewise.
27150         * po/ru.po: Likewise.
27151         * po/ko.po: Likewise.
27152         * po/fr.po: Likewise.
27153
27154 2011-07-09  Roland McGrath  <roland@hack.frob.com>
27155
27156         * configure.in (.ctors/.dtors header and trailer check):
27157         Use an empirical test on a built program.
27158         * configure: Regenerated.
27159
27160         * configure.in (-z relro check): Use an empirical test on a built DSO.
27161         Detect, but do not require, on ia64.
27162         * configure: Regenerated.
27163
27164         * configure.in (READELF): Find it with AC_CHECK_TOOL.
27165         Update tests that use readelf to use $READELF instead.
27166         * configure: Regenerated.
27167
27168 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
27169
27170         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
27171         if the result is not used.
27172
27173 2011-07-05  Andreas Jaeger  <aj@suse.de>
27174
27175         [BZ#9696]
27176         * stdlib/tst-strtod.c: Add testcase.
27177
27178 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
27179
27180         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
27181         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
27182         The latter has a higher limit.  Take additional parameter to pass to
27183         the new function.
27184         (__pathconf): Pass file to __statfs_link_max.
27185         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
27186         __statfs_link_max.
27187         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
27188         __statfs_link_max.
27189
27190         [BZ #12868]
27191         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
27192         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27193         Handle Lustre.
27194         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
27195         (__statfs_filesize_max): Likewise.
27196         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
27197
27198 2011-07-05  Andreas Jaeger  <aj@suse.de>
27199
27200         * resolv/res_comp.c (dn_skipname): Remove unused variable.
27201
27202 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
27203
27204         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
27205         `status' variable.
27206         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
27207         Likewise.
27208
27209 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
27210
27211         * Makefile (strop-tests): Add strncat.
27212         * string/test-strncat.c: New file.
27213
27214 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
27215
27216         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
27217
27218 2011-06-21  Andreas Jaeger  <aj@suse.de>
27219
27220         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
27221         Copy rule from iconvdata/Makefile.
27222
27223 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
27224
27225         [BZ #12922]
27226         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
27227         but no long options are defined, just return 'W'.
27228
27229 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
27230
27231         [BZ #9696]
27232         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
27233
27234 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
27235
27236         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
27237         netgroups to read.
27238         (innetgr): Likewise.
27239
27240 2011-07-05  Roland McGrath  <roland@hack.frob.com>
27241
27242         * config.make.in (install_root): Default to $(DESTDIR).
27243
27244 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
27245
27246         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
27247
27248 2011-07-02  Roland McGrath  <roland@hack.frob.com>
27249
27250         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
27251
27252         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
27253         containing directory rather than embedding absolute directory names.
27254
27255         * scripts/check-local-headers.sh: Rewritten using awk.
27256         Match by word, not by line.  Print error messages for matches.
27257         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
27258
27259         * Makerules [shlib-lds-flags empty]:
27260         ($(common-objpfx)libc_pic.opts): New target.
27261         ($(common-objpfx)libc_pic.os.clean): New target.
27262         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
27263
27264         * config.make.in (OBJCOPY): New variable.
27265         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
27266         * configure: Regenerated.
27267
27268         * config.make.in (use-default-link): New variable.
27269         * configure.in (use_default_link): Grok --with-default-link to set it.
27270         * configure: Regenerated.
27271         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
27272         (shlib-lds, shlib-lds-flags): Define to empty.
27273
27274         * Makerules (shlib-lds): New variable.
27275         (shlib-lds-flags): New variable.
27276         (build-shlib, build-moduile, build-module-asneeded): Use it.
27277         ($(common-objpfx)libc.so): Use $(shlib-lds).
27278         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
27279         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
27280
27281         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
27282         DT_FLAGS/DT_FLAGS_1 with zero flags.
27283
27284         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
27285         linker script munging.
27286
27287 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
27288
27289         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
27290         as 128-bit value.
27291         * crypt/sha512.c (sha512_process_block): Perform total addition using
27292         128-bit if possible.
27293         (__sha512_finish_ctx): Likewise.
27294         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
27295         as 64-bit value.
27296         * crypt/sha256.c (SWAP64): Define.
27297         (sha256_process_block): Perform total addition using 64-bit if
27298         possible.
27299         (__sha256_finish_ctx): Likewise.
27300
27301 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
27302
27303         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
27304         * nscd/initgrcache.c (addinitgroupsX): Likewise.
27305         * nscd/hstcache.c (cache_addhst): Likewise.
27306         * nscd/grpcache.c (cache_addgr): Likewise.
27307         * nscd/aicache.c (addhstaiX): Likewise
27308         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
27309
27310 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
27311
27312         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
27313         * nscd/initgrcache.c (addinitgroupsX): Likewise.
27314         * nscd/hstcache.c (cache_addhst): Likewise.
27315         * nscd/grpcache.c (cache_addgr): Likewise.
27316         * nscd/aicache.c (addhstaiX): Likewise
27317
27318 2011-07-01  Andreas Schwab  <schwab@redhat.com>
27319
27320         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
27321         domain only when needed.
27322
27323 2011-06-30  Andreas Schwab  <schwab@redhat.com>
27324
27325         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
27326         is always restored.
27327
27328 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
27329
27330         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
27331         are re-adding the entry.
27332         * nscd/servicescache.c (cache_addserv): Likewise.
27333
27334 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
27335
27336         * sysdeps/generic/dl-irel.h: fix protection against multiple
27337         inclusions.
27338         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
27339
27340 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
27341
27342         [BZ #12935]
27343         * malloc/memusage.sh: Fix quoting in message.
27344         * debug/xtrace.sh: Likewise.
27345
27346         * configure.in: Remove support for --experimental-malloc option, make
27347         it the default.
27348         * config.make.in: Likewise.
27349         * malloc/Makefile: Likewise.
27350
27351 2011-06-27  Andreas Schwab  <schwab@redhat.com>
27352
27353         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
27354         two-byte characters.
27355
27356 2011-06-27  Roland McGrath  <roland@hack.frob.com>
27357
27358         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
27359         AC_CACHE_CHECK invocation.
27360         * configure: Regenerated.
27361
27362         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
27363
27364 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
27365
27366         [BZ #12350]
27367         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
27368         bit from old_res_options.
27369
27370         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
27371
27372         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
27373         value type for setfct.
27374
27375 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
27376
27377         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
27378         __gettimeofday instead of gettimeofday.
27379
27380 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
27381
27382         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
27383
27384 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
27385
27386         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
27387
27388         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
27389         info.
27390
27391 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
27392
27393         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27394         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
27395         strcpy-sse2-unaligned strncpy-sse2-unaligned
27396         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
27397         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
27398         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
27399         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
27400         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
27401         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
27402         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
27403         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
27404         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
27405         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
27406         (STRCPY): Support SSE2 and SSSE3 versions.
27407
27408 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
27409
27410         [BZ #12874]
27411         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
27412         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
27413         kernels which artificially limit size of requests.
27414
27415 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
27416
27417         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27418         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
27419         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
27420         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
27421         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
27422         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
27423         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
27424         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
27425         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
27426         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
27427         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
27428         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
27429         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
27430         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
27431         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
27432         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27433         Enable unaligned load optimization for Intel Core i3, i5 and i7
27434         processors.
27435         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
27436         Define.
27437         (index_Fast_Unaligned_Load): Define.
27438         (HAS_FAST_UNALIGNED_LOAD): Define.
27439
27440 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
27441
27442         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
27443
27444 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
27445
27446         [BZ #12907]
27447         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
27448         until it is clear that the information is realy needed.
27449         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
27450
27451 2011-06-22  Andreas Schwab  <schwab@redhat.com>
27452
27453         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
27454
27455 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
27456
27457         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
27458         /sys/devices/system/cpu/online if it is usable.
27459
27460         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
27461         reading the information from the /proc filesystem to once a second.
27462
27463 2011-06-21  Andreas Jaeger  <aj@suse.de>
27464
27465         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
27466         NULL after inclusion of kernel headers.
27467
27468 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
27469
27470         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
27471         calls to internal_setent.
27472
27473         [BZ #12885]
27474         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
27475         addresses using gethostbyname4_r ignore IPv4 addresses.
27476
27477         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
27478         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
27479
27480         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
27481
27482 2011-06-20  David S. Miller  <davem@davemloft.net>
27483
27484         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
27485         inclusions.
27486         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
27487
27488         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
27489         (elf_irel): Use it.
27490         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
27491         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
27492         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
27493         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
27494         * sysdeps/x86_64/dl-irel.h: Likewise.
27495
27496         * elf/dl-runtime.c: Use elf_ifunc_invoke.
27497         * elf/dl-sym.c: Likewise.
27498
27499 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
27500
27501         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
27502         need to dereference resplen2.
27503
27504 2011-06-14  Andreas Schwab  <schwab@redhat.com>
27505
27506         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
27507
27508 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
27509
27510         * Makeconfig: Define vardbdir and inst_vardbdir.
27511         * nss/Makefile: Add rules to install db-Makefile.
27512
27513         * nss/nss_db/db-XXX.c: Cleanup.
27514
27515         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
27516         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
27517         GLIBC_PRIVATE.
27518         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
27519         * nss/makedb.c: Implement -g option to specify that value strings
27520         are generated and should not be added to table iterated over for
27521         get*ent calls.
27522         * nss/nss_db/db-initgroups.c: New file.
27523
27524         * nss/getent.c: Add support for initgroups lookups through getgrouplist
27525         interface.
27526
27527         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
27528         (internal_getgrouplist): Adjust to name change.
27529         Update use_initgroups_entry if this is not the first call.
27530         * nss/databases.def: Add initgroups entry.
27531
27532         * nss/makedb.c (compute_tables): Check result of multiple hash table
27533         sizes to minimize maximum chain length.
27534
27535 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
27536
27537         * Versions.def: Add entry for libnss_db.
27538         * shlib-versions: Likewise.
27539         * nss/Makefile: Add rules to build libnss_db.
27540         * nss/Versions: Add libnss_db information.  Organize libnss_files
27541         entries better.
27542         * nss/db-Makefile: Add gshadow support.  Change rules for the new
27543         makedb progra.  Some minor improvements to generate smaller files.
27544         * nss/nss_db/nss_db.h: Move NSS database header data structures to
27545         here from...
27546         * nss/makedb.c: ...here.
27547         Improve database format to be smaller and require less memory at
27548         runtime.
27549         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
27550         db anymore.
27551         * nss/nss_db/db-netgrp.c: Likewise.
27552         * nss/nss_db/db-open.c: Likewise.
27553         * nss/nss_files/flies-XXX.x: Adjust comments.
27554         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
27555         * nss/nss_files/files-grp.c: Likewise.
27556         * nss/nss_files/files-hosts.c: Likewise.
27557         * nss/nss_files/files-network.c: Likewise.
27558         * nss/nss_files/files-proto.c: Likewise.
27559         * nss/nss_files/files-pwd.c: Likewise.
27560         * nss/nss_files/files-rpc.c: Likewise.
27561         * nss/nss_files/files-service.c: Likewise.
27562         * nss/nss_files/files-sgrp.c: Likewise.
27563         * nss/nss_files/files-spwd.c: Likewise.
27564         * nss/nss_db/db-alias.c: Removed.
27565         * nss/nss_db/dummy-db.h: Removed.
27566
27567 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
27568
27569         * nss/makedb.c: Rewritten to not use database library.
27570         * nss/Makefile: Update to build new makedb program.
27571
27572 2011-06-14  Andreas Jaeger  <aj@suse.de>
27573
27574         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
27575         memset declaration.
27576
27577 2011-06-10  Andreas Schwab  <schwab@redhat.com>
27578
27579         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
27580         tmpbuf.
27581
27582 2011-06-10  Roland McGrath  <roland@hack.frob.com>
27583
27584         * Makerules (shlib.lds): Fail if the linker script comes out empty.
27585         * elf/Makefile ($(objpfx)ld.so): Likewise.
27586
27587         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
27588         Don't list ld.so twice in dependencies.
27589
27590         * posix/bug-regex31.c: Include <stdlib.h>.
27591
27592         * nscd/hstcache.c (cache_addhst): Remove unused variable.
27593
27594         * nis/nss_compat/compat-spwd.c
27595         (getspent_next_nss_netgr): Remove unused variable.
27596         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
27597
27598         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
27599         nonmembers" output to use the right array.
27600
27601         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
27602
27603         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
27604
27605         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
27606         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
27607         * catgets/gencat.c (read_input_file): Likewise.
27608         * locale/programs/locarchive.c (enlarge_archive): Likewise.
27609
27610         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
27611         variable definition inside #if's controlling its use.
27612
27613         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
27614
27615         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
27616
27617         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
27618
27619         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
27620         unreachable code.
27621
27622         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
27623
27624         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
27625         * configure: Regenerated.
27626
27627         * Makerules: Revert last change.
27628         * elf/Makefile: Likewise.
27629
27630 2011-06-09  Roland McGrath  <roland@hack.frob.com>
27631
27632         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
27633         * elf/Makefile ($(objpfx)librtld.os): Likewise.
27634         (reloc-link): Likewise.
27635
27636 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
27637
27638         * elf/Makefile: Add rules to build pldd.
27639         * elf/pldd.c: New file.
27640         * elf/pldd-xx.c: New file.
27641
27642 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
27643
27644         * version.h: Update for 2.15 development version.
27645
27646 2011-06-07  David S. Miller  <davem@davemloft.net>
27647
27648         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
27649         ifuncs.
27650         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
27651         elf_machine_lazy_rel): Likewise.
27652         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
27653         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
27654         elf_machine_lazy_rel): Likewise.
27655         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
27656         dl_hwcap via passed in argument.
27657         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
27658         Likewise.
27659
27660 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27661
27662         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
27663
27664 2011-06-06  Roland McGrath  <roland@hack.frob.com>
27665
27666         [BZ #12849]
27667         * manual/fdl-1.1.texi: New file, verbatim from:
27668         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
27669         * manual/lgpl-2.1.texi: New file, verbatim from:
27670         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
27671         * manual/Makefile (licenses): New variable, list those new file names.
27672         (texis): Use it.
27673         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
27674
27675         * manual/fdl.texi: File removed.
27676         * manual/lesser.texi: File removed.
27677         * manual/libc.texinfo (Copying, Documentation License):
27678         Use new @include file names, put @appendix directive before @include.
27679
27680 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
27681
27682         [BZ #12841]
27683         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
27684         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
27685         (mq_open): Add __NTH.
27686
27687 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
27688
27689         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27690         Assume Intel Core i3/i5/i7 processor if AVX is available.
27691
27692 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
27693
27694         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
27695         typo.
27696
27697 2011-05-31  Andreas Schwab  <schwab@redhat.com>
27698
27699         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
27700         memory.  Use alloca_account.  Fix memory leak when retrying.
27701
27702 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
27703
27704         * version.h (RELEASE): Bump for 2.14 release.
27705         * include/features.h (__GLIBC_MINOR__): Bump to 14.
27706
27707         * config.make.in (RANLIB): Remove entry.
27708
27709 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
27710
27711         * po/Makefile (po-sed-cmd): Add ksh to extensions.
27712         (libc.pot): Work around missing support for .ksh extension in xgettext.
27713
27714         [BZ #12684]
27715         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
27716         if both request failed.
27717         (send_dg): In case of server errors clear resplen or *resplen2.
27718
27719         [BZ #12454]
27720         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
27721         when there are multiple maps.
27722         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
27723         (_dl_fini): Remove test here.
27724
27725         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
27726
27727 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
27728
27729         [BZ #12350]
27730         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
27731         bit from old_res_options.
27732         (gaih_inet): Likewise.
27733
27734         [BZ #11099]
27735         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
27736         as signed.
27737
27738         * resolv/res_init.c (res_setoptions): Make the code more compact.
27739
27740         [BZ #11558]
27741         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
27742         set RES_USEVC.
27743
27744         [BZ #11634]
27745         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
27746
27747         * malloc/malloc.h: Mark malloc hook variables as deprecated.
27748
27749         [BZ #11781]
27750         * malloc/malloc.h: Declare malloc hook variables as volatile.
27751
27752         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
27753         in last patch.
27754
27755         [BZ #11799]
27756         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
27757         raise in the comment.
27758         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
27759         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
27760         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
27761
27762 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
27763
27764         [BZ #12811]
27765         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
27766         grow the buffers more if it already has to be sufficient.
27767         (build_wcs_upper_buffer): Likewise.
27768         * posix/regexec.c (check_matching): Likewise.
27769         (clean_state_log_if_needed): Likewise.
27770         (extend_buffers): Don't enlarge buffers beyond size of the input
27771         buffer.
27772         Patches mostly by Emil Wojak <emil@wojak.eu>.
27773         * posix/bug-regex32.c: New file.
27774         * posix/Makefile (tests): Add bug-regex32.
27775
27776         * locale/findlocale.c (_nl_find_locale): Return right away if
27777         _nl_explode_name failed.
27778         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
27779
27780         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
27781
27782         * debug/xtrace.sh: Unify messages.
27783         * malloc/memusage.sh: Likewise.
27784
27785         [BZ #12813]
27786         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
27787         time symbol from vDSO.  Substitute with vsyscall if not available.
27788         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
27789         __vdso_time.
27790
27791         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
27792         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
27793         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
27794         Add sendmmsg and internal_sendmmsg.
27795         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
27796         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
27797         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
27798
27799         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
27800         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
27801         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
27802
27803 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
27804
27805         [BZ #12813]
27806         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
27807         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
27808         available.
27809         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
27810         __vdso_getcpu.
27811
27812         [BZ #12814]
27813         * iconvdata/Makefile (tests): Add bug-iconv9.
27814         * iconvdata/bug-iconv9.c: New file.
27815
27816 2011-05-27  Andreas Schwab  <schwab@redhat.com>
27817
27818         [BZ #12814]
27819         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
27820
27821 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
27822
27823         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
27824         (struct user_regs_struct): Change intcs field back to cs.
27825
27826 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
27827
27828         * po/ja.po: Update from translation team.
27829
27830 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
27831
27832         [BZ #12795]
27833         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
27834         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
27835
27836 2011-05-20  Andreas Schwab  <schwab@redhat.com>
27837
27838         * stdlib/longlong.h: Update from GCC.
27839
27840 2011-05-23  Andreas Schwab  <schwab@redhat.com>
27841
27842         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
27843         parameter name.
27844         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
27845         Add parameter name.
27846         (__sysconf): Pass it down.
27847
27848 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
27849
27850         [BZ #12671]
27851         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
27852         some situations.
27853         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
27854         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
27855         add in in __libc_use_alloca calls.  Adjust callers.
27856         (glob): Use malloc in some situations.
27857
27858         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
27859         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
27860         pltexit.
27861
27862 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
27863
27864         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
27865         and CLOCK_BOOTTIME_ALARM.
27866
27867         [BZ #12782]
27868         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
27869         is returned.
27870
27871         * string/_strerror.c (__strerror_r): Print negative errors as signed
27872         numbers.
27873
27874         [BZ #12777]
27875         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
27876         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
27877         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
27878
27879         * configure.in: Fix typo in redirection and correct removal of test
27880         files in two cases.
27881
27882         [BZ #12788]
27883         * locale/setlocale.c (new_composite_name): Fix test to check for
27884         identical name of all categories.
27885
27886         [BZ #12792]
27887         * libio/filedoalloc.c (local_isatty): New function.
27888         (_IO_file_doallocate): Use local_isatty.
27889         * stdio-common/perror.c (perror): In case a new stream is used
27890         forward the stream error.
27891         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
27892         error flag.
27893
27894 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
27895
27896         [BZ #11869]
27897         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
27898         alloca.
27899         * include/alloca.h (extend_alloca_account): Define.
27900
27901         [BZ #11857]
27902         * posix/regex.h: Fix comments with documentation of user-accessible
27903         fields after compilation and describe correct free'ing of pattern
27904         after re_compile_pattern.
27905         Patch by Reuben Thomas <rrt@sc3d.org>.
27906
27907 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
27908
27909         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
27910         and -mno-altivec to prevent the compiler from using Altivec and/or
27911         VSX instructions when the corresponding registers are not available.
27912
27913 2011-05-19  Andreas Schwab  <schwab@redhat.com>
27914
27915         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
27916
27917 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
27918
27919         * libio/freopen.c (freopen): Use __dup2, not dup2.
27920         * libio/freopen64.c (freopen64): Likewise.
27921
27922 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
27923
27924         [BZ #12775]
27925         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
27926         * math/Makefile (tests): Add test-powl.
27927         (CFLAGS-test-powl.c): Define.
27928         * math/test-powl.c: New file.
27929
27930 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
27931
27932         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
27933
27934 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
27935
27936         [BZ #11837]
27937         * iconvdata/gb18030.c: Update to GB18020-2005.
27938
27939 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
27940
27941         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
27942         RE_SYNTAX_POSIX_AWK): Update to match recent development.
27943         Patch by Aharon Robbins <arnold@skeeve.com>.
27944
27945         [BZ #11892]
27946         * stdlib/putenv.c (putenv): Don't always create copy of the variable
27947         on the stack.
27948
27949         [BZ #11895]
27950         * misc/pselect.c (__pselect): Handle timeout value errors hidden
27951         through underflows.
27952
27953         [BZ #12766]
27954         * misc/error.c (error_at_line): Ensure file_name and old_file_name
27955         point to strings before performing equality test for error_one_per_line
27956         mode.
27957
27958         [BZ #11697]
27959         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
27960
27961         [BZ #11820]
27962         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
27963         (struct user_fpregs_struct): Avoid __uint*_t types.
27964
27965         [BZ #6420]
27966         * malloc/mtrace.c (tr_where): Add additional parameter to point to
27967         symbol info.  Use it instead of calling _dl_addr locally.
27968         (lock_and_info): New function.
27969         (tr_freehook): Call lock_and_info and pass symbol info as additional
27970         parameter to tr_where.
27971         (tr_mallochook): Likewise.
27972         (tr_reallochook): Likewise.
27973         (tr_memalignhook): Likewise.
27974
27975         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
27976         used and couldn't be at all thread-safe.
27977
27978 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
27979
27980         * libio/freopen.c (freopen): Don't close old file descriptor
27981         before the new one is opened.  Instead dup the new file descriptor
27982         to the old one after the new stream is created.
27983         * libio/freopen64.c (freopen64): Likewise.
27984         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
27985         * libio/fileops.c (_IO_new_file_close_it): Handle new
27986         _IO_FLAGS2_NOCLOSE flag.
27987         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
27988         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
27989         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
27990         _IO_FLAGS2_NOCLOSE flag.
27991         * include/unistd.h: Add hidden_proto for dup3.
27992         Define __have_dup3.
27993         * io/dup3.c: Define hidden symbol.
27994         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
27995
27996         [BZ #7101]
27997         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
27998         when an incomplete long option is used.
27999         * posix/tst-getopt_long1.c: New file.
28000         * posix/Makefile (tests): Add tst-getopt_long1.
28001
28002         [BZ #10138]
28003         * scripts/config.guess: Update from autoconf-2.68.
28004         * scripts/config.sub: Likewise.
28005
28006         [BZ #10157]
28007         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
28008         tests into ...
28009         (has_cpuclock): ...this.  New function.
28010         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
28011         macro here based on has_cpuclock code.
28012
28013         [BZ #10149]
28014         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28015         First byte (not low byte) is now always NUL.
28016         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
28017
28018         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28019         Use non-cancelable interfaces.
28020
28021         [BZ #9809]
28022         * locale/iso-639.def: Add entry for Sorani.
28023
28024         [BZ #11901]
28025         * include/stdlib.h: Move include protection to the right place.
28026         Define abort_msg_s.  Declare __abort_msg with it.
28027         * stdlib/abort.c (__abort_msg): Adjust type.
28028         * assert/assert.c (__assert_fail_base): New function.  Majority
28029         of code from __assert_fail.  Allocate memory for __abort_msg with
28030         mmap.
28031         (__assert_fail): Now call __assert_fail_base.
28032         * assert/assert-perr.c: Remove bulk of implementation.  Use
28033         __assert_fail_base.
28034         * include/assert.hL Declare __assert_fail_base.
28035         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
28036         mmap.
28037         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
28038
28039 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
28040
28041         [BZ #11952]
28042         [BZ #12453]
28043         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
28044         until all modules are registered in the DTV.
28045         * elf/Makefile: Add rules to build and run tst-tls19.
28046         * elf/tst-tls19.c: New file.
28047         * elf/tst-tls19mod1.c: New file.
28048         * elf/tst-tls19mod2.c: New file.
28049         * elf/tst-tls19mod3.c: New file.
28050         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
28051
28052         [BZ #12083]
28053         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
28054         correctly.
28055
28056         [BZ #12601]
28057         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
28058         two-byte sequence errors.
28059         * iconvdata/Makefile (tests): Add bug-iconv8.
28060         * iconvdata/bug-iconv8.c: New file.
28061
28062         [BZ #12626]
28063         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
28064         buf2 definition.
28065
28066         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
28067
28068         [BZ #12432]
28069         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
28070         (dummy_getcfa): New function.
28071         (init): Get _Unwind_GetCFA address, use dummy if not found.
28072         (backtrace_helper): In recursion check, also check whether CFA changes.
28073         (__backtrace): Completely initialize arg.
28074
28075         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
28076         storing incomplete byte sequence in state object.  Avoid testing for
28077         guaranteed too small input if we know there is enough data available.
28078
28079 2011-05-11  Andreas Schwab  <schwab@redhat.com>
28080
28081         * Makeconfig (+link-pie): Indent.
28082         * Rules (binaries-pie): Define if $(have-fpie) and
28083         $(build-shared).
28084         (binaries-shared): Also filter out $(binaries-pie).
28085         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
28086         * nscd/Makefile (others-pie): Add nscd.
28087         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
28088         ($(objpfx)nscd): Remove command override.
28089         * login/Makefile (others-pie): Add pt_chown.
28090         ($(objpfx)pt_chown): Remove command override.
28091         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
28092         remove command overrides.
28093
28094 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
28095
28096         * libio/tst_putwc.c: Fix error messages.
28097
28098         [BZ #12724]
28099         * libio/fileops.c (_IO_new_file_close_it): Always flush when
28100         currently writing and seek to current position when not.
28101         * libio/Makefile (tests): Add bug-fclose1.
28102         * libio/bug-fclose1.c: New file.
28103
28104 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
28105
28106         [BZ #12511]
28107         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
28108         don't set DF_1_NODELETE here.
28109         (do_lookup_x): When entering new entry test for copy relocation
28110         and if necessary set DF_1_NODELETE flag.
28111         * elf/tst-unique4.cc: New file.
28112         * elf/tst-unique4.h: New file.
28113         * elf/tst-unique4lib.cc: New file.
28114         * elf/Makefile: Add rules to build and run tst-unique4.
28115         Patch by Piotr Bury <pbury@goahead.com>.
28116
28117 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
28118
28119         [BZ #12052]
28120         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
28121
28122         [BZ #12625]
28123         * misc/mntent_r.c (addmntent): Flush the stream after the output
28124
28125         [BZ #12393]
28126         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
28127         (is_trusted_path_normalize): Skip initial colon.  Append slash
28128         to empty buffer.  Duplicate is_trusted_path code but allow
28129         constructed patch to be prefix.
28130         (is_dst): Allow $ORIGIN followed by /.
28131         (_dl_dst_substitute): Correct clearing of check_for_trusted.
28132         Correct testing of result of is_trusted_path_normalize
28133         (decompose_rpath): Fix warning.
28134
28135 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
28136
28137         [BZ #11257]
28138         * grp/initgroups.c (internal_getgrouplist): When we found the service
28139         list through the initgroups entry in nsswitch.conf do not always
28140         continue on a successful lookup.  Don't always use the
28141         __nss_group_database value if it is set.
28142         * nss/nsswitch.conf (initgroups): Change action for successful db
28143         lookup to continue for compatibility.
28144
28145 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
28146
28147         [BZ #11532]
28148         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
28149         and CP774 modules.
28150         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
28151         and CP774 modules.
28152         * iconvdata/tst-tables.sh: Likewise.
28153         * iconvdata/cp770.c: New file.
28154         * iconvdata/cp771.c: New file.
28155         * iconvdata/cp772.c: New file.
28156         * iconvdata/cp773.c: New file.
28157         * iconvdata/cp774.c: New file.
28158         * iconvdata/testdata/CP770: New file.
28159         * iconvdata/testdata/CP770..UTF8: New file.
28160         * iconvdata/testdata/CP771: New file.
28161         * iconvdata/testdata/CP771..UTF8: New file.
28162         * iconvdata/testdata/CP772: New file.
28163         * iconvdata/testdata/CP772..UTF8: New file.
28164         * iconvdata/testdata/CP773: New file.
28165         * iconvdata/testdata/CP773..UTF8: New file.
28166         * iconvdata/testdata/CP774: New file.
28167         * iconvdata/testdata/CP774..UTF8: New file.
28168
28169         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
28170         END CHARMAP line.
28171         * iconvdata/gen-8bit-gap.sh: Likewise.
28172         * iconvdata/gen-8bit.sh: Likewise.
28173
28174         * locale/iso-639.def: Add ary entry.
28175
28176         [BZ #11258]
28177         * locale/C-translit.h.in: Add U20A1 transliteration.
28178
28179         [BZ #12178]
28180         * locale/iso-639.def: Add wae entry.
28181         Patch by Kevin Bortis <bortis@translate-wae.ch>.
28182
28183         [BZ #12545]
28184         * locale/programs/localedef.c (construct_output_path): Use ssize_t
28185         for n.
28186
28187         [BZ #12711]
28188         * locale/C-translit.h.in: Add entry for U20B9.
28189         Patch by pravin.d.s@gmail.com.
28190
28191 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
28192
28193         [BZ #12713]
28194         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
28195         ENAMETOOLONG use generic getcwd.
28196         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
28197         in rtld.  Use *stat64.
28198         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
28199         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
28200         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
28201         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
28202         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
28203         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
28204         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
28205         __fstatat64 macros.
28206         * include/dirent.h: Add libc_hidden_proto for rewinddir.
28207         * dirent/rewinddir.c: Add libc_hidden_def.
28208         * sysdeps/mach/hurd/rewinddir.c: Likewise.
28209         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
28210
28211         * include/dirent.h (__alloc_dir): Add flags parameter.
28212         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
28213         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
28214         __alloc_dir.
28215         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
28216         from fdopendir if O_CLOEXEC is already set.
28217
28218 2011-03-15  Alan Modra  <amodra@gmail.com>
28219
28220         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
28221         l_tls_firstbyte_offset non-zero.  Save padding offset in
28222         l_tls_firstbyte_offset for later use.
28223         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
28224         freeing static tls block.
28225
28226 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
28227
28228         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
28229         where #ifdef was intended.  The intent is to prevent ARG_MAX from
28230         being defined by the kernel headers.
28231
28232 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
28233
28234         [BZ #12734]
28235         * resolv/resolv.h: Define RES_NOTLDQUERY.
28236         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
28237         no-tld-query and set RES_NOTLDQUERY.
28238         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
28239         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
28240         modern BIND to search name as TLD unless forbidden.
28241
28242 2011-05-07  Petr Baudis  <pasky@suse.cz>
28243             Ulrich Drepper  <drepper@gmail.com>
28244
28245         [BZ #12393]
28246         * elf/dl-load.c (fillin_rpath): Move trusted path check...
28247         (is_trusted_path): ...to here.
28248         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
28249         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
28250         using is_trusted_path_normalize() in setuid scripts.
28251
28252 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
28253
28254         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
28255         __BEGIN/__END_DECLS.
28256
28257 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
28258
28259         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
28260         NSS_STATUS_NOTFOUND if no record was found.
28261
28262 2011-05-05  Andreas Schwab  <schwab@redhat.com>
28263
28264         * sunrpc/Makefile (headers): Add rpc/netdb.h.
28265         (headers-not-in-tirpc): Remove rpc/netdb.h
28266         * resolv/netdb.h: Revert last change.
28267
28268 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
28269
28270         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
28271         circular dependency between libgcc.a and libc.a.
28272
28273 2011-05-05  Andreas Schwab  <schwab@redhat.com>
28274
28275         * resolv/netdb.h: Don't include <rpc/netdb.h>.
28276         * nis/Makefile: Don't install rpcsvc/*.
28277         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
28278         instead of <rpc/types.h>.
28279         (MAXHOSTNAMELEN): Define.
28280
28281 2011-05-03  Andreas Schwab  <schwab@redhat.com>
28282
28283         * elf/ldconfig.c (add_dir): Don't crash on empty path.
28284
28285 2011-04-28  Maciej Babinski  <mbabinski@google.com>
28286
28287         [BZ #12714]
28288         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
28289         gethostbyname4_r when IPv6 results are possible.
28290
28291 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
28292
28293         [BZ #12723]
28294         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
28295         _PC_PIPE_BUF handling.
28296
28297 2011-04-30  Bruno Haible  <bruno@clisp.org>
28298
28299         [BZ #12717]
28300         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
28301         * resolv/netdb.h (getnameinfo): Change type of flags parameter
28302         to 'int'.
28303         * inet/getnameinfo.c (getnameinfo): Likewise.
28304
28305 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
28306
28307         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
28308         to groups setting in database lookup.
28309         * nss/nsswitch.conf: Add initgroups entry.
28310
28311 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
28312
28313         [BZ #12685]
28314         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
28315         mode string.
28316         Patch by Eric Blake <eblake@redhat.com>.
28317
28318 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
28319
28320         * sunrpc/Makefile (need-export-routines): Add svc_run.
28321         (routines): Remove svc_run.
28322         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
28323         * sunrpc/clnt_perr.c (clnt_perrno): Export.
28324         * sunrpc/svc_run.c (svc_run): Likewise.
28325         * sunrpc/svc_udp.c (svcudp_create): Likewise.
28326
28327 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
28328
28329         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
28330         problem in reallocation in last patch.
28331
28332 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
28333
28334         * sunrpc/Makefile: Move inclusion of Rules.
28335
28336 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
28337
28338         * nss/nss_files/files-initgroups.c: New file.
28339         * nss/Makefile (libnss_files-routines): Add files-initgroups.
28340         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
28341         _nss_files_initgroups_dyn.
28342
28343 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
28344
28345         * elf/elf.h (R_ARM_IRELATIVE): Define.
28346
28347 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
28348
28349         * po/ru.po: Update from translation team.
28350
28351 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
28352
28353         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
28354         dependencies.
28355
28356 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
28357
28358         [BZ #12653]
28359         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
28360         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
28361         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
28362         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
28363         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
28364
28365 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
28366
28367         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
28368         differing bytes.
28369         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
28370         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
28371         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
28372
28373 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
28374
28375         [BZ #12420]
28376         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
28377         storing it.
28378         * stdlib/bug-getcontext.c: New file.
28379         * stdlib/Makefile: Add rules to build and run bug-getcontext.
28380
28381 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28382
28383         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
28384         instructions into .machine "z9-109".
28385         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
28386         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
28387
28388 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28389
28390         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
28391         between environment variables and auxiliary vector.
28392
28393 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
28394
28395         * Makefile: Add rules to build linkobj/libc.so.
28396         * include/libc-symbols.h: Define libc_hidden_nolink.
28397         * include/rpc/auth.h: Mark functions which are to be hidden.
28398         * include/rpc/auth_des.h: Likewise.
28399         * include/rpc/auth_unix.h: Likewise.
28400         * include/rpc/clnt.h: Likewise.
28401         * include/rpc/des_crypt.h: Likewise.
28402         * include/rpc/key_prot.h: Likewise.
28403         * include/rpc/pmap_clnt.h: Likewise.
28404         * include/rpc/pmap_prot.h: Likewise.
28405         * include/rpc/pmap_rmt.h: Likewise.
28406         * include/rpc/rpc_msg.h: Likewise.
28407         * include/rpc/svc.h: Likewise.
28408         * include/rpc/svc_auth.h: Likewise.
28409         * include/rpc/xdr.h: Likewise.
28410         * nis/Makefile: Link all DSOs against linkobj/libc.so.
28411         * nss/Makefile: Likewise.
28412         * sunrpc/Makefile: Don't install headers.  Build library with normal
28413         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
28414         * sunrpc/auth_des.c: Hide exported symbols by default, export some
28415         for the compat linking library.  Remove use of INTDEF/INTUSE.
28416         * sunrpc/auth_none.c: Likewise.
28417         * sunrpc/auth_unix.c: Likewise.
28418         * sunrpc/authdes_prot.c: Likewise.
28419         * sunrpc/authuxprot.c: Likewise.
28420         * sunrpc/clnt_gen.c: Likewise.
28421         * sunrpc/clnt_perr.c: Likewise.
28422         * sunrpc/clnt_raw.c: Likewise.
28423         * sunrpc/clnt_simp.c: Likewise.
28424         * sunrpc/clnt_tcp.c: Likewise.
28425         * sunrpc/clnt_udp.c: Likewise.
28426         * sunrpc/clnt_unix.c: Likewise.
28427         * sunrpc/des_crypt.c: Likewise.
28428         * sunrpc/des_soft.c: Likewise.
28429         * sunrpc/get_myaddr.c: Likewise.
28430         * sunrpc/key_call.c: Likewise.
28431         * sunrpc/key_prot.c: Likewise.
28432         * sunrpc/netname.c: Likewise.
28433         * sunrpc/pm_getmaps.c: Likewise.
28434         * sunrpc/pm_getport.c: Likewise.
28435         * sunrpc/pmap_clnt.c: Likewise.
28436         * sunrpc/pmap_prot.c: Likewise.
28437         * sunrpc/pmap_prot2.c: Likewise.
28438         * sunrpc/pmap_rmt.c: Likewise.
28439         * sunrpc/publickey.c: Likewise.
28440         * sunrpc/rpc_cmsg.c: Likewise.
28441         * sunrpc/rpc_common.c: Likewise.
28442         * sunrpc/rpc_dtable.c: Likewise.
28443         * sunrpc/rpc_prot.c: Likewise.
28444         * sunrpc/rpc_thread.c: Likewise.
28445         * sunrpc/rtime.c: Likewise.
28446         * sunrpc/svc.c: Likewise.
28447         * sunrpc/svc_auth.c: Likewise.
28448         * sunrpc/svc_authux.c: Likewise.
28449         * sunrpc/svc_raw.c: Likewise.
28450         * sunrpc/svc_run.c: Likewise.
28451         * sunrpc/svc_simple.c: Likewise.
28452         * sunrpc/svc_tcp.c: Likewise.
28453         * sunrpc/svc_udp.c: Likewise.
28454         * sunrpc/svc_unix.c: Likewise.
28455         * sunrpc/svcauth_des.c: Likewise.
28456         * sunrpc/xcrypt.c: Likewise.
28457         * sunrpc/xdr.c: Likewise.
28458         * sunrpc/xdr_array.c: Likewise.
28459         * sunrpc/xdr_float.c: Likewise.
28460         * sunrpc/xdr_intXX_t.c: Likewise.
28461         * sunrpc/xdr_mem.c: Likewise.
28462         * sunrpc/xdr_rec.c: Likewise.
28463         * sunrpc/xdr_ref.c: Likewise.
28464         * sunrpc/xdr_sizeof.c: Likewise.
28465         * sunrpc/xdr_stdio.c: Likewise.
28466
28467 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
28468
28469         [BZ #12650]
28470         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
28471         * sysdeps/ia64/dl-tls.h: Likewise.
28472         * sysdeps/powerpc/dl-tls.h: Likewise.
28473         * sysdeps/s390/dl-tls.h: Likewise.
28474         * sysdeps/sh/dl-tls.h: Likewise.
28475         * sysdeps/sparc/dl-tls.h: Likewise.
28476         * sysdeps/x86_64/dl-tls.h: Likewise.
28477         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
28478
28479 2011-03-14  Andreas Schwab  <schwab@redhat.com>
28480
28481         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
28482         rpath element also skip the following colon.
28483         (expand_dynamic_string_token): Add is_path parameter and pass
28484         down to DL_DST_REQUIRED and _dl_dst_substitute.
28485         (decompose_rpath): Call expand_dynamic_string_token with
28486         non-zero is_path.  Ignore empty rpaths.
28487         (_dl_map_object_from_fd): Call expand_dynamic_string_token
28488         with zero is_path.
28489
28490 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
28491
28492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
28493         Make cancelable.
28494
28495 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
28496
28497         [BZ #12655]
28498         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
28499         Patch by Filipe David Manana <fdmanana@apache.org>.
28500
28501 2011-04-07  Andreas Schwab  <schwab@redhat.com>
28502
28503         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
28504         Maintain aligned stack.
28505         (CHECK_RSP): Remove unused macro.
28506
28507 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
28508
28509         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
28510         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
28511
28512 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
28513
28514         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
28515
28516         * include/features.h: Mention __USE_XOPEN2K8 in comment.
28517
28518 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
28519
28520         [BZ #12518]
28521         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
28522         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
28523         * sysdeps/x86_64/memmove.c: New file.
28524         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
28525         (memcpy): Renamed to ...
28526         (__new_memcpy): This.
28527         (memcpy): Provide GLIBC_2_14 memcpy.
28528         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
28529         (memcpy): Provide GLIBC_2_2_5 memcpy.
28530
28531 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
28532
28533         [BZ #12631]
28534         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
28535
28536 2011-03-30  Andreas Schwab  <schwab@redhat.com>
28537
28538         * misc/syncfs.c: New file.
28539         * misc/Makefile (routines): Add syncfs.
28540         * posix/unistd.h: Declare syncfs.
28541         * sysdeps/unix/syscalls.list: Add syncfs.
28542
28543 2011-04-01  Andreas Schwab  <schwab@redhat.com>
28544
28545         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
28546         open_by_handle_at.
28547         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
28548         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
28549         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28550         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28551         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28552         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
28553         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28554
28555 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
28556
28557         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
28558         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
28559         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
28560         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28561         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28562         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28563         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28564
28565         * io/Makefile: Compile fallocate.c, fallocate64.c, and
28566         sync_file_range.c with -fexceptions.
28567         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
28568         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
28569         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
28570         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
28571         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
28572         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
28573         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
28574         sync_file_range as cancellation point
28575         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
28576         now a wrapper around __call_sync_file_range with cancellation handling.
28577         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
28578         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
28579         function name to __call_sync_file_range.
28580         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
28581         Add call_sync_file_range.
28582
28583 2011-04-01  Andreas Schwab  <schwab@redhat.com>
28584
28585         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28586         bits/timex.h.
28587
28588 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
28589
28590         * iconv/iconv.h: Fix typo in comment.
28591         * io/fcntl.h: Likewise.
28592         * libio/stdio.h: Likewise.
28593         * posix/spawn.h: Likewise.
28594         * posix/unistd.h: Likewise.
28595         * stdlib/stdlib.h: Likewise.
28596         * time/time.h: Likewise.
28597         * wcsmbs/wchar.h: Likewise.
28598
28599         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
28600         open_by_handle): Add.
28601         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
28602         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
28603         Augment a few comments.
28604         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
28605         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28606         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28607         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28608         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28609         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
28610         open_by_handle.
28611
28612         * io/fcntl.h (AT_EMPTY_PATH): Define.
28613
28614 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
28615
28616         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
28617         * sysdeps/unix/sysv/linux/bits/time.h: New file.
28618         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
28619         to...
28620         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
28621         * Versions.def: Add GLIBC_2.14.
28622         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
28623         Export.
28624
28625 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
28626
28627         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
28628         round counter.
28629         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
28630
28631 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28632
28633         [BZ #12597]
28634         * string/test-strncmp.c (do_page_test): New function.
28635         (check2): Likewise.
28636         (test_main): Call check2.
28637         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
28638
28639 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
28640
28641         [BZ #12587]
28642         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
28643         Handle cache information in CPU leaf 4.
28644         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
28645
28646 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
28647
28648         [BZ #12583]
28649         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
28650         character representation.
28651         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
28652
28653 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
28654
28655         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
28656         END(__isnan) to END(__isnanf) to match function entry point/label
28657         EALIGN(__isnanf,...).
28658
28659 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
28660
28661         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
28662
28663 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
28664
28665         [BZ #12510]
28666         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
28667         copy from the symbol referenced in the relocation to initialize the
28668         used variable.
28669         Patch by Piotr Bury <pbury@goahead.com>.
28670         * elf/Makefile: Add rules to build and tst-unique3.
28671         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
28672         * elf/tst-unique3.cc: New file.
28673         * elf/tst-unique3.h: New file.
28674         * elf/tst-unique3lib.cc: New file.
28675         * elf/tst-unique3lib2.cc: New file.
28676
28677         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
28678
28679 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
28680
28681         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
28682         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
28683         to _start.
28684
28685 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
28686
28687         * elf/dl-load.c (_dl_map_object): If we are looking for the first
28688         to-be-loaded object along a path to loader is ld.so.
28689
28690 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
28691             Ulrich Drepper  <drepper@gmail.com>
28692
28693         * sysdeps/x86_64/memset.S: After aligning destination, code
28694         branches to different locations depending on the value of
28695         misalignment, when multiarch is enabled. Fix this.
28696
28697 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
28698
28699         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
28700         Set _x86_64_preferred_memory_instruction for AMD processsors.
28701         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28702         Set bit_Prefer_SSE_for_memop for AMD processors.
28703
28704 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
28705
28706         * libio/fmemopen.c (fmemopen): Optimize a bit.
28707
28708 2011-03-03  Andreas Schwab  <schwab@redhat.com>
28709
28710         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
28711
28712 2011-03-03  Roland McGrath  <roland@redhat.com>
28713
28714         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
28715
28716 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
28717
28718         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
28719         __bzero_ultra1 instead of __memset_ultra1.
28720
28721 2011-02-23  Andreas Schwab  <schwab@redhat.com>
28722             Ulrich Drepper  <drepper@gmail.com>
28723
28724         [BZ #12509]
28725         * include/link.h (struct link_map): Add l_orig_initfini.
28726         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
28727         returning unsuccessfully.
28728         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
28729         close of a file loaded at startup, restore the original l_initfini
28730         list.
28731         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
28732         list, store the pointer.
28733         * elf/Makefile ($(objpfx)noload-mem): New rule.
28734         (noload-ENV): Define.
28735         (tests): Add $(objpfx)noload-mem.
28736         * elf/noload.c: Include <memcheck.h>.
28737         (main): Call mtrace.  Close all opened handles.
28738
28739 2011-02-17  Andreas Schwab  <schwab@redhat.com>
28740
28741         [BZ #12454]
28742         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
28743         dependencies are missing.
28744
28745 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28746
28747         Fix __if_freereq crash: Unlike the generic version which uses free,
28748         Hurd needs munmap.
28749         * sysdeps/mach/hurd/ifreq.h: New file.
28750
28751 2011-01-27  Petr Baudis  <pasky@suse.cz>
28752             Ulrich Drepper  <drepper@gmail.com>
28753
28754         [BZ 12445]#
28755         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
28756         to extend_alloca().
28757         * stdio-common/bug23.c: New file.
28758         * stdio-common/Makefile (tests): Add bug23.
28759
28760 2010-09-28  Andreas Schwab  <schwab@redhat.com>
28761             Ulrich Drepper  <drepper@gmail.com>
28762
28763         [BZ #12489]
28764         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
28765         before performing relro protection.  At old place add assertion
28766         to make sure nothing changed.
28767
28768 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
28769             Glauber de Oliveira Costa  <glommer@gmail.com>
28770
28771         * elf/elf.h: Add new ARM TLS relocs.
28772
28773 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
28774
28775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
28776         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
28777         cast from r3.
28778         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
28779         'tests' variable.
28780         * sysdeps/wordsize-64/tst-writev.c: New file.
28781
28782 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
28783
28784         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
28785         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
28786         insns in _dl_start to prevent a TOC reference before relocs are
28787         resolved.
28788
28789 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
28790
28791         [BZ #12469]
28792         * Makeconfig: Remove RANLIB definition.
28793         * Makerules: Don't use RANLIB.
28794         * aclocal.m4: Remove ranlib test.
28795         * configure.in: No need to check for ranlib.
28796         * elf/rtld-Rules: Don't use RANLIB.
28797
28798 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28799
28800         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
28801         protection macro.
28802         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
28803         inclusion protection macro.
28804
28805         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
28806         SIGRTMIN and SIGRTMAX and print information in that case only when
28807         SIGRTMIN is defined.
28808
28809 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
28810
28811         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
28812         arginfo fn returning -1.
28813
28814         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
28815         and thousands string is zero terminated.
28816
28817 2011-02-03  Andreas Schwab  <schwab@redhat.com>
28818
28819         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
28820         sysdeps/unix/sysv/linux/bits/socket.h.
28821
28822 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28823
28824         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
28825         (__CPU_COUNT): Remove old macros.
28826         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
28827         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
28828         (__CPU_ALLOC, __CPU_FREE): Add macros.
28829         (__sched_cpualloc, __sched_cpufree): Add declarations.
28830
28831 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
28832
28833         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
28834         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
28835         * nscd/aicache.c (addhstaiX): Return timeout of added value.
28836         (readdhstai): Return value of addhstaiX call.
28837         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
28838         (addgrbyX): Return value returned by cache_addgr.
28839         (readdgrbyname): Return value returned by addgrbyX.
28840         (readdgrbygid): Likewise.
28841         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
28842         (addpwbyX): Return value returned by cache_addpw.
28843         (readdpwbyname): Return value returned by addhstbyX.
28844         (readdpwbyuid): Likewise.
28845         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
28846         (addservbyX): Return value returned by cache_addserv.
28847         (readdservbyname): Return value returned by addservbyX:
28848         (readdservbyport): Likewise.
28849         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
28850         (addhstbyX): Return value returned by cache_addhst.
28851         (readdhstbyname): Return value returned by addhstbyX.
28852         (readdhstbyaddr): Likewise.
28853         (readdhstbynamev6): Likewise.
28854         (readdhstbyaddrv6): Likewise.
28855         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
28856         (readdinitgroups): Return value returned by addinitgroupsX.
28857         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
28858         (prune_cache): Keep track of timeout value of re-added entries.
28859         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
28860         * nscd/nscd.h: Adjust prototypes of readd* functions.
28861
28862 2011-02-04  Roland McGrath  <roland@redhat.com>
28863
28864         * nis/nis_server.c (nis_servstate): Use the right name for 0.
28865         (nis_stats): Likewise.
28866         * nis/nis_modify.c (nis_modify): Likewise.
28867         * nis/nis_remove.c (nis_remove): Likewise.
28868         * nis/nis_add.c (nis_add): Likewise.
28869
28870         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
28871
28872         * posix/fnmatch_loop.c: Add some consts.
28873
28874         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
28875
28876 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
28877
28878         [BZ #12460]
28879         * config.make.in (config-cflags-novzeroupper): Define.
28880         * configure.in: Substitute libc_cv_cc_novzeroupper.
28881         * elf/Makefile (AVX-CFLAGS): Define.
28882         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
28883         (CFLAGS-tst-auditmod4a.c): Likewise.
28884         (CFLAGS-tst-auditmod4b.c): Likewise.
28885         (CFLAGS-tst-auditmod6b.c): Likewise.
28886         (CFLAGS-tst-auditmod6c.c): Likewise.
28887         (CFLAGS-tst-auditmod7b.c): Likewise.
28888         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
28889
28890 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
28891
28892         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
28893         function to the callback.
28894         Patch partly by Jiri Olsa <jolsa@redhat.com>.
28895
28896 2011-02-02  Andreas Schwab  <schwab@redhat.com>
28897
28898         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
28899         of errno.
28900
28901 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
28902
28903         [BZ #11724]
28904         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
28905         of constructors.
28906         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
28907         of destructors.
28908         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
28909
28910         [BZ #11724]
28911         * elf/Makefile: Add rules to build and run new test.
28912         * elf/tst-initorder.c: New file.
28913         * elf/tst-initorder.exp: New file.
28914         * elf/tst-initordera1.c: New file.
28915         * elf/tst-initordera2.c: New file.
28916         * elf/tst-initordera3.c: New file.
28917         * elf/tst-initordera4.c: New file.
28918         * elf/tst-initorderb1.c: New file.
28919         * elf/tst-initorderb2.c: New file.
28920         * elf/tst-order-a1.c: New file.
28921         * elf/tst-order-a2.c: New file.
28922         * elf/tst-order-a3.c: New file.
28923         * elf/tst-order-a4.c: New file.
28924         * elf/tst-order-b1.c: New file.
28925         * elf/tst-order-b2.c: New file.
28926         * elf/tst-order-main.c: New file.
28927         New test case by George Gensure <werkt0@gmail.com>.
28928
28929 2010-10-01  Andreas Schwab  <schwab@redhat.com>
28930
28931         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
28932         decoding ACE if AI_CANONIDN.
28933
28934 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
28935
28936         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
28937
28938 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
28939
28940         * version.h (RELEASE): Bump for 2.13 release.
28941         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
28942
28943         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
28944
28945         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
28946         MADV_NOHUGEPAGE.
28947         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
28948         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
28949         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
28950         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
28951         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
28952         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
28953
28954         * posix/getconf.c: Update copyright year.
28955         * catgets/gencat.c: Likewise.
28956         * csu/version.c: Likewise.
28957         * debug/catchsegv.sh: Likewise.
28958         * debug/xtrace.sh: Likewise.
28959         * elf/ldconfig.c: Likewise.
28960         * elf/ldd.bash.in: Likewise.
28961         * elf/sprof.c (print_version): Likewise.
28962         * iconv/iconv_prog.c: Likewise.
28963         * iconv/iconvconfig.c: Likewise.
28964         * locale/programs/locale.c: Likewise.
28965         * locale/programs/localedef.c: Likewise.
28966         * malloc/memusage.sh: Likewise.
28967         * malloc/mtrace.pl: Likewise.
28968         * nscd/nscd.c (print_version): Likewise.
28969         * nss/getent.c: Likewise.
28970
28971         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
28972         PF_CAIF, and PF_ALG.
28973         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
28974
28975 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
28976
28977         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
28978         (modules-names): Use them.
28979         (ifunc-test-modules, ifunc-pie-tests): Define.
28980         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
28981         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
28982         (test-extras): Likewise.
28983         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
28984         $(compile-command.c).
28985         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
28986         (all-built-dso): Define.
28987         (check-textrel.out, check-execstack.out): Depend on it.
28988
28989         * configure.in: Don't override --enable-multi-arch.
28990
28991 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
28992
28993         [BZ #6812]
28994         * nscd/hstcache.c (tryagain): Define.
28995         (cache_addhst): Return tryagain not notfound for temporary errors.
28996         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
28997         failed.
28998
28999 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
29000
29001         [BZ #10563]
29002         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
29003         to make the syscall.
29004         * sysdeps/unix/sysv/linux/setgroups.c: New file.
29005
29006         [BZ #12378]
29007         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
29008         and fall back to matching as normal character if the string ends before
29009         the matching ']' is found.  This is what POSIX requires.
29010         * posix/testfnm.c: Adjust test result.
29011         * posix/globtest.sh: Adjust test result.  Add new test.
29012         * posix/tst-fnmatch.input: Likewise.
29013         * posix/tst-fnmatch2.c: Add new test.
29014
29015 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
29016
29017         * elf/Makefile (check-execstack): Revert last change.  Depend on
29018         check-execstack.h.
29019         (check-execstack.h): New target.
29020         (generated): Add check-execstack.h.
29021         * elf/check-execstack.c: Include "check-execstack.h".
29022         (main): Revert last change.
29023         (handle_file): Return zero if GNU_STACK is absent and
29024         DEFAULT_STACK_PERMS doesn't include PF_X.
29025
29026 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
29027
29028         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
29029         in child fails because the descriptor is already closed.
29030         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
29031         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
29032         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
29033
29034         [BZ #12397]
29035         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
29036         syscall.
29037
29038         [BZ #10484]
29039         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
29040         temporary buffer used to handle multi lookups locally.
29041         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
29042
29043 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
29044
29045         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
29046         loader is ld.so.
29047
29048 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
29049
29050         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
29051         alignment for SSE2.
29052
29053 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
29054
29055         [BZ #12394]
29056         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
29057         characters.  When rounding increased number of integer digits recompute
29058         number of groups.
29059         * stdio-common/tst-grouping.c: New file.
29060         * stdio-common/Makefile: Add rules to build and run tst-grouping.
29061
29062 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
29063
29064         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
29065         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
29066
29067         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
29068         void.
29069         * bits/select.h: Likewise.
29070
29071 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
29072
29073         * po/ja.po: Update from translation team.
29074
29075 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
29076
29077         [BZ #11155]
29078         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
29079         implementation just like for lxstat, fxstatat, et al.
29080
29081 2010-12-27  Jim Meyering  <meyering@redhat.com>
29082
29083         [BZ #12348]
29084         * posix/regexec.c (build_trtable): Return failure indication upon
29085         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
29086
29087 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
29088
29089         [BZ #12201]
29090         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
29091         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
29092         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
29093         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
29094
29095         [BZ #12207]
29096         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
29097
29098         [BZ #12204]
29099         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
29100         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
29101
29102 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
29103
29104         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
29105         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
29106         script has SORT_BY_INIT_PRIORITY.
29107         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
29108         NO_CTORS_DTORS_SECTIONS is defined.
29109         * elf/soinit.c: Likewise.
29110         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
29111         NO_CTORS_DTORS_SECTIONS is defined.
29112         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
29113         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
29114         * sysdeps/sh/init-first.c: Likewise.
29115         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
29116
29117 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
29118
29119         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
29120         always use the slow path.
29121
29122 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
29123
29124         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
29125         similar rule which adds the sysdep directories to the header search in
29126         order to pick up the correct platform stackinfo.h.
29127         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
29128         perform test if it is, otherwise return successfully without testing.
29129         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
29130         DEFAULT_STACK_PERMS define in stackinfo.h.
29131         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
29132         defined in stackinfo.h.
29133         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
29134         DEFAULT_STACK_PERMS defined in stackinfo.h.
29135         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
29136         * sysdeps/ia64/stackinfo.h: Likewise.
29137         * sysdeps/s390/stackinfo.h: Likewise.
29138         * sysdeps/sh/stackinfo.h: Likewise.
29139         * sysdeps/sparc/stackinfo.h: Likewise.
29140         * sysdeps/x86_64/stackinfo.h: Likewise.
29141         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
29142         PF_X for powerpc64.  Retain PF_X for powerpc32.
29143
29144 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
29145
29146         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
29147         accurately.
29148         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
29149         GETDENTS_64BIT_ALIGNED.
29150
29151 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
29152
29153         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
29154
29155 2010-12-10  Andreas Schwab  <schwab@redhat.com>
29156
29157         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
29158         _GNU_SOURCE.
29159
29160         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
29161         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
29162         Remove __restrict.
29163         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
29164         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
29165
29166 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
29167
29168         [BZ #11655]
29169         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
29170         are initialized.
29171
29172 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
29173
29174         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
29175
29176 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
29177
29178         * po/it.po: Update from translation team.
29179
29180 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
29181
29182         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
29183         unused codes.
29184
29185 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
29186
29187         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
29188
29189 2010-11-24  Andreas Schwab  <schwab@redhat.com>
29190
29191         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
29192         specially.
29193         (gaih_getanswer_slice): Likewise.
29194
29195 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
29196
29197         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
29198
29199 2010-05-31  Petr Baudis  <pasky@suse.cz>
29200
29201         [BZ #11149]
29202         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
29203         silently even in the chroot mode.
29204
29205 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
29206
29207         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
29208         last patch a bit.  Pretty printing
29209
29210 2010-05-31  Petr Baudis <pasky@suse.cz>
29211
29212         [BZ #10085]
29213         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
29214         initialization of skip_initgroups_dyn.
29215
29216 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
29217
29218         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
29219         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
29220
29221 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
29222
29223         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
29224
29225 2010-11-11  Andreas Schwab  <schwab@redhat.com>
29226
29227         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
29228         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
29229         (tst-fnmatch-ENV): Set MALLOC_TRACE.
29230         ($(objpfx)tst-fnmatch-mem): New rule.
29231         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
29232         * posix/tst-fnmatch.c (main): Call mtrace.
29233
29234 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
29235
29236         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29237         Support Intel processor model 6 and model 0x2c.
29238
29239 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
29240
29241         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
29242           signed comparison.
29243
29244 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
29245
29246         [BZ #12205]
29247         * string/test-strncasecmp.c (check_result): New function.
29248         (do_one_test): Use it.
29249         (check1): New function.
29250         (test_main): Use it.
29251         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
29252         Support strcasecmp and strncasecmp.
29253
29254 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
29255
29256         [BZ #12194]
29257         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
29258         * sysdeps/x86_64/bits/byteswap.h: Likewise.
29259
29260 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
29261
29262         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
29263         IFUNC support.
29264         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29265         memset-x86-64.
29266         * sysdeps/x86_64/multiarch/bzero.S: New file.
29267         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
29268         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
29269         * sysdeps/x86_64/multiarch/memset.S: New file.
29270         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
29271         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29272         Set bit_Prefer_SSE_for_memop for Intel processors.
29273         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
29274         Define.
29275         (index_Prefer_SSE_for_memop): Define.
29276         (HAS_PREFER_SSE_FOR_MEMOP): Define.
29277
29278 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
29279
29280         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
29281         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
29282
29283 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
29284
29285         [BZ #12191]
29286         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
29287         (__x86_64_raw_data_cache_size_half): Likewise.
29288         (__x86_64_raw_shared_cache_size): Likewise.
29289         (__x86_64_raw_shared_cache_size_half): Likewise.
29290
29291         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
29292         (__x86_64_raw_data_cache_size_half): Likewise.
29293         (__x86_64_raw_shared_cache_size): Likewise.
29294         (__x86_64_raw_shared_cache_size_half): Likewise.
29295         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
29296         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
29297         and __x86_64_raw_shared_cache_size_half.  Round
29298         __x86_64_data_cache_size_half, __x86_64_data_cache_size
29299         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
29300         to multiple of 256 bytes.
29301
29302 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
29303
29304         [BZ #12167]
29305         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
29306         of inacessible symlinks.  Verify result of symlink before returning it.
29307         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
29308         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
29309
29310 2010-10-28  Erich Ritz  <erichritz@gmail.com>
29311
29312         * math/math.h (isinf): Fix typo in comment.
29313
29314 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
29315
29316         * po/da.po: Update from translation team.
29317
29318 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
29319
29320         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
29321         is added to the list.
29322
29323 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29324             Ulrich Drepper  <drepper@gmail.com>
29325
29326         * elf/dl-object.c (_dl_new_object): Don't append the new object to
29327         the global list here.  Move code to...
29328         (_dl_add_to_namespace_list): ...here.  New function.
29329         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
29330         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
29331         * elf/dl-load.c (lose): Don't remove the element from the list.
29332         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
29333         (_dl_map_object): Likewise.
29334
29335 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
29336
29337         [BZ #12159]
29338         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
29339         into all bytes of SSE register.
29340         Patch by Richard Li <richardpku@gmail.com>.
29341
29342 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
29343
29344         [BZ #12140]
29345         * malloc/malloc.c (_int_free): Fill correct number of bytes when
29346         perturbing.
29347
29348 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
29349
29350         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
29351         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
29352         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
29353         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
29354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
29355         submachine.
29356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
29357
29358 2010-10-22  Andreas Schwab  <schwab@redhat.com>
29359
29360         * include/dlfcn.h (__RTLD_SECURE): Define.
29361         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
29362         mode & __RTLD_SECURE instead.
29363         (open_path): Rename preloaded parameter to secure.
29364         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
29365         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
29366         * elf/dl-deps.c (openaux): Likewise.
29367         * elf/rtld.c (struct map_args): Remove is_preloaded.
29368         (map_doit): Don't use it.
29369         (dl_main): Likewise.
29370         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
29371         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
29372
29373 2010-09-09  Andreas Schwab  <schwab@redhat.com>
29374
29375         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
29376         (sysd-rules-targets): Remove duplicates.
29377         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
29378         rtld-%.$o dependency.
29379
29380 2010-10-18  Andreas Schwab  <schwab@redhat.com>
29381
29382         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
29383         _dl_map_object do it.
29384
29385 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
29386
29387         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
29388         fast fma builtins, define the macros in the C99 standard.
29389         (FP_FAST_FMAF): Likewise.
29390         (FP_FAST_FMAL): Likewise.
29391         * sysdeps/x86_64/bits/mathdef.h: Likewise.
29392
29393         * bits/mathdef.h: Update copyright year.
29394         * sysdeps/powerpc/bits/mathdef.h: Likewise.
29395
29396 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
29397
29398         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
29399         builtins, define the macros in the C99 standard.
29400         (FP_FAST_FMAF): Likewise.
29401         (FP_FAST_FMAL): Likewise.
29402         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
29403         multiply/add.
29404         (FP_FAST_FMAF): Likewise.
29405
29406 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
29407
29408         [BZ #3268]
29409         * math/libm-test.inc (fma_test): Some new testcases.
29410         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
29411         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
29412         y and infinite z.  Do multiplication by C already in long double.
29413         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
29414         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
29415         y and infinite z.  Do bitwise or of inexact bit into u.d.
29416         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
29417         * sysdeps/i386/fpu/s_fmaf.S: Removed.
29418         * sysdeps/i386/fpu/s_fma.S: Removed.
29419         * sysdeps/i386/fpu/s_fmal.S: Removed.
29420
29421 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
29422
29423         [BZ #3268]
29424         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
29425         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
29426         computation is not scheduled after fetestexcept.  Fix value
29427         of minimum denormal long double.
29428
29429 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
29430
29431         [BZ #3268]
29432         * math/libm-test.inc (fma_test): Add some more tests.
29433         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
29434         correctly.
29435
29436 2010-10-15  Andreas Schwab  <schwab@redhat.com>
29437
29438         * scripts/data/localplt-s390-linux-gnu.data: New file.
29439         * scripts/data/localplt-s390x-linux-gnu.data: New file.
29440
29441 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
29442
29443         [BZ #3268]
29444         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
29445         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
29446         instead of dbl-64.
29447         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
29448         inlines.
29449         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
29450         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
29451         if one of x and y is very large and the other is subnormal.
29452         * sysdeps/s390/fpu/s_fmaf.c: New file.
29453         * sysdeps/s390/fpu/s_fma.c: New file.
29454         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
29455         * sysdeps/powerpc/fpu/s_fma.S: New file.
29456         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
29457         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
29458         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
29459
29460 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
29461
29462         [BZ #3268]
29463         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
29464         fma tests.
29465         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
29466         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
29467         * sysdeps/i386/i686/multiarch/s_fma.c: Include
29468         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
29469         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
29470         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
29471         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
29472
29473 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
29474
29475         [BZ #12078]
29476         * posix/regcomp.c (parse_branch): One more memory leak plugged.
29477         * posix/bug-regex31.input: Add test case.
29478
29479 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
29480
29481         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
29482         * posix/bug-regex31.input: New file.
29483
29484         [BZ #12078]
29485         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
29486         (parse_sub_exp): Fix last change, use postorder.
29487
29488         * posix/bug-regex31.c: New file.
29489         * posix/Makefile: Add rules to build and run bug-regex31.
29490
29491         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
29492
29493         [BZ #12078]
29494         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
29495
29496         [BZ #12108]
29497         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
29498         to have entries in sys_siglist.
29499
29500         [BZ #12093]
29501         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
29502         be NULL.
29503
29504 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
29505
29506         [BZ #3268]
29507         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
29508         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
29509         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
29510         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
29511         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
29512         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
29513         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
29514         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
29515         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
29516         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
29517         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
29518         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
29519         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
29520         * math/ftestexcept.c (fetestexcept): Likewise.
29521         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
29522         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
29523         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
29524         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
29525         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
29526         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
29527         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
29528
29529 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
29530
29531         [BZ #12107]
29532         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
29533         newline.
29534
29535 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
29536
29537         * string/bug-strstr1.c: New file.
29538         * string/Makefile: Add rules to build and run bug-strstr1.
29539
29540 2010-10-05  Eric Blake  <eblake@redhat.com>
29541
29542         [BZ #12092]
29543         * string/str-two-way.h (two_way_long_needle): Always clear memory
29544         when skipping input due to the shift table.
29545
29546 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
29547
29548         [BZ #12005]
29549         * malloc/mcheck.c: Handle large requests.
29550
29551         [BZ #12077]
29552         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
29553         for strncmp and strncasecmp.
29554         * string/stratcliff.c: Add tests for strcmp and strncmp.
29555         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
29556
29557 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
29558
29559         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
29560         __set_fpscr.
29561
29562 2010-09-30  Andreas Jaeger  <aj@suse.de>
29563
29564         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
29565         (CGROUP_SUPER_MAGIC): Define.
29566         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
29567         Handle btrfs and cgroup file systems.
29568         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
29569         Likewise.
29570
29571 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
29572
29573         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
29574         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
29575
29576 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29577
29578         [BZ #12067]
29579         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
29580         trying to locate the ELF header.
29581
29582 2010-09-27  Andreas Schwab  <schwab@redhat.com>
29583
29584         [BZ #11611]
29585         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
29586         Mask out sign-bit copies when constructing f_fsid.
29587
29588 2010-09-24  Petr Baudis <pasky@suse.cz>
29589
29590         * debug/stack_chk_fail_local.c: Add missing licence exception.
29591         * debug/warning-nop.c: Likewise.
29592
29593 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
29594
29595         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
29596         implementing getdents64 using getdents syscall, set d_type if
29597         __ASSUME_GETDENTS32_D_TYPE.
29598
29599 2010-09-16  Andreas Schwab  <schwab@redhat.com>
29600
29601         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
29602         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
29603
29604 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
29605
29606         [BZ #12037]
29607         * posix/unistd.h: Undo change of feature selection for ftruncate from
29608         2010-01-11.
29609
29610 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
29611
29612         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
29613         detection.
29614
29615 2010-09-20  Andreas Schwab  <schwab@redhat.com>
29616
29617         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
29618         fanotify_mark.
29619         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
29620
29621 2010-09-14  Andreas Schwab  <schwab@redhat.com>
29622
29623         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
29624         variables after CHECK_SP call.
29625         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
29626
29627 2010-09-13  Andreas Schwab  <schwab@redhat.com>
29628             Ulrich Drepper  <drepper@redhat.com>
29629
29630         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
29631         re-relocationg ld.so.
29632         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
29633         _dl_init_paths call.
29634         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
29635         here anymore.
29636
29637 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
29638
29639         * resolv/res_init.c (__res_vinit): Count the default server we added.
29640
29641 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
29642             Ulrich Drepper  <drepper@redhat.com>
29643
29644         [BZ #11968]
29645         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
29646         (____longjmp_chk): Use %ebx for saving value across system call.
29647         Add unwind info.
29648
29649 2010-09-06  Andreas Schwab  <schwab@redhat.com>
29650
29651         * manual/Makefile: Don't mix pattern rules with normal rules.
29652
29653 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
29654
29655         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
29656         operation.
29657         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
29658         * libio/iofopncook.c (_IO_cookie_init): Likewise.
29659         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
29660         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
29661         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29662         Likewise.
29663
29664 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
29665
29666         [BZ #11979]
29667         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
29668         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
29669
29670 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
29671
29672         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
29673         * sysdeps/x86_64/addmul_1.S: Likewise.
29674         * sysdeps/x86_64/lshift.S: Likewise.
29675         * sysdeps/x86_64/mul_1.S: Likewise.
29676         * sysdeps/x86_64/rshift.S: Likewise.
29677         * sysdeps/x86_64/sub_n.S: Likewise.
29678         * sysdeps/x86_64/submul_1.S: Likewise.
29679
29680 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29681
29682         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
29683         Define __sched_param instead of SCHED_* and sched_param when
29684         <bits/sched.h> is included with __need_schedparam defined.
29685         * bits/sched.h [__need_schedparam]
29686         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
29687         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
29688         (__defined_schedparam): Define to 1.
29689         (__sched_param): New structure, identical to sched_param.
29690         (__need_schedparam): Undefine.
29691
29692 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
29693
29694         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
29695         (epoll_create1): Declare.
29696
29697         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
29698
29699 2010-08-31  Andreas Schwab  <schwab@redhat.com>
29700
29701         [BZ #7066]
29702         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
29703         shifting retval into place.
29704
29705 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
29706
29707         * nis/rpcsvc/nis.h: Update copyright notice.
29708         * nis/rpcsvc/nis.x: Likewise.
29709         * nis/rpcsvc/nis_callback.h: Likewise.
29710         * nis/rpcsvc/nis_callback.x: Likewise.
29711         * nis/rpcsvc/nis_object.x: Likewise.
29712         * nis/rpcsvc/nis_tags.h: Likewise.
29713         * nis/rpcsvc/yp.h: Likewise.
29714         * nis/rpcsvc/yp.x: Likewise.
29715         * nis/rpcsvc/ypupd.h: Likewise.
29716         * nis/yp_xdr.c: Likewise.
29717         * nis/ypupdate_xdr.c: Likewise.
29718
29719         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
29720         mainly the body of pmap_getport.  Add parameters to specify timeouts.
29721         (pmap_getport): Use __libc_rpc_getport.
29722         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
29723         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
29724         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
29725
29726 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
29727
29728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
29729         fanotify_mark.
29730
29731 2010-08-27  Roland McGrath  <roland@redhat.com>
29732
29733         * sysdeps/i386/i686/multiarch/Makefile
29734         (CFLAGS-varshift.c): New variable.
29735
29736 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
29737
29738         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
29739         * sysdeps/i386/i686/multiarch/varshift.c: New file.
29740
29741         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
29742
29743         * sysdeps/x86_64/strlen.S: Minimal code improvement.
29744
29745 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
29746
29747         * sysdeps/x86_64/strlen.S: Unroll the loop.
29748         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29749         strlen-sse2 strlen-sse2-bsf.
29750         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
29751         __strlen_no_bsf if bit_Slow_BSF is set.
29752         (__strlen_sse42): Removed.
29753         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
29754         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
29755
29756 2010-08-25  Roland McGrath  <roland@redhat.com>
29757
29758         * sysdeps/x86_64/multiarch/varshift.S: File removed.
29759         * sysdeps/x86_64/multiarch/varshift.c: New file.
29760         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
29761         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
29762         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
29763         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
29764
29765 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
29766
29767         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29768         strlen-sse2 strlen-sse2-bsf.
29769         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
29770         __strlen_sse2_bsf if bit_Slow_BSF is unset.
29771         (__strlen_sse2): Removed.
29772         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
29773         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
29774         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
29775         bit_Slow_BSF for Atom.
29776         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
29777         (index_Slow_BSF): Define.
29778         (HAS_SLOW_BSF): Define.
29779
29780 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
29781
29782         [BZ #10851]
29783         * resolv/res_init.c (__res_vinit): When no server address at all
29784         is given default to loopback.
29785
29786 2010-08-24  Roland McGrath  <roland@redhat.com>
29787
29788         * configure.in: Remove config-name.h generation.
29789         * configure: Regenerated.
29790         * config-name.in: File removed.
29791         * scripts/config-uname.sh: New file.
29792         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
29793         ($(objdir)config-name.h): New target.
29794
29795         * sunrpc/rpc_parse.h: Avoid nested comment.
29796
29797 2010-08-24  Richard Henderson  <rth@redhat.com>
29798             Ulrich Drepper  <drepper@redhat.com>
29799             H.J. Lu  <hongjiu.lu@intel.com>
29800
29801         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
29802         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
29803         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
29804         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
29805         _mm_alignr_epi8 with _mm_loadu_si128.
29806         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
29807         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
29808         (__m128i_shift_right): Removed.
29809         * sysdeps/i386/i686/multiarch/varshift.h: New file.
29810         * sysdeps/i386/i686/multiarch/varshift.S: New file.
29811         * sysdeps/x86_64/multiarch/varshift.h: New file.
29812         * sysdeps/x86_64/multiarch/varshift.S: New file.
29813
29814 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
29815
29816         * configure.in: Move assembler checks to before sysdep dir checking.
29817
29818 2010-08-20  Petr Baudis  <pasky@suse.cz>
29819
29820         * LICENSES: Sync the sunrpc license.
29821
29822 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
29823
29824         * sunrpc/auth_des.c: Update copyright notice once again.
29825         * sunrpc/auth_none.c: Likewise.
29826         * sunrpc/auth_unix.c: Likewise.
29827         * sunrpc/authdes_prot.c: Likewise.
29828         * sunrpc/authuxprot.c: Likewise.
29829         * sunrpc/bindrsvprt.c: Likewise.
29830         * sunrpc/clnt_gen.c: Likewise.
29831         * sunrpc/clnt_perr.c: Likewise.
29832         * sunrpc/clnt_raw.c: Likewise.
29833         * sunrpc/clnt_simp.c: Likewise.
29834         * sunrpc/clnt_tcp.c: Likewise.
29835         * sunrpc/clnt_udp.c: Likewise.
29836         * sunrpc/clnt_unix.c: Likewise.
29837         * sunrpc/des_crypt.c: Likewise.
29838         * sunrpc/des_soft.c: Likewise.
29839         * sunrpc/get_myaddr.c: Likewise.
29840         * sunrpc/getrpcport.c: Likewise.
29841         * sunrpc/key_call.c: Likewise.
29842         * sunrpc/key_prot.c: Likewise.
29843         * sunrpc/openchild.c: Likewise.
29844         * sunrpc/pm_getmaps.c: Likewise.
29845         * sunrpc/pm_getport.c: Likewise.
29846         * sunrpc/pmap_clnt.c: Likewise.
29847         * sunrpc/pmap_prot.c: Likewise.
29848         * sunrpc/pmap_prot2.c: Likewise.
29849         * sunrpc/pmap_rmt.c: Likewise.
29850         * sunrpc/rpc/auth.h: Likewise.
29851         * sunrpc/rpc/auth_unix.h: Likewise.
29852         * sunrpc/rpc/clnt.h: Likewise.
29853         * sunrpc/rpc/des_crypt.h: Likewise.
29854         * sunrpc/rpc/key_prot.h: Likewise.
29855         * sunrpc/rpc/netdb.h: Likewise.
29856         * sunrpc/rpc/pmap_clnt.h: Likewise.
29857         * sunrpc/rpc/pmap_prot.h: Likewise.
29858         * sunrpc/rpc/pmap_rmt.h: Likewise.
29859         * sunrpc/rpc/rpc.h: Likewise.
29860         * sunrpc/rpc/rpc_des.h: Likewise.
29861         * sunrpc/rpc/rpc_msg.h: Likewise.
29862         * sunrpc/rpc/svc.h: Likewise.
29863         * sunrpc/rpc/svc_auth.h: Likewise.
29864         * sunrpc/rpc/types.h: Likewise.
29865         * sunrpc/rpc/xdr.h: Likewise.
29866         * sunrpc/rpc_clntout.c: Likewise.
29867         * sunrpc/rpc_cmsg.c: Likewise.
29868         * sunrpc/rpc_common.c: Likewise.
29869         * sunrpc/rpc_cout.c: Likewise.
29870         * sunrpc/rpc_dtable.c: Likewise.
29871         * sunrpc/rpc_hout.c: Likewise.
29872         * sunrpc/rpc_main.c: Likewise.
29873         * sunrpc/rpc_parse.c: Likewise.
29874         * sunrpc/rpc_parse.h: Likewise.
29875         * sunrpc/rpc_prot.c: Likewise.
29876         * sunrpc/rpc_sample.c: Likewise.
29877         * sunrpc/rpc_scan.c: Likewise.
29878         * sunrpc/rpc_scan.h: Likewise.
29879         * sunrpc/rpc_svcout.c: Likewise.
29880         * sunrpc/rpc_tblout.c: Likewise.
29881         * sunrpc/rpc_util.c: Likewise.
29882         * sunrpc/rpc_util.h: Likewise.
29883         * sunrpc/rpcinfo.c: Likewise.
29884         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
29885         * sunrpc/rpcsvc/key_prot.x: Likewise.
29886         * sunrpc/rpcsvc/klm_prot.x: Likewise.
29887         * sunrpc/rpcsvc/mount.x: Likewise.
29888         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
29889         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
29890         * sunrpc/rpcsvc/rex.x: Likewise.
29891         * sunrpc/rpcsvc/rstat.x: Likewise.
29892         * sunrpc/rpcsvc/rusers.x: Likewise.
29893         * sunrpc/rpcsvc/sm_inter.x: Likewise.
29894         * sunrpc/rpcsvc/spray.x: Likewise.
29895         * sunrpc/rpcsvc/yppasswd.x: Likewise.
29896         * sunrpc/rtime.c: Likewise.
29897         * sunrpc/svc.c: Likewise.
29898         * sunrpc/svc_auth.c: Likewise.
29899         * sunrpc/svc_authux.c: Likewise.
29900         * sunrpc/svc_raw.c: Likewise.
29901         * sunrpc/svc_run.c: Likewise.
29902         * sunrpc/svc_simple.c: Likewise.
29903         * sunrpc/svc_tcp.c: Likewise.
29904         * sunrpc/svc_udp.c: Likewise.
29905         * sunrpc/svc_unix.c: Likewise.
29906         * sunrpc/svcauth_des.c: Likewise.
29907         * sunrpc/xcrypt.c: Likewise.
29908         * sunrpc/xdr.c: Likewise.
29909         * sunrpc/xdr_array.c: Likewise.
29910         * sunrpc/xdr_float.c: Likewise.
29911         * sunrpc/xdr_mem.c: Likewise.
29912         * sunrpc/xdr_rec.c: Likewise.
29913         * sunrpc/xdr_ref.c: Likewise.
29914         * sunrpc/xdr_sizeof.c: Likewise.
29915         * sunrpc/xdr_stdio.c: Likewise.
29916
29917         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
29918         handling.
29919
29920 2010-08-19  Andreas Schwab  <schwab@redhat.com>
29921
29922         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
29923
29924 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
29925
29926         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
29927         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
29928         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
29929         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
29930         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
29931         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
29932         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
29933         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
29934         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
29935         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
29936         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
29937         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
29938         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
29939         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
29940
29941 2010-07-26  Anton Blanchard  <anton@samba.org>
29942
29943         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
29944         * malloc/arena.c (heap_trim): Likewise.
29945
29946 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
29947
29948         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
29949         here.  Not...
29950         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
29951         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
29952
29953 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
29954
29955         * sysdeps/i386/elf/Makefile: New file.
29956
29957 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
29958
29959         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
29960         from fanotify_init.
29961         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
29962         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
29963
29964 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
29965
29966         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
29967         of strncasecmp_l.
29968         * sysdeps/multiarch/strcmp.S: Likewise.
29969
29970 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
29971
29972         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
29973         strncase_l-nonascii.
29974         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
29975         Add strncase_l-ssse3.
29976         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
29977         * sysdeps/x86_64/strcmp.S: Likewise.
29978         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
29979         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
29980         * sysdeps/x86_64/strncase.S: New file.
29981         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
29982         * sysdeps/x86_64/strncase_l.S: New file.
29983         * string/Makefile (strop-tests): Add strncasecmp.
29984         * string/test-strncasecmp.c: New file.
29985
29986         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
29987         warning.
29988
29989         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
29990         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
29991
29992 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
29993
29994         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
29995
29996 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
29997
29998         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
29999         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
30000         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
30001
30002 2010-05-01  Alan Modra  <amodra@gmail.com>
30003
30004         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
30005         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
30006         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
30007         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
30008         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
30009         tidying.  Don't tail-call __sigjmp_save for static lib.
30010         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
30011         save location.
30012         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
30013         (CALL_MCOUNT): Add eh info, and nop after bl.
30014         (TAIL_CALL_SYSCALL_ERROR): New macro.
30015         (PSEUDO_RET): Use it.
30016         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
30017         Correct save location of integer regs and cr.
30018         (_dl_profile_resolve): Correct cr save location.  Delete nops
30019         after bl when SHARED.  Reduce cfi size a little by better
30020         placement of cfi directives.
30021         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
30022         make a stack frame.  Instead use parm save area as a temp.
30023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
30024         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
30025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
30026         Don't make a stack frame for parent, use parm save area.
30027         Increase child stack frame to 112 bytes.  Don't save unused reg,
30028         and adjust reg usage.  Set up cfi on error recovery and
30029         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
30030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
30031         (__makecontext): Add dummy nop after jump to exit.
30032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
30033         Use correct parm save area and cr save, reduce stack frame.
30034         Correct cfi for possible PSEUDO_RET frame setup.
30035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
30036         Branch to local label emitted by PSEUDO_RET rather than
30037         __syscall_error.
30038
30039 2010-08-12  Andreas Schwab  <schwab@redhat.com>
30040
30041         [BZ #11904]
30042         * locale/programs/locale.c (print_assignment): New function.
30043         (show_locale_vars): Use it.
30044
30045 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
30046
30047         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
30048         field.
30049         (struct statfs64): Likewise.
30050         (_STATFS_F_FLAGS): Define.
30051         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
30052         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
30053         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
30054         (ST_VALID): Define locally.
30055         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
30056         __statvfs_getflags, use the provided value.
30057         * sysdeps/unix/sysv/linux/kernel-features.h: Define
30058         __ASSUME_STATFS_F_FLAGS.
30059
30060         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
30061
30062         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
30063         Add sys/fanotify.h.
30064         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
30065         fanotify_mask for GLIBC_2.13.
30066         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
30067         fanotify_init and fanotify_mark.
30068         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
30069         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
30070
30071         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
30072         Add prlimit.
30073         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
30074         prlimit64 for GLIBC_2.13.
30075         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
30076         prlimit64.
30077         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
30078         syscall.
30079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
30080         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
30081         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
30082         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
30083         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
30084         add prlimit alias.
30085         * sysdeps/unix/sysv/linux/prlimit.c: New file.
30086
30087         [BZ #11903]
30088         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
30089         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
30090
30091         * nss/Makefile: Add rules to build and run tst-nss-test1.
30092         * shlib-versions: Add entry for libnss_test1.
30093         * nss/nss_test1.c: New file.
30094         * nss/tst-nss-test1.c: New file.
30095
30096         * nss/nsswitch.c (__nss_database_custom): Define new variable.
30097         (__nss_configure_lookup): Set appropriate entry in
30098         __nss_configure_lookup to true.
30099         * nss/nsswitch.h: Define enum with indeces of databases in
30100         databases and __nss_database_custom arrays.  Declare
30101         __nss_database_custom.
30102         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
30103         to avoid using nscd when custom rules are installed.
30104         * nss/getXXbyYY_r.c: Likewise.
30105         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
30106
30107         * nss/nss_files/files-parse.c: Whitespace fixes.
30108
30109 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
30110
30111         [BZ #11883]
30112         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
30113         * posix/fnmatch_loop.c: Likewise.
30114
30115 2010-07-17  Andi Kleen  <ak@linux.intel.com>
30116
30117         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
30118         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
30119         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
30120         * Versions.def [GLIBC_2.13]: Add.
30121
30122 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
30123
30124         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30125         Also fail if tpwd after pwuid call is NULL.
30126
30127 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30128
30129         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
30130         when converting to ms.
30131
30132 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30133
30134         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
30135         EOPNOTSUPP errors with ENOTTY.
30136         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
30137         EOPNOTSUPP errors with ENOTTY.
30138
30139 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
30140
30141         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
30142         Add strcasecmp_l-ssse3.
30143         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
30144         strcasecmp.
30145         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
30146         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
30147         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
30148
30149 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
30150
30151         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
30152
30153         * string/Makefile (strop-tests): Add strcasecmp.
30154         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
30155         strcasecmp_l-nonascii.
30156         (gen-as-const-headers): Add locale-defines.sym.
30157         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
30158         * sysdeps/x86_64/strcasecmp.S: New file.
30159         * sysdeps/x86_64/strcasecmp_l.S: New file.
30160         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
30161         * sysdeps/x86_64/locale-defines.sym: New file.
30162         * string/test-strcasecmp.c: New file.
30163
30164         * string/test-strcasestr.c: Test both ends of the range of characters.
30165         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
30166
30167 2010-07-29  Roland McGrath  <roland@redhat.com>
30168
30169         [BZ #11856]
30170         * manual/locale.texi (Yes-or-No Questions): Fix example code.
30171
30172 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
30173
30174         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
30175         for ld.so.
30176
30177 2010-07-27  Andreas Schwab  <schwab@redhat.com>
30178
30179         * manual/memory.texi (Malloc Tunable Parameters): Document
30180         M_PERTURB.
30181
30182 2010-07-26  Roland McGrath  <roland@redhat.com>
30183
30184         [BZ #11840]
30185         * configure.in (-fgnu89-inline check): Set and substitute
30186         gnu89_inline, not libc_cv_gnu89_inline.
30187         * configure: Regenerated.
30188         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
30189
30190 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
30191
30192         * string/test-strnlen.c: New file.
30193         * string/Makefile (strop-tests): Add strnlen.
30194         * string/tester.c (test_strnlen): Add a few more test cases.
30195         * string/tst-strlen.c: Better error reporting.
30196
30197         * sysdeps/x86_64/strnlen.S: New file.
30198
30199 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
30200
30201         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
30202         lower-latency instructions.
30203
30204 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
30205
30206         * string/test-strcasestr.c: New file.
30207         * string/test-strstr.c: New file.
30208         * string/Makefile (strop-tests): Add strstr and strcasestr.
30209         * string/str-two-way.h: Don't undefine MAX.
30210         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
30211
30212 2010-07-21  Andreas Schwab  <schwab@redhat.com>
30213
30214         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30215         strcasestr-nonascii.
30216         (CFLAGS-strcasestr-nonascii.c): Define.
30217         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
30218         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
30219         Remove unused attribute.
30220
30221 2010-07-20  Roland McGrath  <roland@redhat.com>
30222
30223         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
30224         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
30225         ld.so.cache was broken.  With it, there is no way to disable dsocaps
30226         like LD_HWCAP_MASK can disable hwcaps.
30227
30228 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
30229
30230         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
30231
30232 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
30233
30234         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
30235         call in strcasestr.
30236         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
30237         __strcasestr_sse42_nonascii.
30238         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
30239         strcasestr-nonascii.c.
30240         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
30241
30242 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
30243
30244         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
30245         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
30246         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
30247         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
30248
30249 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
30250
30251         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
30252         fcntl.
30253
30254 2010-07-06  Andreas Schwab  <schwab@redhat.com>
30255
30256         [BZ #11577]
30257         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
30258         dl_signal_cerror.
30259
30260 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
30261
30262         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
30263         _PC_PIPE_BUF using F_GETPIPE_SZ.
30264
30265 2010-07-05  Roland McGrath  <roland@redhat.com>
30266
30267         * manual/arith.texi (Rounding Functions): Fix rint description
30268         implicit in round description.
30269
30270 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
30271
30272         * elf/Makefile: Fix linking for a few tests to make recent linker
30273         happy.
30274
30275 2010-06-30  Andreas Schwab  <schwab@redhat.com>
30276
30277         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
30278         $(common-objpfx)libc_nonshared.a.
30279
30280 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
30281
30282         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
30283         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
30284         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
30285         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
30286         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
30287         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
30288         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
30289         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
30290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
30291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
30292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
30293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
30294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
30295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
30296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
30297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
30298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
30299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
30300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
30301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
30302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
30303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
30304         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
30305         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
30306         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
30307         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
30308         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
30309         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
30310         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
30311         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
30312         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
30313         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
30314         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
30315         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
30316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
30317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
30318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
30319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
30320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
30321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
30322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
30323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
30324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
30325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
30326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
30327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
30328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
30329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
30330
30331 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
30332
30333         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
30334         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
30335         * string/memmove.c (memmove): Renamed to ...
30336         (MEMMOVE): ...this.  Default to memmove.
30337         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
30338         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
30339         (END_CHK): Define.
30340         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30341         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
30342         mempcpy-ssse3-back memmove-ssse3-back.
30343         * sysdeps/x86_64/multiarch/bcopy.S: New file .
30344         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
30345         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
30346         * sysdeps/x86_64/multiarch/memcpy.S: New file.
30347         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
30348         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
30349         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
30350         * sysdeps/x86_64/multiarch/memmove.c: New file.
30351         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
30352         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
30353         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
30354         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
30355         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
30356         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
30357         Define.
30358         (index_Fast_Copy_Backward): Define.
30359         (HAS_ARCH_FEATURE): Define.
30360         (HAS_FAST_REP_STRING): Define.
30361         (HAS_FAST_COPY_BACKWARD): Define.
30362
30363 2010-06-21  Andreas Schwab  <schwab@redhat.com>
30364
30365         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30366         Restore proper fallback handling.
30367
30368 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
30369
30370         [BZ #11701]
30371         * posix/group_member.c (__group_member): Correct checking loop.
30372
30373         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
30374         OOM in getpwuid_r correctly.  Return error number when the caller
30375         should return, otherwise -1.
30376         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
30377         call returning > 0 value.
30378         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
30379
30380 2010-06-07  Andreas Schwab  <schwab@redhat.com>
30381
30382         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
30383         libc_nonshared.a from targets in modules-names.
30384
30385 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
30386
30387         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
30388         requires it.
30389
30390 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
30391
30392         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
30393         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
30394         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
30395         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
30396
30397 2010-06-02  Andreas Schwab  <schwab@redhat.com>
30398
30399         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
30400
30401 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
30402
30403         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
30404         and F_GETPIPE_SZ.
30405         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
30406         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
30407         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
30408         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
30409         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
30410         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
30411
30412 2010-06-14  Roland McGrath  <roland@redhat.com>
30413
30414         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
30415
30416 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
30417
30418         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
30419         __REDIRECT followed by __THROW.
30420         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
30421         * posix/getopt.h (getopt): Likewise.
30422
30423 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
30424
30425         * hurd/lookup-at.c (__file_name_lookup_at): Accept
30426         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
30427         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
30428         in AT_FLAGS.
30429         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
30430         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
30431
30432 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
30433
30434         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
30435
30436 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
30437
30438         [BZ #11640]
30439         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30440         Properly check family and model.
30441
30442 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
30443
30444         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
30445
30446 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
30447
30448         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
30449
30450 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
30451
30452         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
30453         symbol reference.
30454
30455 2010-05-19  Andreas Schwab  <schwab@redhat.com>
30456
30457         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
30458         symbol reference.
30459
30460 2010-05-21  Andreas Schwab  <schwab@redhat.com>
30461
30462         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
30463         and internal_recvmmsg.
30464         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
30465         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
30466         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
30467         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
30468
30469         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
30470         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
30471         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
30472
30473 2010-05-20  Andreas Schwab  <schwab@redhat.com>
30474
30475         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
30476
30477 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
30478
30479         POWER7 optimizations.
30480         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
30481         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
30482
30483 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
30484
30485         * version.h: Update for 2.13 development version.
30486
30487 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
30488
30489         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
30490         exceptions.  Return 0.
30491
30492 2010-05-07  Roland McGrath  <roland@redhat.com>
30493
30494         * elf/ldconfig.c (main): Add a const.
30495
30496 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
30497
30498         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
30499         (args_options): Add no-idn option.
30500         (ahosts_keys_int): Add idn_flags to ai_flags.
30501         (parse_option): Handle 'i' option to clear idn_flags.
30502
30503         * malloc/malloc.c (_int_free): Possible race in the most recently
30504         added check.  Only act on the data if no current modification
30505         happened.
30506
30507 See ChangeLog.17 for earlier changes.