Don't disable CMPLXL macro for __NO_LONG_DOUBLE_MATH (bug 15488).
[jlayton/glibc.git] / ChangeLog
1 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #15488]
4         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
5         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
6         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
7         double tests.
8         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
9         disable.
10         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
11         check_long_double.
12
13         * math/gen-libm-test.pl (@tests): Remove variable.
14         ($count): Likewise.
15         (new_test): Remove function.
16         (show_exceptions): New function.
17         (special_functions): Use show_exceptions instead of new_test.
18         (parse_args): Likewise.
19         (generate_testfile): Pass only function name in generated call to
20         print_max_error or print_complex_max_error.
21         (get_ulps): Do not handle complex tests specially.
22         (output_test): Rename to ...
23         (get_all_ulps_for_test): ... this.  Return a string rather than
24         printing to a file.  Require ulps to be present.
25         (output_ulps): Generate arrays rather than #defines.
26         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
27         (struct ulp_data): New type.
28         (BUILD_COMPLEX_ULP): Remove macro.
29         (compare_ulp_data): New function.
30         (find_ulps): Likewise.
31         (find_test_ulps): Likewise.
32         (find_function_ulps): Likewise.
33         (find_complex_function_ulps): Likewise.
34         (print_max_error): Determine allowed ulps using
35         find_function_ulps.
36         (print_complex_max_error): Determine allowed ulps using
37         find_complex_function_ulps.
38         (check_float_internal): Determine max ulps using find_test_ulps.
39         (check_float): Do not take max_ulp parameter.  Update call to
40         check_float_internal.
41         (check_complex): Likewise.
42         (check_int): Do not take max_ulp parameter.
43         (check_long): Likewise.
44         (check_bool): Likewise.
45         (check_longlong): Likewise.
46         (struct test_f_f_data): Remove max_ulp field.
47         (struct test_ff_f_data): Likewise.
48         (struct test_ff_f_data_nexttoward): Likewise.
49         (struct test_fi_f_data): Likewise.
50         (struct test_fl_f_data): Likewise.
51         (struct test_if_f_data): Likewise.
52         (struct test_fff_f_data): Likewise.
53         (struct test_c_f_data): Likewise.
54         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
55         (struct test_fF_f1_data): Likewise.
56         (struct test_ffI_f1_data): Likewise.
57         (struct test_c_c_data): Remove max_ulp field.
58         (struct test_cc_c_data): Likewise.
59         (struct test_f_i_data): Likewise.
60         (struct test_ff_i_data): Likewise.
61         (struct test_f_l_data): Likewise.
62         (struct test_f_L_data): Likewise.
63         (struct test_sincos_data): Likewise.
64         (RUN_TEST_f_f): Do not handle ulps.
65         (RUN_TEST_LOOP_f_f): Likewise.
66         (RUN_TEST_2_f): Likewise.
67         (RUN_TEST_LOOP_2_f): Likewise.
68         (RUN_TEST_fff_f): Likewise.
69         (RUN_TEST_LOOP_fff_f): Likewise.
70         (RUN_TEST_c_f): Likewise.
71         (RUN_TEST_LOOP_c_f): Likewise.
72         (RUN_TEST_f_f1): Likewise.
73         (RUN_TEST_LOOP_f_f1): Likewise.
74         (RUN_TEST_fF_f1): Likewise.
75         (RUN_TEST_LOOP_fF_f1): Likewise.
76         (RUN_TEST_fI_f1): Likewise.
77         (RUN_TEST_LOOP_fI_f1): Likewise.
78         (RUN_TEST_ffI_f1): Likewise.
79         (RUN_TEST_LOOP_ffI_f1): Likewise.
80         (RUN_TEST_c_c): Likewise.
81         (RUN_TEST_LOOP_c_c): Likewise.
82         (RUN_TEST_cc_c): Likewise.
83         (RUN_TEST_LOOP_cc_c): Likewise.
84         (RUN_TEST_f_i): Likewise.
85         (RUN_TEST_LOOP_f_i): Likewise.
86         (RUN_TEST_f_i_tg): Likewise.
87         (RUN_TEST_LOOP_f_i_tg): Likewise.
88         (RUN_TEST_ff_i_tg): Likewise.
89         (RUN_TEST_LOOP_ff_i_tg): Likewise.
90         (RUN_TEST_f_b): Likewise.
91         (RUN_TEST_LOOP_f_b): Likewise.
92         (RUN_TEST_f_b_tg): Likewise.
93         (RUN_TEST_LOOP_f_b_tg): Likewise.
94         (RUN_TEST_f_l): Likewise.
95         (RUN_TEST_LOOP_f_l): Likewise.
96         (RUN_TEST_f_L): Likewise.
97         (RUN_TEST_LOOP_f_L): Likewise.
98         (RUN_TEST_sincos): Likewise.
99         (RUN_TEST_LOOP_sincos): Likewise.
100
101 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
102
103         [BZ #15480]
104         [BZ #15485]
105         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
106         main case of finite arguments, set rounding mode to FE_TONEAREST
107         and discard exceptions.
108         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
109         exceptions.
110         (remainder_tonearest_test_data): New variable.
111         (remainder_test_tonearest): New function.
112         (remainder_towardzero_test_data): New variable.
113         (remainder_test_towardzero): New function.
114         (remainder_downward_test_data): New variable.
115         (remainder_test_downward): New function.
116         (remainder_upward_test_data): New variable.
117         (remainder_test_upward): New function.
118         (main): Call the new test functions.
119
120         * math/libm-test.inc (struct test_f_f1_data): Remove field
121         extra_init.
122         (struct test_fF_f1_data): Likewise.
123         (struct test_ffI_f1_data): Likewise.
124         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
125         based on value of EXTRA_EXPECTED.
126         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
127         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
128         EXTRA_VAR based on value of EXTRA_EXPECTED.
129         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
130         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
131         EXTRA_VAR based on value of EXTRA_EXPECTED.
132         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
133         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
134         EXTRA_VAR based on value of EXTRA_EXPECTED.
135         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
136         * math/gen-libm-test.pl (parse_args): Don't output initializers
137         for extra output values.
138
139         * math/libm-test.inc (check_int): Expect result to be exactly
140         equal to expected value and do not handle ulps.
141         (check_long): Likewise.
142         (check_longlong): Likewise.
143
144         * math/libm-test.inc (ceil_test_data): Test for "inexact"
145         exceptions.
146         (cimag_test_data): Likewise.
147         (conj_test_data): Likewise.
148         (copysign_test_data): Likewise.
149         (cproj_test_data): Likewise.
150         (creal_test_data): Likewise.
151         (fabs_test_data): Likewise.
152         (fdim_test_data): Likewise.
153         (finite_test_data): Likewise.
154         (floor_test_data): Likewise.
155         (fmax_test_data): Likewise.
156         (fmin_test_data): Likewise.
157         (fmod_test_data): Likewise.
158         (fpclassify_test_data): Likewise.
159         (frexp_test_data): Likewise.
160         (ilogb_test_data): Likewise.
161         (isfinite_test_data): Likewise.
162         (isgreater_test_data): Likewise.
163         (isgreaterequal_test_data): Likewise.
164         (isinf_test_data): Likewise.
165         (isless_test_data): Likewise.
166         (islessequal_test_data): Likewise.
167         (islessgreater_test_data): Likewise.
168         (isnan_test_data): Likewise.
169         (isnormal_test_data): Likewise.
170         (issignaling_test_data): Likewise.
171         (isunordered_test_data): Likewise.
172         (ldexp_test_data): Likewise.
173         (lrint_test_data): Likewise.
174         (lrint_test_data) [TEST_FLOAT]: Disable one test.
175         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
176         (lrint_tonearest_test_data): Test for "inexact" exceptions.
177         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
178         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
179         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
180         test input.
181         (lrint_towardzero_test_data): Test for "inexact" exceptions.
182         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
183         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
184         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
185         that test input.
186         (lrint_downward_test_data): Test for "inexact" exceptions.
187         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
188         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
189         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
190         test input.
191         (lrint_upward_test_data): Test for "inexact" exceptions.
192         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
193         test input.
194         (llrint_test_data): Test for "inexact" exceptions.
195         (llrint_test_data) [TEST_FLOAT]: Disable one test.
196         (llrint_tonearest_test_data): Test for "inexact" exceptions.
197         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
198         (llrint_towardzero_test_data): Test for "inexact" exceptions.
199         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
200         (llrint_downward_test_data): Test for "inexact" exceptions.
201         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
202         (llrint_upward_test_data): Test for "inexact" exceptions.
203         (logb_test_data): Likewise.
204         (logb_downward_test_data): Likewise.
205         (nextafter_test_data): Likewise.
206         (nexttoward_test_data): Likewise.
207         (remainder_test_data): Likewise.
208         (remquo_test_data): Likewise.
209         (scalbn_test_data): Likewise.
210         (scalbln_test_data): Likewise.
211         (signbit_test_data): Likewise.
212         (sqrt_test_data): Likewise.
213         (significand_test_data): Likewise.
214
215 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
216
217         [BZ #15424]
218         * benchtests/bench-modf.c (struct args): Mark arg0 as
219         volatile.
220         * scripts/bench.pl: Mark members of struct args as volatile.
221
222 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
223
224         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
225         negative infinity on POWER6 or lower.
226         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
227
228 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
229
230         [BZ #15442]
231         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
232         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
233         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
234         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
235         (_FP_SETQNAN): New macro.
236         (_FP_SETQNAN_SEMIRAW): Likewise.
237         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
238         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
239         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
240         (FP_EXTEND): Use _FP_FRAC_SNANP.
241         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
242         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
243         into account.
244         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
245         New macro.
246         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
247         Likewise.
248
249 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
250
251         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
252         with DIVIDE_BY_ZERO_EXCEPTION.
253         (gamma_test_data): Likewise.
254         (lgamma_test_data): Likewise.
255         (log_test_data): Likewise.
256         (log10_test_data): Likewise.
257         (log2_test_data): Likewise.
258         (tgamma_test_data): Likewise.
259
260         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
261         (acos_test_tonearest): Likewise.
262         (acos_test_towardzero): Likewise.
263         (acos_test_downward): Likewise.
264         (acos_test_upward): Likewise.
265         (acosh_test): Likewise.
266         (asin_test): Likewise.
267         (asin_test_tonearest): Likewise.
268         (asin_test_towardzero): Likewise.
269         (asin_test_downward): Likewise.
270         (asin_test_upward): Likewise.
271         (asinh_test): Likewise.
272         (atan_test): Likewise.
273         (atanh_test): Likewise.
274         (atan2_test): Likewise.
275         (cabs_test): Likewise.
276         (cacos_test): Likewise.
277         (cacosh_test): Likewise.
278         (casin_test): Likewise.
279         (casinh_test): Likewise.
280         (catan_test): Likewise.
281         (catanh_test): Likewise.
282         (cbrt_test): Likewise.
283         (ccos_test): Likewise.
284         (ccosh_test): Likewise.
285         (cexp_test): Likewise.
286         (clog_test): Likewise.
287         (clog10_test): Likewise.
288         (cos_test): Likewise.
289         (cos_test_tonearest): Likewise.
290         (cos_test_towardzero): Likewise.
291         (cos_test_downward): Likewise.
292         (cos_test_upward): Likewise.
293         (cosh_test): Likewise.
294         (cosh_test_tonearest): Likewise.
295         (cosh_test_towardzero): Likewise.
296         (cosh_test_downward): Likewise.
297         (cosh_test_upward): Likewise.
298         (cpow_test): Likewise.
299         (csin_test): Likewise.
300         (csinh_test): Likewise.
301         (csqrt_test): Likewise.
302         (ctan_test): Likewise.
303         (ctan_test_tonearest): Likewise.
304         (ctan_test_towardzero): Likewise.
305         (ctan_test_downward): Likewise.
306         (ctan_test_upward): Likewise.
307         (ctanh_test): Likewise.
308         (ctanh_test_tonearest): Likewise.
309         (ctanh_test_towardzero): Likewise.
310         (ctanh_test_downward): Likewise.
311         (ctanh_test_upward): Likewise.
312         (erf_test): Likewise.
313         (erfc_test): Likewise.
314         (exp_test): Likewise.
315         (exp_test_tonearest): Likewise.
316         (exp_test_towardzero): Likewise.
317         (exp_test_downward): Likewise.
318         (exp_test_upward): Likewise.
319         (exp10_test): Likewise.
320         (exp2_test): Likewise.
321         (expm1_test): Likewise.
322         (fmod_test): Likewise.
323         (gamma_test): Likewise.
324         (hypot_test): Likewise.
325         (j0_test): Likewise.
326         (j1_test): Likewise.
327         (jn_test): Likewise.
328         (lgamma_test): Likewise.
329         (log_test): Likewise.
330         (log10_test): Likewise.
331         (log1p_test): Likewise.
332         (log2_test): Likewise.
333         (logb_test_downward): Likewise.
334         (pow_test): Likewise.
335         (pow_test_tonearest): Likewise.
336         (pow_test_towardzero): Likewise.
337         (pow_test_downward): Likewise.
338         (pow_test_upward): Likewise.
339         (remainder_test): Likewise.
340         (remquo_test): Likewise.
341         (sin_test): Likewise.
342         (sin_test_tonearest): Likewise.
343         (sin_test_towardzero): Likewise.
344         (sin_test_downward): Likewise.
345         (sin_test_upward): Likewise.
346         (sincos_test): Likewise.
347         (sinh_test): Likewise.
348         (sinh_test_tonearest): Likewise.
349         (sinh_test_towardzero): Likewise.
350         (sinh_test_downward): Likewise.
351         (sinh_test_upward): Likewise.
352         (sqrt_test): Likewise.
353         (tan_test): Likewise.
354         (tan_test_tonearest): Likewise.
355         (tan_test_towardzero): Likewise.
356         (tan_test_downward): Likewise.
357         (tan_test_upward): Likewise.
358         (tanh_test): Likewise.
359         (tgamma_test): Likewise.
360         (y0_test): Likewise.
361         (y1_test): Likewise.
362         (yn_test): Likewise.
363
364         * math/gen-libm-test.pl (adjust_arg): Remove function.
365         (special_function): Remove argument $in_func.  Only handle
366         generating output for tables of tests, not inside functions.
367         (parse_args): Likewise.
368         (generate_testfile): Remove variable $in_func.  Update call to
369         parse_args.
370         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
371         (MINUS_ZERO_INIT): Rename macro to minus_zero.
372         (PLUS_INFTY_INIT): Rename macro to plus_infty.
373         (MINUS_INFTY_INIT): Rename macro to minus_infty.
374         (QNAN_VALUE_INIT): Rename macro to qnan_value.
375         (MAX_VALUE_INIT): Rename macro to max_value.
376         (MIN_VALUE_INIT): Rename macro to min_value.
377         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
378         (plus_zero): Remove variable.
379         (minus_zero): Likewise.
380         (plus_infty): Likewise.
381         (minus_infty): Likewise.
382         (qnan_value): Likewise.
383         (max_value): Likewise.
384         (min_value): Likewise.
385         (min_subnorm_value): Likewise.
386
387 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
388
389         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
390         uint64_t or uint32_t usage.
391         * crypt/sha256-block.c: Likewise.
392         * crypt/sha256-crypt.c: Likewise.
393         * crypt/sha256.c: Likewise.
394         * crypt/sha512-block.c: Likewise.
395         * crypt/sha512-crypt.c: Likewise.
396         * crypt/sha512.c: Likewise.
397         * debug/backtrace-tst.c: Likewise.
398         * debug/pcprofiledump.c: Likewise.
399         * elf/cache.c: Likewise.
400         * elf/dl-cache.c: Likewise.
401         * elf/dl-misc.c: Likewise.
402         * elf/dl-profile.c: Likewise.
403         * elf/dl-support.c: Likewise.
404         * elf/ldconfig.c: Likewise.
405         * elf/sprof.c: Likewise.
406         * iconv/dummy-repertoire.c: Likewise.
407         * iconv/iconv_charmap.c: Likewise.
408         * iconv/skeleton.c: Likewise.
409         * iconvdata/8bit-generic.c: Likewise.
410         * iconvdata/cp737.h: Likewise.
411         * iconvdata/cp775.h: Likewise.
412         * iconvdata/ibm1008.h: Likewise.
413         * iconvdata/ibm1025.h: Likewise.
414         * iconvdata/ibm1046.h: Likewise.
415         * iconvdata/ibm1097.h: Likewise.
416         * iconvdata/ibm1112.h: Likewise.
417         * iconvdata/ibm1122.h: Likewise.
418         * iconvdata/ibm1123.h: Likewise.
419         * iconvdata/ibm1124.h: Likewise.
420         * iconvdata/ibm1129.h: Likewise.
421         * iconvdata/ibm1130.h: Likewise.
422         * iconvdata/ibm1132.h: Likewise.
423         * iconvdata/ibm1133.h: Likewise.
424         * iconvdata/ibm1137.h: Likewise.
425         * iconvdata/ibm1140.h: Likewise.
426         * iconvdata/ibm1141.h: Likewise.
427         * iconvdata/ibm1142.h: Likewise.
428         * iconvdata/ibm1143.h: Likewise.
429         * iconvdata/ibm1144.h: Likewise.
430         * iconvdata/ibm1145.h: Likewise.
431         * iconvdata/ibm1146.h: Likewise.
432         * iconvdata/ibm1147.h: Likewise.
433         * iconvdata/ibm1148.h: Likewise.
434         * iconvdata/ibm1149.h: Likewise.
435         * iconvdata/ibm1153.h: Likewise.
436         * iconvdata/ibm1154.h: Likewise.
437         * iconvdata/ibm1155.h: Likewise.
438         * iconvdata/ibm1156.h: Likewise.
439         * iconvdata/ibm1157.h: Likewise.
440         * iconvdata/ibm1158.h: Likewise.
441         * iconvdata/ibm1160.h: Likewise.
442         * iconvdata/ibm1161.h: Likewise.
443         * iconvdata/ibm1162.h: Likewise.
444         * iconvdata/ibm1163.h: Likewise.
445         * iconvdata/ibm1164.h: Likewise.
446         * iconvdata/ibm1166.h: Likewise.
447         * iconvdata/ibm1167.h: Likewise.
448         * iconvdata/ibm12712.h: Likewise.
449         * iconvdata/ibm1390.h: Likewise.
450         * iconvdata/ibm1399.h: Likewise.
451         * iconvdata/ibm16804.h: Likewise.
452         * iconvdata/ibm4517.h: Likewise.
453         * iconvdata/ibm4899.h: Likewise.
454         * iconvdata/ibm4909.h: Likewise.
455         * iconvdata/ibm4971.h: Likewise.
456         * iconvdata/ibm5347.h: Likewise.
457         * iconvdata/ibm803.h: Likewise.
458         * iconvdata/ibm856.h: Likewise.
459         * iconvdata/ibm901.h: Likewise.
460         * iconvdata/ibm902.h: Likewise.
461         * iconvdata/ibm9030.h: Likewise.
462         * iconvdata/ibm9066.h: Likewise.
463         * iconvdata/ibm921.h: Likewise.
464         * iconvdata/ibm922.h: Likewise.
465         * iconvdata/ibm9448.h: Likewise.
466         * iconvdata/isiri-3342.h: Likewise.
467         * iconvdata/jis0201.h: Likewise.
468         * include/link.h: Likewise.
469         * include/netdb.h: Likewise.
470         * inet/check_native.c: Likewise.
471         * inet/check_pf.c: Likewise.
472         * inet/getipv4sourcefilter.c: Likewise.
473         * inet/getnameinfo.c: Likewise.
474         * inet/getsourcefilter.c: Likewise.
475         * inet/htonl.c: Likewise.
476         * inet/setipv4sourcefilter.c: Likewise.
477         * inet/setsourcefilter.c: Likewise.
478         * inet/test-inet6_opt.c: Likewise.
479         * inet/tst-network.c: Likewise.
480         * locale/C-collate.c: Likewise.
481         * locale/C-ctype.c: Likewise.
482         * locale/C-time.c: Likewise.
483         * locale/C-translit.h: Likewise.
484         * locale/loadarchive.c: Likewise.
485         * locale/programs/3level.h: Likewise.
486         * locale/programs/charmap.c: Likewise.
487         * locale/programs/charmap.h: Likewise.
488         * locale/programs/ld-address.c: Likewise.
489         * locale/programs/ld-collate.c: Likewise.
490         * locale/programs/ld-ctype.c: Likewise.
491         * locale/programs/ld-identification.c: Likewise.
492         * locale/programs/ld-measurement.c: Likewise.
493         * locale/programs/ld-messages.c: Likewise.
494         * locale/programs/ld-monetary.c: Likewise.
495         * locale/programs/ld-name.c: Likewise.
496         * locale/programs/ld-numeric.c: Likewise.
497         * locale/programs/ld-paper.c: Likewise.
498         * locale/programs/ld-telephone.c: Likewise.
499         * locale/programs/ld-time.c: Likewise.
500         * locale/programs/linereader.c: Likewise.
501         * locale/programs/locale.c: Likewise.
502         * locale/programs/locarchive.c: Likewise.
503         * locale/programs/locfile.h: Likewise.
504         * locale/programs/repertoire.c: Likewise.
505         * locale/programs/simple-hash.c: Likewise.
506         * locale/programs/simple-hash.h: Likewise.
507         * malloc/memusage.c: Likewise.
508         * malloc/memusagestat.c: Likewise.
509         * nis/nis_defaults.c: Likewise.
510         * nis/nis_hash.c: Likewise.
511         * nis/nis_print.c: Likewise.
512         * nis/nis_xdr.c: Likewise.
513         * nscd/connections.c: Likewise.
514         * nscd/hstcache.c: Likewise.
515         * nscd/nscd_gethst_r.c: Likewise.
516         * nscd/nscd_getserv_r.c: Likewise.
517         * nscd/nscd_helper.c: Likewise.
518         * nscd/servicescache.c: Likewise.
519         * nss/makedb.c: Likewise.
520         * nss/nss_db/db-XXX.c: Likewise.
521         * nss/nss_db/db-initgroups.c: Likewise.
522         * nss/nss_db/db-netgrp.c: Likewise.
523         * nss/nss_files/files-network.c: Likewise.
524         * nss/nss_files/files-parse.c: Likewise.
525         * posix/bug-regex5.c: Likewise.
526         * posix/fnmatch_loop.c: Likewise.
527         * posix/regcomp.c: Likewise.
528         * posix/regexec.c: Likewise.
529         * posix/tst-rfc3484-2.c: Likewise.
530         * posix/tst-rfc3484-3.c: Likewise.
531         * posix/tst-rfc3484.c: Likewise.
532         * resolv/nss_dns/dns-canon.c: Likewise.
533         * resolv/nss_dns/dns-network.c: Likewise.
534         * resolv/res_init.c: Likewise.
535         * resolv/res_mkquery.c: Likewise.
536         * resolv/tst-aton.c: Likewise.
537         * stdlib/cxa_atexit.c: Likewise.
538         * stdlib/cxa_finalize.c: Likewise.
539         * stdlib/gen-fpioconst.c: Likewise.
540         * stdlib/strtol_l.c: Likewise.
541         * string/tst-endian.c: Likewise.
542         * sunrpc/auth_des.c: Likewise.
543         * sunrpc/clnt_udp.c: Likewise.
544         * sunrpc/rtime.c: Likewise.
545         * sunrpc/svcauth_des.c: Likewise.
546         * sunrpc/xdr.c: Likewise.
547         * sunrpc/xdr_intXX_t.c: Likewise.
548         * sunrpc/xdr_rec.c: Likewise.
549         * sysdeps/generic/ldconfig.h: Likewise.
550         * sysdeps/generic/ldsodefs.h: Likewise.
551         * sysdeps/generic/memusage.h: Likewise.
552         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
553         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
554         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
555         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
556         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
557         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
558         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
559         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
560         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
561         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
562         * sysdeps/posix/getaddrinfo.c: Likewise.
563         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
564         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
565         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
566         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
567         * sysdeps/powerpc/test-gettimebase.c: Likewise.
568         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
569         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
570         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
571         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
572         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
573         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
574         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
575         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
576         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
577         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
578         * sysdeps/x86_64/dl-tls.h: Likewise.
579         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
580         * time/alt_digit.c: Likewise.
581         * time/era.c: Likewise.
582         * wcsmbs/tst-c16c32-1.c: Likewise.
583
584 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
585
586         * math/libm-test.inc (struct test_sincos_data): New type.
587         (RUN_TEST_LOOP_sincos): New macro.
588         (sincos_test_data): New variable.
589         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
590
591 2013-05-16  Richard Henderson  <rth@redhat.com>
592
593         * math/atest-exp2.c (LIMB64): New macro.
594         (CONSTSZ): New macro.
595         (mp_exp1, mp_exp_m1, mp_log2): New variables.
596         (hexdig): Move ...
597         (print_mpn_fp): ... to function scope.
598         (read_mpn_hex): Remove.
599         (get_log2): Remove.
600         (exp2_mpn): Use mp_log2.
601         (main): Use mp_exp1.
602
603 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
604
605         * math/libm-test.inc: Remove comment about not testing "inexact"
606         exceptions.
607         (INEXACT_EXCEPTION): New macro.
608         (NO_INEXACT_EXCEPTION): Likewise.
609         (INVALID_EXCEPTION_OK): Update value.
610         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
611         (OVERFLOW_EXCEPTION_OK): Likewise.
612         (UNDERFLOW_EXCEPTION_OK): Likewise.
613         (IGNORE_ZERO_INF_SIGN): Likewise.
614         (ERRNO_UNCHANGED): Likewise.
615         (ERRNO_EDOM): Likewise.
616         (ERRNO_ERANGE): Likewise.
617         (test_exceptions): Handle testing "inexact" exceptions.
618         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
619         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
620         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
621         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
622         INEXACT_EXCEPTION.
623         (rint_towardzero_test_data): Likewise.
624         (rint_downward_test_data): Likewise.
625         (rint_upward_test_data): Likewise.
626
627         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
628         with OVERFLOW_EXCEPTION.
629         (exp10_test_data): Likewise.
630         (exp2_test_data): Likewise.
631         (expm1_test_data): Likewise.
632         (lgamma_test_data): Likewise.
633         (pow_test_data): Likewise.
634         (tgamma_test_data): Likewise.
635         (yn_test_data): Remove duplicate test of overflow.
636
637         * math/libm-test.inc (struct test_cc_c_data): New type.
638         (RUN_TEST_LOOP_cc_c): New macro.
639         (cpow_test_data): New variable.
640         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
641
642         * math/libm-test.inc (struct test_f_L_data): New type.
643         (RUN_TEST_LOOP_f_L): New macro.
644         (llrint_test_data): New variable.
645         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
646         (llrint_tonearest_test_data): New variable.
647         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
648         (llrint_towardzero_test_data): New variable.
649         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
650         (llrint_downward_test_data): New variable.
651         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
652         (llrint_upward_test_data): New variable.
653         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
654         (llround_test_data): New variable.
655         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
656
657 2013-05-13  Peter Collingbourne  <pcc@google.com>
658
659         * math/atest-exp2.c (get_log2): Remove const attribute.
660
661 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
662
663         * math/libm-test.inc (struct test_f_l_data): New type.
664         (RUN_TEST_LOOP_f_l): New macro.
665         (lrint_test_data): New variable.
666         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
667         (lrint_tonearest_test_data): New variable.
668         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
669         (lrint_towardzero_test_data): New variable.
670         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
671         (lrint_downward_test_data): New variable.
672         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
673         (lrint_upward_test_data): New variable.
674         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
675         (lround_test_data): New variable.
676         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
677
678 2013-05-15  Peter Collingbourne  <pcc@google.com>
679
680         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
681         (EXTRACT_WORDS64) Use where appropriate.
682         (INSERT_WORDS64) Likewise.
683
684         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
685         constraints with x constraints.
686         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
687
688         * malloc/obstack.c (_obstack_compat): Add initializer.
689
690 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
691
692         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
693         si_trapno and add si_addr_lsb to _sifields.sigfault.
694         (si_trapno): Remove macro.
695         (si_addr_lsb): Define new macro.
696         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
697
698 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
699
700         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
701         instead of TEST_f_l.
702         (llrint_test_tonearest): Likewise.
703         (llrint_test_towardzero): Likewise.
704         (llrint_test_downward): Likewise.
705         (llrint_test_upward): Likewise.
706         (llround_test): Likewise.
707
708         * math/libm-test.inc (struct test_f_i_data): Add comment.
709         (RUN_TEST_LOOP_f_b): New macro.
710         (RUN_TEST_LOOP_f_b_tg): Likewise.
711         (finite_test_data): New variable.
712         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
713         (isfinite_test_data): New variable.
714         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
715         (isinf_test_data): New variable.
716         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
717         (isnan_test_data): New variable.
718         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
719         (isnormal_test_data): New variable.
720         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
721         (issignaling_test_data): New variable.
722         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
723         (signbit_test_data): New variable.
724         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
725
726         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
727         with INVALID_EXCEPTION.
728         (acosh_test_data): Likewise.
729         (asin_test_data): Likewise.
730         (atanh_test_data): Likewise.
731         (fmod_test_data): Likewise.
732         (log_test_data): Likewise.
733         (log10_test_data): Likewise.
734         (log2_test_data): Likewise.
735         (pow_test_data): Likewise.
736         (sqrt_test_data): Likewise.
737         (y0_test_data): Likewise.
738         (y1_test_data): Likewise.
739         (yn_test_data): Likewise.
740
741         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
742         function contents.
743
744         * math/libm-test.inc (struct test_ff_i_data): New type.
745         (RUN_TEST_LOOP_ff_i_tg): New macro.
746         (isgreater_test_data): New variable.
747         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
748         (isgreaterequal_test_data): New variable.
749         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
750         (isless_test_data): New variable.
751         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
752         (islessequal_test_data): New variable.
753         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
754         (islessgreater_test_data): New variable.
755         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
756         (isunordered_test_data): New variable.
757         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
758
759 2013-05-14  David S. Miller  <davem@davemloft.net>
760
761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
762
763 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
764
765         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
766
767         * math/libm-test.inc (struct test_fF_f1_data): Change type of
768         extra_test to int.
769         (struct test_f_i_data): Change type of max_ulp to int.
770
771         * math/libm-test.inc (test_ffI_f1_data): New type.
772         (RUN_TEST_LOOP_ffI_f1): New macro.
773         (remquo_test_data): New variable.
774         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
775
776         * setjmp/tst-setjmp-fp.c: New file.
777         * setjmp/Makefile (tests): Add tst-setjmp-fp.
778         (link-libm): New variable.
779         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
780
781         * math/libm-test.inc (struct test_f_i_data): New type.
782         (RUN_TEST_LOOP_f_i): New macro.
783         (RUN_TEST_LOOP_f_i_tg): Likewise.
784         (fpclassify_test_data): New variable.
785         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
786         (ilogb_test_data): New variable.
787         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
788
789         * math/libm-test.inc (scalbln_test): Correct function name in END
790         call.
791
792         * math/libm-test.inc (struct test_f_f1_data): Add comment.
793         (RUN_TEST_LOOP_fI_f1): New macro.
794         (frexp_test_data): New variable.
795         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
796
797         * math/libm-test.inc (struct test_fF_f1_data): New type.
798         (RUN_TEST_LOOP_fF_f1): New macro.
799         (modf_test_data): New variable.
800         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
801
802         * math/libm-test.inc (struct test_f_f1_data): New type.
803         (RUN_TEST_LOOP_f_f1): New macro.
804         (gamma_test_data): New variable.
805         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
806         (lgamma_test_data): New variable.
807         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
808
809 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
810
811         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
812         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
813         (main): Comment "tls" pseudo-hwcap.
814
815 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
816
817         * math/libm-test.inc (struct test_fl_f_data): New type.
818         (RUN_TEST_LOOP_fl_f): New variable.
819         (scalbln_test_data): New variable.
820         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
821
822         * math/libm-test.inc (struct test_fi_f_data): New type.
823         (RUN_TEST_LOOP_fi_f): New macro.
824         (ldexp_test_data): New variable.
825         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
826         (scalbn_test_data): New variable.
827         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
828
829         * math/libm-test.inc (struct test_c_f_data): New type.
830         (RUN_TEST_LOOP_c_f): New macro.
831         (cabs_test_data): New variable.
832         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
833         (carg_test_data): New variable.
834         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
835         (cimag_test_data): New variable.
836         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
837         (creal_test_data): New variable.
838         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
839
840         * math/libm-test.inc (struct test_if_f_data): New type.
841         (RUN_TEST_LOOP_if_f): New macro.
842         (jn_test_data): New variable.
843         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
844         (yn_test_data): New variable.
845         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
846
847         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
848
849 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
850
851         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
852         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
853
854 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
855
856         * benchtests/Makefile (CPPFLAGS-nonlib): Add
857         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
858         (bench-deps): Add bench-timing.h.
859         * benchtests-bench-skeleton.c: Include bench-timing.h.
860         (main): Use TIMING_* macros instead of clock_gettime.
861         * benchtests/bench-timing.h: New file.
862
863         [BZ #14582]
864         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
865         Renamed from _LIB_VERSION.
866         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
867
868 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
869
870         * math/libm-test.inc (struct test_fff_f_data): New type.
871         (RUN_TEST_LOOP_fff_f): New macro.
872         (fma_test_data): New variable.
873         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
874         (fma_towardzero_test_data): New variable.
875         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
876         (fma_downward_test_data): New variable.
877         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
878         (fma_upward_test_data): New variable.
879         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
880
881         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
882         (struct test_c_c_data): New type.
883         (RUN_TEST_LOOP_c_c): New macro.
884         (cacos_test_data): New variable.
885         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
886         (cacosh_test_data): New variable.
887         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
888         (casin_test_data): New variable.
889         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
890         (casinh_test_data): New variable.
891         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
892         (catan_test_data): New variable.
893         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
894         (catanh_test_data): New variable.
895         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
896         (ccos_test_data): New variable.
897         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
898         (ccosh_test_data): New variable.
899         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
900         (cexp_test_data): New variable.
901         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
902         (clog_test_data): New variable.
903         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
904         (clog10_test_data): New variable.
905         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
906         (conj_test_data): New variable.
907         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
908         (cproj_test_data): New variable.
909         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
910         (csin_test_data): New variable.
911         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
912         (csinh_test_data): New variable.
913         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
914         (csqrt_test_data): New variable.
915         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
916         (ctan_test_data): New variable.
917         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
918         (ctan_tonearest_test_data): New variable.
919         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
920         (ctan_towardzero_test_data): New variable.
921         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
922         (ctan_downward_test_data): New variable.
923         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
924         (ctan_upward_test_data): New variable.
925         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
926         (ctanh_test_data): New variable.
927         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
928         (ctanh_tonearest_test_data): New variable.
929         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
930         (ctanh_towardzero_test_data): New variable.
931         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
932         (ctanh_downward_test_data): New variable.
933         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
934         (ctanh_upward_test_data): New variable.
935         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
936         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
937         of BUILD_COMPLEX.
938
939         * math/libm-test.inc (struct test_ff_f_data): New type.
940         (struct test_ff_f_data_nexttoward): Likewise.
941         (RUN_TEST_LOOP_2_f): New macro.
942         (RUN_TEST_LOOP_ff_f): Likewise.
943         (atan2_test_data): New variable.
944         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
945         (copysign_test_data): New variable.
946         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
947         (fdim_test_data): New variable.
948         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
949         (fmax_test_data): New variable.
950         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
951         (fmin_test_data): New variable.
952         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
953         (fmod_test_data): New variable.
954         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
955         (hypot_test_data): New variable.
956         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
957         (nextafter_test_data): New variable.
958         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
959         (nexttoward_test_data): New variable.
960         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
961         (pow_test_data): New variable.
962         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
963         (pow_tonearest_test_data): New variable.
964         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
965         (pow_towardzero_test_data): New variable.
966         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
967         (pow_downward_test_data): New variable.
968         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
969         (pow_upward_test_data): New variable.
970         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
971         (remainder_test_data): New variable.
972         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
973         (scalb_test_data): New variable.
974         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
975         * sysdeps/i386/fpu/libm-test-ulps: Update.
976
977 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
978
979         * math/libm-test.inc (fma_test): Use max_value instead of local
980         variable fltmax.
981         (nextafter_test): Likewise.
982
983         * math/libm-test.inc (acos_towardzero_test_data): New variable.
984         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
985         (acos_downward_test_data): New variable.
986         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
987         (acos_upward_test_data): New variable.
988         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
989         (acosh_test_data): New variable.
990         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
991         (asin_test_data): New variable.
992         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
993         (asin_tonearest_test_data): New variable.
994         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
995         (asin_towardzero_test_data): New variable.
996         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
997         (asin_downward_test_data): New variable.
998         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
999         (asin_upward_test_data): New variable.
1000         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1001         (asinh_test_data): New variable.
1002         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
1003         (atan_test_data): New variable.
1004         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
1005         (atanh_test_data): New variable.
1006         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
1007         (cbrt_test_data): New variable.
1008         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
1009         (ceil_test_data): New variable.
1010         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
1011         (cos_test_data): New variable.
1012         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
1013         (cos_tonearest_test_data): New variable.
1014         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1015         (cos_towardzero_test_data): New variable.
1016         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1017         (cos_downward_test_data): New variable.
1018         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1019         (cos_upward_test_data): New variable.
1020         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1021         (cosh_test_data): New variable.
1022         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
1023         (cosh_tonearest_test_data): New variable.
1024         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1025         (cosh_towardzero_test_data): New variable.
1026         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1027         (cosh_downward_test_data): New variable.
1028         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1029         (cosh_upward_test_data): New variable.
1030         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1031         (erf_test_data): New variable.
1032         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
1033         (erfc_test_data): New variable.
1034         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
1035         (exp_test_data): New variable.
1036         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
1037         (exp_tonearest_test_data): New variable.
1038         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1039         (exp_towardzero_test_data): New variable.
1040         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1041         (exp_downward_test_data): New variable.
1042         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1043         (exp_upward_test_data): New variable.
1044         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1045         (exp10_test_data): New variable.
1046         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
1047         (exp2_test_data): New variable.
1048         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
1049         (expm1_test_data): New variable.
1050         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
1051         (fabs_test_data): New variable.
1052         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
1053         (floor_test_data): New variable.
1054         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
1055         (j0_test_data): New variable.
1056         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
1057         (j1_test_data): New variable.
1058         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
1059         (log_test_data): New variable.
1060         (log_test): Run tests with RUN_TEST_LOOP_f_f.
1061         (log10_test_data): New variable.
1062         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
1063         (log1p_test_data): New variable.
1064         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
1065         (log2_test_data): New variable.
1066         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
1067         (logb_test_data): New variable.
1068         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
1069         (logb_downward_test_data): New variable.
1070         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1071         (nearbyint_test_data): New variable.
1072         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
1073         (rint_test_data): New variable.
1074         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
1075         (rint_tonearest_test_data): New variable.
1076         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1077         (rint_towardzero_test_data): New variable.
1078         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1079         (rint_downward_test_data): New variable.
1080         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1081         (rint_upward_test_data): New variable.
1082         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1083         (round_test_data): New variable.
1084         (round_test): Run tests with RUN_TEST_LOOP_f_f.
1085         (sin_test_data): New variable.
1086         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
1087         (sin_tonearest_test_data): New variable.
1088         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1089         (sin_towardzero_test_data): New variable.
1090         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1091         (sin_downward_test_data): New variable.
1092         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1093         (sin_upward_test_data): New variable.
1094         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1095         (sinh_test_data): New variable.
1096         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
1097         (sinh_tonearest_test_data): New variable.
1098         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1099         (sinh_towardzero_test_data): New variable.
1100         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1101         (sinh_downward_test_data): New variable.
1102         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1103         (sinh_upward_test_data): New variable.
1104         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1105         (sqrt_test_data): New variable.
1106         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
1107         (tan_test_data): New variable.
1108         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
1109         (tan_tonearest_test_data): New variable.
1110         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1111         (tan_towardzero_test_data): New variable.
1112         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1113         (tan_downward_test_data): New variable.
1114         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1115         (tan_upward_test_data): New variable.
1116         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1117         (tanh_test_data): New variable.
1118         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
1119         (tgamma_test_data): New variable.
1120         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
1121         (trunc_test_data): New variable.
1122         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
1123         (y0_test_data): New variable.
1124         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
1125         (y1_test_data): New variable.
1126         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
1127         (significand_test_data): New variable.
1128         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
1129
1130 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
1131
1132         [BZ #12387]
1133         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
1134
1135 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1136
1137         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
1138
1139 2013-05-10  Andreas Jaeger  <aj@suse.de>
1140
1141         [BZ #15448]
1142         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
1143         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
1144
1145 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
1146
1147         * math/gen-libm-test.pl (adjust_arg): New function.
1148         (special_functions): Handle generating output in both functions
1149         and arrays.
1150         (parse_args): Likewise.
1151         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
1152         $in_func argument to parse_args.
1153         * math/libm-test.inc (struct test_f_f_data): New type.
1154         (IF_ROUND_INIT_): New macro.
1155         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
1156         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
1157         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
1158         (IF_ROUND_INIT_FE_UPWARD): Likewise.
1159         (ROUND_RESTORE_): Likewise.
1160         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
1161         (ROUND_RESTORE_FE_TONEAREST): Likewise.
1162         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
1163         (ROUND_RESTORE_FE_UPWARD): Likewise.
1164         (RUN_TEST_LOOP_f_f): New macro.
1165         (acos_test_data): New variable.
1166         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
1167         (acos_tonearest_test_data): New variable.
1168         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1169
1170 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1171
1172         * benchtests/bench-skeleton.c (startup): Fix coding style.
1173
1174 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
1175
1176         [BZ #6809]
1177         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
1178         negative infinity argument.
1179         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
1180         negative infinity argument.
1181         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
1182         negative infinity argument.
1183         * math/libm-test.inc (tgamma_test): Expect errno to be set for
1184         domain errors.
1185
1186 2013-05-10  Florian Weimer  <fweimer@redhat.com>
1187
1188         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
1189         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
1190         * iconv/iconv_prog.c (main): Likewise.
1191         * locale/programs/charmap-dir.c (charmap_readdir)
1192         (fopen_uncompressed): Likewise.
1193         * locale/programs/locfile.c (siblings_uncached)
1194         (write_locale_data): Use lstat64 instead of lstat.
1195         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
1196         stat.
1197
1198 2013-05-10  Andreas Jaeger  <aj@suse.de>
1199
1200         [BZ #15395]
1201         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
1202         localization.
1203         Include <locale.h>.
1204
1205 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
1206
1207         * elf/dl-close.c (_dl_close_worker): Add comments.
1208
1209 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
1210
1211         [BZ #15359]
1212         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
1213         high part of pi/2.
1214         (__ieee754_rem_pio2l): Update comments.
1215
1216         [BZ #15429]
1217         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
1218         high part of pi/2.
1219         (__ieee754_rem_pio2l): Update comments.
1220
1221         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
1222         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
1223
1224         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
1225         M_PI_4l.
1226
1227         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
1228         (M_PI_34_LOG10El): Likewise.
1229         (M_PI2_LOG10El): Likewise.
1230         (M_PI4_LOG10El): Likewise.
1231         (M_PI_LOG10El): Likewise.
1232
1233 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1234
1235         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1236
1237 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
1238
1239         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
1240         (MINUS_ZERO_INIT): Likewise.
1241         (PLUS_INFTY_INIT): Likewise.
1242         (MINUS_INFTY_INIT): Likewise.
1243         (QNAN_VALUE_INIT): Likewise.
1244         (MAX_VALUE_INIT): Likewise.
1245         (MIN_VALUE_INIT): Likewise.
1246         (MIN_SUBNORM_VALUE_INIT): Likewise.
1247         (plus_zero): Initialize with PLUS_ZERO_INIT.
1248         (minus_zero): Initialize with MINUS_ZERO_INIT.
1249         (plus_infty): Initialize with PLUS_INFTY_INIT.
1250         (minus_infty): Initialize with MINUS_INFTY_INIT.
1251         (qnan_value): Initialize with QNAN_VALUE_INIT.
1252         (max_value): Initialize with MAX_VALUE_INIT.
1253         (min_value): Initialize with MIN_VALUE_INIT.
1254         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
1255
1256         * math/libm-test.inc (RUN_TEST_if_f): New macro.
1257         (jn_test): Use TEST_if_f instead of TEST_ff_f.
1258         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
1259         (yn_test): Use TEST_if_f instead of TEST_ff_f.
1260
1261         * math/libm-test.inc (RUN_TEST_f_f): New macro.
1262         (RUN_TEST_2_f): Likewise.
1263         (RUN_TEST_ff_f): Likewise.
1264         (RUN_TEST_fi_f): Likewise.
1265         (RUN_TEST_fl_f): Likewise.
1266         (RUN_TEST_fff_f): Likewise.
1267         (RUN_TEST_c_f): Likewise.
1268         (RUN_TEST_f_f1): Likewise.
1269         (RUN_TEST_fF_f1): Likewise.
1270         (RUN_TEST_fI_f1): Likewise.
1271         (RUN_TEST_ffI_f1): Likewise.
1272         (RUN_TEST_c_c): Likewise.
1273         (RUN_TEST_cc_c): Likewise.
1274         (RUN_TEST_f_i): Likewise.
1275         (RUN_TEST_f_i_tg): Likewise.
1276         (RUN_TEST_ff_i_tg): Likewise.
1277         (RUN_TEST_f_b): Likewise.
1278         (RUN_TEST_f_b_tg): Likewise.
1279         (RUN_TEST_f_l): Likewise.
1280         (RUN_TEST_f_L): Likewise.
1281         (RUN_TEST_sincos): Likewise.
1282         * math/gen-libm-test.pl (new_test): Take new argument to indicate
1283         whether to show exceptions.  Do not include ");\n" in return
1284         value.
1285         (special_functions): Output call to RUN_TEST_sincos instead of
1286         check_float calls.  Update calls to new_test.
1287         (parse_args): Output call to single RUN_TEST_* macro instead of
1288         check_* calls and other assignments.  Update calls to new_test.
1289
1290         [BZ #2546]
1291         [BZ #2560]
1292         [BZ #5159]
1293         [BZ #15426]
1294         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
1295         input to result for tgamma overflow.
1296         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
1297         (gamma_coeff): New variable.
1298         (NCOEFF): New macro.
1299         (gamma_positive): New function.
1300         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
1301         underflow here.  Use gamma_positive instead of exp (lgamma) for
1302         other arguments.
1303         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
1304         (gamma_coeff): New variable.
1305         (NCOEFF): New macro.
1306         (gammaf_positive): New function.
1307         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
1308         underflow here.  Use gamma_positive instead of exp (lgamma) for
1309         other arguments.
1310         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
1311         (gamma_coeff): New variable.
1312         (NCOEFF): New macro.
1313         (gammal_positive): New function.
1314         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
1315         underflow here.  Use gamma_positive instead of exp (lgamma) for
1316         other arguments.
1317         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
1318         (gamma_coeff): New variable.
1319         (NCOEFF): New macro.
1320         (gammal_positive): New function.
1321         (__ieee754_gammal_r): Handle positive infinity, overflow and
1322         underflow here.  Handle NaN the same as positive infinity.  Remove
1323         check x < 0xffffffff for negative integers.  Use gamma_positive
1324         instead of exp (lgamma) for other arguments.
1325         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
1326         (gamma_coeff): New variable.
1327         (NCOEFF): New macro.
1328         (gammal_positive): New function.
1329         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
1330         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
1331         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
1332         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
1333         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
1334         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
1335         * sysdeps/generic/math_private.h (__gamma_productf): New
1336         prototype.
1337         (__gamma_product): Likewise.
1338         (__gamma_productl): Likewise.
1339         * math/Makefile (libm-calls): Add gamma_product.
1340         * math/libm-test.inc (tgamma_test): Add more tests.
1341         * sysdeps/i386/fpu/libm-test-ulps: Update.
1342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1343
1344 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
1345
1346         * benchtests/bench-skeleton.c (main): Preheat CPU.
1347
1348 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
1349
1350         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
1351
1352 2013-05-07  Roland McGrath  <roland@hack.frob.com>
1353
1354         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
1355         and _dl_skip_args_internal.
1356
1357 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
1358
1359         * manual/message.texi (Message Translation): Talk about users.
1360         Message to key mapping impacts design.
1361
1362 2013-05-06  Roland McGrath  <roland@hack.frob.com>
1363
1364         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
1365
1366         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
1367
1368         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
1369         * sysdeps/wordsize-64/glob64.c: ... here.
1370
1371         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
1372         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
1373         New macros.
1374
1375         * debug/getlogin_r_chk.c: Moved to ...
1376         * login/getlogin_r_chk.c: ... here.
1377         * debug/Makefile (routines): Move getlogin_r_chk to ...
1378         * login/Makefile (routines): ... here.
1379         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
1380         * login/Versions (libc: GLIBC_2.4): ... here.
1381
1382         * io/poll.c (__poll): Renamed from poll.
1383         Add libc_hidden_def.
1384         (poll): Define as weak alias.
1385
1386         * debug/ptsname_r_chk.c: Moved to ...
1387         * login/ptsname_r_chk.c: ... here.
1388         * debug/Makefile (routines): Move ptsname_r_chk to ...
1389         * login/Makefile (routines): ... here.
1390         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
1391         * login/Versions (libc: GLIBC_2.4): ... here.
1392
1393         * posix/getlogin.c: Moved to ...
1394         * login/getlogin.c: ... here.
1395         * posix/getlogin_r.c: Moved to ...
1396         * login/getlogin_r.c: ... here.
1397         * posix/getlogin_r.c: Moved to ...
1398         * login/getlogin_r.c: ... here.
1399         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
1400         * login/Makefile (routines): ... here.
1401         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
1402         * login/Versions (libc: GLIBC_2.0): ... here.
1403
1404         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
1405         (setrlimit): Define as weak alias.
1406
1407         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
1408         Call __ names for open, ftruncate, and close.
1409         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
1410         (truncate): Define as weak alias.
1411
1412 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
1413
1414         * math/gen-libm-test.pl (parse_args): Initialize x before each
1415         test of frexp, modf and remquo.
1416
1417         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
1418         test signgam value.
1419
1420 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1421
1422         [BZ #15418]
1423         [BZ #15419]
1424         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
1425         internal tests.
1426         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
1427
1428 2013-05-06  Roland McGrath  <roland@hack.frob.com>
1429
1430         * elf/dl-writev.h: New file.
1431         * elf/dl-misc.c: Include it.
1432         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
1433         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
1434
1435 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
1436
1437         * math/libm-test.inc (noXFails): Remove variable.
1438         (noXPasses): Likewise.
1439         (BUILD_COMPLEX_INT): Remove macro.
1440         (print_screen): Remove xfail argument.
1441         (print_screen_max_error): Likewise.
1442         (update_stats): Likewise.
1443         (print_max_error): Likewise.  Update calls to other affected
1444         functions.
1445         (print_complex_max_error): Likewise.
1446         (test_single_exception): Update calls to print_screen.
1447         (test_single_errno): Likewise.
1448         (check_float_internal): Remove xfail argument.  Update calls to
1449         other affected functions.
1450         (check_float): Likewise.
1451         (check_complex): Likewise.
1452         (check_int): Likewise.
1453         (check_long): Likewise.
1454         (check_bool): Likewise.
1455         (check_longlong): Likewise.
1456         (main): Don't print noXFails and noXPasses.
1457         * math/gen-libm-test.pl (top level): Don't mention expected
1458         failure handling in comment.
1459         (new_test): Don't handle expected failures.
1460         (parse_args): Don't mention expected failure handling in comment.
1461         (generate_testfile): Don't handle expected failures.
1462         (parse_ulps): Likewise.
1463         (print_ulps_file): Likewise.
1464         (get_failure): Remove function.
1465         (output_test): Don't handle expected failures.
1466         * make/README.libm-test: Don't mention expected failure handling.
1467
1468         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
1469         (minus_zero): Likewise.
1470         (plus_infty): Likewise.
1471         (minus_infty): Likewise.
1472         (qnan_value): Likewise.
1473         (max_value): Likewise.
1474         (min_value): Likewise.
1475         (min_subnorm_value): Likewise.
1476         (initialize): Do not initialize those variables dynamically.
1477
1478 2013-05-03  Roland McGrath  <roland@hack.frob.com>
1479
1480         * io/open.c (__open_2): Moved to ...
1481         * io/open_2.c: ... this new file.
1482         * io/open64.c (__open64_2): Moved to ...
1483         * io/open64_2.c: ... this new file.
1484         * io/openat.c (__openat_2): Moved to ...
1485         * io/openat_2.c: ... this new file.
1486         * io/openat64.c (__openat64_2): Moved to ...
1487         * io/openat64_2.c: ... this new file.
1488         * io/Makefile (routines): Add them.
1489         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
1490         * sysdeps/unix/sysv/linux/open_2.c: File removed.
1491         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
1492         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
1493         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
1494         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
1495         (__openat64): Add hidden_ver.
1496         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
1497         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
1498
1499         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1500         Separately conditionalize setting of GLRO(dl_sysinfo) so
1501         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
1502         as well, but the actual setting is only under [NEED_DL_SYSINFO].
1503
1504 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1505
1506         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
1507         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
1508         definition.
1509         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
1510         * sysdeps/unix/sysv/linux/powerpc/init-first.c
1511         (_libc_vdso_platform_setup): Add __vdso_time initialization.
1512         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
1513         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
1514
1515 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
1516
1517         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
1518         test signgam value.
1519
1520         * math/libm-test.inc (hypot_test): Do not use
1521         IGNORE_ZERO_INF_SIGN.
1522
1523 2013-05-03  Andreas Jaeger  <aj@suse.de>
1524
1525         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
1526         Linux 3.9.
1527         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
1528         (PF_MAX): Adjust for VSOCK change.
1529
1530 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1531
1532         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1533
1534 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
1535
1536         [BZ #15264]
1537         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
1538         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
1539         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
1540
1541 2013-05-02  David S. Miller  <davem@davemloft.net>
1542
1543         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1544
1545 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
1546
1547         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
1548
1549 2013-05-01  Roland McGrath  <roland@hack.frob.com>
1550
1551         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
1552
1553 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
1554
1555         [BZ #14952]
1556         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
1557         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
1558         Use __attribute__ ((__gnu_inline__)).
1559         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
1560         Don't use __attribute__ ((__gnu_inline__)).
1561
1562 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
1563
1564         [BZ #15423]
1565         * math/s_catan.c (__catan): Handle small real or imaginary part of
1566         input specially to avoid spurious underflow.
1567         * math/s_catanf.c (__catanf): Likewise.
1568         * math/s_catanh.c (__catanh): Likewise.
1569         * math/s_catanhf.c (__catanhf): Likewise.
1570         * math/s_catanhl.c (__catanhl): Likewise.
1571         * math/s_catanl.c (__catanl): Likewise.
1572         * math/libm-test.inc (catan_test): Add more tests.
1573         (catanh_test): Likewise.
1574         * sysdeps/i386/fpu/libm-test-ulps: Update.
1575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1576
1577 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1578
1579         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1580
1581 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
1582
1583         [BZ #15416]
1584         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
1585         accurately for denominator in atan2.
1586         * math/s_catanf.c (__catanf): Likewise.
1587         * math/s_catanh.c (__catanh): Likewise.
1588         * math/s_catanhf.c (__catanhf): Likewise.
1589         * math/s_catanhl.c (__catanhl): Likewise.
1590         * math/s_catanl.c (__catanl): Likewise.
1591         * math/libm-test.inc (catan_test): Add more tests.
1592         (catanh_test): Likewise.
1593         * sysdeps/i386/fpu/libm-test-ulps: Update.
1594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1595
1596 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1597
1598         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
1599
1600         * benchtests/Makefile (bench): Remove slow benchmarks.
1601         * benchtests/atan-inputs: Add slow benchmark inputs.
1602         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
1603         (BENCH_FUNC): Accept variant offset.
1604         (VARIANT): Define.
1605         * benchtests/bench-skeleton.c (main): Run benchmark for each
1606         variant.
1607         * benchtests/cos-inputs: Add slow benchmark inputs.
1608         * benchtests/exp-inputs: Likewise.
1609         * benchtests/pow-inputs: Likewise.
1610         * benchtests/sin-inputs: Likewise.
1611         * benchtests/slowatan-inputs: Remove.
1612         * benchtests/slowatan.c: Remove.
1613         * benchtests/slowcos-inputs: Remove.
1614         * benchtests/slowcos.c: Remove.
1615         * benchtests/slowexp-inputs: Remove.
1616         * benchtests/slowexp.c: Remove.
1617         * benchtests/slowpow-inputs: Remove.
1618         * benchtests/slowpow.c: Remove.
1619         * benchtests/slowsin-inputs: Remove.
1620         * benchtests/slowsin.c: Remove.
1621         * benchtests/slowtan-inputs: Remove.
1622         * benchtests/slowtan.c: Remove.
1623         * benchtests/tan-inputs: Add slow benchmark inputs.
1624         * scripts/bench.pl: Parse comments and directives.
1625
1626         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
1627         in CPPFLAGS.
1628         ($(objpfx)bench-%.c): Remove *-ITER.
1629         * benchtests/bench-modf.c: Remove definition of ITER.
1630         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
1631         (main): Loop for DURATION seconds instead of fixed number of
1632         iterations.
1633         * scripts/bench.pl: Don't expect iterations in parameters.
1634
1635 2013-04-29  Roland McGrath  <roland@hack.frob.com>
1636
1637         * io/fchdir.c (__fchdir): Renamed from fchdir.
1638         (fchdir): Define as weak alias.
1639
1640 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
1641
1642         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
1643         (ERRNO_EDOM): Likewise.
1644         (ERRNO_ERANGE): Likewise.
1645         (noErrnoTests): New variable.
1646         (init_max_error): Set errno to 0.
1647         (test_single_errno): New function.
1648         (test_errno): Likewise.
1649         (check_float_internal): Call test_errno.  Set errno to 0.
1650         (check_complex): Refer to errno tests in comment.
1651         (check_int): Call test_errno.  Set errno to 0.
1652         (check_long): Likewise.
1653         (check_bool): Likewise.
1654         (check_longlong): Likewise.
1655         (cos_test): Use ERRNO_* flags for errno tests instead of
1656         check_int.
1657         (expm1_test): Likewise.
1658         (fmod_test): Likewise.
1659         (ilogb_test): Likewise.
1660         (lgamma_test): Likewise.
1661         (pow_test): Likewise.
1662         (remainder_test): Likewise.
1663         (sin_test): Likewise.
1664         (tan_test): Likewise.
1665         (yn_test): Likewise.
1666         (initialize): Set errno to 0.
1667         (main): Print number of errno tests.
1668         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
1669
1670 2013-04-29  Andreas Jaeger  <aj@suse.de>
1671
1672         [BZ #15084]
1673         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
1674         and RES_USEVC.
1675
1676         [BZ #15085]
1677         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
1678         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
1679         unimplemented.
1680
1681         [BZ #15380]
1682         * stdlib/random.c (__initstate): Return NULL if
1683         __initstate fails.
1684
1685         [BZ #15086]
1686         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
1687         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
1688         RES_SNGLKUPREOP.
1689
1690 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1691
1692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1693
1694 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
1695
1696         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
1697         of individual tests.
1698         (casin_test): Likewise.
1699         (casinh_test): Likewise.
1700
1701 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
1702
1703         [BZ #15409]
1704         * math/s_catan.c (__catan): Handle arguments with large real or
1705         imaginary part separately without squaring.
1706         * math/s_catanf.c (__catanf): Likewise.
1707         * math/s_catanh.c (__catanh): Likewise.
1708         * math/s_catanhf.c (__catanhf): Likewise.
1709         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1710         and redefine.
1711         (__catanhl): Handle arguments with large real or imaginary part
1712         separately without squaring.
1713         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1714         and redefine.
1715         (__catanl): Handle arguments with large real or imaginary part
1716         separately without squaring.
1717         * math/libm-test.inc (catan_test): Add more tests.
1718         (catanh_test): Likewise.
1719         * sysdeps/i386/fpu/libm-test-ulps: Update.
1720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1721
1722 2013-04-27  Andreas Jaeger  <aj@suse.de>
1723
1724         [BZ #15007]
1725         * stdlib/stdlib.h: Update guards for qecvt.
1726         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
1727         <stdlib.h>.
1728
1729 2013-04-27  Allan McRae  <allan@archlinux.org>
1730
1731         * sysdeps/i386/fpu/libm-test-ulps: Update.
1732
1733 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
1734
1735         [BZ #15406]
1736         * math/s_catan.c: Include <float.h>.
1737         (__catan): Ensure underflow exception occurs for underflowed
1738         result.
1739         * math/s_catanf.c: Include <float.h>.
1740         (__catanf): Ensure underflow exception occurs for underflowed
1741         result.
1742         * math/s_catanh.c: Include <float.h>.
1743         (__catanh): Ensure underflow exception occurs for underflowed
1744         result.
1745         * math/s_catanhf.c: Include <float.h>.
1746         (__catanhf): Ensure underflow exception occurs for underflowed
1747         result.
1748         * math/s_catanhl.c: Include <float.h>.
1749         (__catanhl): Ensure underflow exception occurs for underflowed
1750         result.
1751         * math/s_catanl.c: Include <float.h>.
1752         (__catanl): Ensure underflow exception occurs for underflowed
1753         result.
1754         * math/libm-test.inc (catan_test): Add more tests.
1755         (catanh_test): Likewise.
1756
1757         [BZ #15405]
1758         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
1759         underflowed result.
1760         * math/s_ccoshf.c (__ccoshf): Likewise.
1761         * math/s_ccoshl.c (__ccoshl): Likewise.
1762         * math/s_csin.c (__csin): Likewise.
1763         * math/s_csinf.c (__csinf): Likewise.
1764         * math/s_csinh.c (__csinh): Likewise.
1765         * math/s_csinhf.c (__csinhf): Likewise.
1766         * math/s_csinhl.c (__csinhl): Likewise.
1767         * math/s_csinl.c (__csinl): Likewise.
1768         * math/libm-test.inc (ccos_test): Add more tests.
1769         (ccosh_test): Likewise.
1770         (csin_test): Likewise.
1771         (csinh_test): Likewise.
1772
1773 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1774
1775         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
1776         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
1777         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
1778         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
1779         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
1780         powerpc/power5+/fpu folders.
1781         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
1782
1783
1784 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1785
1786         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1787
1788 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
1789
1790         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
1791         additions to variable.
1792         [$(config-machine) = x86_64] (modules-names): Likewise.
1793         ($(objpfx)tst-audit3): Remove dependency.
1794         ($(objpfx)tst-audit3.out): Likewise.
1795         ($(objpfx)tst-audit4): Likewise.
1796         ($(objpfx)tst-audit4.out): Likewise.
1797         ($(objpfx)tst-audit5): Likewise.
1798         ($(objpfx)tst-audit5.out): Likewise.
1799         ($(objpfx)tst-audit6): Likewise.
1800         ($(objpfx)tst-audit6.out): Likewise.
1801         ($(objpfx)tst-audit7): Likewise.
1802         ($(objpfx)tst-audit7.out): Likewise.
1803         (tst-audit3-ENV): Remove variable.
1804         (tst-audit4-ENV): Likewise.
1805         (tst-audit5-ENV): Likewise.
1806         (tst-audit6-ENV): Likewise.
1807         (tst-audit7-ENV): Likewise.
1808         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
1809         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
1810         addition to variable.
1811         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
1812         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
1813         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
1814         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
1815         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
1816         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
1817         tst-audit3, tst-audit4 and tst-audit5.
1818         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
1819         tst-audit6 and tst-audit7.
1820         [$(subdir) = elf] (modules-names): Add audit modules for those
1821         tests.
1822         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
1823         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
1824         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
1825         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
1826         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
1827         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
1828         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
1829         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
1830         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
1831         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
1832         [$(subdir) = elf] (tst-audit3-ENV): New variable.
1833         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
1834         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
1835         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
1836         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
1837         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
1838         Likewise.
1839         [$(subdir) = elf && $(config-cflags-avx) = yes]
1840         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
1841         [$(subdir) = elf && $(config-cflags-avx) = yes]
1842         (CFLAGS-tst-auditmod4a.c): Likewise.
1843         [$(subdir) = elf && $(config-cflags-avx) = yes]
1844         (CFLAGS-tst-auditmod4b.c): Likewise.
1845         [$(subdir) = elf && $(config-cflags-avx) = yes]
1846         (CFLAGS-tst-auditmod6b.c): Likewise.
1847         [$(subdir) = elf && $(config-cflags-avx) = yes]
1848         (CFLAGS-tst-auditmod6c.c): Likewise.
1849         [$(subdir) = elf && $(config-cflags-avx) = yes]
1850         (CFLAGS-tst-auditmod7b.c): Likewise.
1851         * elf/tst-audit3.c: Move to ...
1852         * sysdeps/x86_64/tst-audit3.c: ... here.
1853         * elf/tst-audit4.c: Move to ...
1854         * sysdeps/x86_64/tst-audit4.c: ... here.
1855         * elf/tst-audit5.c: Move to ...
1856         * sysdeps/x86_64/tst-audit5.c: ... here.
1857         * elf/tst-audit6.c: Move to ...
1858         * sysdeps/x86_64/tst-audit6.c: ... here.
1859         * elf/tst-audit7.c: Move to ...
1860         * sysdeps/x86_64/tst-audit7.c: ... here.
1861         * elf/tst-auditmod3a.c: Move to ...
1862         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
1863         * elf/tst-auditmod3b.c: Move to ...
1864         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
1865         * elf/tst-auditmod4a.c: Move to ...
1866         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
1867         * elf/tst-auditmod4b.c: Move to ...
1868         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
1869         * elf/tst-auditmod5a.c: Move to ...
1870         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
1871         * elf/tst-auditmod5b.c: Move to ...
1872         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
1873         * elf/tst-auditmod6a.c: Move to ...
1874         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
1875         * elf/tst-auditmod6b.c: Move to ...
1876         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
1877         * elf/tst-auditmod6c.c: Move to ...
1878         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
1879         * elf/tst-auditmod7a.c: Move to ...
1880         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
1881         * elf/tst-auditmod7b.c: Move to ...
1882         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
1883
1884 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1885
1886         [BZ #15366]
1887         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
1888         define unconditionally.
1889         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
1890         define unconditionally.
1891         (INT8_C, INT16_C, etc.): Likewise.
1892
1893 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
1894
1895         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
1896         __ehdr_start with hidden visibility.
1897
1898         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
1899
1900 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
1901
1902         * math/libm-test.inc (cos_test): Use accurate hex constants.
1903         (sincost_test): Likewise.
1904
1905 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
1906
1907         * math/libm-test.inc (catan_test): Add more tests.
1908         (catanh_test): Likewise.
1909
1910         * math/s_catanf.c (__catanf): Use suffixed floating-point
1911         constants.
1912         * math/s_catanhf.c (__catanhf): Likewise.
1913         * math/s_catanhl.c (__catanhl): Likewise.
1914         * math/s_catanl.c (__catanl): Likewise.
1915
1916         [BZ #15394]
1917         * math/s_catan.c (__catan): Calculate imaginary part of result
1918         with log1p not log unless computing log of number close to 0.
1919         * math/s_catanf.c (__catanf): Likewise.
1920         * math/s_catanl.c (__catanl): Likewise.
1921         * math/s_catanh.c (__catanh): Calculate real part of result with
1922         log1p not log unless computing log of number close to 0.
1923         * math/s_catanhf.c (__catanhf): Likewise.
1924         * math/s_catanhl.c (__catanhl): Likewise.
1925         * math/libm-test.inc (catan_test): Add more tests.
1926         (catanh_test): Likewise.
1927         * sysdeps/i386/fpu/libm-test-ulps: Update.
1928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1929
1930 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1931
1932         * benchtests/Makefile: Mention files in which fast and slow
1933         paths of math functions are implemented.
1934
1935 2013-04-23  Roland McGrath  <roland@hack.frob.com>
1936
1937         * sysdeps/posix/timespec_get.c: New file.
1938
1939 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1940
1941         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
1942         POWER.
1943         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
1944         for POWER.
1945         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
1946         powerpc/power5/fpu folders.
1947         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
1948         * benchtests/Makefile: Add modf testcase.
1949         * benchtests/bench-modf.c: New file: Benchmark test for mo
1950
1951 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1952
1953         [BZ #14888]
1954         * time/Makefile (tests): Add tst-strptime-whitespace.
1955         * time/strptime_l.c (get_number): Use ISSPACE.
1956         (__strptime_internal): Likewise.
1957         * time/tst-strptime-whitespace.c: New test case.
1958
1959 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1960
1961         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
1962         member.
1963         (_nss_files_init): Set it here.
1964
1965 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
1966
1967         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
1968         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
1969         unsigned.
1970
1971 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
1972
1973         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
1974
1975 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1976
1977         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
1978         size just once.
1979
1980 2013-04-21  David S. Miller  <davem@davemloft.net>
1981
1982         * po/ru.po: Update Russion translation from translation project.
1983
1984 2013-04-17  Adam Conrad  <adconrad@0c3.net>
1985
1986         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
1987         and setfsgid.
1988
1989 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
1990
1991         * configure.in: Remove i386 configure warning. Remove i386 case.
1992         * configure: Regenerate.
1993         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
1994         Add example to error message.
1995         * sysdeps/i386/configure: Regenerate.
1996
1997 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1998
1999         * benchtests/Makefile (bench): Add cos, tan, slowcos and
2000         slowtan.
2001         * benchtests/cos-inputs: New file.
2002         * benchtests/slowcos-inputs: New file.
2003         * benchtests/slowcos.c: New file.
2004         * benchtests/slowtan-inputs: New file.
2005         * benchtests/slowtan.c: New file.
2006         * benchtests/tan-inputs: New file.
2007
2008 2013-04-16  Roland McGrath  <roland@hack.frob.com>
2009
2010         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
2011         considered kosher.
2012
2013 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
2014
2015         * benchtests/Makefile: Include cppflags-iterator.mk to add
2016         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
2017
2018         * Makefile.in (bench-clean): New target.
2019         * benchtests/Makefile (bench-clean): Likewise.
2020
2021 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
2022
2023         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
2024
2025 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
2026
2027         * stdio-common/tstdiomisc.c: Fix coding-style violation.
2028
2029 2013-04-15  Andreas Schwab  <schwab@suse.de>
2030
2031         * nscd/grpcache.c (cache_addgr): Properly check for short write.
2032         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2033         * nscd/pwdcache.c (cache_addpw): Likewise.
2034         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
2035         more than recsize.
2036
2037 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2038
2039         * benchtests/Makefile (bench): Write all output to
2040         bench-out.tmp together.
2041
2042 2013-04-15  Andreas Schwab  <schwab@suse.de>
2043
2044         * nscd/nscd.c (main): Don't fork again after closing files.
2045
2046 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2047
2048         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
2049
2050         * benchtests/Rules (bench-deps): Collect dependencies into a
2051         single variable.  Add Makefile to dependencies.
2052         ($(objpfx)bench-%.c): Depend on bench-deps.
2053
2054 2013-04-12  Roland McGrath  <roland@hack.frob.com>
2055             Xavier Roche  <roche+kml2@exalead.com>
2056
2057         [BZ #15361]
2058         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
2059         just that it's a file descriptor.
2060         * manual/llio.texi (Synchronizing AIO Operations): Update description
2061         for EBADF error from aio_fsync.
2062
2063 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
2064
2065         * Rules (bench): Move target definition...
2066         * benchtests/Makefile: ... here.
2067
2068 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
2069
2070         * math/libm-test.inc (cos_test): Fix PI/2 test.
2071         (sincos_test): Likewise.
2072         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
2073         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
2074
2075 2013-04-11  Andreas Schwab  <schwab@suse.de>
2076
2077         [BZ #13988]
2078         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
2079         accept exponent character only when digits were seen.
2080         * stdio-common/Makefile (tests): Add bug26.
2081         * stdio-common/bug26.c: New file.
2082
2083         [BZ #14293]
2084         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
2085         non-freeable.
2086
2087 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2088
2089         * Makeconfig (rtld-prefix): Define built linker prefix.
2090         * Rules (run-bench): Use it.
2091         * math/Makefile (run-regen-ulps): Likewise.
2092
2093         * Rules (bench): Remove eval.
2094
2095 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2096             Roland McGrath  <roland@hack.frob.com>
2097             Ondrej Bilka  <neleai@seznam.cz>
2098
2099         [BZ #15346]
2100         * time/getdate.c: Include ctype.h and alloca.h.
2101         (__getdate_r): Trim leading and trailing spaces of input.
2102         * time/tst-getdate.c (tests): Add tests with leading and
2103         trailing spaces.
2104
2105 2013-04-08  Roland McGrath  <roland@hack.frob.com>
2106
2107         [BZ #14280]
2108         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
2109         when computing value.
2110
2111 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2112
2113         * math/README.libm-test (How can I generate "libm-test-ulps"?):
2114         Use testrun.sh to run libm tests.
2115
2116         [BZ #15309]
2117         * elf/dl-open.c (dl_open_worker): memset all of seen array.
2118
2119 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
2120
2121         [BZ #15264]
2122         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
2123
2124 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2125
2126         * Makefile.in (regen-ulps): New target.
2127         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
2128         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
2129         [ifneq (no,$(PERL)] (regen-ulps): New target.
2130         [ifeq (no,$(PERL)] (regen-ulps): New target.
2131         * math/libm-test.inc (ulps_file_name): Define.
2132         (output_dir): New variable.
2133         (options): Add "output-dir" option.
2134         (parse_opt): Handle 'o' case.
2135         (main): If output_dir is non-NULL use it as a prefix
2136         otherwise use "".
2137         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
2138
2139 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2140
2141         [BZ #10060, #10062]
2142         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
2143         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
2144         fail configure if __sync_val_compare_and_swap is not inlined.
2145         * sysdeps/i386/configure: Regenerate.
2146         * configure.in: Build for i686 when configured for i386.
2147         * configure: Regenerate.
2148         * README: Remove i386 reference.
2149
2150 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2151
2152         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
2153         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2154
2155 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
2156
2157         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
2158         (lmsnanval): New variables.
2159         (F): Add conversion tests.
2160         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
2161         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
2162
2163         * stdio-common/tstdiomisc.c (F): Properly collect individual
2164         tests' results.
2165
2166         [BZ #14686, #15336]
2167         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
2168         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
2169         Instead, use input NaN values or generate a qNaN by arithmetic
2170         operation.  Also fix bugs to comply with the standard.
2171         * math/libm-test.inc (remainder_test): Add more tests.
2172
2173         [BZ #15335, #15342]
2174         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
2175         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
2176         input NaN values or generate a qNaN by arithmetic operation.
2177
2178         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
2179         unreachable code.
2180
2181         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
2182         definitions.
2183
2184 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
2185
2186         [BZ #14478]
2187         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
2188         underflowed result.
2189         * math/s_cexpf.c (__cexpf): Likewise.
2190         * math/s_cexpl.c (__cexpl): Likewise.
2191         * math/libm-test.inc (cexp_test): Add more tests.
2192
2193 2013-04-03  Andreas Schwab  <schwab@suse.de>
2194
2195         [BZ #15330]
2196         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
2197         order arrays from heap if bigger than alloca cutoff.
2198
2199 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
2200
2201         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
2202         (SNAN_TESTS_double): Refer to GCC PR56831.
2203         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
2204         GCC PR56828.
2205
2206 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2207
2208         * Rules (bench): Move bench.out after the run is complete.
2209
2210         * Rules (bench): Echo currently running benchmark.
2211
2212         * benchtests/Makefile (bench): Add atan and slowatan.
2213         * benchtests/atan-inputs: New file.
2214         * benchtests/slowatan-inputs: New file.
2215         * benchtests/slowatan.c: New file.
2216
2217         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
2218         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
2219         its value.
2220
2221         [BZ #15305]
2222         * sysdeps/unix/sysv/linux/kernel-features.h
2223         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
2224         __ASSUME_XFS_RESTRICTED_CHOWN.
2225         * sysdeps/unix/sysv/linux/pathconf.c
2226         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
2227         Save and restore errno.
2228
2229 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
2230
2231         [BZ #15327]
2232         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
2233         arguments using __kernel_casinh.
2234         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
2235         arguments using __kernel_casinhf.
2236         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
2237         arguments using __kernel_casinhl.
2238         * math/libm-test.inc (cacosh_test): Add more tests.
2239         * sysdeps/i386/fpu/libm-test-ulps: Update.
2240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2241
2242 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2243
2244         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
2245         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
2246
2247         * bench/Makefile (bench): Add sin and slowsin.
2248         * benchtests/sin-inputs: New file.
2249         * benchtests/slowsin-inputs: New file.
2250         * benchtests/slowsin.c: New file.
2251
2252         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
2253         (bench): Add slowexp and slowpow.
2254         (exp-ITER): Increase iterations.
2255         (pow-ITER): Likewise.
2256         * benchtests/exp-inputs: Change input.
2257         * benchtests/pow-inputs: Likewise.
2258         * benchtests/slowexp-inputs: New file.
2259         * benchtests/slowexp.c: New file.
2260         * benchtests/slowpow-inputs: New file.
2261         * benchtests/slowpow.c: New file.
2262
2263 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2264
2265         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
2266         instructions.
2267         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
2268         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
2269         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
2270         * benchtests/Makefile: Add rint benchtest.
2271         * benchtests/rint-inputs: Input for rint benchtest.
2272
2273 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
2274
2275         * Versions.def (libm): Add GLIBC_2.18.
2276         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
2277         hidden libm prototypes.
2278         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
2279         * math/Makefile (libm-calls): Add s_issignaling.
2280         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
2281         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
2282         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
2283         declaration.
2284         * math/math.h [__USE_GNU] (issignaling): New macro.
2285         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
2286         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
2287         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
2288         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
2289         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
2290         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
2291         * manual/arith.texi (issignaling): New section.
2292         * manual/libm-err-tab.pl (@all_functions): Update comment.
2293         * math/gen-libm-test.pl (parse_args): Apply special handling for
2294         issignaling.
2295         * math/libm-test.inc (print_float, issignaling_test): New
2296         functions.
2297         (check_float_internal): Add issignaling checks.
2298         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
2299         default definition.
2300         * sysdeps/powerpc/math-tests.h: New file.
2301         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
2302         tests.
2303         * math/test-snan.c (TEST_FUNC): Likewise.
2304
2305 2013-03-30  David S. Miller  <davem@davemloft.net>
2306
2307         * po/de.po: Update from translation team.
2308
2309 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
2310
2311         [BZ #10357]
2312         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2313         imaginary part less than 1.0 and real part less than 0.5
2314         specially.
2315         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2316         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2317         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
2318         (cacos_test): Add more tests.
2319         (casin_test): Likewise.
2320         (casinh_test): Likewise.
2321         * sysdeps/i386/fpu/libm-test-ulps: Update.
2322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2323
2324 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2325
2326         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
2327         ONE with its value.
2328
2329         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
2330         (__pow_mp): Replace ONE and MONE with their values.
2331         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2332         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
2333         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2334         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
2335         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2336         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2337
2338         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
2339
2340         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
2341         (__pow_mp): Replace ZERO and MZERO with their values.
2342         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
2343         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2344         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2345         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
2346         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2347         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
2348         (__sqr): Likewise.
2349
2350         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
2351
2352         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
2353
2354 2013-03-28  Roland McGrath  <roland@hack.frob.com>
2355
2356         * include/stdlib.h [!SHARED] (__call_tls_dtors):
2357         Declare with __attribute__ ((weak)).
2358         * stdlib/exit.c (__libc_atexit) [!SHARED]:
2359         Call __call_tls_dtors only if it's not NULL.
2360
2361 2013-03-28  Roland McGrath  <roland@hack.frob.com>
2362
2363         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
2364         didn't do it already, then set _dl_phdr and _dl_phnum based on the
2365         magic __ehdr_start linker symbol if it's defined.
2366         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
2367         them up here if it was already done.
2368
2369         * elf/dl-support.c (_dl_phdr): Make pointer to const.
2370         (_dl_aux_init): Use const in cast when setting it.
2371         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
2372         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
2373         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
2374
2375         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
2376         Declare them here.
2377         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
2378         * csu/libc-tls.c: Nor here.
2379         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
2380
2381         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
2382         (__libc_message): Never call vsyslog.
2383
2384 2013-03-28  Alan Modra  <amodra@gmail.com>
2385
2386         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
2387         Define as empty.
2388         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
2389         Likewise.
2390
2391 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2392
2393         [BZ #15214]
2394         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
2395         underflow.
2396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2397
2398 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2399
2400         [BZ #15304]
2401         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
2402         Don't add gid passed as argument.
2403
2404         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
2405
2406 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
2407
2408         [BZ #15307]
2409         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2410         imaginary part between 1.0 and 1.5 and real part less than 0.5
2411         specially.
2412         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2413         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2414         * math/libm-test.inc (cacos_test): Add more tests.
2415         (casin_test): Likewise.
2416         (casinh_test): Likewise.
2417         * sysdeps/i386/fpu/libm-test-ulps: Update.
2418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2419
2420 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2421
2422         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
2423         constants.
2424         (norm): Likewise.
2425         (denorm): Likewise.
2426         (__dbl_mp): Likewise.
2427         (add_magnitudes): Likewise.
2428         (sub_magnitudes): Likewise.
2429         (__add): Likewise.
2430         (__sub): Likewise.
2431         (__mul): Likewise.
2432         (__sqr): Likewise.
2433         (__inv): Likewise.
2434         (__dvd): Likewise.
2435
2436         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
2437         commented code.
2438         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
2439         (__dubcos): Likewise.
2440         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
2441         (__ieee754_acos): Likewise.
2442         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
2443         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
2444         (__exp1): Likewise.
2445         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2446         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
2447         (log1): Likewise.
2448         (my_log2): Likewise.
2449         (checkint): Likewise.
2450         * sysdeps/ieee754/dbl-64/e_remainder.c
2451         (__ieee754_remainder): Likewise.
2452         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2453         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
2454         (bsloww): Likewise.
2455         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2456
2457         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2458         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
2459         MANTISSA_STORE_T to store computations on mantissa.  Use
2460         macros for rounding and division.
2461         (denorm): Likewise.
2462         (__dbl_mp): Likewise.
2463         (add_magnitudes): Likewise.
2464         (sub_magnitudes): Likewise.
2465         (__mul): Likewise.
2466         (__sqr): Likewise.
2467         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2468         powers of two in terms of TWOPOW macro.
2469         (mp_no): Make type of mantissa as MANTISSA_T.
2470         [!RADIXI]: Define RADIXI.
2471         [!TWO52]: Define TWO52.
2472         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2473
2474 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2475
2476         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
2477         llroundl symbol when building for PPC32.
2478
2479 2013-03-24  Mark H Weaver  <mhw@netris.org>
2480
2481         * manual/arith.texi (Normalization Functions): Fix prototypes for
2482         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
2483
2484 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2485
2486         [BZ #13889]
2487         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
2488         high value to check if expl overflow.
2489         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
2490         to check for underflow and overflow.
2491         * math/libm-test.inc: Add exp test.
2492
2493 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
2494
2495         [BZ #11120]
2496         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
2497         with NOT_IN_libc.
2498
2499 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2500
2501         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
2502         symbol.
2503
2504 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2505
2506         * math/gen-libm-test.pl (parse_args, special_functions): Properly
2507         wrap blocks consisting of several statements.
2508
2509         * sysdeps/generic/math-tests.h: New file.
2510         * sysdeps/i386/fpu/math-tests.h: Likewise.
2511         * math/test-snan.c: Include it.
2512         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
2513
2514 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
2515
2516         [BZ #15285]
2517         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
2518         (__ieee754_j0l): Do not improve calculations using cos of twice
2519         input for inputs above LDBL_MAX / 2.0L.
2520         (__ieee754_y0l): Likewise.
2521         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
2522         (__ieee754_j1l): Do not improve calculations using cos of twice
2523         input for inputs above LDBL_MAX / 2.0L.
2524         (__ieee754_y1l): Likewise.
2525         * math/libm-test.inc (j0_test): Add another test.
2526         (j1_test): Likewise.
2527         (y0_test): Likewise.
2528         (y1_test): Likewise.
2529         * sysdeps/i386/fpu/libm-test-ulps: Update.
2530
2531 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2532
2533         * Rules ($(objpfx)bench-%.c): Include code from a C source
2534         file.
2535
2536 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
2537
2538         [BZ #15287]
2539         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2540         imaginary part 1.0 and real part less than 0.5 specially.
2541         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2542         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2543         * math/libm-test.inc (cacos_test): Add more tests.
2544         (casin_test): Likewise.
2545         (casinh_test): Likewise.
2546         * sysdeps/i386/fpu/libm-test-ulps: Update.
2547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2548
2549 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2550
2551         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
2552         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
2553
2554 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
2555
2556         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
2557         * config.make.in (config-cflags-sse4): Remove variable.
2558         (config-cflags-avx): Likewise.
2559         (config-cflags-sse2avx): Likewise.
2560         (config-cflags-novzeroupper): Likewise.
2561         (config-asflags-i686): Likewise.
2562         (have-mfma4): Likewise.
2563         (have-as-vis3): Likewise.
2564         (MIG): Likewise.
2565         * configure.in (MIG): Do not AC_SUBST.
2566         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
2567         (libc_cv_cc_sse4): Do not AC_SUBST.
2568         (libc_cv_cc_avx): Likewise.
2569         (libc_cv_cc_sse2avx): Likewise.
2570         (libc_cv_cc_novzeroupper): Likewise.
2571         (libc_cv_cc_fma4): Likewise.
2572         (libc_cv_as_i686): Likewise.
2573         (libc_cv_sparc_as_vis3): Likewise.
2574         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
2575         LIBC_CONFIG_VAR.
2576         (config-asflags-i686): Likewise.
2577         (config-cflags-avx): Likewise.
2578         (config-cflags-sse2avx): Likewise.
2579         (have-mfma4): Likewise.
2580         (config-cflags-novzeroupper): Likewise.
2581         * sysdeps/mach/configure.in (MIG): Likewise.
2582         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
2583         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
2584         LIBC_CONFIG_VAR.
2585         (config-cflags-avx): Likewise.
2586         (config-cflags-sse2avx): Likewise.
2587         (have-mfma4): Likewise.
2588         (config-cflags-novzeroupper): Likewise.
2589         * configure: Regenerated.
2590         * sysdeps/i386/configure: Likewise.
2591         * sysdeps/mach/configure: Likewise.
2592         * sysdeps/sparc/configure: Likewise.
2593         * sysdeps/x86_64/configure: Likewise.
2594
2595 2013-03-20  Roland McGrath  <roland@hack.frob.com>
2596
2597         [BZ #14812]
2598         * locale/programs/localedef.c (options): Put N_ translation marker
2599         on argument names, not just descriptions.
2600
2601 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2602
2603         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
2604
2605 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
2606
2607         [BZ #14176]
2608         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
2609
2610 2013-03-19  Roland McGrath  <roland@hack.frob.com>
2611
2612         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
2613         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
2614         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
2615         [!BEFORE_ABORT] (before_abort): New function.
2616         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
2617         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
2618         (writev_for_fatal): New function.
2619         (WRITEV_FOR_FATAL): New macro; call that.
2620         (backtrace_and_maps): New function.
2621         (BEFORE_ABORT): New macro; call that.
2622         (struct str_list): Type removed.
2623         (__libc_message, __libc_fatal): Functions removed.
2624         Include <sysdeps/posix/libc_fatal.c> instead.
2625
2626 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
2627
2628         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
2629         constants.
2630         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
2631         double constants.
2632
2633 2013-03-19  Andreas Schwab  <schwab@suse.de>
2634
2635         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
2636         * sysdeps/gnu/configure: Regenerate.
2637
2638         * configure.in: Substitute libc_cv_rtlddir.
2639         * configure: Regenerate.
2640         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
2641         * Makeconfig (rtlddir, inst_rtlddir): New variables.
2642         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
2643         * elf/Makefile (install-others, CFLAGS-interp.c)
2644         (ldso_install, common-ldd-rewrite): Likewise.
2645         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
2646         $(inst_slibdir)/$(rtld-installed-name).
2647         * scripts/rellns-sh: Add -p option.
2648         * Makerules (make-shlib-link): Use rellns-sh to get relative name
2649         for source.
2650
2651 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2652
2653         * manual/nptl.texi: Renamed to ...
2654         * manual/threads.texi: ... this.
2655         * manual/Makefile (chapters): Update.
2656
2657 2013-03-18  Roland McGrath  <roland@hack.frob.com>
2658
2659         [BZ #14812]
2660         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
2661         on argument names, not just descriptions.
2662         * malloc/memusagestat.c (options): Likewise.
2663         * nss/getent.c (options): Likewise.
2664
2665 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
2666
2667         [BZ #14812]
2668         * iconv/iconv_prog.c (options): Put N_ translation marker
2669         on argument names, not just descriptions.
2670         * iconv/iconvconfig.c (options): Likewise.
2671
2672 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
2673
2674         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
2675         implementation which is faster on all x86_64 architectures.
2676         Tested on AMD, Intel Nehalem, SNB, IVB.
2677         * sysdeps/x86_64/strnlen.S: Likewise.
2678
2679         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2680         Remove all multiarch strlen and strnlen versions.
2681         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
2682         Remove strlen and strnlen related parts.
2683
2684         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
2685         Inline strlen part.
2686         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
2687
2688         * sysdeps/x86_64/multiarch/strlen.S: Remove.
2689         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
2690         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
2691         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
2692         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2693         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
2694
2695 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
2696
2697         * manual/memory.texi (Malloc Tunable Parameters):
2698         Sort parameters alphabetically. Add comments for missing entries.
2699
2700 2013-03-17  David S. Miller  <davem@davemloft.net>
2701
2702         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2703
2704 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
2705
2706         [BZ #15283]
2707         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
2708         for arguments at most half maximum finite value.
2709         * math/libm-test.inc (j0_test): Add more tests.
2710         (j1_test): Likewise.
2711         (y0_test): Likewise.
2712         (y1_test): Likewise.
2713         * sysdeps/i386/fpu/libm-test-ulps: Update.
2714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2715
2716         [BZ #14155]
2717         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
2718         1 / x and functions P and Q for arguments above 0x1p256L.
2719         (__ieee754_y0l): Likewise.
2720         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2721         (__ieee754_y1l): Likewise.
2722         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
2723         (j1_test): Likewise.
2724         (y0_test): Likewise.
2725         (y1_test): Likewise.
2726
2727 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
2728
2729         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
2730         variable.
2731
2732 2013-03-15  Roland McGrath  <roland@hack.frob.com>
2733
2734         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
2735         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
2736         zero since it's initialized to EXEC_PAGESIZE.
2737
2738         * sysdeps/unix/sysv/linux/ldsodefs.h
2739         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
2740         * sysdeps/generic/ldsodefs.h: ... here.
2741
2742 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
2743
2744         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
2745
2746         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
2747         math/test-snan.c.
2748         * math/test-snan.c: Renamed from
2749         sysdeps/powerpc/fpu/test-powerpc-snan.c.
2750         * math/Makefile (tests): Add test-snan.
2751         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
2752         test-powerpc-snan.
2753
2754         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
2755         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
2756         functions.
2757         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
2758         __builtin_nan family of functions.
2759         * math/libm-test.inc (initialize): Initialize qnan_value with
2760         __builtin_nan family of functions.
2761         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
2762         Remove variables.
2763         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
2764         Remove functions.
2765         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
2766         storage class.  Initialize qNaN_var and sNaN_var with
2767         __builtin_nan and __builtin_nans families of functions,
2768         respectively.
2769
2770         * math/libm-test.inc (acosh_test): Also test with qNaN input.
2771         (sqrt_test): Remove duplicate test with qNaN input.
2772         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
2773         (round_test, signbit_test, significand_test): Note missing +/-Inf
2774         as well as qNaN tests.
2775
2776         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
2777         qNaN_var.  Fix a few strings, too.
2778         * math/libm-test.inc (nan_value): Rename to qnan_value.
2779         * math/gen-libm-test.pl (%beautify): Adjust to that.
2780         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
2781         * math/test-misc.c (main): Likewise.
2782         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
2783         to __qnan_bytes, and __qnan_union, respectively.
2784         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
2785         Likewise.
2786         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
2787         and lqnanval, respectively.
2788         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
2789         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
2790         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
2791         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
2792
2793         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
2794         * math/test-misc.c (main) [__x86_64__]: Enable test for long
2795         doubles.
2796
2797         * math/test-misc.c (main): Fix copy'n'pastos.
2798         * misc/tst-efgcvt.c (special): Likewise.
2799
2800         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
2801         Remove declarations.
2802
2803 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2804
2805         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
2806         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
2807         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
2808         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
2809
2810 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2811
2812         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
2813         macro to return vdso values correctly in IFUNC implementations.
2814         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2815         Optimization by using IFUNC.
2816
2817 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2818             Richard Henderson  <rth@redhat.com>
2819             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2820
2821         * Makefile.in (bench): New target.
2822         * NEWS: Mention the benchmark framework.
2823         * Rules (bench): Likewise.
2824         (binaries-bench): Generate binaries for functions to
2825         benchmark.
2826         * benchtests/Makefile: New makefile for benchmark tests.
2827         * benchtests/bench-skeleton.c: New skeleton file for benchmark
2828         programs.
2829         * benchtests/exp-inputs: New input file for EXP function.
2830         * benchtests/pow-inputs: New input file for POW function.
2831         * scripts/bench.pl: New script to generate source files for
2832         benchmark programs.
2833
2834 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2835
2836         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2837         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
2838         computations on mantissa.  Use macros for rounding and
2839         division.
2840         (denorm): Likewise.
2841         (__dbl_mp): Likewise.
2842         (add_magnitudes): Likewise.
2843         (sub_magnitudes): Likewise.
2844         (__mul): Likewise.
2845         (__sqr): Likewise.
2846         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2847         powers of two in terms of TWOPOW macro.
2848         (mp_no): Make type of mantissa as MANTISSA_T.
2849         [!RADIXI]: Define RADIXI.
2850         [!TWO52]: Define TWO52.
2851         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2852
2853         * manual/nptl.texi (cindex): Modify threads to pthreads.
2854
2855 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
2856
2857         * sysdeps/x86_64/preconfigure: Regenerated.
2858
2859 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
2860
2861         [BZ #14155]
2862         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
2863         0x1p28 and above.
2864         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
2865         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
2866         0x1p28 and above.
2867         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
2868         * math/libm-test.inc (j0_test): Do not allow one spurious
2869         underflow exception.
2870         (y1_test): Likewise.
2871
2872 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2873
2874         * manual/Makefile (chapters): Add nptl.
2875         * manual/debug.texi (Debugging Support): Add link to Threads
2876         chapter.
2877         * manual/nptl.texi: New file.
2878
2879         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
2880
2881 2013-03-14  Petr Baudis  <pasky@ucw.cz>
2882
2883         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
2884         for non-NULL pointer before the memory validity test. Pointed
2885         out by Holger Brunck <holger.brunck@keymile.com>.
2886
2887 2013-03-13  Andreas Schwab  <schwab@suse.de>
2888
2889         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
2890         instead of .os.
2891
2892 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
2893
2894         * timezone/zic.c: Update from tzcode 2013b.
2895
2896 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
2897
2898         * manual/install.texi (Configuring and compiling):
2899         Mention i686 and i586.
2900         * INSTALL: Regenerate.
2901
2902 2013-03-12  Roland McGrath  <roland@hack.frob.com>
2903
2904         * sysdeps/init_array/elf-init.c: New file.
2905         * csu/elf-init.c
2906         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
2907         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
2908
2909         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
2910         __gmon_start__ as global, but as static with a .preinit_array pointer.
2911         * sysdeps/init_array/gmon-start.c: New file.  Use that.
2912         * sysdeps/init_array/crti.S: New file, empty except for comments.
2913         * sysdeps/init_array/crtn.S: Likewise.
2914
2915 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
2916
2917         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
2918         definining bcopy.
2919         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2920         Remove Prefer_SSE_for_memop.
2921         * sysdeps/x86_64/multiarch/init-arch.h: Remove
2922         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
2923         HAS_PREFER_SSE_FOR_MEMOP.
2924         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2925         memset-x86-64.
2926         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2927         Remove bzero, memset ifunc support.
2928         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
2929         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
2930         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2931         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2932
2933 2013-03-11  Andreas Schwab  <schwab@suse.de>
2934
2935         [BZ #15234]
2936         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
2937         by SHLIB_COMPAT.
2938         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
2939         (GLIBC_2.16): Remove pthread_atfork.
2940
2941 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
2942
2943         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
2944         (ptestcases.h): Likewise.
2945
2946 2013-03-08  Roland McGrath  <roland@hack.frob.com>
2947
2948         * Makeconfig ($(common-objpfx)config.status): Depend on
2949         sysdeps/*/preconfigure{,.in} too.
2950
2951 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
2952
2953         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
2954         (__free_hook): Use void * instead of __malloc_ptr_t.
2955         (__malloc_hook): Likewise.
2956         (__realloc_hook): Likewise.
2957         (__memalign_hook): Likewise.
2958         (__after_morecore_hook): Likewise.
2959         * malloc/arena.c (save_malloc_hook): Likewise.
2960         (save_free_hook): Likewise.
2961         * malloc/hooks.c (malloc_hook_ini): Likewise.
2962         (realloc_hook_ini): Likewise.
2963         (memalign_hook_ini): Likewise.
2964         * malloc/malloc.c (malloc_hook_ini): Likewise.
2965         (realloc_hook_ini): Likewise.
2966         (memalign_hook_ini): Likewise.
2967         (__free_hook): Likewise.
2968         (__malloc_hook): Likewise.
2969         (__realloc_hook): Likewise.
2970         (__memalign_hook): Likewise.
2971         (__libc_malloc): Likewise.
2972         (__libc_free): Likewise.
2973         (__libc_realloc): Likewise.
2974         (__libc_memalign): Likewise.
2975         (__libc_valloc): Likewise.
2976         (__libc_pvalloc): Likewise.
2977         (__libc_calloc): Likewise.
2978         (__posix_memalign): Likewise.
2979         * malloc/morecore.c (__sbrk): Likewise.
2980         (__default_morecore): Likewise.
2981
2982         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
2983
2984         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
2985         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
2986         __malloc_ptrdiff_t.
2987
2988         * malloc/malloc.h (__malloc_size_t): Remove macro.
2989         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
2990         __malloc_size_t.
2991         (old_memalign_hook): Likewise.
2992         (old_realloc_hook): Likewise.
2993         (struct hdr): Likewise.
2994         (flood): Likewise.
2995         (mallochook): Likewise.
2996         (memalignhook): Likewise.
2997         (reallochook): Likewise.
2998         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
2999         (tr_old_realloc_hook): Likewise.
3000         (tr_old_memalign_hook): Likewise.
3001         (tr_mallochook): Likewise.
3002         (tr_reallochook): Likewise.
3003         (tr_memalignhook): Likewise.
3004
3005 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3006
3007         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
3008         default_ldbl_pack and using as default implementation.
3009         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
3010         implementation.
3011         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
3012         redundant definition.
3013         (ldbl_insert_mantissa): Likewise.
3014         (ldbl_canonicalize): Likewise.
3015         (ldbl_nearbyint): Likewise.
3016         (ldbl_pack): Rename to ldbl_pack_ppc.
3017         (ldbl_unpack): Rename to ldbl_unpack_ppc.
3018         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
3019         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
3020
3021 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
3022
3023         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
3024         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
3025         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
3026         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
3027         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
3028         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
3029         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
3030         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
3031
3032 2013-03-07  Andreas Jaeger  <aj@suse.de>
3033
3034         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3035         bits/mman-linux.h.
3036
3037 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3038
3039         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
3040         Include mpa.h and declare __MPEXP.
3041         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
3042         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
3043         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
3044         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
3045         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
3046         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
3047         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
3048
3049         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
3050         (__slowpow): Use long double EXPL and LOGL functions to
3051         compute POW.
3052         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
3053         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
3054         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
3055         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
3056         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
3057         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
3058
3059         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
3060         intermediate variable to calculate exponent.
3061         (__sqr): Likewise.
3062         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3063         Likewise.
3064         (__sqr): Likewise.
3065
3066         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
3067         [!NO__SQR]: Define __sqr.
3068         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
3069         and NO__SQR.  Remove all code except __mul and __sqr.  Include
3070         sysdeps/ieee754/dbl-64/mpa.c.
3071         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3072
3073         [BZ #12723]
3074         * posix/Makefile (tests): Add tst-pathconf.
3075         * posix/tst-pathconf.c: New test case.
3076         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
3077         _PC_PIPE_BUF.
3078         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3079
3080 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
3081
3082         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
3083
3084 2013-03-06  Andreas Jaeger  <aj@suse.de>
3085
3086         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
3087         definition via __MAP_ANONYMOUS.
3088
3089         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
3090         it's not part of Linux headers.
3091
3092         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
3093         (MAP_HUGE_MASK): Define.
3094
3095         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
3096         Define.
3097         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3098         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
3099         Define.
3100         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3101         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
3102         Define.
3103         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3104         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
3105         Define.
3106         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3107
3108         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
3109         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
3110         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
3111         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
3112         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
3113         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
3114
3115         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3116         Handle f2fs.
3117
3118         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3119         Handle f2fs and efivarfs.
3120
3121         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
3122         f2fs.
3123
3124         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
3125         (EFIVARFS_MAGIC): Add.
3126         (F2FS_LINK_MAX): Add.
3127
3128 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3129
3130         * stdio-common/vfprintf.c: Replace __builtin_expect with
3131         __glibc_unlikely.
3132
3133 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
3134
3135         [BZ #13550]
3136         * sysdeps/generic/bp-sym.h: Remove file.
3137         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
3138         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
3139         <bp-sym.h> and <bp-asm.h>.
3140         (__longjmp): Don't use BP_SYM.
3141         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
3142         and <bp-asm.h>.
3143         (memcpy): Don't use BP_SYM.
3144         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
3145         <bp-sym.h> and <bp-asm.h>.
3146         (memcpy): Don't use BP_SYM.
3147         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
3148         <bp-asm.h>.
3149         (memcpy): Don't use BP_SYM.
3150         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
3151         <bp-asm.h>.
3152         (memset): Don't use BP_SYM.
3153         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3154         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3155         (__bzero): Don't use BP_SYM.
3156         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3157         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3158         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
3159         <bp-sym.h> and <bp-asm.h>.
3160         (memcmp): Don't use BP_SYM.  Remove comment about bounded
3161         pointers.
3162         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
3163         <bp-sym.h> and <bp-asm.h>.
3164         (memcpy): Don't use BP_SYM.
3165         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
3166         <bp-sym.h> and <bp-asm.h>.
3167         (memset): Don't use BP_SYM.
3168         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3169         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3170         (__bzero): Don't use BP_SYM.
3171         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3172         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3173         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
3174         <bp-sym.h> and <bp-asm.h>.
3175         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3176         pointers.
3177         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
3178         <bp-sym.h> and <bp-asm.h>.
3179         (memcpy): Don't use BP_SYM.
3180         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
3181         <bp-sym.h> and <bp-asm.h>.
3182         (memset): Don't use BP_SYM.
3183         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3184         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3185         (__bzero): Don't use BP_SYM.
3186         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3187         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3188         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
3189         <bp-sym.h> and <bp-asm.h>.
3190         (__memchr): Don't use BP_SYM.
3191         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
3192         <bp-sym.h> and <bp-asm.h>.
3193         (memcmp): Don't use BP_SYM.  Remove comment about bounded
3194         pointers.
3195         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
3196         <bp-sym.h> and <bp-asm.h>.
3197         (memcpy): Don't use BP_SYM.
3198         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
3199         <bp-sym.h> and <bp-asm.h>.
3200         (__mempcpy): Don't use BP_SYM.
3201         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
3202         <bp-sym.h> and <bp-asm.h>.
3203         (__memrchr): Don't use BP_SYM.
3204         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
3205         <bp-sym.h> and <bp-asm.h>.
3206         (memset): Don't use BP_SYM.
3207         (__bzero): Likewise.
3208         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
3209         <bp-sym.h> and <bp-asm.h>.
3210         (__rawmemchr): Don't use BP_SYM.
3211         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
3212         <bp-sym.h> and <bp-asm.h>.
3213         (__STRCMP): Don't use BP_SYM.
3214         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
3215         <bp-sym.h> and <bp-asm.h>.
3216         (strchr): Don't use BP_SYM.
3217         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
3218         <bp-sym.h> and <bp-asm.h>.
3219         (__strchrnul): Don't use BP_SYM.
3220         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
3221         <bp-sym.h> and <bp-asm.h>.
3222         (strlen): Don't use BP_SYM.
3223         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
3224         <bp-sym.h> and <bp-asm.h>.
3225         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3226         pointers.
3227         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
3228         <bp-sym.h> and <bp-asm.h>.
3229         (__strnlen): Don't use BP_SYM.
3230         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
3231         <bp-sym.h> and <bp-asm.h>.
3232         (__GI__setjmp): Don't use BP_SYM.
3233         (_setjmp): Likewise.
3234         (__sigsetjmp): Likewise.
3235         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
3236         (L(start_addresses)): Don't use BP_SYM.
3237         (_start): Likewise.
3238         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
3239         <bp-asm.h>.
3240         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
3241         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
3242         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3243         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3244         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
3245         <bp-asm.h>.
3246         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
3247         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
3248         about bounded pointers.
3249         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3250         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3251         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
3252         <bp-asm.h>.
3253         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
3254         about bounded pointers.  Remove GKM FIXME comments.
3255         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3256         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
3257         <bp-asm.h>.
3258         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
3259         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
3260         Remove GKM FIXME comments.
3261         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3262         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3263         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
3264         <bp-asm.h>.
3265         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
3266         about bounded pointers.  Remove GKM FIXME comment.
3267         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
3268         and <bp-asm.h>.
3269         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3270         pointers.
3271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
3272         <bp-sym.h> and <bp-asm.h>.
3273         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
3274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
3275         <bp-sym.h> and <bp-asm.h>.
3276         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
3277         comment.
3278
3279 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3280
3281         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
3282         call free(NULL).
3283
3284 2013-03-05  David S. Miller  <davem@davemloft.net>
3285
3286         * po/es.po: Update from translation team.
3287
3288 2013-03-05  Andreas Jaeger  <aj@suse.de>
3289
3290         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
3291         <bits/mman-linux.h>.
3292         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3293         is fine.
3294         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
3295         <bits/mman-linux.h> to end of file.
3296         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3297         is fine.
3298         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
3299         <bits/mman-linux.h> to end of file.
3300         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3301         is fine.
3302         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
3303         <bits/mman-linux.h> to end of file.
3304
3305         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
3306         (MCL_CURRENT, MCL_FUTURE): Define here.
3307
3308 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3309
3310         [BZ #15232]
3311         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
3312         attribute_hidden.
3313         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3314
3315 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3316
3317         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
3318         fourth parameter needed for rt_sigprocmask syscall.
3319         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
3320         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
3321         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
3322         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
3323         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3324         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
3325
3326 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
3327
3328         [BZ #13550]
3329         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
3330         comment about bounded pointers.
3331         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
3332         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
3333
3334 2013-03-04  Andreas Jaeger  <aj@suse.de>
3335
3336         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
3337         common definitions.
3338
3339         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
3340         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
3341         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
3342         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3343         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
3344         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3345
3346 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3347
3348         [BZ #15055]
3349         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
3350         __ieee754_sqrl instead of __sqrl.
3351
3352 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
3353
3354         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
3355         * sysdeps/powerpc/fpu_control.h: ... here.
3356         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
3357         * sysdeps/powerpc/bits/fenvinline.h: ... here.
3358         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
3359         * sysdeps/powerpc/bits/mathinline.h: ... here.
3360
3361 2013-03-01  Roland McGrath  <roland@hack.frob.com>
3362
3363         * elf/dl-hwcaps.c (_dl_important_hwcaps):
3364         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
3365         to just [NEED_DL_SYSINFO_DSO].
3366         * elf/dl-support.c: Likewise.
3367         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
3368         * elf/rtld.c (dl_main): Likewise.
3369         * elf/setup-vdso.h (setup_vdso): Likewise.
3370         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
3371         * sysdeps/unix/sysv/linux/dl-sysdep.c
3372         (_dl_discover_osversion): Likewise.
3373
3374 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
3375
3376         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
3377         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
3378
3379 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
3380
3381         * NEWS: Mention libm performance improvements and non-x86 PI
3382         futex support.
3383
3384         * csu/libc-start.c (__pthread_initialize_minimal): Change
3385         function arguments.
3386         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
3387
3388 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
3389
3390         [BZ #13550]
3391         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
3392         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
3393         <bp-sym.h> and <bp-asm.h>.
3394         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3395         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
3396         and <bp-asm.h>.
3397         (memcpy): Don't use BP_SYM.
3398         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
3399         <bp-asm.h>.
3400         (__mpn_add_n): Don't use BP_SYM.
3401         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
3402         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
3403         and <bp-asm.h>.
3404         (__mpn_addmul_1): Don't use BP_SYM.
3405         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3406         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
3407         <bp-sym.h>.
3408         (_setjmp): Don't use BP_SYM.
3409         (__novmx_setjmp): Likewise.
3410         (__GI__setjmp): Likewise.
3411         (__vmx_setjmp): Likewise.
3412         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
3413         <bp-sym.h>.
3414         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
3415         (__bzero): Don't use BP_SYM.
3416         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3417         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3418         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
3419         <bp-sym.h> and <bp-asm.h>.
3420         (memcpy): Don't use BP_SYM.
3421         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
3422         <bp-sym.h> and <bp-asm.h>.
3423         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3424         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
3425         <bp-sym.h> and <bp-asm.h>.
3426         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3427         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
3428         <bp-asm.h>.
3429         (__mpn_lshift): Don't use BP_SYM.
3430         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3431         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
3432         <bp-asm.h>.
3433         (memset): Don't use BP_SYM.
3434         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3435         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3436         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
3437         <bp-asm.h>.
3438         (__mpn_mul_1): Don't use BP_SYM.
3439         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3440         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
3441         <bp-sym.h> and <bp-asm.h>.
3442         (memcmp): Don't use BP_SYM.
3443         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
3444         <bp-sym.h> and <bp-asm.h>.
3445         (memcpy): Don't use BP_SYM.
3446         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
3447         <bp-sym.h> and <bp-asm.h>.
3448         (memset): Don't use BP_SYM.
3449         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
3450         <bp-sym.h> and <bp-asm.h>.
3451         (strncmp): Don't use BP_SYM.
3452         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
3453         <bp-sym.h> and <bp-asm.h>.
3454         (memcpy): Don't use BP_SYM.
3455         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
3456         <bp-sym.h> and <bp-asm.h>.
3457         (memset): Don't use BP_SYM.
3458         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
3459         <bp-sym.h> and <bp-asm.h>.
3460         (__memchr): Don't use BP_SYM.
3461         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
3462         <bp-sym.h> and <bp-asm.h>.
3463         (memcmp): Don't use BP_SYM.
3464         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
3465         <bp-sym.h> and <bp-asm.h>.
3466         (memcpy): Don't use BP_SYM.
3467         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
3468         <bp-sym.h> and <bp-asm.h>.
3469         (__mempcpy): Don't use BP_SYM.
3470         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
3471         <bp-sym.h> and <bp-asm.h>.
3472         (__memrchr): Don't use BP_SYM.
3473         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
3474         <bp-sym.h> and <bp-asm.h>.
3475         (memset): Don't use BP_SYM.
3476         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
3477         <bp-sym.h> and <bp-asm.h>.
3478         (__rawmemchr): Don't use BP_SYM.
3479         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
3480         <bp-sym.h> and <bp-asm.h>.
3481         (__STRCMP): Don't use BP_SYM.
3482         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
3483         <bp-sym.h> and <bp-asm.h>.
3484         (strchr): Don't use BP_SYM.
3485         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
3486         <bp-sym.h> and <bp-asm.h>.
3487         (__strchrnul): Don't use BP_SYM.
3488         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
3489         <bp-sym.h> and <bp-asm.h>.
3490         (strlen): Don't use BP_SYM.
3491         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
3492         <bp-sym.h> and <bp-asm.h>.
3493         (strncmp): Don't use BP_SYM.
3494         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
3495         <bp-sym.h> and <bp-asm.h>.
3496         (__strnlen): Don't use BP_SYM.
3497         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
3498         <bp-asm.h>.
3499         (__mpn_rshift): Don't use BP_SYM.
3500         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3501         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
3502         <bp-sym.h> and <bp-asm.h>.
3503         (__sigsetjmp): Don't use BP_SYM.
3504         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
3505         (L(start_addresses)): Don't use BP_SYM.
3506         (_start): Likewise.
3507         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
3508         <bp-asm.h>.
3509         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
3510         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3511         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3512         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
3513         <bp-asm.h>.
3514         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
3515         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3516         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3517         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
3518         <bp-asm.h>.
3519         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
3520         comments.
3521         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3522         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
3523         <bp-asm.h>.
3524         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
3525         FIXME comments.
3526         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3527         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3528         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
3529         <bp-asm.h>.
3530         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
3531         comment.
3532         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
3533         and <bp-asm.h>.
3534         (strncmp): Don't use BP_SYM,
3535         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
3536         <bp-asm.h>.
3537         (__mpn_sub_n): Don't use BP_SYM.
3538         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3539         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
3540         and <bp-asm.h>.
3541         (__mpn_submul_1): Don't use BP_SYM.
3542         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
3544         <bp-sym.h> and <bp-asm.h>.
3545         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
3546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
3547         <bp-sym.h> and <bp-asm.h>.
3548         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
3549         comment.
3550
3551 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3552
3553         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
3554         Use ZK to minimize writes to Z.
3555         (sub_magnitudes): Simplify code a bit.
3556         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
3557         Use ZK to minimize writes to Z.
3558         (sub_magnitudes): Simplify code a bit.
3559
3560 2013-02-27  Roland McGrath  <roland@hack.frob.com>
3561
3562         * csu/gmon-start.c: Add special exception to license text.
3563
3564 2013-02-27  Richard Henderson  <rth@redhat.com>
3565
3566         * scripts/config.guess: Update from config.git.
3567         * scripts/config.sub: Likewise.
3568
3569 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3570
3571         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
3572
3573         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
3574
3575         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
3576
3577         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
3578
3579         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
3580
3581 2013-02-26  Roland McGrath  <roland@hack.frob.com>
3582
3583         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
3584         [$(build-shared = yes].
3585
3586 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3587
3588         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
3589         (__mul): Reduce iterations for calculating mantissa.
3590
3591         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
3592         MPTWO.
3593         (__mpranred): Likewise.
3594
3595         [BZ #15160]
3596         * malloc/memusagestat.c (main): Draw graphs for heap and stack
3597         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
3598
3599 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3600
3601         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
3602         Define __attribute__.
3603
3604 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3605
3606         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
3607         unused.
3608         * posix/regex_internal.h (__attribute): Remove.
3609         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
3610         (re_string_context_at): Likewise.
3611         (bitset_not): Use __attribute__ and mark function as possibly
3612         unused.
3613         (bitset_merge): Likewise.
3614         (bitset_mask): Likewise.
3615         (re_string_char_size_at): Likewise.
3616         (re_string_wchar_at): Likewise.
3617         (re_string_elem_size_at): Likewise.
3618
3619 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3620
3621         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
3622         code.
3623         (cc32): Likewise.
3624
3625         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
3626         (__acr): Likewise.
3627         (__cpy): Likewise.
3628         (norm): Likewise.
3629         (denorm): Likewise.
3630         (__dbl_mp): Likewise.
3631         (add_magnitudes): Likewise.
3632         (sub_magnitudes): Likewise.
3633         (__mul): Likewise.
3634         (__inv): Likewise.
3635
3636         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
3637         style.
3638
3639         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
3640         style.
3641
3642         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
3643         code.
3644
3645         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
3646         up changes with default code.
3647         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
3648         Likewise.
3649
3650 2013-02-24  Allan McRae  <allan@archlinux.org>
3651
3652         * manual/socket.texi (The Internet Namespace): Order menu items
3653         to match that in the file.
3654
3655         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
3656         node listing of the info page menu.
3657
3658 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
3659
3660         [BZ #13550]
3661         * sysdeps/i386/bp-asm.h: Remove file.
3662         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3663         (PARMS): Do not use macros from bp-asm.h.
3664         (S1): Likewise.
3665         (S2): Likewise.
3666         (SIZE): Likewise.
3667         (__mpn_add_n): Do not use BP_SYM
3668         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
3669         "bp-asm.h".
3670         (PARMS): Do not use macros from bp-asm.h.
3671         (S1): Likewise.
3672         (SIZE): Likewise.
3673         (__mpn_addmul_1): Do not use BP_SYM
3674         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
3675         "bp-asm.h".
3676         (PARMS): Do not use macros from bp-asm.h.
3677         (SIGMSK): Likewise.
3678         (_setjmp): Likewise.  Do not use BP_SYM.
3679         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
3680         "bp-asm.h".
3681         (PARMS): Do not use macros from bp-asm.h.
3682         (SIGMSK): Likewise.
3683         (setjmp): Likewise.  Do not use BP_SYM.
3684         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
3685         "bp-asm.h".
3686         (PARMS): Do not use macros from bp-asm.h.
3687         (__frexp): Do not use BP_SYM.
3688         (frexp): Likewise.
3689         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
3690         "bp-asm.h".
3691         (PARMS): Do not use macros from bp-asm.h.
3692         (__frexpf): Do not use BP_SYM.
3693         (frexpf): Likewise.
3694         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
3695         "bp-asm.h".
3696         (PARMS): Do not use macros from bp-asm.h.
3697         (__frexpl): Do not use BP_SYM.
3698         (frexpl): Likewise.
3699         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
3700         "bp-asm.h".
3701         (PARMS): Do not use macros from bp-asm.h.
3702         (__remquo): Do not use BP_SYM.
3703         (remquo): Likewise.
3704         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
3705         "bp-asm.h".
3706         (PARMS): Do not use macros from bp-asm.h.
3707         (__remquof): Do not use BP_SYM.
3708         (remquof): Likewise.
3709         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
3710         "bp-asm.h".
3711         (PARMS): Do not use macros from bp-asm.h.
3712         (__remquol): Do not use BP_SYM.
3713         (remquol): Likewise.
3714         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
3715         "bp-asm.h".
3716         (PARMS): Do not use macros from bp-asm.h.
3717         (DEST): Likewise.
3718         (SRC): Likewise.
3719         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
3720         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
3721         "bp-asm.h".
3722         (PARMS): Do not use macros from bp-asm.h.
3723         (strlen): Do not use BP_SYM.
3724         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
3725         "bp-asm.h".
3726         (PARMS): Do not use macros from bp-asm.h.
3727         (S1): Likewise.
3728         (S2): Likewise.
3729         (SIZE): Likewise.
3730         (__mpn_add_n): Do not use BP_SYM.
3731         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
3732         "bp-asm.h".
3733         (PARMS): Do not use macros from bp-asm.h.
3734         (S1): Likewise.
3735         (SIZE): Likewise.
3736         (__mpn_addmul_1): Do not use BP_SYM.
3737         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
3738         weak_alias.
3739         (bzero): Likewise.
3740         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
3741         "bp-asm.h".
3742         (PARMS): Do not use macros from bp-asm.h.
3743         (S): Likewise.
3744         (SIZE): Likewise.
3745         (__mpn_lshift): Do not use BP_SYM.
3746         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
3747         "bp-asm.h".
3748         (PARMS): Do not use macros from bp-asm.h.
3749         (DEST): Likewise.
3750         (SRC): Likewise.
3751         (LEN): Likewise.
3752         (memcpy): Likewise.  Do not use BP_SYM.
3753         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
3754         libc_hidden_def and weak_alias.
3755         (mempcpy): Do not use BP_SYM in weak_alias.
3756         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
3757         "bp-asm.h".
3758         (PARMS): Do not use macros from bp-asm.h.
3759         (DEST): Likewise.
3760         (LEN): Likewise.
3761         [!BZERO_P] (CHR): Likewise.
3762         (memset): Likewise.  Do not use BP_SYM.
3763         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
3764         "bp-asm.h".
3765         (PARMS): Do not use macros from bp-asm.h.
3766         (S1): Likewise.
3767         (SIZE): Likewise.
3768         (__mpn_mul_1): Do not use BP_SYM.
3769         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
3770         "bp-asm.h".
3771         (PARMS): Do not use macros from bp-asm.h.
3772         (S): Likewise.
3773         (SIZE): Likewise.
3774         (__mpn_rshift): Do not use BP_SYM.
3775         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
3776         "bp-asm.h".
3777         (PARMS): Do not use macros from bp-asm.h.
3778         (STR): Likewise.
3779         (CHR): Likewise.
3780         (strchr): Likewise.  Do not use BP_SYM.
3781         (index): Do not use BP_SYM in weak_alias.
3782         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
3783         "bp-asm.h".
3784         (PARMS): Do not use macros from bp-asm.h.
3785         (DEST): Likewise.
3786         (SRC): Likewise.
3787         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
3788         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
3789         "bp-asm.h".
3790         (PARMS): Do not use macros from bp-asm.h.
3791         (strlen): Do not use BP_SYM.
3792         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
3793         "bp-asm.h".
3794         (PARMS): Do not use macros from bp-asm.h.
3795         (S1): Likewise.
3796         (S2): Likewise.
3797         (SIZE): Likewise.
3798         (__mpn_sub_n): Do not use BP_SYM.
3799         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
3800         "bp-asm.h".
3801         (PARMS): Do not use macros from bp-asm.h.
3802         (S1): Likewise.
3803         (SIZE): Likewise.
3804         (__mpn_submul_1): Do not use BP_SYM.
3805         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
3806         "bp-asm.h".
3807         (PARMS): Do not use macros from bp-asm.h.
3808         (S1): Likewise.
3809         (S2): Likewise.
3810         (SIZE): Likewise.
3811         (__mpn_add_n): Do not use BP_SYM.
3812         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
3813         weak_alias.
3814         (bzero): Likewise.
3815         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
3816         "bp-asm.h".
3817         (PARMS): Do not use macros from bp-asm.h.
3818         (BLK2): Likewise.
3819         (LEN): Likewise.
3820         (memcmp): Do not use BP_SYM.
3821         (bcmp): Do not use BP_SYM in weak_alias.
3822         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
3823         "bp-asm.h".
3824         (PARMS): Do not use macros from bp-asm.h.
3825         (DEST): Likewise.
3826         (SRC): Likewise.
3827         (LEN): Likewise.
3828         (memcpy): Likewise.  Do not use BP_SYM.
3829         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
3830         "bp-asm.h".
3831         (PARMS): Do not use macros from bp-asm.h.
3832         (DEST): Likewise.
3833         (SRC): Likewise.
3834         (LEN): Likewise.
3835         (memmove): Likewise.  Do not use BP_SYM.
3836         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
3837         "bp-asm.h".
3838         (PARMS): Do not use macros from bp-asm.h.
3839         (DEST): Likewise.
3840         (SRC): Likewise.
3841         (LEN): Likewise.
3842         (__mempcpy): Likewise.  Do not use BP_SYM.
3843         (mempcpy): Do not use BP_SYM in weak_alias.
3844         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
3845         "bp-asm.h".
3846         (PARMS): Do not use macros from bp-asm.h.
3847         (DEST): Likewise.
3848         (LEN): Likewise.
3849         [!BZERO_P] (CHR): Likewise.
3850         (memset): Likewise.  Do not use BP_SYM.
3851         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
3852         "bp-asm.h".
3853         (PARMS): Do not use macros from bp-asm.h.
3854         (STR2): Likewise.
3855         (strcmp): Do not use BP_SYM.
3856         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
3857         "bp-asm.h".
3858         (PARMS): Do not use macros from bp-asm.h.
3859         (STR): Likewise.
3860         (DELIM): Likewise.
3861         [USE_AS_STRTOK_R] (SAVE): Likewise.
3862         (FUNCTION): Likewise.  Do not use BP_SYM.
3863         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
3864         aliases.
3865         (strtok_r): Likewise.
3866         (__GI___strtok_r): Likewise.
3867         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3868         (PARMS): Do not use macros from bp-asm.h.
3869         (S): Likewise.
3870         (SIZE): Likewise.
3871         (__mpn_lshift): Do not use BP_SYM.
3872         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3873         (PARMS): Do not use macros from bp-asm.h.
3874         (STR): Likewise.
3875         (CHR): Likewise.
3876         (__memchr): Do not use BP_SYM.
3877         (memchr): Do not use BP_SYM in weak_alias.
3878         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3879         (PARMS): Do not use macros from bp-asm.h.
3880         (BLK2): Likewise.
3881         (LEN): Likewise.
3882         (memcmp): Do not use BP_SYM.
3883         (bcmp): Do not use BP_SYM in weak_alias.
3884         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
3885         (PARMS): Do not use macros from bp-asm.h.
3886         (S1): Likewise.
3887         (SIZE): Likewise.
3888         (__mpn_mul_1): Do not use BP_SYM.
3889         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
3890         "bp-asm.h".
3891         (PARMS): Do not use macros from bp-asm.h.
3892         (STR): Likewise.
3893         (CHR): Likewise.
3894         (__rawmemchr): Do not use BP_SYM.
3895         (rawmemchr): Do not use BP_SYM in weak_alias.
3896         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3897         (PARMS): Do not use macros from bp-asm.h.
3898         (S): Likewise.
3899         (SIZE): Likewise.
3900         (__mpn_rshift): Do not use BP_SYM.
3901         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3902         (PARMS): Do not use macros from bp-asm.h.
3903         (SIGMSK): Likewise.
3904         (__sigsetjmp): Likewise.  Do not use BP_SYM.
3905         * sysdeps/i386/start.S: Do not include "bp-sym.h".
3906         (_start): Do not use BP_SYM.
3907         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
3908         (PARMS): Do not use macros from bp-asm.h.
3909         (DEST): Likewise.
3910         (SRC): Likewise.
3911         (__stpcpy): Likewise.  Do not use BP_SYM.
3912         (stpcpy): Do not use BP_SYM in weak_alias.
3913         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
3914         "bp-asm.h".
3915         (PARMS): Do not use macros from bp-asm.h.
3916         (DEST): Likewise.
3917         (SRC): Likewise.
3918         (LEN): Likewise.
3919         (__stpncpy): Likewise.  Do not use BP_SYM.
3920         (stpncpy): Do not use BP_SYM in weak_alias.
3921         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3922         (PARMS): Do not use macros from bp-asm.h.
3923         (STR): Likewise.
3924         (CHR): Likewise.
3925         (strchr): Likewise.  Do not use BP_SYM.
3926         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
3927         "bp-asm.h".
3928         (PARMS): Do not use macros from bp-asm.h.
3929         (STR): Likewise.
3930         (CHR): Likewise.
3931         (__strchrnul): Likewise.  Do not use BP_SYM.
3932         (strchrnul): Do not use BP_SYM in weak_alias.
3933         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
3934         "bp-asm.h".
3935         (PARMS): Do not use macros from bp-asm.h.
3936         (STOP): Likewise.
3937         (strcspn): Do not use BP_SYM.
3938         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
3939         "bp-asm.h".
3940         (PARMS): Do not use macros from bp-asm.h.
3941         (STR): Likewise.
3942         (STOP): Likewise.
3943         (strpbrk): Likewise.  Do not use BP_SYM.
3944         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
3945         "bp-asm.h".
3946         (PARMS): Do not use macros from bp-asm.h.
3947         (STR): Likewise.
3948         (CHR): Likewise.
3949         (strrchr): Likewise.  Do not use BP_SYM.
3950         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
3951         (PARMS): Do not use macros from bp-asm.h.
3952         (SKIP): Likewise.
3953         (strspn): Do not use BP_SYM.
3954         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
3955         (PARMS): Do not use macros from bp-asm.h.
3956         (STR): Likewise.
3957         (DELIM): Likewise.
3958         (SAVE): Likewise.
3959         (FUNCTION): Likewise.  Do not use BP_SYM.
3960         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
3961         aliases.
3962         (strtok_r): Likewise.
3963         (__GI___strtok_r): Likewise.
3964         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3965         (PARMS): Do not use macros from bp-asm.h.
3966         (S1): Likewise.
3967         (S2): Likewise.
3968         (SIZE): Likewise.
3969         (__mpn_sub_n): Do not use BP_SYM.
3970         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
3971         "bp-asm.h".
3972         (PARMS): Do not use macros from bp-asm.h.
3973         (S1): Likewise.
3974         (SIZE): Likewise.
3975         (__mpn_submul_1): Do not use BP_SYM.
3976         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
3977         <bp-sym.h>.
3978         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
3979         and <bp-asm.h>.
3980         (PARMS): Do not use macros from bp-asm.h.
3981         (FLAGS): Likewise.
3982         (PTID): Likewise.
3983         (TLS): Likewise.
3984         (CTID): Likewise.
3985         (__clone): Do not use BP_SYM.
3986         (clone): Do not use BP_SYM in weak_alias.
3987         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
3988         and <bp-asm.h>.
3989         (PARMS): Do not use macros from bp-asm.h.
3990         (LEN): Likewise.
3991         (__mmap64): Do not use BP_SYM.
3992         (mmap64): Do not use BP_SYM in weak_alias.
3993         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3994         <bp-sym.h> and <bp-asm.h>.
3995         (PARMS): Do not use macros from bp-asm.h.
3996         (__posix_fadvise64_l64): Do not use BP_SYM.
3997         * sysdeps/unix/sysv/linux/i386/semtimedop.S
3998         (PARMS): Do not use macros from bp-asm.h.
3999         (NSOPS): Likewise.
4000         (semtimedop): Do not use BP_SYM.
4001         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
4002         and <bp-asm.h>.
4003
4004 2013-02-21  Allan McRae  <allan@archlinux.org>
4005
4006         * manual/message.texi (Charset conversion in gettext):
4007         Move @end statement to beginning of line.
4008
4009 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4010
4011         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
4012         static.
4013         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4014         Likewise.
4015
4016         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
4017         (denorm): Likewise.
4018         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
4019         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
4020
4021 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4022
4023         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
4024         tail-call to the resolved function if pltexit isn't needed.
4025
4026 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4027
4028         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
4029         or Y being zero as being unlikely.
4030         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
4031         Likewise.
4032
4033 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
4034
4035         * manual/nss.texi (System Databases and Name Service Switch):
4036         Remove frobnicate @pxref.
4037
4038 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
4039
4040         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
4041         __attribute__ ((unused)) to __attribute__ ((__unused__)).
4042
4043 2013-02-20  Petr Machata  <pmachata@redhat.com>
4044
4045         * elf/elf.h (R_ARM_TARGET1): New macro.
4046         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
4047         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
4048         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
4049         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
4050         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
4051         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
4052         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
4053         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
4054         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
4055         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
4056         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
4057         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
4058         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
4059         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
4060         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
4061         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
4062         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
4063         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
4064         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
4065         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
4066         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
4067         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
4068         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
4069         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
4070         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
4071         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
4072         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
4073         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
4074         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
4075         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
4076         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
4077         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
4078         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
4079         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
4080         (R_ARM_THM_GOT_BREL12): Likewise.
4081         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
4082         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
4083         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
4084         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
4085         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
4086         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
4087         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
4088         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
4089         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
4090
4091 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
4092
4093         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
4094         __attribute_used__ to __attribute__ ((unused)).
4095
4096 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
4097
4098         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
4099         powerpc mpa.c.
4100         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
4101         comment formatting.
4102         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
4103
4104 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
4105
4106         [BZ #13550]
4107         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
4108         Remove macro.
4109         (ENTER): Remove both macro definitions.
4110         (LEAVE): Likewise.
4111         (CHECK_BOUNDS_LOW): Likewise.
4112         (CHECK_BOUNDS_HIGH): Likewise.
4113         (CHECK_BOUNDS_BOTH): Likewise.
4114         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
4115         (RETURN_BOUNDED_POINTER): Likewise.
4116         (RETURN_NULL_BOUNDED_POINTER): Likewise.
4117         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
4118         (POP_ERRNO_LOCATION_RETURN): Likewise.
4119         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
4120         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4121         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
4122         macros.
4123         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4124         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
4125         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
4126         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
4127         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
4128         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
4129         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
4130         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
4131         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
4132         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
4133         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
4134         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
4135         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4136         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
4137         removed macros.
4138         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4139         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
4140         macros.
4141         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4142         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
4143         * sysdeps/i386/i586/memset.S (memset): Likewise.
4144         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
4145         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4146         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
4147         macros.
4148         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4149         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
4150         Change uses of L(2) to L(out).
4151         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
4152         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
4153         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
4154         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4155         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
4156         removed macros.
4157         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4158         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
4159         macros.
4160         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4161         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
4162         (RETURN): Do not use macro LEAVE.
4163         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
4164         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
4165         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
4166         * sysdeps/i386/i686/memset.S (memset): Likewise.
4167         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
4168         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
4169         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
4170         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
4171         Likewise.
4172         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
4173         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
4174         L(1_2) and L(1_3) into L(1).
4175         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
4176         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
4177         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4178         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
4179         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
4180         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
4181         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
4182         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4183         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
4184         macros.
4185         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
4186         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4187         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
4188         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
4189         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4190         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
4191         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
4192         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
4193         * sysdeps/i386/strcspn.S (strcspn): Likewise.
4194         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
4195         * sysdeps/i386/strrchr.S (strrchr): Likewise.
4196         * sysdeps/i386/strspn.S (strspn): Likewise.
4197         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
4198         conditional code.
4199         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
4200         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
4201         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
4202         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
4203         L(1_3) into L(1_1).
4204         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
4205         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4206         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
4207         macros.
4208         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4209
4210 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
4211
4212         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
4213         macro.
4214
4215 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4216
4217         * math/atest-exp.c (exp_mpn): Remove ROUND.
4218         * math/atest-exp2.c (exp_mpn): Likewise.
4219         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
4220
4221         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
4222         * stdlib/tst-tls-atexit-lib.c: Likewise.
4223         * stdlib/tst-tls-atexit.c: Likewise.
4224
4225 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4226
4227         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
4228         and __attribute_alloc_size__.
4229
4230 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4231
4232         * include/programs/xmalloc.h: Change __attribute_alloc_size to
4233         __attribute_alloc_size__.
4234         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
4235         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
4236
4237 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4238
4239         * include/programs/xmalloc.h: New file.
4240         * catgets/gencat.c: Include it.
4241         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
4242         * elf/pldd.c: Likewise.
4243         * iconv/iconv_charmap.c: Likewise.
4244         * iconv/iconvconfig.c: Likewise.
4245         * iconv/strtab.c: Likewise.
4246         * locale/programs/locale.c: Likewise.
4247         * locale/programs/localedef.h: Likewise.
4248         * locale/programs/simple-hash.c: Likewise.
4249         * nscd/nscd.h: Likewise.
4250         * nss/makedb.c: Likewise.
4251         * sysdeps/generic/ldconfig.h: Likewise.
4252
4253 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4254
4255         * Versions.def: Add GLIBC_2.18.
4256         * include/link.h (struct link_map): New member l_tls_dtor_count.
4257         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
4258         (__call_tls_dtors): Likewise.
4259         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
4260         __cxa_thread_atexit_impl.
4261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4262         Likewise.
4263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4264         Likewise.
4265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
4266         Likewise.
4267         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
4268         Likewise.
4269         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4270         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
4271         Likewise.
4272         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
4273         Likewise.
4274         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4275         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4276         Likewise.
4277         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
4278         (tests): Add test case tst-tls-atexit.
4279         (modules-names): Add shared library for tst-tls-atexit.
4280         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
4281         (GLIBC_PRIVATE): Add __call_tls_dtors.
4282         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
4283         for libstdc++.
4284         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
4285         * stdlib/tst-tls-atexit.c: New test case.
4286         * stdlib/tst-tls-atexit-lib.c: New test case.
4287
4288         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
4289
4290         * elf/Versions (ld): Add _dl_find_dso_for_object.
4291         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
4292         * elf/dl-open.c (_dl_find_dso_for_object): New function.
4293         (dl_open_worker): Use _dl_find_dso_for_object.
4294         * elf/dl-sym.c (do_sym): Likewise.
4295         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
4296
4297 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4298
4299         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
4300         Syntactic changes only.
4301         (_dl_runtime_profile): Do a tail-call to the resolved function.
4302
4303 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
4304
4305         [BZ #13550]
4306         * sysdeps/x86_64/bp-asm.h: Remove file.
4307         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
4308         <bp-sym.h> and <bp-asm.h>.
4309         (__clone): Do not use BP_SYM.
4310         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
4311         <bp-sym.h> and <bp-asm.h>.
4312         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4313         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
4314         "bp-asm.h".
4315         (_setjmp): Do not use BP_SYM.
4316         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
4317         "bp-asm.h".
4318         (setjmp): Do not use BP_SYM.
4319         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
4320         libc_hidden_def.
4321         (mempcpy): Do not use BP_SYM in weak_alias.
4322         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
4323         "bp-asm.h".
4324         (strchr): Do not use BP_SYM.
4325         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
4326         "bp-asm.h".
4327         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
4328         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
4329         (_start): Do not use BP_SYM.
4330         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
4331         "bp-asm.h".
4332         (strcat): Do not use BP_SYM.
4333         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
4334         "bp-asm.h".
4335         (STRCMP): Do not use BP_SYM.
4336         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
4337         "bp-asm.h".
4338         (STRCPY): Do not use BP_SYM.
4339         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
4340         "bp-asm.h".
4341         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
4342         "bp-asm.h".
4343         (FUNCTION): Do not use BP_SYM.
4344         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
4345         weak_alias.
4346         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
4347
4348 2013-02-17  Andreas Jaeger  <aj@suse.de>
4349
4350         * time/Versions: Sort entries.
4351         * string/Versions: Likewise.
4352         * resolv/Versions: Likewise.
4353         * posix/Versions: Likewise.
4354         * iconv/Versions: Likewise.
4355         * elf/Versions: Likewise.
4356         * wcsmbs/Versions: Likewise.
4357
4358 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4359
4360         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
4361         loop termination condition.
4362
4363         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
4364         variable to calculate EZ.
4365         (__sqr): Likewise.
4366
4367         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
4368         the lower precision input.
4369
4370 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
4371
4372         [BZ #13550]
4373         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
4374         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
4375         (run-via-rtld-prefix): Do not handle %-bp tests.
4376         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
4377         (all-object-suffixes): Remove .ob.
4378         (bppfx): Remove variable.
4379         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
4380         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
4381         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
4382         [$(build-bounded) = yes] (libtype.ob): Likewise.
4383         * Makerules (elide-routines.ob): Remove variable.
4384         (do-tests-clean): Do not handle *-bp.out.
4385         (common-mostlyclean): Do not handle *-bp and *-bp.out.
4386         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
4387         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
4388         (tests): Do not include $(tests-bp.out).
4389         (xtests): Do not include $(xtests-bp.out).
4390         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
4391         [$(build-bounded) = yes] ($(addprefix
4392         $(objpfx),$(binaries-bounded))): Remove rule.
4393         ($(objpfx)%-bp.out): Remove rule.
4394         * config.make.in (build-bounded): Remove variable.
4395         * crypt/Makefile [$(build-bounded) = yes]
4396         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
4397         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
4398         append to variable.
4399         [$(build-bounded) = yes] (install-lib): Likewise.
4400         [$(build-bounded) = yes] (generated): Likewise.
4401         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
4402         Remove rule.
4403         * intl/Makefile [$(build-bounded) = yes]
4404         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
4405         * math/Makefile [$(build-bounded) = yes]
4406         ($(tests:%=$(objpfx)%-bp): Likewise.
4407         * misc/Makefile [$(build-bounded) = yes]
4408         ($(objpfx)tst-tsearch-bp): Likewise.
4409         * nptl/Makeconfig (bounded-thread-library): Remove variable.
4410         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
4411         Remove dependency.
4412         * string/Makefile (o-objects.ob): Remove variable.
4413         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
4414         (CFLAGS-.ob): Remove variable.
4415         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
4416         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
4417         both definitions of variable.
4418         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
4419         (ASFLAGS-.ob): Remove variable.
4420
4421 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
4422
4423         [BZ #13550]
4424         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
4425         Remove __BOUNDED_POINTERS__ from condition.
4426         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
4427         * string/bits/string2.h [!__NO_STRING_INLINES &&
4428         !__BOUNDED_POINTERS__]: Likewise.
4429         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
4430         Likewise.
4431         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
4432         Remove conditional code.
4433         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
4434         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
4435         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
4436         condition.
4437
4438         [BZ #13550]
4439         * csu/libc-start.c: Do not include <bp-sym.h>.
4440         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
4441         * elf/dl-open.c: Do not include <bp-sym.h>.
4442         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
4443         * math/fegetenv.c: Do not include <bp-sym.h>.
4444         (fegetenv): Do not use BP_SYM in versioned symbols.
4445         * nptl/sysdeps/pthread/bits/libc-lockP.h
4446         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
4447         <bp-sym.h>.
4448         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4449         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
4450         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4451         (__pthread_mutex_destroy): Likewise.
4452         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4453         (__pthread_mutex_lock): Likewise.
4454         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4455         (__pthread_mutex_trylock): Likewise.
4456         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4457         (__pthread_mutex_unlock): Likewise.
4458         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4459         (__pthread_mutexattr_init): Likewise.
4460         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4461         (__pthread_mutexattr_destroy): Likewise.
4462         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4463         (__pthread_mutexattr_settype): Likewise.
4464         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4465         (__pthread_rwlock_init): Likewise.
4466         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4467         (__pthread_rwlock_destroy): Likewise.
4468         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4469         (__pthread_rwlock_rdlock): Likewise.
4470         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4471         (__pthread_rwlock_tryrdlock): Likewise.
4472         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4473         (__pthread_rwlock_wrlock): Likewise.
4474         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4475         (__pthread_rwlock_trywrlock): Likewise.
4476         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4477         (__pthread_rwlock_unlock): Likewise.
4478         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4479         (__pthread_key_create): Likewise.
4480         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4481         (__pthread_setspecific): Likewise.
4482         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4483         (__pthread_getspecific): Likewise.
4484         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
4485         Likewise.
4486         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4487         (_pthread_cleanup_push_defer): Likewise.
4488         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4489         (_pthread_cleanup_pop_restore): Likewise.
4490         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4491         (pthread_setcancelstate): Likewise.
4492         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
4493         <bp-sym.h>.
4494         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
4495         (memchr): Do not use BP_SYM in weak_alias.
4496         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
4497         (fegetenv): Do not use BP_SYM in versioned symbols.
4498         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
4499         (fesetenv): Do not use BP_SYM in versioned symbols.
4500         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
4501         (feupdateenv): Do not use BP_SYM in versioned symbols.
4502         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
4503         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
4504         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
4505         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
4506         (open64): Do not use BP_SYM in weak_alias.
4507         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
4508         (fegetenv): Do not use BP_SYM in versioned symbols.
4509         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
4510         (fesetenv): Do not use BP_SYM in versioned symbols.
4511         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
4512         (feupdateenv): Do not use BP_SYM in versioned symbols.
4513         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
4514         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
4515         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
4516         (feraiseexcept): Do not use BP_SYM in versioned symbols.
4517         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
4518         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
4519         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
4520         <bp-sym.h>.
4521         (__libc_start_main): Do not use BP_SYM.
4522
4523 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4524
4525         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
4526         redundant return line.
4527         (norm): Likewise.
4528         (denorm): Likewise.
4529         (dbl_mp): Likewise.
4530         (sub_magnitudes): Likewise.
4531         (__add): Likewise.
4532         (__sub): Likewise.
4533         (__mul): Likewise.
4534         (__inv): Likewise.
4535         (__dvd): Likewise.
4536         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
4537         (norm): Likewise.
4538         (denorm): Likewise.
4539         (dbl_mp): Likewise.
4540         (sub_magnitudes): Likewise.
4541         (__add): Likewise.
4542         (__sub): Likewise.
4543         (__mul): Likewise.
4544         (__inv): Likewise.
4545         (__dvd): Likewise.
4546
4547         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
4548         instead of __mul.
4549         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
4550         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
4551         (cc32): Likewise.
4552
4553         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
4554         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
4555         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
4556         of __mul for squares.
4557         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
4558         function
4559         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
4560         Likewise.
4561         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
4562         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
4563
4564 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
4565
4566         [BZ #13550]
4567         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
4568         code.
4569         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
4570         prototype or function definition.  Rename ubp_* variables and
4571         parameters.  Remove argv definitions conditional on
4572         [__BOUNDED_POINTERS__].
4573         * debug/backtrace.c (__backtrace): Do not use __unbounded.
4574         * elf/dl-runtime.c (_dl_fixup): Likewise.
4575         * include/set-hooks.h (RUN_HOOK): Likewise.
4576         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
4577         definition.
4578         * string/strcpy.c (strcpy): Do not use __unbounded.
4579         * sysdeps/generic/frame.h (struct layout): Likewise.
4580         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
4581         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
4582         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
4583         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
4584         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
4585         (__backtrace): Likewise.
4586         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
4587         use __ptrvalue.
4588         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
4589         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
4590         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
4591         Likewise.
4592         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
4593         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
4594         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
4595         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4596         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
4597         Do not use __unbounded.
4598         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
4599         Rename __unboundedrlimits parameter to rlimits in prototype.
4600         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
4601         Do not use __unbounded.
4602         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
4603         not use __ptrvalue.
4604         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4605         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
4606         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4607         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
4608         __ptrvalue or __unbounded.
4609         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
4610         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
4611         use __unbounded.
4612         (__new_msgctl): Do not use __ptrvalue.
4613         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
4614         __unbounded.
4615         (__libc_msgrcv): Do not use __ptrvalue.
4616         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
4617         startup_info): Do not use __unbounded.
4618         (__libc_start_main): Likewise.  Rename ubp_* variables and
4619         parameters.  Remove argv definitions conditional on
4620         [__BOUNDED_POINTERS__].
4621         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
4622         __ptrvalue.
4623         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
4624         use __unbounded.
4625         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
4626         or __ptrvalue.
4627         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
4628         use __unbounded.
4629         (__new_shmctl): Do not use __ptrvalue.
4630         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
4631         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
4632         Likewise.
4633         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
4634         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
4635         (__libc_sigaction): Likewise.
4636         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4637         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
4638         Likewise.
4639         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4640
4641 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
4642
4643         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
4644
4645         * string/mempcpy.c: Implement by calling memcpy.
4646
4647 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
4648
4649         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
4650
4651         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
4652         evaluation.
4653
4654         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
4655         values in the mantissa.
4656
4657         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
4658         minimize writes to Z.
4659         (sub_magnitudes): Simplify code a bit.
4660
4661 2013-02-12  Roland McGrath  <roland@hack.frob.com>
4662
4663         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
4664         from the message.  The linker prefixes all warnings with that already.
4665
4666 2013-02-12  Andreas Schwab  <schwab@suse.de>
4667
4668         [BZ #15078]
4669         * posix/regexec.c (extend_buffers): Add parameter min_len.
4670         (check_matching): Pass minimum needed length.
4671         (clean_state_log_if_needed): Likewise.
4672         (get_subexp): Likewise.
4673         * posix/Makefile (tests): Add bug-regex34.
4674         (bug-regex34-ENV): Define.
4675         * posix/bug-regex34.c: New file.
4676
4677         [BZ #11561]
4678         * posix/regcomp.c (parse_bracket_exp): When looking up collating
4679         elements compare against the byte sequence of it, not its name.
4680         * posix/Makefile (tests): Add bug-regex35.
4681         (bug-regex35-ENV): Define.
4682         * posix/bug-regex35.c: New file.
4683
4684 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4685
4686         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
4687         comment.
4688         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
4689         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
4690         (CHECK_EOL): Add undef.
4691
4692 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
4693
4694         * bits/stdlib-bsearch.h: New file.
4695         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
4696         * stdlib/stdlib.h: Likewise.
4697
4698 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4699
4700         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
4701         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
4702         declaration.
4703         * manual/search.texi (Array Search Function): Add missing const in
4704         lfind prototype.
4705         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
4706         declaration to use rlim_t.
4707         (Basic Scheduling Functions): Remove erroneous const from
4708         sched_getparam prototype.  Remove erroneous * from
4709         sched_get_priority_max and sched_get_priority_min prototypes.
4710         (Resource Usage): Fix summary @comment on vtimes to refer to
4711         sys/vtimes.h rather than vtimes.h.
4712         Add missing *s in vtimes prototype.
4713         (Limits on Resources): Fix ulimit prototype to return long int.
4714         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
4715         prototypes to use long int rather than double.
4716         (BSD Random): Fix initstate and setstate to use char *, not void *.
4717         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
4718         prototype to make second argument 'struct aiocb64 *const[]'.
4719         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
4720         (Status of AIO Operations): Remove erroneous const in aio_return and
4721         aio_return64 prototypes.
4722         (Synchronizing I/O): Fix sync prototype to return void.
4723         * manual/startup.texi (Suboptions): Remove an erroneous const in
4724         getsubopt prototype.
4725         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
4726         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
4727         use size_t rather than int.
4728         (Scanning All Users): Likewise for getpwent_r.
4729         (Setting Groups): Add missing const to setgroups prototype.
4730         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
4731         * manual/socket.texi (Host Names): Fix gethostbyaddr and
4732         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
4733         'const void *' rather than 'const char *'.
4734         (Host Address Functions): Likewise for inet_ntop.
4735         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
4736         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
4737         ssize_t for return value.
4738         (Sending Data): Likewise for send, sendto, sendmsg.
4739         (Socket Option Functions): Add a missing const in setsockopt prototype.
4740         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
4741         use wchar_t for the argument.
4742         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
4743         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
4744         take no arguments.
4745         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
4746         double/float/long double for second argument.
4747         Fix return types of significand, significandf, significandl.
4748         * manual/filesys.texi (Setting Permissions): Use mode_t for second
4749         argument in fchmod prototype.
4750         (File Owner): Use uid_t and gid_t in fchown prototype.
4751         (File Times): Add const to utimes, futimes, and lutimes prototypes.
4752         (Making Special Files): Use mode_t and dev_t in mknod prototype.
4753         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
4754         use 'const struct dirent **' as argument types to CMP function pointer
4755         argument.
4756         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
4757         (File Times): Fix summary magic @comment for struct utimbuf and utime
4758         to refer to utime.h, not time.h.
4759         * manual/string.texi (Argz Functions): Add missing const in
4760         argz_extract and argz_next prototypes.
4761         (Finding Tokens in a String): Likewise for basename.
4762         (String/Array Comparison): Fix typo in wcscasecmp prototype.
4763         (Copying and Concatenation): Fix typo in wmemmove prototype.
4764         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
4765         (Signal Stack): Remove erroneous const in sigstack prototype.
4766         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
4767         prototype.
4768         (Simple Calendar Time): Likewise for stime.
4769         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
4770         prototype.
4771         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
4772         say sys/sysctl.h instead.
4773         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
4774         and vsyslog prototypes.
4775
4776 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4777
4778         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
4779         Remove.
4780
4781 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4782
4783         * misc/sys/mman.h: Fix typo in mremap comment.
4784
4785 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4786
4787         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
4788         the '\0' terminator.
4789
4790 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4791
4792         [BZ #13550]
4793         * debug/segfault.c: Don't include <bp-checks.h>.
4794         * sysdeps/generic/bp-checks.h: Remove file.
4795         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
4796         (__GETDENTS): Don't use CHECK_N.
4797         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
4798         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4799         (__getgroups): Don't use CHECK_N.
4800         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4801         (setgroups): Don't use CHECK_N.
4802         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
4803         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4804         (__libc_msgrcv): Don't use CHECK_N.
4805         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
4806         (__libc_msgsnd): Don't use CHECK_N.
4807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
4808         <bp-checks.h>.
4809         (__libc_pread): Don't use CHECK_N.
4810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
4811         include <bp-checks.h>.
4812         (__libc_pread64): Don't use CHECK_N.
4813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
4814         include <bp-checks.h>.
4815         (__libc_pwrite): Don't use CHECK_N.
4816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
4817         include <bp-checks.h>.
4818         (__libc_pwrite64): Don't use CHECK_N.
4819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
4820         <bp-checks.h>.
4821         (__libc_pread): Don't use CHECK_N.
4822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
4823         include <bp-checks.h>.
4824         (__libc_pread64): Don't use CHECK_N.
4825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
4826         include <bp-checks.h>.
4827         (__libc_pwrite): Don't use CHECK_N.
4828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
4829         include <bp-checks.h>.
4830         (__libc_pwrite64): Don't use CHECK_N.
4831         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
4832         (do_pread): Don't use CHECK_N.
4833         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
4834         (do_pread64): Don't use CHECK_N.
4835         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
4836         (do_pwrite): Don't use CHECK_N.
4837         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
4838         (do_pwrite64): Don't use CHECK_N.
4839         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
4840         (__libc_readv): Don't use CHECK_N.
4841         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
4842         (semop): Don't use CHECK_N.
4843         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
4844         <bp-checks.h>.
4845         (semtimedop): Don't use CHECK_N.
4846         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
4847         (__libc_pread): Don't use CHECK_N.
4848         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
4849         <bp-checks.h>.
4850         (__libc_pread64): Don't use CHECK_N.
4851         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
4852         <bp-checks.h>.
4853         (__libc_pwrite): Don't use CHECK_N.
4854         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
4855         <bp-checks.h>.
4856         (__libc_pwrite64): Don't use CHECK_N.
4857         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
4858         <bp-checks.h>.
4859         (__libc_msgrcv): Don't use CHECK_N.
4860         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
4861         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
4862         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
4863         (__libc_writev): Don't use CHECK_N.
4864
4865 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4866
4867         * string/strcpy.c: Removed unused variable.
4868
4869         * Makeconfig (+sysdep-includes): Define with := rather than =.
4870         Use an existing include/ subdir of each sysdeps dir before it.
4871
4872 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4873
4874         * nscd/connection.c (register_traced_file): Comment function.
4875         [HAVE_INOTIFY] (union __inev): Define.
4876         [HAVE_INOTIFY] (inotify_check_files): New function.
4877         [HAVE_INOTIFY] (clear_db_cache): Likewise.
4878         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
4879         clear_db_cache.
4880         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
4881
4882 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4883
4884         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
4885         loaded if not already and that a failure is permanent.
4886
4887 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4888
4889         [BZ #15006]
4890         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
4891         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
4892
4893 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4894
4895         [BZ #13550]
4896         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
4897         (CHECK_1_NULL_OK): Likewise.
4898         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
4899         (__fxstat): Do not use CHECK_1.
4900         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4901         <bp-checks.h>.
4902         (___fxstat64): Do not use CHECK_1.
4903         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
4904         <bp-checks.h>.
4905         (__fxstatat): Do not use CHECK_1.
4906         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
4907         <bp-checks.h>.
4908         (__fxstatat64): Do not use CHECK_1.
4909         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
4910         <bp-checks.h>.
4911         (__fxstat): Do not use CHECK_1.
4912         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
4913         <bp-checks.h>.
4914         (__fxstatat): Do not use CHECK_1.
4915         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4916         <bp-checks.h>.
4917         (__getresgid): Do not use CHECK_1.
4918         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4919         <bp-checks.h>.
4920         (__getresuid): Do not use CHECK_1.
4921         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
4922         <bp-checks.h>.
4923         (__lxstat): Do not use CHECK_1.
4924         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4925         <bp-checks.h>.
4926         (__old_msgctl): Do not use CHECK_1.
4927         (__new_msgctl): Likewise.
4928         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
4929         <bp-checks.h>.
4930         (__new_setrlimit): Do not use CHECK_1.
4931         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4932         <bp-checks.h>.
4933         (__old_shmctl): Do not use CHECK_1.
4934         (__new_shmctl): Likewise.
4935         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
4936         <bp-checks.h>.
4937         (__xstat): Do not use CHECK_1.
4938         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
4939         (__lxstat): Do not use CHECK_1.
4940         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4941         <bp-checks.h>.
4942         (___lxstat64): Do not use CHECK_1.
4943         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
4944         (__old_msgctl): Do not use CHECK_1.
4945         (__new_msgctl): Likewise.
4946         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
4947         <bp-checks.h>.
4948         (__gettimeofday): Do not use CHECK_1.
4949         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
4950         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
4951         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
4952         <bp-checks.h>.
4953         (__gettimeofday): Do not use CHECK_1.
4954         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
4955         (__old_shmctl): Do not use CHECK_1_NULL_OK.
4956         (__new_shmctl): Do not use CHECK_1.
4957         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
4958         <bp-checks.h>.
4959         (do_sigtimedwait): Do not use CHECK_1.
4960         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
4961         <bp-checks.h>.
4962         (do_sigwaitinfo): Do not use CHECK_1.
4963         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
4964         <bp-checks.h>.
4965         (msgctl): Do not use CHECK_1.
4966         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
4967         <bp-checks.h>.
4968         (shmctl): Do not use CHECK_1.
4969         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
4970         (ustat): Do not use CHECK_1.
4971         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
4972         <bp-checks.h>.
4973         (__fxstat): Do not use CHECK_1.
4974         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
4975         <bp-checks.h>.
4976         (__fxstatat): Do not use CHECK_1.
4977         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
4978         <bp-checks.h>.
4979         (__lxstat): Do not use CHECK_1.
4980         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
4981         <bp-checks.h>.
4982         (__xstat): Do not use CHECK_1.
4983         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
4984         (__xstat): Do not use CHECK_1.
4985         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
4986         (___xstat64): Do not use CHECK_1.
4987
4988         [BZ #13550]
4989         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
4990         definitions.
4991         (CHECK_BOUNDS_HIGH): Likewise.
4992         * string/strcpy.c: Do not include <bp-checks.h>.
4993         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
4994
4995 2013-02-07  Roland McGrath  <roland@hack.frob.com>
4996
4997         * nscd/nscd-client.h (__nscd_drop_map_ref):
4998         Add __attribute__ ((unused)).
4999         * nis/nss-nisplus.h (niserr2nss): Likewise.
5000
5001         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
5002         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
5003
5004         * csu/libc-tls.c (init_static_tls, init_slotinfo):
5005         Remove inline keyword.
5006         * include/rounding-mode.h (round_away): Likewise.
5007         * libio/wfileops.c (adjust_wide_data): Likewise.
5008         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
5009         (__m128i_strloadu_tolower): Likewise.
5010         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
5011         (__m128i_strloadu_tolower): Likewise.
5012         * time/mktime.c (ydhms_diff): Likewise.
5013         * locale/elem-hash.h (elem_hash): Likewise.
5014         * locale/setlocale.c (setdata): Likewise.
5015         * posix/regex_internal.h (re_string_char_size_at): Likewise.
5016         (re_string_wchar_at): Likewise.
5017         (bitset_not, bitset_merge, bitset_mask): Likewise.
5018         [!(__GNUC__ > 3)] (inline): Remove macro.
5019         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
5020         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
5021         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
5022         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
5023         * string/memcmp.c (memcmp_bytes): Likewise.
5024         * locale/programs/locarchive.c (compute_hashval): Likewise.
5025         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
5026         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
5027         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
5028         * nss/getent.c (print_rpc, print_protocols): Likewise.
5029         (print_passwd, print_group, print_aliases): Likewise.
5030         * nis/nss-nisplus.h (niserr2nss): Likewise.
5031         * nscd/connections.c (restart_p): Likewise.
5032         Change return type to bool.
5033
5034 2013-02-05  Roland McGrath  <roland@hack.frob.com>
5035
5036         * Makeconfig (all-Depend-files): Add existing
5037         $(sorted-subdirs:=/Depend) files.
5038         (all-subdirs): Remove nss.
5039         * sysdeps/unix/inet/Subdirs: Add it here instead.
5040         * hesiod/Depend: New file.
5041
5042         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
5043         instead of calling alloca.
5044
5045         * io/lseek.c (__lseek): Rename to __libc_lseek.
5046         Define __lseek as an alias.
5047
5048         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
5049
5050 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
5051
5052         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
5053         else clause and remove check for non-standard endianness.
5054
5055 2013-02-04  David S. Miller  <davem@davemloft.net>
5056
5057         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5058
5059 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
5060
5061         [BZ #13550]
5062         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
5063         (__ubp_memchr): Remove prototype.
5064         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
5065         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
5066         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
5067         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
5068         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
5069         Remove alias.
5070         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
5071         (__ubp_memchr): Likewise.
5072         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
5073         (__ubp_memchr): Likewise.
5074         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
5075         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
5076         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
5077         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
5078         CHECK_STRING.
5079         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
5080         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
5081         (__getcwd): Do not use CHECK_STRING.
5082         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5083         <bp-checks.h>.
5084         (__real_chown): Do not use CHECK_STRING.
5085         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
5086         <bp-checks.h>.
5087         (fchownat): Do not use CHECK_STRING.
5088         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
5089         CHECK_STRING.
5090         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5091         <bp-checks.h>.
5092         (__lchown): Do not use CHECK_STRING.
5093         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
5094         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
5095         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
5096         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5098         include <bp-checks.h>.
5099         (truncate64): Do not use CHECK_STRING.
5100         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5101         <bp-checks.h>.
5102         (__real_chown): Do not use CHECK_STRING.
5103         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5104         <bp-checks.h>.
5105         (__lchown): Do not use CHECK_STRING.
5106         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5107         <bp-checks.h>.
5108         (__chown): Do not use CHECK_STRING.
5109         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
5110         <bp-checks.h>.
5111         (truncate64): Do not use CHECK_STRING.
5112         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
5113         Likewise.
5114         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
5115         (__xmknod): Do not use CHECK_STRING.
5116         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
5117         <bp-checks.h>.
5118         (__xmknodat): Do not use CHECK_STRING.
5119         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
5120         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5121
5122 2013-02-04  Andreas Schwab  <schwab@suse.de>
5123
5124         [BZ #14142]
5125         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
5126         * include/netdb.h: Likewise for h_errno.
5127         * elf/tst-stackguard1.c: Include <tls.h>.
5128
5129 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5130
5131         * elf/link.h (struct link_map): Extend the l_addr comment.
5132         * include/link.h (struct link_map): Likewise.
5133
5134 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
5135
5136         [BZ #13550]
5137         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
5138         (BOUNDED_1): Remove macro.
5139         * debug/backtrace.c: Don't include <bp-checks.h>.
5140         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
5141         (__backtrace): Likewise.
5142         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
5143         <bp-checks.h>.
5144         (__backtrace): Don't use BOUNDED_1.
5145         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
5146         <bp-checks.h>.
5147         (__backtrace): Don't use BOUNDED_1.
5148         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
5149         (__backtrace): Don't use BOUNDED_1.
5150         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
5151         (shmat): Don't use BOUNDED_N.
5152
5153 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
5154
5155         [BZ #13550]
5156         * sysdeps/generic/bp-start.h: Remove file.
5157         * csu/libc-start.c: Don't include <bp-start.h>.
5158         (LIBC_START_MAIN): Set up __environ directly instead of using
5159         INIT_ARGV_and_ENVIRON.
5160         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
5161         <bp-start.h>.
5162
5163         [BZ #13550]
5164         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
5165         definitions.
5166         (CHECK_FCNTL): Likewise.
5167         (CHECK_N_PAGES): Likewise.
5168
5169         [BZ #13550]
5170         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
5171         definitions.
5172         (CHECK_SIGSET_NULL_OK): Likewise.
5173         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
5174         <bp-checks.h>.
5175         (sigpending): Don't use CHECK_SIGSET.
5176         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
5177         <bp-checks.h>.
5178         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5179         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
5180         <bp-checks.h>.
5181         (do_sigsuspend): Don't use CHECK_SIGSET.
5182         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
5183         use CHECK_SIGSET.
5184         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
5185         (do_sigwait): Don't use CHECK_SIGSET.
5186         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
5187         use CHECK_SIGSET.
5188         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
5189         include <bp-checks.h>.
5190         (sigpending): Don't use CHECK_SIGSET.
5191         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
5192         include <bp-checks.h>.
5193         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5194         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
5195         <bp-checks.h>.
5196         (sigpending): Don't use CHECK_SIGSET.
5197         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
5198         <bp-checks.h>.
5199         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5200
5201         [BZ #13550]
5202         * sysdeps/generic/bp-semctl.h: Remove file.
5203         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
5204         <bp-checks.h> and <bp-semctl.h>.
5205         (__old_semctl): Don't use CHECK_SEMCTL.
5206         (__new_semctl): Likewise.
5207         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
5208         and <bp-semctl.h>.
5209         (__old_semctl): Don't use CHECK_SEMCTL.
5210         (__new_semctl): Likewise.
5211         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
5212         <bp-checks.h> and <bp-semctl.h>.
5213         (__old_semctl): Don't use CHECK_SEMCTL.
5214         (__new_semctl): Likewise.
5215         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
5216         <bp-checks.h> and <bp-semctl.h>.
5217         (semctl): Don't use CHECK_SEMCTL.
5218
5219         [BZ #13550]
5220         * Makerules (elide-bp-thunks): Remove variable.
5221         (elide-routines.oS): Don't use $(elide-bp-thunks).
5222         (elide-routines.os): Likewise.
5223         (elide-routines.o): Likewise.
5224         (elide-routines.op): Likewise.
5225         (elide-routines.og): Likewise.
5226         (objects): Don't use $(bp-thunks).
5227         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
5228         include.
5229         (common-generated): Do not add s-proto-bp.d.
5230         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
5231         (int): Likewise.
5232         (typ): Likewise.
5233         Do not generate makefile rules for bounded-pointer thunks.
5234         * sysdeps/generic/bp-thunks.h: Remove file.
5235         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
5236         * sysdeps/unix/s-proto-bp.S: Likewise.
5237
5238         [BZ #15062]
5239         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
5240         parts of result separately when argument is not close to line from
5241         -i to i and one part of argument is small.
5242         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5243         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5244         * math/libm-test.inc (cacos_test): Add more tests.
5245         (casin_test): Likewise.
5246         (casinh_test): Likewise.
5247         * sysdeps/i386/fpu/libm-test-ulps: Update.
5248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5249
5250 2013-01-31  David S. Miller  <davem@davemloft.net>
5251
5252         * po/de.po: Update from translation team.
5253
5254 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
5255
5256         * time/tzfile.c: Include stdint.h for SIZE_MAX.
5257
5258 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
5259
5260         * configure.in (_AC_PROG_CC_C89): New definition.
5261         * configure: Regenerate.
5262
5263         * configure.in (AC_PROG_CPP): New definition.
5264         * configure: Regenerate.
5265
5266 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
5267
5268         * debug/tst-backtrace.h: New file.
5269         * debug/tst-backtrace2.c: Include tst-backtrace.h.
5270         (ret): Remove variable.
5271         (x): Likewise.
5272         (FAIL): Remove macro.
5273         (NO_INLINE): Likewise.
5274         (fn1): Use match function instead of strstr.
5275         * debug/tst-backtrace3.c: Include tst-backtrace.h.
5276         (ret): Remove variable.
5277         (x): Likewise.
5278         (FAIL): Remove macro.
5279         (NO_INLINE): Likewise.
5280         (fn): Use match function instead of strstr.
5281         * debug/tst-backtrace4.c: Include tst-backtrace.h.
5282         (ret): Remove variable.
5283         (x): Likewise.
5284         (FAIL): Remove macro.
5285         (NO_INLINE): Likewise.
5286         (handle_signal): Use match function instead of strstr.
5287         * debug/tst-backtrace5.c: Include tst-backtrace.h.
5288         (ret): Remove variable.
5289         (x): Likewise.
5290         (FAIL): Remove macro.
5291         (NO_INLINE): Likewise.
5292         (handle_signal): Use match function instead of strstr.
5293
5294 2013-01-23  Roland McGrath  <roland@hack.frob.com>
5295
5296         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
5297
5298 2013-01-23  David S. Miller  <davem@davemloft.net>
5299
5300         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5301         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
5302         argument of CAS if possible.
5303         * sysdeps/sparc/sparc64/bits/atomic.h
5304         (__arch_compare_and_exchange_val_32_acq): Likewise.
5305         (__arch_compare_and_exchange_val_64_acq): Likewise.
5306
5307 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
5308
5309         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
5310         * sysdeps/posix/ulimit.c: ... this.
5311         Include <limits.h>.
5312         * sysdeps/unix/bsd/ulimit.c: Remove file.
5313
5314 2013-01-23  Adam Conrad  <adconrad@0c3.net>
5315
5316         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
5317         (LDFLAGS-tst-array5): Likewise.
5318
5319 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
5320
5321         [BZ #15036]
5322         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
5323         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
5324         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
5325         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
5326
5327 2013-01-21  David S. Miller  <davem@davemloft.net>
5328
5329         * sysdeps/sparc/backtrace.c: New file.
5330         * sysdeps/sparc/sparc32/backtrace.h: New file.
5331         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
5332         * sysdeps/sparc/sparc64/backtrace.h: New file.
5333         * sysdeps/sparc/sparc64/backtrace.c: Delete.
5334         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
5335         -funwind-tables.
5336
5337 2013-01-21  Andreas Schwab  <schwab@suse.de>
5338
5339         [BZ #15020]
5340         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
5341         closed its stdout.
5342
5343 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
5344
5345         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
5346         "mpa2.h".
5347         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5348
5349 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
5350             Mark Mitchell  <mark@codesourcery.com>
5351             Tom de Vries  <tom@codesourcery.com>
5352             Paul Pluzhnikov  <ppluzhnikov@google.com>
5353
5354         * debug/tst-backtrace2.c: New file.
5355         * debug/tst-backtrace3.c: Likewise.
5356         * debug/tst-backtrace4.c: Likewise.
5357         * debug/tst-backtrace5.c: Likewise.
5358         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
5359         (CFLAGS-tst-backtrace3.c): Likewise.
5360         (CFLAGS-tst-backtrace4.c): Likewise.
5361         (CFLAGS-tst-backtrace5.c): Likewise.
5362         (LDFLAGS-tst-backtrace2): Likewise.
5363         (LDFLAGS-tst-backtrace3): Likewise.
5364         (LDFLAGS-tst-backtrace4): Likewise.
5365         (LDFLAGS-tst-backtrace5): Likewise.
5366         (tests): Add new tests tst-backtrace2, tst-backtrace3,
5367         tst-backtrace4 and tst-backtrace5.
5368
5369 2013-01-18  Anton Blanchard  <anton@samba.org>
5370             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5371
5372         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
5373         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
5374         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
5375         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
5376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5377         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
5378         "+r" and remove output regs list as redundant.  Add explicit inline
5379         asm to specify register of return val to work around compiler codegen
5380         bug.  Remove (int) cast on return value.  Add return type parameter to
5381         use in macro so that this macro does not truncate return value for
5382         64-bit values.
5383         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
5384         pass to INTERNAL_VSYSCALL_NCS.
5385         (INLINE_VSYSCALL): Add 'long int' as return type to
5386         INTERNAL_VSYSCALL_NCS macro invocation.
5387         (INTERNAL_VSYSCALL): Add 'long int' as return type to
5388         INTERNAL_VSYSCALL_NCS macro invocation.
5389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5390
5391 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5392
5393         [BZ #14496]
5394         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
5395         Fix application of SIMD FP exception mask.
5396
5397         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
5398         mp_no from a power of two.
5399         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
5400         __mpexp_twomm1.  Use __pow_mp.
5401
5402         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
5403         multiplication.
5404
5405 2013-01-17  David S. Miller  <davem@davemloft.net>
5406
5407         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5408
5409 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
5410
5411         [BZ #15023]
5412         * include/complex.h: Condition contents on [!_COMPLEX_H].
5413         (__kernel_casinhf): New prototype.
5414         (__kernel_casinh): Likewise.
5415         (__kernel_casinhl): Likewise.
5416         * math/Makefile (libm_calls): Add k_casinh.
5417         * math/k_casinh.c: New file.
5418         * math/k_casinhf.c: Likewise.
5419         * math/k_casinhl.c: Likewise.
5420         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
5421         finite nonzero arguments.
5422         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
5423         finite nonzero arguments.
5424         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
5425         finite nonzero arguments.
5426         * math/s_casinh.c: Do not include <float.h>.
5427         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
5428         * math/s_casinhf.c: Do not include <float.h>.
5429         (__casinhf): Move code for finite nonzero arguments to
5430         k_casinhf.c.
5431         * math/s_casinhl.c: Do not include <float.h>.
5432         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
5433         redefine.
5434         (__casinhl): Move code for finite nonzero arguments to
5435         k_casinhl.c.
5436         * math/libm-test.inc (cacos_test): Add more tests.
5437         * sysdeps/i386/fpu/libm-test-ulps: Update.
5438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5439
5440 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
5441
5442         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
5443         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
5444         [!HAVE_MREMAP]: Remove [defined linux] case.
5445         * malloc/arena.c: Do not include <malloc-sysdep.h>.
5446
5447 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5448
5449         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
5450
5451 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
5452
5453         * elf/elf.h (R_386_SIZE32): New relocation.
5454         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
5455         R_386_SIZE32.
5456         (elf_machine_rela): Likewise.
5457         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5458         R_X86_64_SIZE64 and R_X86_64_SIZE32.
5459
5460 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
5461
5462         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
5463         (FP_FAST_FMA): Do not define.
5464         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
5465         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
5466         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
5467         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
5468         !_SOFT_FLOAT]: Likewise.
5469         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
5470         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
5471         value.
5472         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
5473         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
5474         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
5475         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
5476         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
5477         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
5478         file.
5479
5480 2013-01-16  Andreas Schwab  <schwab@suse.de>
5481
5482         [BZ #14327]
5483         * include/stdlib.h (__mktemp): Add declaration.
5484         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
5485         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
5486
5487 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5488
5489         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
5490         definitions.
5491         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5492         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
5493         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
5494         definitions here.
5495         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
5496         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
5497         definitions.
5498         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
5499         and ONE.
5500         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
5501         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
5502         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
5503         definitions.
5504         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
5505         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
5506         definitions.
5507         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5508
5509         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
5510
5511 2013-01-15  David S. Miller  <davem@davemloft.net>
5512
5513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5514         trunc{,f} to libm-sysdep_routes.
5515         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
5517         file.
5518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
5519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
5520         file.
5521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
5522         file.
5523         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
5524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
5525         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
5526         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
5527         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
5528         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
5529         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
5530         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
5531
5532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5533         nearbyint{,f} to libm-sysdep_routes.
5534         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
5536         New file.
5537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
5538         file.
5539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
5540         New file.
5541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
5542         file.
5543         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
5544         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
5545         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
5546         file.
5547         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
5548         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
5549         file.
5550         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
5551         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
5552         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
5553
5554         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5555         libc_feholdexcept and libc_fesetenv.
5556
5557 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
5558
5559         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
5560
5561 2013-01-14  David S. Miller  <davem@davemloft.net>
5562
5563         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
5564         (SPARC_ASM_VIS2_IFUNC): Likewise.
5565         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
5566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
5567         use of 'siam' instruction.
5568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
5569         Likewise.
5570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
5571         Likewise.
5572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
5573         Likewise.
5574         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
5575         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5576         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
5577         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
5578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
5579         file.
5580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
5581         file.
5582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
5583         file.
5584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
5585         file.
5586         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
5587         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
5588         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
5589         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
5590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
5591         new VIS2 routines.
5592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
5595         Likewise.
5596         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5597         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5598         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5599         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
5601         routines to libm-sysdep_routines.
5602         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5603
5604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5605         fdim/fdimf to libm-sysdep_routines.
5606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
5607         file.
5608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
5609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
5610         file.
5611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
5612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
5613         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
5614         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
5615         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
5616         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
5617         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
5618
5619 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
5620
5621         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
5622         to optimize copies.
5623
5624         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
5625         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5626         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5627
5628         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
5629         local variable MPTWO.
5630         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
5631         Likewise.
5632
5633 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5634
5635         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
5636         GLOB_NOESCAPE.
5637
5638 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5639
5640         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
5641
5642 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5643
5644         * manual/pattern.texi (glob_t): Document gl_flags.
5645         (glob64_t): Likewise.
5646
5647 2013-01-11  David S. Miller  <davem@davemloft.net>
5648
5649         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
5650         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
5651         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
5652         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
5653         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
5654         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
5655         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
5656         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
5657         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
5658         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
5659         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
5660         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
5661         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
5662
5663         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5664         sparc V9 rather than using V8 code.
5665         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5666         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5667
5668         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5669         Move to...
5670         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
5671         Here.
5672
5673 2013-01-11  Roland McGrath  <roland@hack.frob.com>
5674
5675         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
5676         not in the main loop.
5677         * configure: Regenerated.
5678
5679 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
5680
5681         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
5682         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
5683         to just #else.
5684         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
5685         [!__GLIBC_HAVE_LONG_LONG] case.
5686         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
5687         condition to just #else.
5688         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
5689         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
5690         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
5691         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
5692         unconditional.
5693         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
5694         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5695         #elif condition to just #else.
5696         * sysdeps/unix/sysv/linux/sys/sysmacros.h
5697         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
5698         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5699         #elif condition to just #else.
5700
5701 2013-01-11  Steve Ellcey  <sellcey@mips.com>
5702
5703         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
5704         (EF_MIPS_ARCH_64): Fix value.
5705         (EF_MIPS_ARCH_32R2): New.
5706         (EF_MIPS_ARCH_64R2): New.
5707
5708 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5709
5710         * Makeconfig (+link-pie-before-libc): New.
5711         (+link-pie-after-libc): Likewise.
5712         (+link-pie-tests): Likewise.
5713         (+link-pie): Rewritten.
5714         (link-before-libc): Remove $(config-LDFLAGS).
5715         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
5716         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
5717         (config-LDFLAGS): Renamed to ...
5718         (rtld-LDFLAGS): This.
5719         (rtld-tests-LDFLAGS): New macro.
5720         (link-libc-rpath-link): Likewise.
5721         (link-libc-tests-rpath-link): Likewise.
5722         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
5723         (link-libc): Prepand $(link-libc-rpath-link).
5724         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
5725         (test-program-prefix): New macro.
5726         (test-via-rtld-prefix): Likewise.
5727         (test-program-cmd): Likewise.
5728         (host-test-program-cmd): Likewise.
5729         * Makefile ($(common-objpfx)testrun.sh): Replace
5730         $(run-program-prefix) with $(test-program-prefix).
5731         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
5732         $(rtld-LDFLAGS).
5733         ($(common-objpfx)shlib.lds): Likewise.
5734         (build-module-helper): Likewise.
5735         ($(common-objpfx)format.lds): Likewise.
5736         * Rules (binaries-pie-tests): New.
5737         (binaries-pie-notests): Likewise.
5738         (binaries-pie): Rewritten.
5739         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
5740         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
5741         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
5742         (make-test-out): Replace $(host-built-program-cmd) with
5743         $(host-test-program-cmd).
5744         * config.make.in (build-hardcoded-path-in-tests): New variable.
5745         * configure.in (--enable-hardcoded-path-in-tests): New configure
5746         option.
5747         (hardcoded_path_in_tests): New AC_SUBST.
5748         * configure: Regenerated.
5749         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
5750         $(built-program-cmd) with $(test-program-cmd).
5751         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
5752         (test_program_cmd): This.
5753         * elf/Makefile ($(objpfx)order.out): Run test with
5754         $(test-program-prefix).
5755         ($(objpfx)order2.out): Likewise.
5756         ($(objpfx)tst-initorder.out): Likewise.
5757         ($(objpfx)tst-initorder2.out): Likewise.
5758         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
5759         $(test-program-cmd).
5760         ($(objpfx)tst-array1-static.out): Likewise.
5761         ($(objpfx)tst-array2.out): Likewise.
5762         ($(objpfx)tst-array3.out): Likewise.
5763         ($(objpfx)tst-array4.out): Likewise.
5764         ($(objpfx)tst-array5.out): Likewise.
5765         ($(objpfx)tst-array5-static.out): Likewise.
5766         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
5767         $(test-program-cmd).
5768         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
5769         $(run-program-prefix) with $(test-program-prefix).
5770         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
5771         (test_program_prefix): This.
5772         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
5773         $(run-program-prefix) with $(test-program-prefix).
5774         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
5775         (test_program_prefix): This.
5776         * iconvdata/tst-tables.sh: Likewise.
5777         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
5778         $(run-program-prefix) with $(test-program-prefix).
5779         ($(objpfx)tst-translit.out): Likewise.
5780         ($(objpfx)tst-gettext2.out): Likewise.
5781         ($(objpfx)tst-gettext4.out): Likewise.
5782         ($(objpfx)tst-gettext6.out): Likewise.
5783         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
5784         (test_program_prefix): This.
5785         * intl/tst-gettext2.sh: Likewise.
5786         * intl/tst-gettext4.sh  Likewise.
5787         * intl/tst-gettext6.sh: Likewise.
5788         * intl/tst-translit.sh: Likewise.
5789         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
5790         with $(test-program-cmd).
5791         * libio/Makefile ($(objpfx)test-freopen.out): Replace
5792         $(run-program-prefix) with $(test-program-prefix).
5793         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
5794         (test_program_prefix): This.
5795         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
5796         $(run-program-prefix) with $(test-program-prefix).
5797         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
5798         (test_program_prefix): This.
5799         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
5800         * posix/Makefile ($(objpfx)globtest.out): Replace
5801         $(run-via-rtld-prefix) and $(test-wrapper) with
5802         $(test-program-prefix) and $(test-via-rtld-prefix).
5803         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
5804         $(test-program-prefix).
5805         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
5806         $(host-test-program-cmd).
5807         (tst-spawn-ARGS): Likewise.
5808         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
5809         $(test-program-prefix).
5810         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
5811         (test_via_rtld_prefix): This.
5812         (test_wrapper): Renamed to ...
5813         (test_program_prefix): This.
5814         (run_program_prefix): Replaced by test_program_prefix.
5815         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
5816         (test_program_prefix): This.
5817         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
5818         with $(host-test-program-cmd).
5819         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
5820         $(run-program-prefix) with $(test-program-prefix).
5821         ($(objpfx)tst-printf.out): Likewise.
5822         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
5823         $(test-program-cmd).
5824         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
5825         (test_program_prefix): This.
5826         * stdio-common/tst-unbputc.sh: Likewise.
5827         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
5828         $(run-program-prefix) with $(test-program-prefix).
5829         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
5830         (test_program_prefix): This.
5831         * string/Makefile ($(objpfx)tst-svc.out):  Replace
5832         $(built-program-cmd) with $(test-program-cmd).
5833
5834 2013-01-11  Andreas Jaeger  <aj@suse.de>
5835
5836         [BZ #15003]
5837         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
5838         value. Sync with Linux 3.7.
5839
5840 2013-01-10  David S. Miller  <davem@davemloft.net>
5841
5842         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
5843         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5844         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5845
5846 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5847
5848         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
5849         never set.
5850         * configure: Regenerated.
5851
5852 2013-01-10  David S. Miller  <davem@davemloft.net>
5853
5854         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5855         sparc V9 rather than using V8 code.
5856         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5857         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5858
5859 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5860
5861         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
5862         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
5863         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
5864         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
5865         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
5866         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
5867         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
5868         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
5869         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
5870         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
5871         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
5872         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
5873         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
5874         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
5875         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
5876         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
5877         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
5878         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
5879         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
5880         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
5881         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
5882         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
5883         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
5884         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
5885         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
5886         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
5887         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
5888
5889 2013-01-10  David S. Miller  <davem@davemloft.net>
5890
5891         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5892
5893 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5894
5895         * posix/Makefile (tests-static): New variable.
5896         (tests): Add $(tests-static).
5897         (tst-exec-static-ARGS): New variable.
5898         (tst-spawn-static-ARGS): Likewise.
5899         * posix/tst-exec-static.c: New file.
5900         * posix/tst-spawn-static.c: Likewise.
5901         * posix/tst-exec.c: Support run directly.
5902         * posix/tst-spawn.c: Likewise.
5903
5904 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
5905
5906         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
5907         long.
5908         * math/bits/mathcalls.h (llrint): Likewise.
5909         (llround): Likewise.
5910         * stdlib/stdlib.h (struct drand48_data): Likewise.
5911         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
5912         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
5913         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
5914         Likewise.
5915         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
5916         Likewise.
5917         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
5918         (elf_greg_t): Likewise.
5919         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
5920         (__jmp_buf): Likewise.
5921         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
5922         definitions.
5923         (llrint): Likewise, for all definitions.
5924         (llrintl): Likewise.
5925
5926         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
5927         Remove [__GNUC__] condition.
5928         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
5929         condition to just [__USE_ISOC99].
5930         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
5931
5932 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5933
5934         [BZ #14200]
5935         * sysdeps/unix/sysv/linux/x86/bits/environments.h
5936         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
5937         defined.
5938         (_POSIX_V6_ILP32_OFF32): Likewise.
5939         (_XBS5_ILP32_OFF32): Likewise.
5940         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
5941         (__ILP32_OFFBIG_LDFLAGS): Likewise.
5942
5943 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5944
5945         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
5946
5947         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
5948         doubles __mpexp_twomm1.  Adjust usage.
5949         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
5950         Remove.
5951
5952 2013-01-10  Andreas Schwab  <schwab@suse.de>
5953
5954         [BZ #14964]
5955         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
5956         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
5957
5958 2013-01-09  David S. Miller  <davem@davemloft.net>
5959
5960         [BZ #15003]
5961         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
5962         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
5963         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
5964         TCP_FASTOPEN): Define.
5965         (tcp_repair_opt): New structure.
5966         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
5967         enum values.
5968         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
5969         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
5970         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
5971         (tcp_cookie_transactions): New structure.
5972
5973 2013-01-09  Anton Blanchard  <anton@samba.org>
5974
5975         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
5976         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
5977         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
5978         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
5979
5980 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
5981
5982         * include/features.h (__USE_ANSI): Remove.
5983
5984 2013-01-09  Roland McGrath  <roland@hack.frob.com>
5985
5986         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
5987
5988         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
5989
5990 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
5991
5992         * sysdeps/s390/fpu/libm-test-ulps: Update.
5993
5994         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5995
5996         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
5997         (__acr): Likewise.
5998         (__cpy): Likewise.
5999         (norm): Likewise.
6000         (denorm): Likewise.
6001         (__mp_dbl): Likewise.
6002         (__dbl_mp): Likewise.
6003         (add_magnitudes): Likewise.
6004         (sub_magnitudes): Likewise.
6005         (__add): Likewise.
6006         (__sub): Likewise.
6007         (__mul): Likewise.
6008         (__inv): Likewise.
6009         (__dvd): Likewise.
6010         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
6011         (__acr): Likewise.
6012         (__cpy): Likewise.
6013         (norm): Likewise.
6014         (denorm): Likewise.
6015         (__mp_dbl): Likewise.
6016         (__dbl_mp): Likewise.
6017         (add_magnitudes): Likewise.
6018         (sub_magnitudes): Likewise.
6019         (__add): Likewise.
6020         (__sub): Likewise.
6021         (__mul): Likewise.
6022         (__inv): Likewise.
6023         (__dvd): Likewise.
6024         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
6025         (__acr): Likewise.
6026         (__cpy): Likewise.
6027         (norm): Likewise.
6028         (denorm): Likewise.
6029         (__mp_dbl): Likewise.
6030         (__dbl_mp): Likewise.
6031         (add_magnitudes): Likewise.
6032         (sub_magnitudes): Likewise.
6033         (__add): Likewise.
6034         (__sub): Likewise.
6035         (__mul): Likewise.
6036         (__inv): Likewise.
6037         (__dvd): Likewise.
6038
6039 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
6040
6041         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
6042         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
6043         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
6044         2 && __USE_EXTERN_INLINES]: Likewise.
6045
6046 2013-01-08  Andreas Jaeger  <aj@suse.de>
6047
6048         [BZ# 14985]
6049         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
6050         Remove.
6051         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
6052         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
6053
6054 2013-01-07  Anton Blanchard  <anton@samba.org>
6055
6056         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
6057         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
6058         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
6059         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
6060         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6061         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
6062         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
6063         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
6064         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6065         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
6066         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6067         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6068         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
6069         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6070         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
6071         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6072         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6073         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6074         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
6075         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6076         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
6077         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
6078         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
6079         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
6080         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
6081         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6082         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
6083         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
6084         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
6085         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
6086         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
6087         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6088         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
6089         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6090         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6091         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
6092         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6093         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
6094         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
6095         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
6096         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
6097         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
6098         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
6099
6100 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
6101
6102         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
6103         (__MALLOC_PMT): Likewise.
6104         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
6105         [__GNUC__], only on [_LIBC].
6106         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
6107         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
6108         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
6109         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
6110         forward declaration.
6111         (realloc_hook_ini): Likewise.
6112         (memalign_hook_ini): Likewise.
6113         (__libc_memalign): Do not use __MALLOC_PMT in variable
6114         declaration.
6115         (__libc_valloc): Likewise.
6116         (__libc_pvalloc): Likewise.
6117         (__libc_calloc): Likewise.
6118         (__posix_memalign): Likewise.
6119
6120         [BZ #14996]
6121         * math/s_casinh.c: Include <float.h>.
6122         (__casinh): Do not do computation with squaring and square root
6123         for large arguments.
6124         * math/s_casinhf.c: Include <float.h>.
6125         (__casinhf): Do not do computation with squaring and square root
6126         for large arguments.
6127         * math/s_casinhl.c: Include <float.h>.
6128         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
6129         (__casinhl): Do not do computation with squaring and square root
6130         for large arguments.
6131         * math/libm-test.inc (casin_test): Add more tests.
6132         (casinh_test): Likewise.
6133         * sysdeps/i386/fpu/libm-test-ulps: Update.
6134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6135
6136 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
6137
6138         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
6139         (__x86_64_raw_data_cache_size): Likewise.
6140         (__x86_64_data_cache_size_half): Likewise.
6141         (__x86_64_raw_data_cache_size_half): Likewise.
6142         (__x86_64_shared_cache_size): Likewise.
6143         (__x86_64_raw_shared_cache_size): Likewise.
6144         (__x86_64_shared_cache_size_half): Likewise.
6145         (__x86_64_raw_shared_cache_size_half): Likewise.
6146         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
6147         to ...
6148         (__x86_data_cache_size): This.
6149         (__x86_64_raw_data_cache_size): Renamed to ...
6150         (__x86_raw_data_cache_size): This.
6151         (__x86_64_data_cache_size_half): Renamed to ...
6152         (__x86_data_cache_size_half): This.
6153         (__x86_64_raw_data_cache_size_half): Renamed to ...
6154         (__x86_raw_data_cache_size_half): This.
6155         (__x86_64_shared_cache_size): Renamed to ...
6156         (__x86_shared_cache_size): This.
6157         (__x86_64_raw_shared_cache_size): Renamed to ...
6158         (__x86_raw_shared_cache_size): This.
6159         (__x86_64_shared_cache_size_half): Renamed to ...
6160         (__x86_shared_cache_size_half): This.
6161         (__x86_64_raw_shared_cache_size_half): Renamed to ...
6162         (__x86_raw_shared_cache_size_half): This.
6163         * sysdeps/x86_64/memcpy.S: Updated.
6164         * sysdeps/x86_64/memset.S: Likewise.
6165         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6166         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
6167         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6168
6169 2013-01-04  David S. Miller  <davem@davemloft.net>
6170
6171         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6172
6173 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
6174
6175         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
6176         1 to avoid redefinition warning.
6177         (__USE_GNU): Don't define.
6178         (init_signaling_nan): Protoize.
6179
6180         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6181
6182 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6183
6184         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
6185         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
6186         (__cpymn): Likewise.
6187         (norm): Remove commented code.
6188         (denorm): Likewise.
6189         (__mp_dbl): Likewise.
6190         (__inv): Likewise.
6191         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
6192         (__cpymn): Likewise.
6193         (norm): Remove commented code.
6194         (denorm): Likewise.
6195         (__mp_dbl): Likewise.
6196         (__inv): Likewise.
6197
6198         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
6199         mp_no value for 1.0 and 2.0.
6200         (norm): Use RADIXI instead of radixi.d.
6201         (denorm): Likewise.
6202         (__mul): Use 0.0 instead of zero.d.
6203         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
6204         mp_no value for 1.0 and 2.0.
6205         (norm): Use RADIXI instead of radixi.d.
6206         (denorm): Likewise.
6207         (__mul): Use 0.0 instead of zero.d.
6208
6209 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
6210
6211         [BZ #14994]
6212         * math/s_casinh.c (__casinh): Reduce finite argument to first
6213         quadrant then set signs of results at the end.
6214         * math/s_casinhf.c (__casinhf): Likewise.
6215         * math/s_casinhl.c (__casinhl): Likewise.
6216         * math/libm-test.inc (casin_test): Add more tests.
6217         (casinh_test): Likewise.
6218         * sysdeps/i386/fpu/libm-test-ulps: Update.
6219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6220
6221 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6222
6223         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
6224
6225         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
6226
6227         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
6228         declarations.
6229         (denorm): Likewise.
6230         (__mp_dbl): Likewise.
6231         (__inv): Likewise.
6232
6233         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
6234         and adjust the header comment.
6235
6236         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
6237         variable name from declaration.
6238
6239 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
6240
6241         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6242         Initialize COMMON_CPUID_INDEX_7 element.
6243         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
6244         (CPUID_RTM): Likewise.
6245         (HAS_RTM): Likewise.
6246         (COMMON_CPUID_INDEX_7): New enum.
6247
6248 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
6249
6250         [BZ #14981]
6251         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
6252         size is zero, record memory as freed.
6253
6254 2013-01-03  Andreas Jaeger  <aj@suse.de>
6255
6256         * po/ia.po: Add new Interlingua translation.
6257
6258 2012-01-03  Allan McRae  <allan@archlinux.org>
6259
6260         * locale/programs/localedef.c: Fix description of '--posix' flag.
6261
6262 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
6263
6264         * NEWS: Update dates in second copyright notice.
6265         * README: Update copyright dates in example.
6266         * manual/libc.texinfo: Update copyright dates.
6267         * scripts/test-installation.pl: Update copyright date in --version
6268         output.
6269
6270         * hurd/ctty-input.c: Fix copyright notice formatting.
6271         * hurd/ctty-output.c: Likewise.
6272         * hurd/dtable.c: Likewise.
6273         * hurd/hurd-raise.c: Likewise.
6274         * hurd/hurdprio.c: Likewise.
6275         * hurd/msgportdemux.c: Likewise.
6276         * misc/sys/file.h: Likewise.
6277         * misc/sys/ioctl.h: Likewise.
6278         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
6279         * sysdeps/mach/hurd/chdir.c: Likewise.
6280         * sysdeps/mach/hurd/fchdir.c: Likewise.
6281         * sysdeps/mach/hurd/rename.c: Likewise.
6282         * sysdeps/mach/hurd/rmdir.c: Likewise.
6283         * sysdeps/mach/hurd/seekdir.c: Likewise.
6284         * sysdeps/mach/hurd/setsid.c: Likewise.
6285         * sysdeps/posix/wait3.c: Likewise.
6286
6287         * All files with FSF copyright notices: Update copyright dates
6288         using scripts/update-copyrights.
6289         * intl/plural.c: Regenerated.
6290         * locale/programs/charmap-kw.h: Likewise.
6291         * locale/programs/locfile-kw.h: Likewise.
6292
6293 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6294
6295         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
6296         four values.
6297
6298         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
6299         calculation loop and add branch prediction.
6300
6301         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
6302         check access beyond bounds of m1np.
6303
6304         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
6305         MPTWO.
6306         (__inv): Remove local variable MPTWO to use the global
6307         constant.
6308         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
6309         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
6310         variable MPTWO.
6311         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
6312         MP3HALFS static const.
6313
6314 2013-01-01  David S. Miller  <davem@davemloft.net>
6315
6316         * po/ca.po: Update from translation team.
6317
6318 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
6319
6320         * scripts/update-copyrights: New file.
6321         * Makeconfig: Reformat copyright notice.
6322         * ctype/ctype.h: Likewise.
6323         * debug/swprintf_chk.c: Likewise.
6324         * elf/dl-cache.c: Likewise.
6325         * elf/dl-debug.c: Likewise.
6326         * elf/dl-object.c: Likewise.
6327         * grp/initgroups.c: Likewise.
6328         * hurd/Makefile: Likewise.
6329         * hurd/hurd/signal.h: Likewise.
6330         * hurd/hurdfault.c: Likewise.
6331         * hurd/hurdioctl.c: Likewise.
6332         * hurd/hurdlookup.c: Likewise.
6333         * hurd/intr-msg.c: Likewise.
6334         * iconv/gconv_open.c: Likewise.
6335         * libio/swprintf.c: Likewise.
6336         * locale/lc-ctype.c: Likewise.
6337         * locale/nl_langinfo.c: Likewise.
6338         * mach/Machrules: Likewise.
6339         * mach/Makefile: Likewise.
6340         * malloc/obstack.h: Likewise.
6341         * manual/Makefile: Likewise.
6342         * manual/tsort.awk: Likewise.
6343         * misc/bits/stab.def: Likewise.
6344         * nis/nis_print_group_entry.c: Likewise.
6345         * nis/nis_table.c: Likewise.
6346         * nis/nss_compat/compat-pwd.c: Likewise.
6347         * nis/nss_compat/compat-spwd.c: Likewise.
6348         * po/Makefile: Likewise.
6349         * posix/fnmatch.c: Likewise.
6350         * posix/regex.h: Likewise.
6351         * resolv/Makefile: Likewise.
6352         * resolv/nss_dns/dns-network.c: Likewise.
6353         * resolv/res_hconf.c: Likewise.
6354         * scripts/gen-sorted.awk: Likewise.
6355         * soft-fp/soft-fp.h: Likewise.
6356         * stdio-common/printf.h: Likewise.
6357         * stdlib/monetary.h: Likewise.
6358         * stdlib/random.c: Likewise.
6359         * stdlib/random_r.c: Likewise.
6360         * sysdeps/generic/Makefile: Likewise.
6361         * sysdeps/gnu/Makefile: Likewise.
6362         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6363         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6364         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6365         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6366         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6367         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6368         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6369         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6370         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6371         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6372         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6373         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6374         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6375         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6376         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
6377         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6378         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6379         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6380         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6381         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6382         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6383         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6384         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6385         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
6386         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
6387         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6388         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
6389         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
6390         * sysdeps/mach/hurd/errnos.awk: Likewise.
6391         * sysdeps/mach/hurd/fork.c: Likewise.
6392         * sysdeps/mach/hurd/getcwd.c: Likewise.
6393         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
6394         * sysdeps/mach/hurd/mmap.c: Likewise.
6395         * sysdeps/mach/hurd/utimes.c: Likewise.
6396         * sysdeps/mach/hurd/xmknod.c: Likewise.
6397         * sysdeps/posix/profil.c: Likewise.
6398         * sysdeps/posix/readdir_r.c: Likewise.
6399         * sysdeps/powerpc/bits/mathdef.h: Likewise.
6400         * sysdeps/powerpc/bits/setjmp.h: Likewise.
6401         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
6402         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
6403         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6404         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
6405         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
6406         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6407         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6408         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
6409         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
6410         * sysdeps/pthread/lio_listio.c: Likewise.
6411         * sysdeps/sparc/dl-procinfo.h: Likewise.
6412         * sysdeps/unix/i386/sysdep.S: Likewise.
6413         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
6414         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
6415         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
6416         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
6417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
6418         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
6419         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6420         * sysdeps/unix/sysv/linux/speed.c: Likewise.
6421         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
6422         * sysdeps/wordsize-32/divdi3.c: Likewise.
6423         * time/sys/time.h: Likewise.
6424         * wcsmbs/Makefile: Likewise.
6425
6426 2013-01-01  David S. Miller  <davem@davemloft.net>
6427
6428         * po/fr.po: Update from translation team.
6429
6430         * catgets/gencat.c: Update copyright year.
6431         * csu/version.c: Likewise.
6432         * debug/catchsegv.sh: Likewise.
6433         * debug/pcprofiledump.c: Likewise.
6434         * debug/xtrace.sh: Likewise.
6435         * elf/ldconfig.c: Likewise.
6436         * elf/ldd.bash.in: Likewise.
6437         * elf/pldd.c: Likewise.
6438         * elf/sotruss.ksh: Likewise.
6439         * elf/sprof.c: Likewise.
6440         * iconv/iconv_prog.c: Likewise.
6441         * iconv/iconvconfig.c: Likewise.
6442         * locale/programs/locale.c: Likewise.
6443         * locale/programs/localedef.c: Likewise.
6444         * login/programs/pt_chown.c: Likewise.
6445         * malloc/memusage.sh: Likewise.
6446         * malloc/memusagestat.c: Likewise.
6447         * malloc/mtrace.pl: Likewise.
6448         * nscd/nscd.c: Likewise.
6449         * nss/getent.c: Likewise.
6450         * nss/makedb.c: Likewise.
6451         * posix/getconf.c: Likewise.
6452
6453 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
6454
6455         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
6456         numbers.
6457
6458 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
6459
6460         * math/bits/mathcalls.h (modf): Use __nonnull.
6461
6462 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6463
6464         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
6465         (split): Use macro CN instead of the bare value.
6466         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
6467         could be used.
6468         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
6469         instead of the bare value.
6470         (power1): Likewise.
6471
6472 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6473
6474         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
6475         __ATAN_TWOM.
6476         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6477
6478         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
6479         their values.
6480         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
6481         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6482         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
6483         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
6484
6485 2012-12-28  Andreas Jaeger  <aj@suse.de>
6486
6487         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
6488         values are from Linux 3.7.
6489
6490         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
6491         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
6492
6493 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6494
6495         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
6496         TRUE case.
6497
6498         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
6499         (norm): Likewise.
6500         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
6501         variables with preprocessor constants.
6502         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6503         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6504         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6505
6506 2012-12-27  Bruno Haible  <bruno@clisp.org>
6507
6508         [BZ #14317]
6509         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
6510         only if needed.
6511
6512 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6513
6514         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
6515         and use variable directly.
6516         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
6517
6518         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
6519         MPONE.
6520         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
6521         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
6522         variable MPONE.
6523         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6524         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
6525         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
6526         include directive.  Remove local variable MPONE.
6527         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
6528         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
6529         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6530
6531 2012-12-25  David S. Miller  <davem@davemloft.net>
6532
6533         * version.h (RELEASE): Set to "development".
6534         (VERSION): Set to "2.17.90".
6535         * NEWS: Add 2.18 section.
6536
6537 2012-12-21  David S. Miller  <davem@davemloft.net>
6538
6539         * po/hr.po: Update from translation team.
6540
6541 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6542
6543         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
6544
6545 2012-12-19  Steve Ellcey  <sellcey@mips.com>
6546
6547         * NEWS:  Mention new memcpy for MIPS.
6548
6549 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6550
6551         * manual/contrib.texi (Contributors): Spelling correction.
6552
6553 2012-12-15  David S. Miller  <davem@davemloft.net>
6554
6555         * po/ru.po: Update from translation team.
6556
6557 2012-12-13  David S. Miller  <davem@davemloft.net>
6558
6559         * NEWS: Mention IFUNC testsuite enhancements.
6560
6561         * po/pl.po: Update from translation team.
6562         * po/bg.po: Likewise.
6563
6564         * manual/contrib.texi (Contributors): Update entries for Hongjiu
6565         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
6566
6567 2012-12-11  David S. Miller  <davem@davemloft.net>
6568
6569         * po/sv.po: Update from translation team.
6570
6571         * po/vi.po: Update from translation team.
6572
6573         * po/cs.po: Update from translation team.
6574
6575         * po/de.po: Update from translation team.
6576         * po/eo.po: Likewise.
6577         * po/nl.po: Likewise.
6578
6579 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6580
6581         [BZ #14246]
6582         * manual/argp.texi (Argp Helper Functions): Move node to follow
6583         Argp Parsing State.
6584
6585         [BZ #14872]
6586         * manual/conf.texi (Limits on File System Capacity): Mention if
6587         terminating null is included in the max size.
6588
6589 2012-12-10  Andreas Jaeger  <aj@suse.de>
6590
6591         * po/cs.po: Update from translation team.
6592
6593 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
6594
6595         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
6596         void pointer and cast to uintptr_t.
6597         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
6598         path.
6599         * sysdeps/s390/s390-64/memcpy.S: Likewise.
6600         * sysdeps/s390/s390-64/memset.S: Likewise.
6601
6602 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
6603
6604         [BZ #14833]
6605         * menual/message.texi (Message Translation): Fix typos.
6606         (Helper programs for gettext): Likewise.
6607
6608 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
6609
6610         [BZ #14898]
6611         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
6612         Change to -1.
6613
6614 2012-12-07  David S. Miller  <davem@davemloft.net>
6615
6616         * po/libc.pot: Update.
6617
6618 2012-12-07  Richard Henderson  <rth@redhat.com>
6619
6620         [BZ #10114]
6621         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
6622         normal/normal case to before the switch.
6623         (_FP_DIV): Likewise.
6624
6625 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
6626             Mike Frysinger  <vapier@gentoo.org>
6627
6628         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
6629         check for __NR_fadvise64_64.
6630
6631 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
6632
6633         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
6634         0, not just to plain "0" as a statement.
6635         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
6636         with cw.
6637
6638 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
6639
6640         * NEWS: Use sourceware.org in Bugzilla URL.
6641
6642 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6643
6644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6645         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6646
6647         * stdio-common/tst-put-error.c (do_test): Add newline to the
6648         padded test to ensure flush.
6649
6650 2012-12-05  Jeff Law  <law@redhat.com>
6651
6652         * sunrpc/etc.rpc (fedfs_admin): Add entry.
6653
6654 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
6655
6656         * README: Don't refer to ports add-on as distributed separately.
6657         Mention AArch64 in list of systems supported in the ports add-on.
6658
6659         * LICENSES: Add more non-FSF copyright and license notices.
6660
6661         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
6662         ((unused)).
6663
6664         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
6665
6666         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
6667         10000 as width of padded output.
6668
6669 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
6670
6671         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
6672
6673         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
6674         variable LX with __attribute__ ((unused)).
6675         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
6676         Likewise.
6677         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
6678         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6679         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
6680         with __attribute__ ((unused)).
6681
6682 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
6683
6684         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
6685
6686 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
6687
6688         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
6689         (CFLAGS-nldbl-acos.c): New variable.
6690         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
6691         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
6692         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
6693         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
6694         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
6695         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
6696         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
6697         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
6698         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
6699         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
6700         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
6701         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
6702         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
6703         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
6704         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
6705         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
6706         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
6707         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
6708         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
6709         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
6710         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
6711         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
6712         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
6713         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
6714         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
6715         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
6716         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
6717         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
6718         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
6719         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
6720         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
6721         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
6722         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
6723         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
6724         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
6725         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
6726         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
6727         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
6728         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
6729         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
6730         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
6731         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
6732         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
6733         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
6734         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
6735         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
6736         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
6737         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
6738         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
6739         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
6740         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
6741         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
6742         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
6743         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
6744         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
6745         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
6746         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
6747         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
6748         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
6749         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
6750         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
6751         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
6752         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
6753         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
6754         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
6755         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
6756         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
6757         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
6758         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
6759         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
6760         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
6761         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
6762         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
6763         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
6764         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
6765         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
6766         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
6767         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
6768         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
6769         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
6770         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
6771         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
6772         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
6773         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
6774         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
6775         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
6776         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
6777         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
6778         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
6779         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
6780         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
6781         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
6782         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
6783         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
6784         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
6785         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
6786         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
6787
6788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6789         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6790
6791         [BZ #14914]
6792         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
6793         whole low double instead of just low 47 bits when splitting values
6794         into two parts.
6795
6796 2012-12-03  Allan McRae  <allan@archlinux.org>
6797
6798         * manual/stdio.texi (Predefined Printf Handlers): Remove
6799         @hsep and @vsep usage.
6800
6801 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
6802
6803         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
6804         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
6805
6806 2012-12-03  Jeff Law  <law@redhat.com>
6807
6808         * time/sys/time.h (settimeofday): Do not mark TV argument
6809         as __nonnull.
6810
6811 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
6812
6813         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
6814         when currently writing and seek to current position when not.
6815         * libio/Makefile (tests): Remove bug-fclose1.
6816         * libio/bug-fclose1.c: Delete.
6817
6818 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
6819
6820         * manual/arith.texi (feenableexcept): Fix typo.
6821         (fedisableexcept): Likewise.
6822
6823 2012-11-30  Roland McGrath  <roland@hack.frob.com>
6824
6825         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
6826         second, differently-typed declaration, rather than a cast.
6827
6828 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6829
6830         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
6831         * include/rpc/svc.h: ... here.
6832
6833 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
6834
6835         [BZ #13013]
6836         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
6837         depending n and resplen2 to catch cases where answer
6838         equals answerp2.
6839
6840 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
6841
6842         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
6843         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
6844
6845 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
6846
6847         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
6848
6849 2012-11-29  Roland McGrath  <roland@hack.frob.com>
6850
6851         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
6852
6853 2012-11-28  Jeff Law  <law@redhat.com>
6854
6855         [BZ #13761]
6856         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
6857         dataset_temporary.  Track alloca usage into alloca_used.
6858         If dataset is large allocate and release it via malloc/free.
6859
6860 2012-06-04  Florian Weimer  <fweimer@redhat.com>
6861
6862         [BZ #14197]
6863         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
6864
6865 2012-11-28  David S. Miller  <davem@davemloft.net>
6866
6867         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6868
6869 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6870
6871         [BZ #14803]
6872         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
6873         of pi/2 rounded to nearest to 64 bits.
6874         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
6875         nearest to 64 bits.
6876         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
6877         bits.
6878
6879 2012-11-28  Jeff Law <law@redhat.com>
6880             Martin Osvald <mosvald@redhat.com>
6881
6882         [BZ #14889]
6883         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
6884         * sunrpc/svc.c: Include time.h.
6885         (__svc_accept_failed): New function.
6886         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
6887         any reason other than EINTR, call __svc_accept_failed.
6888         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
6889         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
6890
6891 2012-11-28  Andreas Schwab  <schwab@suse.de>
6892
6893         * scripts/abilist.awk: Also handle indirect functions in .opd
6894         section.
6895
6896 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6897
6898         [BZ #13881]
6899         * sysdeps/x86/fpu/powl_helper.c: New file.
6900         * sysdeps/x86/fpu/Makefile: Likewise.
6901         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
6902         (p3): New object.
6903         (__ieee754_powl): Use __powl_helper for finite arguments except
6904         integer exponents below 8.
6905         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
6906         (p3): New object.
6907         (__ieee754_powl): Use __powl_helper for finite arguments except
6908         integer exponents below 8.
6909         * math/libm-test.inc (pow_test): Add more tests and enable some
6910         previously disabled tests.
6911         * sysdeps/i386/fpu/libm-test-ulps: Update.
6912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6913
6914 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6915             Carlos O'Donell  <carlos_odonell@mentor.com>
6916
6917         * nss/makedb.c (is_prime): Assert that input is odd and greater
6918         than 4.  Note that fact in a comment too.
6919         (next_prime): Add 4 to input.
6920
6921 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6922
6923         [BZ #11741]
6924         * libio/Makefile (tests): Add test case tst-fwrite-error.
6925         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
6926         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6927         * libio/tst-fwrite-error.c: New test case.
6928
6929 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
6930
6931         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
6932         before casting to void *.
6933         * include/libc-internal.h (__pointer_type): New macro.
6934         (__integer_if_pointer_type_sub): Likewise.
6935         (__integer_if_pointer_type): Likewise.
6936         (cast_to_integer): Likewise.
6937         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
6938         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
6939         before casting to atomic64_t.
6940         (atomic_exchange_acq): Likewise.
6941         (__arch_exchange_and_add_body): Likewise.
6942         (__arch_add_body): Likewise.
6943         (atomic_add_negative): Likewise.
6944         (atomic_add_zero): Likewise.
6945
6946 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
6947
6948         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
6949         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
6950         (add_fdes): Likewise.
6951         (linear_search_fdes): Likewise.
6952         (binary_search_unencoded_fdes): Likewise.
6953
6954 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
6955
6956         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
6957
6958 2012-11-24  Adam Conrad  <adconrad@0c3.net>
6959
6960         * configure.in: Autodetect C++ header directories.
6961         * configure: Regenerated.
6962
6963 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
6964
6965         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
6966
6967 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
6968
6969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6970
6971 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
6972
6973         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
6974         LDBL_MANT_DIG == 106]: Disable some tests.
6975         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6976         Likewise.
6977         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6978         Likewise.
6979
6980         [BZ #14871]
6981         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
6982         input for small inputs.  Return +/- pi/2 for large inputs.
6983         * math/libm-test.inc (atan_test): Add more tests.
6984
6985         * sysdeps/generic/unwind-dw2-fde-glibc.c
6986         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
6987         __attribute__ ((unused)).
6988
6989         [BZ #14645]
6990         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
6991         x * y if x and y are nonzero and z is zero.
6992
6993         [BZ #14811]
6994         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
6995         nonzero exponents with absolute value below 0x1p-117 to +/-
6996         0x1p-117.
6997
6998         [BZ #14869]
6999         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
7000         up arguments below 2**-450, not just those below 2**-500.
7001         * math/libm-test.inc (hypot_test): Add another test.
7002
7003         [BZ #14868]
7004         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
7005         Return a+b for ratio over 2**120, not 2**60.
7006         * math/libm-test.inc (hypot_test): Add another test.
7007
7008         * math/libm-test.inc (clog_test): Use
7009         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
7010         (clog10_test): Likewise.
7011
7012         [BZ #6778]
7013         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
7014
7015 2012-11-22  Andreas Schwab  <schwab@suse.de>
7016
7017         * sysdeps/i386/fpu/libm-test-ulps: Update.
7018
7019 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
7020
7021         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
7022         printf output with newline.
7023
7024 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
7025
7026         [BZ #14865]
7027         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
7028         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
7029         -z nodlopen, -z initfirst and -z execstack support.
7030         * configure: Regenerated.
7031
7032         * elf/elf.h (DF_1_NODIRECT): New macro.
7033         (DF_1_IGNMULDEF): Likewise.
7034         (DF_1_NOKSYMS): Likewise.
7035         (DF_1_NOHDR): Likewise.
7036         (DF_1_EDITED): Likewise.
7037         (DF_1_NORELOC): Likewise.
7038         (DF_1_SYMINTPOSE): Likewise.
7039         (DF_1_GLOBAUDIT): Likewise.
7040         (DF_1_SINGLETON): Likewise.
7041         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
7042         DT_1_SUPPORTED_MASK bits.
7043         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
7044
7045 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
7046
7047         * sysdeps/unix/make-syscalls.sh: Document prefixes.
7048
7049 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
7050
7051         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
7052         macro.
7053
7054         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
7055         (sendmmsg): Move declarations...
7056         * socket/sys/socket.h: ... here.
7057         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
7058         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
7059         include it from...
7060         * socket/recvmmsg.c: ... this new file.
7061         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
7062         (sendmmsg): Rename to __sendmmsg, create weak alias and make
7063         definition of __sendmmsg hidden.
7064         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
7065         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
7066         Move ENOSYS stub into and include it from...
7067         * socket/sendmmsg.c: ... this new file.
7068         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
7069         (sysdep_routines): Move recvmmsg and sendmmsg...
7070         * socket/Makefile (routines): ... here.
7071         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
7072         (GLIBC_PRIVATE): Add __sendmmsg.
7073         * include/sys/socket.h (__sendmmsg): Add declarations.
7074         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
7075         sendmmsg.
7076
7077 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
7078
7079         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
7080         variable I1 with __attribute__ ((unused)).
7081         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
7082
7083 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
7084
7085         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
7086         DUMMY variables with __attribute__ ((unused)).
7087
7088         * bits/byteswap.h: Include <bits/types.h>.
7089         (__bswap_64): Use __uint64_t instead of unsigned long long int.
7090
7091 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
7092
7093         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
7094         string_t.  Do not manually set errno.
7095         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
7096         length with __strnlen.  Make sure to both set errno and return it on
7097         failure.
7098
7099 2012-11-19  David S. Miller  <davem@davemloft.net>
7100
7101         With help from Joseph Myers.
7102         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
7103         very large arguments properly.
7104         * math/libm-test.inc (atan_test): New tests.
7105         (atan2_test): New tests.
7106         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7107         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7108
7109 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
7110
7111         [BZ #14856]
7112         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
7113         Define to 3.
7114
7115         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
7116         [POSIX] (EADDRNOTAVAIL): Likewise.
7117         [POSIX] (EAFNOSUPPORT): Likewise.
7118         [POSIX] (EALREADY): Likewise.
7119         [POSIX] (ECONNABORTED): Likewise.
7120         [POSIX] (ECONNREFUSED): Likewise.
7121         [POSIX] (ECONNRESET): Likewise.
7122         [POSIX] (EDESTADDRREQ): Likewise.
7123         [POSIX] (EDQUOT): Likewise.
7124         [POSIX] (EHOSTUNREACH): Likewise.
7125         [POSIX] (EIDRM): Likewise.
7126         [POSIX] (EISCONN): Likewise.
7127         [POSIX] (ELOOP): Likewise.
7128         [POSIX] (EMULTIHOP): Likewise.
7129         [POSIX] (ENETDOWN): Likewise.
7130         [POSIX] (ENETUNREACH): Likewise.
7131         [POSIX] (ENOBUFS): Likewise.
7132         [POSIX] (ENODATA): Likewise.
7133         [POSIX] (ENOLINK): Likewise.
7134         [POSIX] (ENOMSG): Likewise.
7135         [POSIX] (ENOPROTOOPT): Likewise.
7136         [POSIX] (ENOSR): Likewise.
7137         [POSIX] (ENOSTR): Likewise.
7138         [POSIX] (ENOTCONN): Likewise.
7139         [POSIX] (ENOTSOCK): Likewise.
7140         [POSIX] (EOPNOTSUPP): Likewise.
7141         [POSIX] (EOVERFLOW): Likewise.
7142         [POSIX] (EPROTO): Likewise.
7143         [POSIX] (EPROTONOSUPPORT): Likewise.
7144         [POSIX] (EPROTOTYPE): Likewise.
7145         [POSIX] (ESTALE): Likewise.
7146         [POSIX] (ETIME): Likewise.
7147         [POSIX] (ETXTBSY): Likewise.
7148         [POSIX] (EWOULDBLOCK): Likewise.
7149         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
7150         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
7151         [POSIX] (SEEK_CUR): Likewise.
7152         [POSIX] (SEEK_END): Likewise.
7153         [POSIX || UNIX98] (mode_t): Do not require.
7154         [POSIX] (off_t): Likewise.
7155         [POSIX] (pid_t): Likewise.
7156         [POSIX] (sys/stat.h): Do not allow header.
7157         [POSIX] (unistd.h): Likewise.
7158         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
7159         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
7160         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
7161         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
7162         require.
7163         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
7164         sigevent): Specify elements.
7165         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
7166         entry.
7167         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
7168         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
7169
7170         * conform/data/cpio.h-data [POSIX]: Disable whole file.
7171         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
7172         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
7173         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
7174         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
7175         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
7176         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
7177         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
7178         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
7179         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
7180         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
7181         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
7182         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
7183         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
7184         Likewise.
7185         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
7186         Likewise.
7187         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
7188         Likewise.
7189         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
7190         Likewise.
7191         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
7192         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
7193         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
7194         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
7195         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
7196         Specify lower bound on value.
7197         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
7198         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
7199         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
7200         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
7201         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
7202         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
7203         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
7204         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
7205         value.
7206         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
7207         as optional.
7208         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
7209         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
7210         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
7211         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
7212         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
7213         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
7214         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
7215         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
7216         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
7217         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
7218         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
7219         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
7220         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
7221         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
7222         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
7223         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
7224         entry.
7225         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
7226         optional.
7227         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
7228         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
7229         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
7230         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
7231         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
7232         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
7233         Likewise.
7234         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
7235         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
7236         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
7237         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
7238         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
7239         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
7240         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
7241         as optional.
7242         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
7243         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
7244         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
7245         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
7246         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
7247         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
7248         specify as optional.
7249         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
7250         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
7251         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
7252         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
7253         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
7254         [XPG3] (NL_LANGMAX): Likewise.
7255         [POSIX || XPG3] (NL_MSGMAX): Likewise.
7256         [POSIX || XPG3] (NL_NMAX): Likewise.
7257         [POSIX || XPG3] (NL_SETMAX): Likewise.
7258         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
7259         [XPG3] (NZERO): Likewise.
7260         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
7261         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
7262         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
7263         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
7264         (REG_ERANGE): Expect.
7265         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
7266         optional-constant.
7267         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
7268         Use (void) in prototype.
7269         [POSIX] (*_t): Allow.
7270         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
7271         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
7272         (WRDE_BADVAL): Expect.
7273
7274         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
7275         expect.
7276         [XPG3 || XPG4] (O_RSYNC): Likewise.
7277         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
7278         Likewise.
7279         [XPG3 || XPG4] (pthread_sigmask): Likewise.
7280         [XPG3 || XPG4] (sigqueue): Likewise.
7281         [XPG3 || XPG4] (sigtimedwait): Likewise.
7282         [XPG3 || XPG4] (sigwaitinfo): Likewise.
7283         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
7284         [XPG3 || XPG4] (vsnprintf): Likewise.
7285         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
7286         Likewise.
7287         [XPG3 || XPG4] (blksize_t): Likewise.
7288         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
7289         Likewise.
7290         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
7291         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
7292         [XPG3 || XPG4] (struct itimerspec): Likewise.
7293         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
7294         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
7295         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
7296         [XPG3 || XPG4] (clockid_t): Likewise.
7297         [XPG3 || XPG4] (timer_t): Likewise.
7298         [XPG3 || XPG4] (clock_getres): Likewise.
7299         [XPG3 || XPG4] (clock_gettime): Likewise.
7300         [XPG3 || XPG4] (clock_settime): Likewise.
7301         [XPG3 || XPG4] (nanosleep): Likewise.
7302         [XPG3 || XPG4] (timer_create): Likewise.
7303         [XPG3 || XPG4] (timer_delete): Likewise.
7304         [XPG3 || XPG4] (timer_gettime): Likewise.
7305         [XPG3 || XPG4] (timer_getoverrun): Likewise.
7306         [XPG3 || XPG4] (timer_settime): Likewise.
7307         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
7308         [XPG3 || XPG4] (getlogin_r): Likewise.
7309         [XPG3 || XPG4] (pread): Likewise.
7310         [XPG3 || XPG4] (pthread_atfork): Likewise.
7311         [XPG3 || XPG4] (pwrite): Likewise.
7312
7313         [BZ #14835]
7314         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
7315         <bits/siginfo.h>.
7316
7317 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
7318
7319         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
7320         finalizing MALLSTREAM.
7321
7322         * sysdeps/mach/hurd/syncfs.c: New file.
7323
7324 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7325
7326         [BZ #14719]
7327         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
7328         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
7329         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
7330         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
7331         (_nss_dns_gethostbyname4_r): Likewise.
7332         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
7333         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
7334
7335 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
7336
7337         [BZ #13763]
7338         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
7339
7340 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
7341
7342         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
7343         * elf/cache.c (print_entry): Print ",AArch64" for
7344         FLAG_AARCH64_LIB64
7345
7346         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
7347         * elf/cache.c (print_entry): Print ",hard-float" for
7348         FLAG_ARM_LIBHF.
7349
7350 2012-11-18  David S. Miller  <davem@davemloft.net>
7351
7352         With help from Joseph Myers.
7353         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
7354         cutoff to 2**-13.
7355         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
7356         cutoff to 2**-25.
7357         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
7358         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
7359         small.
7360         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
7361         * math/libm-test.inc (y0_test): New tests.
7362         (y1_test): New tests.
7363         * sysdeps/i386/fpu/libm-test-ulps: Update.
7364         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7366
7367 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
7368
7369         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
7370         64-bit targets.
7371         * configure: Regenerated.
7372
7373 2012-11-17  David S. Miller  <davem@davemloft.net>
7374
7375         [BZ #14811]
7376         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
7377         nonzero exponents with absolute value below 0x1p-128 to +/-
7378         0x1p-128.
7379
7380 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
7381
7382         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
7383
7384         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
7385
7386         * posix/getconf-speclist.c: New file.
7387         * posix/posix-envs.def: Likewise.
7388         * posix/confstr.c (START_ENV_GROUP): New macro.
7389         (END_ENV_GROUP): Likewise.
7390         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
7391         (KNOWN_PRESENT_ENV_STRING): Likewise.
7392         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
7393         (UNKNOWN_ENVIRONMENT): Likewise.
7394         (confstr): Include posix-envs.def instead of handling
7395         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
7396         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
7397         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
7398         (END_ENV_GROUP): Likewise.
7399         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
7400         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
7401         (UNKNOWN_ENVIRONMENT): Likewise.
7402         (__sysconf): Include posix-envs.def instead of handling associated
7403         cases directly here.
7404         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
7405         preprocessing getconf-speclist.c rather than running getconf or
7406         generating empty file.
7407
7408 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
7409
7410         * scripts/check-local-headers.sh: Ignore 'mach' headers.
7411
7412 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
7413
7414         [BZ #14672]
7415         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
7416
7417 2012-11-16  David S. Miller  <davem@davemloft.net>
7418
7419         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
7420         smaller than LDBL_EPSILON/2.0L, just return xm1.
7421
7422 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
7423
7424         * elf/tst-array1.c (init): Set constructor priority to 1000.
7425         (fini): Set destructor priority to 1000.
7426         * elf/tst-array2dep.c: Likewise.
7427
7428 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7429
7430         [BZ #11741]
7431         * libio/fileops.c (_IO_new_file_write): Correctly return error.
7432         (_IO_new_file_xsputn): Also return EOF if none of the input
7433         data was written when overflow failed.
7434         * libio/iopadn.c (_IO_padn): Likewise.
7435         * libio/iowpadn.c (_IO_wpadn): Likewise.
7436         * stdio-common/tst-put-error.c: Add copyright notice.
7437         (do_test): Add case for printing padded string.
7438         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
7439         _IO_padn returned error.
7440         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
7441         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
7442         return EOF.
7443
7444 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7445
7446         * libio/libioP.h: Add comment note that the references to C++
7447         bits are now obsolete.
7448
7449 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7450
7451         * math/libm-test.inc (check_complex): Use asprintf.
7452
7453 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
7454
7455         * debug/pcprofiledump.c (print_version): Update copyright year.
7456         * malloc/memusagestat.c (print_version): Likewise.
7457
7458 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7459
7460         [BZ #14831]
7461         * elf/Makefile (tests): Add tst-audit8.
7462         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
7463         ($(objpfx)tst-audit8.out): New target.
7464         (tst-audit8-ENV): New variable.
7465         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
7466         audit if l_reloc_result is NULL.
7467         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
7468         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
7469         * elf/tst-audit8.c: New file.
7470
7471 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7472
7473         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
7474         * misc/Makefile (CFLAGS-select.c): Define.
7475         * posix/Makefile (CFLAGS-pause.c): Define.
7476
7477 2012-11-13  David S. Miller  <davem@davemloft.net>
7478
7479         * crypt/Makefile: Move test targets after toplevel Rules
7480         inclusion.  Grab any necessary sysdep routines when linking.
7481         * crypt/md5.c (md5_process_block): Remove define, we will always
7482         name it __md5_process_block.
7483         (md5_finish_ctx): Update md5_process_block call.
7484         (md5_stream): Likewise.
7485         (md5_process_bytes): Likewise.
7486         (md5_process_block): Rename to __md5_process_block and move to ...
7487         * crypt/md5-block.c: ... here.
7488         * crypt/sha256.c (sha256_process_block): Move to ...
7489         * crypt/sha256-block.c: ... here.
7490         * crypt/sha512.c (sha512_process_block): Move to ...
7491         * crypt/sha512-block.c: ... here.
7492         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
7493         path.
7494         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
7495         * sysdeps/sparc/sparc64/multiarch/Makefile
7496         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
7497         crypt subdir.
7498         (localedef-aux): Add md5 crypto assembler when in locale subdir.
7499         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
7500         multiarch changes.
7501         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
7502         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
7503         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
7504         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
7505         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
7506         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
7507         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
7508         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
7509         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
7510         file.
7511         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
7512         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
7513         file.
7514         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
7515
7516 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
7517
7518         * timezone/tzselect.ksh: Update from tzcode git revision
7519         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
7520         * timezone/zdump.c: Likewise.
7521         * timezone/zic.c: Likewise.
7522         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
7523         in TZVERSION setting, not $(PKGVERSION).
7524         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
7525         REPORT_BUGS_TO settings.
7526
7527         [BZ #14838]
7528         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
7529         macro.
7530
7531 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7532
7533         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
7534         detection to immediately after _FP_ROUND().
7535         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
7536         bits are 0.
7537
7538 2012-11-11  David S. Miller  <davem@davemloft.net>
7539
7540         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
7541         inttypes.h
7542         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
7543         __close rather than their public counterparts.
7544
7545 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
7546
7547         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
7548         file.
7549         [UNIX98] (sem_timedwait): Do not expect.
7550         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
7551         [XPG4 || UNIX98] (sockatmark): Do not expect.
7552         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
7553         (clock_getcpuclockid): Do not expect.
7554         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
7555         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
7556         Do not expect.
7557         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
7558         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
7559         [UNIX98] (vwscanf): Likewise.
7560         [UNIX98] (vswscanf): Likewise.
7561
7562 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
7563
7564         * timezone/version.h: Remove file.
7565         * timezone/README: Do not refer to version.h.
7566         * timezone/Makefile ($(objpfx)zic.o): New dependency on
7567         $(objpfx)version.h.
7568         ($(objpfx)zdump.o): Likewise.
7569         ($(objpfx)version.h): New target.
7570
7571         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
7572         2012i.
7573         * timezone/README: Don't mention modification to tzselect.ksh.
7574         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
7575         work on unmodified tzselect.ksh.  Substitute version numbers in
7576         tzselect.ksh.
7577
7578         * Makefile (format-me): Remove.
7579         (INSTALL): Adjust indentation.  Use commands directly instead of
7580         using $(format-me).
7581
7582         * aclocal.m4 (ACX_PKGVERSION): New macro.
7583         (ACX_BUGURL): Likewise.
7584         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
7585         (PKGVERSION): New AC_DEFINE_UNQUOTED.
7586         (REPORT_BUGS_TO): Likewise.
7587         * configure: Regenerated.
7588         * config.h.in (PKGVERSION): New macro.
7589         (REPORT_BUGS_TO): Likewise.
7590         * config.make.in (PKGVERSION): New variable.
7591         (PKGVERSION_TEXI): Likewise.
7592         (REPORT_BUGS_TO): Likewise.
7593         (REPORT_BUGS_TEXI): Likewise.
7594         * Makefile (format-me): Use -I$(common-objpfx)manual.
7595         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
7596         ($(common-objpfx)manual/%): New target.
7597         (manual/%): Remove target.
7598         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
7599         (print_version): Use PKGVERSION.
7600         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
7601         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
7602         and REPORT_BUGS_TO.
7603         ($(objpfx)xtrace): Likewise.
7604         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
7605         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
7606         (print_version): Use PKGVERSION.
7607         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
7608         (do_version): Use PKGVERSION.
7609         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
7610         REPORT_BUGS_TO.
7611         (common-ldd-rewrite): Likewise.
7612         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
7613         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
7614         (print_version): Use PKGVERSION.
7615         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
7616         * elf/pldd.c (argp_program_bug_address): Remove variable.
7617         (more_help): New function.
7618         (argp): Use more_help.
7619         (print_version): Use PKGVERSION.
7620         * elf/sln.c (main): Use PKGVERSION.
7621         (usage): Use REPORT_BUGS_TO.
7622         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
7623         (top level): Use PKGVERSION.
7624         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
7625         (print_version): Use PKGVERSION.
7626         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
7627         (print_version): Use PKGVERSION.
7628         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
7629         (print_version): Use PKGVERSION.
7630         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
7631         (print_version): Use PKGVERSION.
7632         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
7633         (print_version): Use PKGVERSION.
7634         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
7635         (print_version): Use PKGVERSION.
7636         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
7637         and BUGURL.
7638         ($(objpfx)memusage): Likewise.
7639         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
7640         (do_version): Use PKGVERSION.
7641         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
7642         (print_version): Use PKGVERSION.
7643         * malloc/mtrace.pl ($PACKAGE): Remove variable.
7644         ($PKGVERSION): New variable.
7645         ($REPORT_BUGS_TO): Likewise.
7646         (usage): Use $REPORT_BUGS_TO.
7647         (top level): Use $PKGVERSION.
7648         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
7649         ($(objpfx)pkgvers.texi): New rule.
7650         ($(objpfx)stamp-pkgvers): Likewise.
7651         * manual/install.texi: Include pkgvers.texi.
7652         (--with-pkgversion): Document new configure option.
7653         (--with-bugurl): Likewise.
7654         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
7655         than necessarily for this particular distribution.  Use
7656         REPORT_BUGS_TO for where to report bugs.
7657         * INSTALL: Regenerated.
7658         * manual/libc.texinfo: Include pkgvers.texi.
7659         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
7660         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
7661         (print_version): Use PKGVERSION.
7662         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
7663         (print_version): Use PKGVERSION.
7664         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
7665         (print_version): Use PKGVERSION.
7666         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
7667         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
7668         macro.
7669         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
7670         (print_version): Use PKGVERSION.
7671         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
7672         (print_version): Use PKGVERSION.
7673         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
7674         and PKGVERSION.
7675
7676         * timezone/checktab.awk: Update from tzcode 2012i.
7677         * timezone/ialloc.c: Likewise.
7678         * timezone/private.h: Likewise.
7679         * timezone/scheck.c: Likewise.
7680         * timezone/tzfile.h: Likewise.
7681         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
7682         (TZVERSION): Hardcode tzcode version number.
7683         * timezone/zdump.c: Update from tzcode 2012i.
7684         * timezone/zic.c: Likewise.
7685         * timezone/version.h: New file.
7686         * timezone/README: Describe version.h.  Update upstream location.
7687
7688         [BZ #14824]
7689         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
7690         (mktemp): Enable declaration.
7691         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
7692         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
7693         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
7694         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
7695         Likewise.
7696         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
7697         Likewise.
7698         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
7699         Likewise.
7700         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
7701         Likewise.
7702         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
7703         Likewise.
7704         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
7705         Likewise.
7706
7707         [BZ #14821]
7708         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
7709         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
7710         for copies of such integer values.
7711         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
7712         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
7713
7714 2012-11-09  Andreas Jaeger  <aj@suse.de>
7715
7716         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
7717         definitions and declarations that are provided by
7718         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7719
7720 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7721
7722         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
7723         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
7724         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
7725         definition.
7726
7727 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7728
7729         * elf/elf.h: Update comment before AArch64 relocations.
7730
7731 2012-11-07  David S. Miller  <davem@davemloft.net>
7732
7733         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
7734         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
7735         (__start_context): Declare.
7736         (__makecontext_ret): Delete.
7737         (__makecontext): Hook up __start_context instead of
7738         __makecontext_ret.
7739         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7740         (sysdep_routines): Add __start_context when in stdlib.
7741
7742 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7743
7744         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
7745         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
7746         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
7747         hardcoded "nm".
7748         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
7749         (READELF): New variable.  Use it instead of hardcoded "readelf".
7750
7751 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7752
7753         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
7754         * sysdeps/x86/Makefile: Here.
7755         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
7756         * sysdeps/x86/tst-xmmymm.sh: This.
7757
7758 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7759
7760         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
7761         expectations.
7762         [UNIX98] (pthread_barrier_t): Do not expect.
7763         [UNIX98] (pthread_barrierattr_t): Likewise.
7764         [UNIX98] (pthread_spinlock_t): Likewise.
7765         [UNIX98] (pthread_barrier_destroy): Likewise.
7766         [UNIX98] (pthread_barrier_init): Likewise.
7767         [UNIX98] (pthread_barrier_wait): Likewise.
7768         [UNIX98] (pthread_barrierattr_destroy): Likewise.
7769         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
7770         [UNIX98] (pthread_barrierattr_init): Likewise.
7771         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
7772         [UNIX98] (pthread_getcpuclockid): Likewise.
7773         [UNIX98] (pthread_mutex_timedlock): Likewise.
7774         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
7775         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
7776         [UNIX98] (pthread_sigmask): Likewise.
7777         [UNIX98] (pthread_spin_destroy): Likewise.
7778         [UNIX98] (pthread_spin_init): Likewise.
7779         [UNIX98] (pthread_spin_lock): Likewise.
7780         [UNIX98] (pthread_spin_trylock): Likewise.
7781         [UNIX98] (pthread_spin_unlock): Likewise.
7782         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
7783         Do not expect.
7784         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
7785         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
7786         [XPG3 || XPG4] (pthread_cond_t): Likewise.
7787         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
7788         [XPG3 || XPG4] (pthread_key_t): Likewise.
7789         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
7790         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
7791         [XPG3 || XPG4] (pthread_once_t): Likewise.
7792         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
7793         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
7794         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
7795         [XPG3 || XPG4] (pthread_t): Likewise.
7796
7797         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
7798         not expect.
7799         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
7800
7801         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
7802         Change function return type to int.
7803
7804         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
7805         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
7806         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
7807         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
7808         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
7809         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
7810         [!POSIX] (posix_madvise): Likewise.
7811         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
7812         && !UNIX98].
7813         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
7814         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
7815         (mode_t): Likewise.
7816         (posix_mem_offset): Likewise.
7817         (posix_typed_mem_get_info): Likewise.
7818         (posix_typed_mem_open): Likewise.
7819
7820         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
7821         Change condition to [XOPEN2K8].
7822
7823         * conform/conformtest.pl: Preprocess allow-header data with -x c
7824         instead of from stdin.
7825         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
7826         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
7827         [C99-based standards] (cerfc): Likewise.
7828         [C99-based standards] (cexp2): Likewise.
7829         [C99-based standards] (cexpm1): Likewise.
7830         [C99-based standards] (clog10): Likewise.
7831         [C99-based standards] (clog1p): Likewise.
7832         [C99-based standards] (clog2): Likewise.
7833         [C99-based standards] (clgamma): Likewise.
7834         [C99-based standards] (ctgamma): Likewise.
7835         [C99-based standards] (cerff): Likewise.
7836         [C99-based standards] (cerfcf): Likewise.
7837         [C99-based standards] (cexp2f): Likewise.
7838         [C99-based standards] (cexpm1f): Likewise.
7839         [C99-based standards] (clog10f): Likewise.
7840         [C99-based standards] (clog1pf): Likewise.
7841         [C99-based standards] (clog2f): Likewise.
7842         [C99-based standards] (clgammaf): Likewise.
7843         [C99-based standards] (ctgammaf): Likewise.
7844         [C99-based standards] (cerfl): Likewise.
7845         [C99-based standards] (cerfcl): Likewise.
7846         [C99-based standards] (cexp2l): Likewise.
7847         [C99-based standards] (cexpm1l): Likewise.
7848         [C99-based standards] (clog10l): Likewise.
7849         [C99-based standards] (clog1pl): Likewise.
7850         [C99-based standards] (clog2l): Likewise.
7851         [C99-based standards] (clgammal): Likewise.
7852         [C99-based standards] (ctgammal): Likewise.
7853         * conform/data/inttypes.h-data [C99-based standards]: Include
7854         stdint.h-data.  Remove all expectations for stdint.h contents.
7855         [C99-based standards] (PRI*): Do not allow.
7856         [C99-based standards] (SCN*): Likewise.
7857         [C99-based standards] (*_t): Likewise.
7858         [C99-based-standards] (PRId8): Expect macro.
7859         [C99-based-standards] (PRIi8): Likewise.
7860         [C99-based-standards] (PRIo8): Likewise.
7861         [C99-based-standards] (PRIu8): Likewise.
7862         [C99-based-standards] (PRIx8): Likewise.
7863         [C99-based-standards] (PRIX8): Likewise.
7864         [C99-based-standards] (SCNd8): Likewise.
7865         [C99-based-standards] (SCNi8): Likewise.
7866         [C99-based-standards] (SCNo8): Likewise.
7867         [C99-based-standards] (SCNu8): Likewise.
7868         [C99-based-standards] (SCNx8): Likewise.
7869         [C99-based-standards] (PRIdLEAST8): Likewise.
7870         [C99-based-standards] (PRIiLEAST8): Likewise.
7871         [C99-based-standards] (PRIoLEAST8): Likewise.
7872         [C99-based-standards] (PRIuLEAST8): Likewise.
7873         [C99-based-standards] (PRIxLEAST8): Likewise.
7874         [C99-based-standards] (PRIXLEAST8): Likewise.
7875         [C99-based-standards] (SCNdLEAST8): Likewise.
7876         [C99-based-standards] (SCNiLEAST8): Likewise.
7877         [C99-based-standards] (SCNoLEAST8): Likewise.
7878         [C99-based-standards] (SCNuLEAST8): Likewise.
7879         [C99-based-standards] (SCNxLEAST8): Likewise.
7880         [C99-based-standards] (PRIdFAST8): Likewise.
7881         [C99-based-standards] (PRIiFAST8): Likewise.
7882         [C99-based-standards] (PRIoFAST8): Likewise.
7883         [C99-based-standards] (PRIuFAST8): Likewise.
7884         [C99-based-standards] (PRIxFAST8): Likewise.
7885         [C99-based-standards] (PRIXFAST8): Likewise.
7886         [C99-based-standards] (SCNdFAST8): Likewise.
7887         [C99-based-standards] (SCNiFAST8): Likewise.
7888         [C99-based-standards] (SCNoFAST8): Likewise.
7889         [C99-based-standards] (SCNuFAST8): Likewise.
7890         [C99-based-standards] (SCNxFAST8): Likewise.
7891         [C99-based-standards] (PRId16): Likewise.
7892         [C99-based-standards] (PRIi16): Likewise.
7893         [C99-based-standards] (PRIo16): Likewise.
7894         [C99-based-standards] (PRIu16): Likewise.
7895         [C99-based-standards] (PRIx16): Likewise.
7896         [C99-based-standards] (PRIX16): Likewise.
7897         [C99-based-standards] (SCNd16): Likewise.
7898         [C99-based-standards] (SCNi16): Likewise.
7899         [C99-based-standards] (SCNo16): Likewise.
7900         [C99-based-standards] (SCNu16): Likewise.
7901         [C99-based-standards] (SCNx16): Likewise.
7902         [C99-based-standards] (PRIdLEAST16): Likewise.
7903         [C99-based-standards] (PRIiLEAST16): Likewise.
7904         [C99-based-standards] (PRIoLEAST16): Likewise.
7905         [C99-based-standards] (PRIuLEAST16): Likewise.
7906         [C99-based-standards] (PRIxLEAST16): Likewise.
7907         [C99-based-standards] (PRIXLEAST16): Likewise.
7908         [C99-based-standards] (SCNdLEAST16): Likewise.
7909         [C99-based-standards] (SCNiLEAST16): Likewise.
7910         [C99-based-standards] (SCNoLEAST16): Likewise.
7911         [C99-based-standards] (SCNuLEAST16): Likewise.
7912         [C99-based-standards] (SCNxLEAST16): Likewise.
7913         [C99-based-standards] (PRIdFAST16): Likewise.
7914         [C99-based-standards] (PRIiFAST16): Likewise.
7915         [C99-based-standards] (PRIoFAST16): Likewise.
7916         [C99-based-standards] (PRIuFAST16): Likewise.
7917         [C99-based-standards] (PRIxFAST16): Likewise.
7918         [C99-based-standards] (PRIXFAST16): Likewise.
7919         [C99-based-standards] (SCNdFAST16): Likewise.
7920         [C99-based-standards] (SCNiFAST16): Likewise.
7921         [C99-based-standards] (SCNoFAST16): Likewise.
7922         [C99-based-standards] (SCNuFAST16): Likewise.
7923         [C99-based-standards] (SCNxFAST16): Likewise.
7924         [C99-based-standards] (PRId32): Likewise.
7925         [C99-based-standards] (PRIi32): Likewise.
7926         [C99-based-standards] (PRIo32): Likewise.
7927         [C99-based-standards] (PRIu32): Likewise.
7928         [C99-based-standards] (PRIx32): Likewise.
7929         [C99-based-standards] (PRIX32): Likewise.
7930         [C99-based-standards] (SCNd32): Likewise.
7931         [C99-based-standards] (SCNi32): Likewise.
7932         [C99-based-standards] (SCNo32): Likewise.
7933         [C99-based-standards] (SCNu32): Likewise.
7934         [C99-based-standards] (SCNx32): Likewise.
7935         [C99-based-standards] (PRIdLEAST32): Likewise.
7936         [C99-based-standards] (PRIiLEAST32): Likewise.
7937         [C99-based-standards] (PRIoLEAST32): Likewise.
7938         [C99-based-standards] (PRIuLEAST32): Likewise.
7939         [C99-based-standards] (PRIxLEAST32): Likewise.
7940         [C99-based-standards] (PRIXLEAST32): Likewise.
7941         [C99-based-standards] (SCNdLEAST32): Likewise.
7942         [C99-based-standards] (SCNiLEAST32): Likewise.
7943         [C99-based-standards] (SCNoLEAST32): Likewise.
7944         [C99-based-standards] (SCNuLEAST32): Likewise.
7945         [C99-based-standards] (SCNxLEAST32): Likewise.
7946         [C99-based-standards] (PRIdFAST32): Likewise.
7947         [C99-based-standards] (PRIiFAST32): Likewise.
7948         [C99-based-standards] (PRIoFAST32): Likewise.
7949         [C99-based-standards] (PRIuFAST32): Likewise.
7950         [C99-based-standards] (PRIxFAST32): Likewise.
7951         [C99-based-standards] (PRIXFAST32): Likewise.
7952         [C99-based-standards] (SCNdFAST32): Likewise.
7953         [C99-based-standards] (SCNiFAST32): Likewise.
7954         [C99-based-standards] (SCNoFAST32): Likewise.
7955         [C99-based-standards] (SCNuFAST32): Likewise.
7956         [C99-based-standards] (SCNxFAST32): Likewise.
7957         [C99-based-standards] (PRId64): Likewise.
7958         [C99-based-standards] (PRIi64): Likewise.
7959         [C99-based-standards] (PRIo64): Likewise.
7960         [C99-based-standards] (PRIu64): Likewise.
7961         [C99-based-standards] (PRIx64): Likewise.
7962         [C99-based-standards] (PRIX64): Likewise.
7963         [C99-based-standards] (SCNd64): Likewise.
7964         [C99-based-standards] (SCNi64): Likewise.
7965         [C99-based-standards] (SCNo64): Likewise.
7966         [C99-based-standards] (SCNu64): Likewise.
7967         [C99-based-standards] (SCNx64): Likewise.
7968         [C99-based-standards] (PRIdLEAST64): Likewise.
7969         [C99-based-standards] (PRIiLEAST64): Likewise.
7970         [C99-based-standards] (PRIoLEAST64): Likewise.
7971         [C99-based-standards] (PRIuLEAST64): Likewise.
7972         [C99-based-standards] (PRIxLEAST64): Likewise.
7973         [C99-based-standards] (PRIXLEAST64): Likewise.
7974         [C99-based-standards] (SCNdLEAST64): Likewise.
7975         [C99-based-standards] (SCNiLEAST64): Likewise.
7976         [C99-based-standards] (SCNoLEAST64): Likewise.
7977         [C99-based-standards] (SCNuLEAST64): Likewise.
7978         [C99-based-standards] (SCNxLEAST64): Likewise.
7979         [C99-based-standards] (PRIdFAST64): Likewise.
7980         [C99-based-standards] (PRIiFAST64): Likewise.
7981         [C99-based-standards] (PRIoFAST64): Likewise.
7982         [C99-based-standards] (PRIuFAST64): Likewise.
7983         [C99-based-standards] (PRIxFAST64): Likewise.
7984         [C99-based-standards] (PRIXFAST64): Likewise.
7985         [C99-based-standards] (SCNdFAST64): Likewise.
7986         [C99-based-standards] (SCNiFAST64): Likewise.
7987         [C99-based-standards] (SCNoFAST64): Likewise.
7988         [C99-based-standards] (SCNuFAST64): Likewise.
7989         [C99-based-standards] (SCNxFAST64): Likewise.
7990         [C99-based-standards] (PRIdMAX): Likewise.
7991         [C99-based-standards] (PRIiMAX): Likewise.
7992         [C99-based-standards] (PRIoMAX): Likewise.
7993         [C99-based-standards] (PRIuMAX): Likewise.
7994         [C99-based-standards] (PRIxMAX): Likewise.
7995         [C99-based-standards] (PRIXMAX): Likewise.
7996         [C99-based-standards] (SCNdMAX): Likewise.
7997         [C99-based-standards] (SCNiMAX): Likewise.
7998         [C99-based-standards] (SCNoMAX): Likewise.
7999         [C99-based-standards] (SCNuMAX): Likewise.
8000         [C99-based-standards] (SCNxMAX): Likewise.
8001         [C99-based-standards] (PRIdPTR): Likewise.
8002         [C99-based-standards] (PRIiPTR): Likewise.
8003         [C99-based-standards] (PRIoPTR): Likewise.
8004         [C99-based-standards] (PRIuPTR): Likewise.
8005         [C99-based-standards] (PRIxPTR): Likewise.
8006         [C99-based-standards] (PRIXPTR): Likewise.
8007         [C99-based-standards] (SCNdPTR): Likewise.
8008         [C99-based-standards] (SCNiPTR): Likewise.
8009         [C99-based-standards] (SCNoPTR): Likewise.
8010         [C99-based-standards] (SCNuPTR): Likewise.
8011         [C99-based-standards] (SCNxPTR): Likewise.
8012         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
8013         allow.
8014         * conform/data/stdint.h-data: Update comments to clarify
8015         requirements.
8016         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
8017         type.
8018         [C99-based standards] (INT8_MAX): Likewise.
8019         [C99-based standards] (INT16_MIN): Likewise.
8020         [C99-based standards] (INT16_MAX): Likewise.
8021         [C99-based standards] (INT32_MIN): Likewise.
8022         [C99-based standards] (INT32_MAX): Likewise.
8023         [C99-based standards] (INT64_MIN): Likewise.
8024         [C99-based standards] (INT64_MAX): Likewise.
8025         [C99-based standards] (UINT8_MAX): Likewise.
8026         [C99-based standards] (UINT16_MAX): Likewise.
8027         [C99-based standards] (UINT32_MAX): Likewise.
8028         [C99-based standards] (UINT64_MAX): Likewise.
8029         [C99-based standards] (INT_LEAST8_MIN): Likewise.
8030         [C99-based standards] (INT_LEAST8_MAX): Likewise.
8031         [C99-based standards] (INT_LEAST16_MIN): Likewise.
8032         [C99-based standards] (INT_LEAST16_MAX): Likewise.
8033         [C99-based standards] (INT_LEAST32_MIN): Likewise.
8034         [C99-based standards] (INT_LEAST32_MAX): Likewise.
8035         [C99-based standards] (INT_LEAST64_MIN): Likewise.
8036         [C99-based standards] (INT_LEAST64_MAX): Likewise.
8037         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
8038         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
8039         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
8040         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
8041         [C99-based standards] (INT_FAST8_MIN): Likewise.
8042         [C99-based standards] (INT_FAST8_MAX): Likewise.
8043         [C99-based standards] (INT_FAST16_MIN): Likewise.
8044         [C99-based standards] (INT_FAST16_MAX): Likewise.
8045         [C99-based standards] (INT_FAST32_MIN): Likewise.
8046         [C99-based standards] (INT_FAST32_MAX): Likewise.
8047         [C99-based standards] (INT_FAST64_MIN): Likewise.
8048         [C99-based standards] (INT_FAST64_MAX): Likewise.
8049         [C99-based standards] (UINT_FAST8_MAX): Likewise.
8050         [C99-based standards] (UINT_FAST16_MAX): Likewise.
8051         [C99-based standards] (UINT_FAST32_MAX): Likewise.
8052         [C99-based standards] (UINT_FAST64_MAX): Likewise.
8053         [C99-based standards] (INTPTR_MIN): Likewise.
8054         [C99-based standards] (INTPTR_MAX): Likewise.
8055         [C99-based standards] (UINTPTR_MAX): Likewise.
8056         [C99-based standards] (INTMAX_MIN): Likewise.
8057         [C99-based standards] (INTMAX_MAX): Likewise.
8058         [C99-based standards] (UINTMAX_MAX): Likewise.
8059         [C99-based standards] (PTRDIFF_MIN): Likewise.
8060         [C99-based standards] (PTRDIFF_MAX): Likewise.
8061         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
8062         [C99-based standards] (SIZE_MAX): Likewise.
8063         [C99-based standards] (WCHAR_MAX): Likewise.
8064         [C99-based standards] (WINT_MAX): Likewise.
8065         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
8066         constraint on value.
8067         [C99-based standards] (WCHAR_MIN): Likewise.
8068         [C99-based standards] (WINT_MIN): Likewise.
8069         [C99-based standards] (*_t): Allow.
8070         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
8071         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
8072         Include math.h-data and complex.h-data.  Remove all expectations
8073         of math.h and complex.h contents.
8074         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
8075         at end of line.
8076         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
8077         (struct tm): Expect tag.
8078         [C99-based-standards] (wcstof): Expect function.
8079         [C99-based-standards] (wcstold): Likewise.
8080         [C99-based-standards] (wcstoll): Likewise.
8081         [C99-based-standards] (wcstoull): Likewise.
8082         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
8083         macro-int-constant.  Specify type.
8084         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
8085         constraint on value.
8086         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
8087         Specify type.
8088         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
8089         Specify value.
8090         [ISO C standards]: Do not allow headers.
8091         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
8092         wcs[abcdefghijklmnopqrstuvwxyz]*.
8093         [ISO C standards] (*_t): Do not allow.
8094         * conform/data/wctype.h-data [C99-based standards] (iswblank):
8095         Expect function.
8096         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
8097         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
8098         Specify type.
8099         [ISO C standards]: Do not allow headers.
8100         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
8101         is[abcdefghijklmnopqrstuvwxyz]*.
8102         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
8103         to[abcdefghijklmnopqrstuvwxyz]*.
8104         [ISO C standards] (*_t): Do not allow.
8105         * conform/data/stdalign.h-data: New file.
8106         * conform/data/stdbool.h-data: Likewise.
8107         * conform/data/stdnoreturn.h-data: Likewise.
8108
8109 2012-11-07  Roland McGrath  <roland@hack.frob.com>
8110
8111         [BZ #14815]
8112         * manual/filesys.texi (Directory Entries): Typo fix.
8113         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
8114
8115 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8116
8117         * elf/elf.h (EM_AARCH64): New macro.
8118         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
8119         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
8120         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
8121         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
8122         (R_AARCH64_TLSDESC): Likewise.
8123         (NT_ARM_TLS): Likewise.
8124         (NT_ARM_HW_BREAK): Likewise.
8125         (NT_ARM_HW_WATCH): Likewise.
8126
8127 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8128
8129         [BZ #14811]
8130         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
8131         (__ieee754_powl): Saturate nonzero exponents with absolute value
8132         below 0x1p-79 to +/- 0x1p-79.
8133         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
8134         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
8135         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
8136         nonzero exponents with absolute value below 0x1p-32 to +/-
8137         0x1p-32.
8138         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
8139         (__ieee754_powl): Saturate nonzero exponents with absolute value
8140         below 0x1p-79 to +/- 0x1p-79.
8141         * math/libm-test.inc (pow_test): Add more tests.
8142
8143 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8144
8145         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
8146         _dl_s390_cap_flags with kernel. Increase string length.
8147         (_dl_s390_platforms): Add z196 and zEC12.
8148
8149 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8150
8151         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
8152         Change XOPEN21K to XOPEN2K.
8153
8154 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
8155
8156         * string/memmove.c: Use memcpy when possible.
8157
8158 2012-11-06  Andreas Jaeger  <aj@suse.de>
8159
8160         * po/eo.po: Update from translation team.
8161
8162 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
8163
8164         [BZ #14793]
8165         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
8166         exponent and small x and y exponents, scale x or y up.  Increase
8167         by 2 the exponent used in scaling up.
8168         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8169         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8170         * math/libm-test.inc (fma_test): Add more tests.
8171         (fma_test_towardzero): Likewise.
8172         (fma_test_downward): Likewise.
8173         (fma_test_upward): Likewise.
8174
8175 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
8176
8177         [BZ #14805]
8178         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
8179         fenv_t *.
8180
8181         [BZ #14801]
8182         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
8183         namespace for names of struct fields.
8184         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
8185         fenv_t fields.
8186         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
8187         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
8188
8189 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8190
8191         [BZ #3665]
8192         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8193
8194 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
8195
8196         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
8197         PTR_DEMANGLE.
8198
8199         [BZ #5246]
8200         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
8201         PTR_DEMANGLE.
8202
8203 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
8204
8205         [BZ #14797]
8206         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
8207         definitely overflow as x * y not x * y + z.
8208         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8209         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8210         * math/libm-test.inc (fma_test): Add more tests.
8211         (fma_test_towardzero): Likewise.
8212         (fma_test_downward): Likewise.
8213         (fma_test_upward): Likewise.
8214
8215 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
8216
8217         [BZ #157]
8218
8219         * include/stub-tag.h: Remove file.
8220         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
8221         '#include' of it.
8222         * manual/maint.texi (Porting): Don't reference it.
8223         * Makerules ($(objpfx)stubs): Likewise.
8224         * dirent/closedir.c: Don't include <stub-tag.h>.
8225         * dirent/dirfd.c: Likewise.
8226         * dirent/fdopendir.c: Likewise.
8227         * dirent/getdents.c: Likewise.
8228         * dirent/getdents64.c: Likewise.
8229         * dirent/opendir.c: Likewise.
8230         * dirent/readdir.c: Likewise.
8231         * dirent/readdir64.c: Likewise.
8232         * dirent/readdir64_r.c: Likewise.
8233         * dirent/readdir_r.c: Likewise.
8234         * dirent/rewinddir.c: Likewise.
8235         * dirent/seekdir.c: Likewise.
8236         * dirent/telldir.c: Likewise.
8237         * gmon/profil.c: Likewise.
8238         * grp/setgroups.c: Likewise.
8239         * inet/if_index.c: Likewise.
8240         * io/access.c: Likewise.
8241         * io/chdir.c: Likewise.
8242         * io/chmod.c: Likewise.
8243         * io/chown.c: Likewise.
8244         * io/close.c: Likewise.
8245         * io/dup.c: Likewise.
8246         * io/dup2.c: Likewise.
8247         * io/dup3.c: Likewise.
8248         * io/euidaccess.c: Likewise.
8249         * io/faccessat.c: Likewise.
8250         * io/fchdir.c: Likewise.
8251         * io/fchmod.c: Likewise.
8252         * io/fchmodat.c: Likewise.
8253         * io/fchown.c: Likewise.
8254         * io/fchownat.c: Likewise.
8255         * io/fcntl.c: Likewise.
8256         * io/flock.c: Likewise.
8257         * io/fstatfs.c: Likewise.
8258         * io/fstatfs64.c: Likewise.
8259         * io/fstatvfs.c: Likewise.
8260         * io/fstatvfs64.c: Likewise.
8261         * io/futimens.c: Likewise.
8262         * io/fxstat.c: Likewise.
8263         * io/fxstat64.c: Likewise.
8264         * io/fxstatat.c: Likewise.
8265         * io/fxstatat64.c: Likewise.
8266         * io/getcwd.c: Likewise.
8267         * io/isatty.c: Likewise.
8268         * io/lchmod.c: Likewise.
8269         * io/lchown.c: Likewise.
8270         * io/link.c: Likewise.
8271         * io/linkat.c: Likewise.
8272         * io/lseek.c: Likewise.
8273         * io/lseek64.c: Likewise.
8274         * io/lxstat64.c: Likewise.
8275         * io/mkdir.c: Likewise.
8276         * io/mkdirat.c: Likewise.
8277         * io/mkfifo.c: Likewise.
8278         * io/mkfifoat.c: Likewise.
8279         * io/open.c: Likewise.
8280         * io/open64.c: Likewise.
8281         * io/openat.c: Likewise.
8282         * io/openat64.c: Likewise.
8283         * io/pipe.c: Likewise.
8284         * io/pipe2.c: Likewise.
8285         * io/poll.c: Likewise.
8286         * io/posix_fadvise.c: Likewise.
8287         * io/posix_fadvise64.c: Likewise.
8288         * io/posix_fallocate.c: Likewise.
8289         * io/posix_fallocate64.c: Likewise.
8290         * io/read.c: Likewise.
8291         * io/readlink.c: Likewise.
8292         * io/readlinkat.c: Likewise.
8293         * io/rmdir.c: Likewise.
8294         * io/sendfile.c: Likewise.
8295         * io/sendfile64.c: Likewise.
8296         * io/statfs.c: Likewise.
8297         * io/statfs64.c: Likewise.
8298         * io/statvfs.c: Likewise.
8299         * io/statvfs64.c: Likewise.
8300         * io/symlink.c: Likewise.
8301         * io/symlinkat.c: Likewise.
8302         * io/ttyname.c: Likewise.
8303         * io/ttyname_r.c: Likewise.
8304         * io/umask.c: Likewise.
8305         * io/unlink.c: Likewise.
8306         * io/unlinkat.c: Likewise.
8307         * io/utime.c: Likewise.
8308         * io/utimensat.c: Likewise.
8309         * io/write.c: Likewise.
8310         * io/xmknod.c: Likewise.
8311         * io/xmknodat.c: Likewise.
8312         * io/xstat.c: Likewise.
8313         * io/xstat64.c: Likewise.
8314         * login/getpt.c: Likewise.
8315         * login/grantpt.c: Likewise.
8316         * login/unlockpt.c: Likewise.
8317         * math/e_acoshl.c: Likewise.
8318         * math/e_acosl.c: Likewise.
8319         * math/e_asinl.c: Likewise.
8320         * math/e_atan2l.c: Likewise.
8321         * math/e_atanhl.c: Likewise.
8322         * math/e_coshl.c: Likewise.
8323         * math/e_expl.c: Likewise.
8324         * math/e_fmodl.c: Likewise.
8325         * math/e_gammal_r.c: Likewise.
8326         * math/e_hypotl.c: Likewise.
8327         * math/e_j0l.c: Likewise.
8328         * math/e_j1l.c: Likewise.
8329         * math/e_jnl.c: Likewise.
8330         * math/e_lgammal_r.c: Likewise.
8331         * math/e_log10l.c: Likewise.
8332         * math/e_log2l.c: Likewise.
8333         * math/e_logl.c: Likewise.
8334         * math/e_powl.c: Likewise.
8335         * math/e_rem_pio2l.c: Likewise.
8336         * math/e_sinhl.c: Likewise.
8337         * math/e_sqrtl.c: Likewise.
8338         * math/fclrexcpt.c: Likewise.
8339         * math/fedisblxcpt.c: Likewise.
8340         * math/feenablxcpt.c: Likewise.
8341         * math/fegetenv.c: Likewise.
8342         * math/fegetexcept.c: Likewise.
8343         * math/fegetround.c: Likewise.
8344         * math/feholdexcpt.c: Likewise.
8345         * math/fesetenv.c: Likewise.
8346         * math/fesetround.c: Likewise.
8347         * math/feupdateenv.c: Likewise.
8348         * math/fgetexcptflg.c: Likewise.
8349         * math/fraiseexcpt.c: Likewise.
8350         * math/fsetexcptflg.c: Likewise.
8351         * math/ftestexcept.c: Likewise.
8352         * math/k_cosl.c: Likewise.
8353         * math/k_rem_pio2l.c: Likewise.
8354         * math/k_sinl.c: Likewise.
8355         * math/k_tanl.c: Likewise.
8356         * math/s_asinhl.c: Likewise.
8357         * math/s_atanl.c: Likewise.
8358         * math/s_cbrtl.c: Likewise.
8359         * math/s_erfl.c: Likewise.
8360         * math/s_expm1l.c: Likewise.
8361         * math/s_log1pl.c: Likewise.
8362         * math/s_tanhl.c: Likewise.
8363         * misc/acct.c: Likewise.
8364         * misc/brk.c: Likewise.
8365         * misc/chflags.c: Likewise.
8366         * misc/chroot.c: Likewise.
8367         * misc/fchflags.c: Likewise.
8368         * misc/fgetxattr.c: Likewise.
8369         * misc/flistxattr.c: Likewise.
8370         * misc/fremovexattr.c: Likewise.
8371         * misc/fsetxattr.c: Likewise.
8372         * misc/fsync.c: Likewise.
8373         * misc/ftruncate.c: Likewise.
8374         * misc/futimes.c: Likewise.
8375         * misc/futimesat.c: Likewise.
8376         * misc/getdomain.c: Likewise.
8377         * misc/getdtsz.c: Likewise.
8378         * misc/gethostid.c: Likewise.
8379         * misc/gethostname.c: Likewise.
8380         * misc/getloadavg.c: Likewise.
8381         * misc/getpagesize.c: Likewise.
8382         * misc/getsysstats.c: Likewise.
8383         * misc/getxattr.c: Likewise.
8384         * misc/gtty.c: Likewise.
8385         * misc/ioctl.c: Likewise.
8386         * misc/lgetxattr.c: Likewise.
8387         * misc/listxattr.c: Likewise.
8388         * misc/llistxattr.c: Likewise.
8389         * misc/lremovexattr.c: Likewise.
8390         * misc/lsetxattr.c: Likewise.
8391         * misc/lutimes.c: Likewise.
8392         * misc/madvise.c: Likewise.
8393         * misc/mincore.c: Likewise.
8394         * misc/mlock.c: Likewise.
8395         * misc/mlockall.c: Likewise.
8396         * misc/mmap.c: Likewise.
8397         * misc/mprotect.c: Likewise.
8398         * misc/msync.c: Likewise.
8399         * misc/munlock.c: Likewise.
8400         * misc/munlockall.c: Likewise.
8401         * misc/munmap.c: Likewise.
8402         * misc/preadv.c: Likewise.
8403         * misc/preadv64.c: Likewise.
8404         * misc/ptrace.c: Likewise.
8405         * misc/pwritev.c: Likewise.
8406         * misc/pwritev64.c: Likewise.
8407         * misc/readv.c: Likewise.
8408         * misc/reboot.c: Likewise.
8409         * misc/remap_file_pages.c: Likewise.
8410         * misc/removexattr.c: Likewise.
8411         * misc/revoke.c: Likewise.
8412         * misc/select.c: Likewise.
8413         * misc/setdomain.c: Likewise.
8414         * misc/setegid.c: Likewise.
8415         * misc/seteuid.c: Likewise.
8416         * misc/sethostid.c: Likewise.
8417         * misc/sethostname.c: Likewise.
8418         * misc/setregid.c: Likewise.
8419         * misc/setreuid.c: Likewise.
8420         * misc/setxattr.c: Likewise.
8421         * misc/sstk.c: Likewise.
8422         * misc/stty.c: Likewise.
8423         * misc/swapoff.c: Likewise.
8424         * misc/swapon.c: Likewise.
8425         * misc/sync.c: Likewise.
8426         * misc/syncfs.c: Likewise.
8427         * misc/syscall.c: Likewise.
8428         * misc/truncate.c: Likewise.
8429         * misc/ualarm.c: Likewise.
8430         * misc/usleep.c: Likewise.
8431         * misc/ustat.c: Likewise.
8432         * misc/utimes.c: Likewise.
8433         * misc/vhangup.c: Likewise.
8434         * misc/writev.c: Likewise.
8435         * posix/_exit.c: Likewise.
8436         * posix/alarm.c: Likewise.
8437         * posix/execve.c: Likewise.
8438         * posix/fexecve.c: Likewise.
8439         * posix/fork.c: Likewise.
8440         * posix/fpathconf.c: Likewise.
8441         * posix/getaddrinfo.c: Likewise.
8442         * posix/getegid.c: Likewise.
8443         * posix/geteuid.c: Likewise.
8444         * posix/getgid.c: Likewise.
8445         * posix/getgroups.c: Likewise.
8446         * posix/getlogin.c: Likewise.
8447         * posix/getlogin_r.c: Likewise.
8448         * posix/getpgid.c: Likewise.
8449         * posix/getpid.c: Likewise.
8450         * posix/getppid.c: Likewise.
8451         * posix/getresgid.c: Likewise.
8452         * posix/getresuid.c: Likewise.
8453         * posix/getsid.c: Likewise.
8454         * posix/getuid.c: Likewise.
8455         * posix/glob64.c: Likewise.
8456         * posix/nanosleep.c: Likewise.
8457         * posix/pathconf.c: Likewise.
8458         * posix/pause.c: Likewise.
8459         * posix/posix_madvise.c: Likewise.
8460         * posix/pread.c: Likewise.
8461         * posix/pread64.c: Likewise.
8462         * posix/pwrite.c: Likewise.
8463         * posix/pwrite64.c: Likewise.
8464         * posix/sched_getaffinity.c: Likewise.
8465         * posix/sched_getp.c: Likewise.
8466         * posix/sched_gets.c: Likewise.
8467         * posix/sched_primax.c: Likewise.
8468         * posix/sched_primin.c: Likewise.
8469         * posix/sched_rr_gi.c: Likewise.
8470         * posix/sched_setaffinity.c: Likewise.
8471         * posix/sched_setp.c: Likewise.
8472         * posix/sched_sets.c: Likewise.
8473         * posix/sched_yield.c: Likewise.
8474         * posix/setgid.c: Likewise.
8475         * posix/setlogin.c: Likewise.
8476         * posix/setpgid.c: Likewise.
8477         * posix/setresgid.c: Likewise.
8478         * posix/setresuid.c: Likewise.
8479         * posix/setsid.c: Likewise.
8480         * posix/setuid.c: Likewise.
8481         * posix/sleep.c: Likewise.
8482         * posix/spawni.c: Likewise.
8483         * posix/sysconf.c: Likewise.
8484         * posix/times.c: Likewise.
8485         * posix/wait.c: Likewise.
8486         * posix/wait3.c: Likewise.
8487         * posix/wait4.c: Likewise.
8488         * posix/waitpid.c: Likewise.
8489         * resolv/gai_sigqueue.c: Likewise.
8490         * resource/getpriority.c: Likewise.
8491         * resource/getrlimit.c: Likewise.
8492         * resource/getrusage.c: Likewise.
8493         * resource/nice.c: Likewise.
8494         * resource/setpriority.c: Likewise.
8495         * resource/setrlimit.c: Likewise.
8496         * resource/ulimit.c: Likewise.
8497         * rt/aio_cancel.c: Likewise.
8498         * rt/aio_fsync.c: Likewise.
8499         * rt/aio_read.c: Likewise.
8500         * rt/aio_sigqueue.c: Likewise.
8501         * rt/aio_suspend.c: Likewise.
8502         * rt/aio_write.c: Likewise.
8503         * rt/clock_getres.c: Likewise.
8504         * rt/clock_gettime.c: Likewise.
8505         * rt/clock_nanosleep.c: Likewise.
8506         * rt/clock_settime.c: Likewise.
8507         * rt/lio_listio.c: Likewise.
8508         * rt/mq_close.c: Likewise.
8509         * rt/mq_getattr.c: Likewise.
8510         * rt/mq_notify.c: Likewise.
8511         * rt/mq_open.c: Likewise.
8512         * rt/mq_receive.c: Likewise.
8513         * rt/mq_send.c: Likewise.
8514         * rt/mq_setattr.c: Likewise.
8515         * rt/mq_timedreceive.c: Likewise.
8516         * rt/mq_timedsend.c: Likewise.
8517         * rt/mq_unlink.c: Likewise.
8518         * rt/shm_open.c: Likewise.
8519         * rt/shm_unlink.c: Likewise.
8520         * rt/timer_create.c: Likewise.
8521         * rt/timer_delete.c: Likewise.
8522         * rt/timer_getoverr.c: Likewise.
8523         * rt/timer_gettime.c: Likewise.
8524         * rt/timer_settime.c: Likewise.
8525         * setjmp/__longjmp.c: Likewise.
8526         * setjmp/setjmp.c: Likewise.
8527         * signal/kill.c: Likewise.
8528         * signal/killpg.c: Likewise.
8529         * signal/raise.c: Likewise.
8530         * signal/sigaction.c: Likewise.
8531         * signal/sigaltstack.c: Likewise.
8532         * signal/sigblock.c: Likewise.
8533         * signal/sigignore.c: Likewise.
8534         * signal/sigintr.c: Likewise.
8535         * signal/signal.c: Likewise.
8536         * signal/sigpause.c: Likewise.
8537         * signal/sigpending.c: Likewise.
8538         * signal/sigqueue.c: Likewise.
8539         * signal/sigreturn.c: Likewise.
8540         * signal/sigset.c: Likewise.
8541         * signal/sigsetmask.c: Likewise.
8542         * signal/sigstack.c: Likewise.
8543         * signal/sigsuspend.c: Likewise.
8544         * signal/sigtimedwait.c: Likewise.
8545         * signal/sigvec.c: Likewise.
8546         * signal/sigwait.c: Likewise.
8547         * signal/sigwaitinfo.c: Likewise.
8548         * signal/sysv_signal.c: Likewise.
8549         * socket/accept.c: Likewise.
8550         * socket/accept4.c: Likewise.
8551         * socket/bind.c: Likewise.
8552         * socket/connect.c: Likewise.
8553         * socket/getpeername.c: Likewise.
8554         * socket/getsockname.c: Likewise.
8555         * socket/getsockopt.c: Likewise.
8556         * socket/isfdtype.c: Likewise.
8557         * socket/listen.c: Likewise.
8558         * socket/recv.c: Likewise.
8559         * socket/recvfrom.c: Likewise.
8560         * socket/recvmsg.c: Likewise.
8561         * socket/send.c: Likewise.
8562         * socket/sendmsg.c: Likewise.
8563         * socket/sendto.c: Likewise.
8564         * socket/setsockopt.c: Likewise.
8565         * socket/shutdown.c: Likewise.
8566         * socket/sockatmark.c: Likewise.
8567         * socket/socket.c: Likewise.
8568         * socket/socketpair.c: Likewise.
8569         * stdio-common/ctermid.c: Likewise.
8570         * stdio-common/cuserid.c: Likewise.
8571         * stdio-common/remove.c: Likewise.
8572         * stdio-common/rename.c: Likewise.
8573         * stdio-common/renameat.c: Likewise.
8574         * stdio-common/tempname.c: Likewise.
8575         * stdlib/getcontext.c: Likewise.
8576         * stdlib/makecontext.c: Likewise.
8577         * stdlib/setcontext.c: Likewise.
8578         * stdlib/swapcontext.c: Likewise.
8579         * stdlib/system.c: Likewise.
8580         * streams/fattach.c: Likewise.
8581         * streams/fdetach.c: Likewise.
8582         * streams/getmsg.c: Likewise.
8583         * streams/getpmsg.c: Likewise.
8584         * streams/putmsg.c: Likewise.
8585         * streams/putpmsg.c: Likewise.
8586         * sysdeps/unix/bsd/getpt.c: Likewise.
8587         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
8588         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
8589         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
8590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
8591         Likewise.
8592         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
8593         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
8594         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
8595         * sysvipc/msgctl.c: Likewise.
8596         * sysvipc/msgget.c: Likewise.
8597         * sysvipc/msgrcv.c: Likewise.
8598         * sysvipc/msgsnd.c: Likewise.
8599         * sysvipc/semctl.c: Likewise.
8600         * sysvipc/semget.c: Likewise.
8601         * sysvipc/semop.c: Likewise.
8602         * sysvipc/semtimedop.c: Likewise.
8603         * sysvipc/shmat.c: Likewise.
8604         * sysvipc/shmctl.c: Likewise.
8605         * sysvipc/shmdt.c: Likewise.
8606         * sysvipc/shmget.c: Likewise.
8607         * termios/tcdrain.c: Likewise.
8608         * termios/tcflow.c: Likewise.
8609         * termios/tcflush.c: Likewise.
8610         * termios/tcgetattr.c: Likewise.
8611         * termios/tcgetpgrp.c: Likewise.
8612         * termios/tcsendbrk.c: Likewise.
8613         * termios/tcsetattr.c: Likewise.
8614         * termios/tcsetpgrp.c: Likewise.
8615         * time/adjtime.c: Likewise.
8616         * time/clock.c: Likewise.
8617         * time/getitimer.c: Likewise.
8618         * time/gettimeofday.c: Likewise.
8619         * time/setitimer.c: Likewise.
8620         * time/settimeofday.c: Likewise.
8621         * time/stime.c: Likewise.
8622         * time/time.c: Likewise.
8623
8624 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
8625
8626         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
8627         /usr/old/bin.
8628
8629         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
8630         instead of spaces.
8631         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
8632
8633 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
8634
8635         [BZ #14796]
8636         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
8637         FE_TONEAREST before applying Dekker multiplication and Knuth
8638         addition.  Clear inexact exceptions and check for exact zero
8639         results afterwards.
8640         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8641         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8642         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8643         * math/libm-test.inc (fma_test): Add more tests.
8644         (fma_test_towardzero): Likewise.
8645         (fma_test_downward): Likewise.
8646         (fma_test_upward): Likewise.
8647         * sysdeps/generic/math_private.h (default_libc_fesetround): New
8648         function.
8649         (libc_fesetround): New macro.
8650         (libc_fesetroundf): Likewise.
8651         (libc_fesetroundl): Likewise.
8652         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
8653         function.
8654         (libc_fesetround_387): Likewise.
8655         (libc_fesetroundf): New macro.
8656         (libc_fesetround): Likewise.
8657         (libc_fesetroundl): Likewise.
8658         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
8659         function.
8660         (libc_fesetroundf): New macro.
8661         (libc_fesetround): Likewise.
8662         (libc_fesetroundl): Likewise.
8663         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
8664         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
8665         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
8666         libm_hidden_ver.
8667         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
8668         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
8669         libm_hidden_def.
8670         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
8671         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
8672         libm_hidden_ver.
8673         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
8674         libm_hidden_def.
8675
8676         [BZ #3439]
8677         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
8678         integer constant usable in #if and use that to give value to enum
8679         constant.
8680         (FE_DIVBYZERO): Likewise.
8681         (FE_UNDERFLOW): Likewise.
8682         (FE_OVERFLOW): Likewise.
8683         (FE_INVALID): Likewise.
8684         (FE_INVALID_SNAN): Likewise.
8685         (FE_INVALID_ISI): Likewise.
8686         (FE_INVALID_IDI): Likewise.
8687         (FE_INVALID_ZDZ): Likewise.
8688         (FE_INVALID_IMZ): Likewise.
8689         (FE_INVALID_COMPARE): Likewise.
8690         (FE_INVALID_SOFTWARE): Likewise.
8691         (FE_INVALID_SQRT): Likewise.
8692         (FE_INVALID_INTEGER_CONVERSION): Likewise.
8693         (FE_TONEAREST): Likewise.
8694         (FE_TOWARDZERO): Likewise.
8695         (FE_UPWARD): Likewise.
8696         (FE_DOWNWARD): Likewise.
8697         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
8698         (FE_DIVBYZERO): Likewise.
8699         (FE_OVERFLOW): Likewise.
8700         (FE_UNDERFLOW): Likewise.
8701         (FE_INEXACT): Likewise.
8702         (FE_TONEAREST): Likewise.
8703         (FE_DOWNWARD): Likewise.
8704         (FE_UPWARD): Likewise.
8705         (FE_TOWARDZERO): Likewise.
8706         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
8707         (FE_UNDERFLOW): Likewise.
8708         (FE_OVERFLOW): Likewise.
8709         (FE_DIVBYZERO): Likewise.
8710         (FE_INVALID): Likewise.
8711         (FE_TONEAREST): Likewise.
8712         (FE_TOWARDZERO): Likewise.
8713         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
8714         (FE_OVERFLOW): Likewise.
8715         (FE_UNDERFLOW): Likewise.
8716         (FE_DIVBYZERO): Likewise.
8717         (FE_INEXACT): Likewise.
8718         (FE_TONEAREST): Likewise.
8719         (FE_TOWARDZERO): Likewise.
8720         (FE_UPWARD): Likewise.
8721         (FE_DOWNWARD): Likewise.
8722         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
8723         (FE_DIVBYZERO): Likewise.
8724         (FE_OVERFLOW): Likewise.
8725         (FE_UNDERFLOW): Likewise.
8726         (FE_INEXACT): Likewise.
8727         (FE_TONEAREST): Likewise.
8728         (FE_DOWNWARD): Likewise.
8729         (FE_UPWARD): Likewise.
8730         (FE_TOWARDZERO): Likewise.
8731
8732 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
8733
8734         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
8735
8736 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
8737
8738         * scripts/cross-test-ssh.sh (command): Use newlines to separate
8739         commands.  Quote $PWD.
8740         (blacklist_exports): Don't use remove_newlines.  Replace "declare
8741         -x" by "export".
8742         (remove_newlines): Remove.
8743
8744 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
8745
8746         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
8747         * stdlib/stdlib.h (atof): Moved to ...
8748         * include/bits/stdlib-float.h: Here.  New file.
8749         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
8750         * stdlib/bits/stdlib-float.h: New file.
8751         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
8752         -mno-sse -mno-mmx.
8753         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
8754         <xmmintrin.h>.
8755
8756 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8757
8758         * conform/conformtest.pl (@headers): Add fenv.h.
8759         * conform/data/fenv.h-data: New file.
8760         * include/fenv.h [_ISOMAC]: Disable all contents of file except
8761         include of <math/fenv.h>.
8762
8763         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
8764         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
8765         && !UNIX98].  Enables tests for XOPEN2K8.
8766         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
8767         POSIX2008]: Likewise.
8768
8769         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
8770         (struct rusage): Do not expect type or its members.
8771
8772         [BZ #3439]
8773         * math/math.h (FP_NAN): Define macro to integer constant usable in
8774         #if and use that to give value to enum constant.
8775         (FP_INFINITE): Likewise.
8776         (FP_ZERO): Likewise.
8777         (FP_SUBNORMAL): Likewise.
8778         (FP_NORMAL): Likewise.
8779
8780 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
8781
8782         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
8783         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
8784         arguments.
8785
8786 2012-11-02  Roland McGrath  <roland@hack.frob.com>
8787
8788         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
8789         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
8790         autoconf-time if not.
8791         * configure.in: Remove AC_PREREQ.
8792
8793 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8794
8795         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
8796         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
8797         of the internal implementation.
8798
8799 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8800
8801         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
8802         except include of <misc/sys/syslog.h>.
8803
8804 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8805
8806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
8807         function returns with a NULL context exit with zero.
8808
8809 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8810
8811         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
8812
8813 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
8814
8815         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
8816         (run_program_cmd): This.
8817         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
8818         (tst_langinfo): New variable.  Use it.
8819
8820 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
8821
8822         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
8823         floating point opcodes.
8824
8825 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8826
8827         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
8828         variable.
8829
8830         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
8831
8832         * sysdeps/mach/hurd/powerpc: Remove directory.
8833         * sysdeps/mach/powerpc: Likewise.
8834
8835 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8836
8837         * scripts/check-local-headers.sh: Ignore c++ headers.
8838
8839 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8840
8841         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
8842         __libc_cleanup_region_start argument.
8843
8844 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
8845
8846         [BZ #14784]
8847         [BZ #14785]
8848         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
8849         x * y using scaling, not as x * y + z.
8850         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8851         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8852         * math/libm-test.inc (fma_test): Add more tests.
8853         (fma_test_towardzero): Likewise.
8854         (fma_test_downward): Likewise.
8855         (fma_test_upward): Likewise.
8856
8857 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8858
8859         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
8860
8861 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8862
8863         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8864         New variable.
8865
8866 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
8867
8868         * rt/tst-shm.c (worker): Correct checking for mmap failure.
8869
8870 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8871
8872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8873         Fix sort order.
8874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8875         Likewise.
8876
8877 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8878
8879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8880         Fix the order of the list for glibc 2.17.
8881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8882         Likewise.
8883
8884 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8885
8886         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8887
8888 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8889
8890         [BZ #14610]
8891         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
8892         for low part of x being zero before using __atanl (y).
8893         * math/libm-test.inc (atan2_test): Add another test.
8894
8895         * manual/install.texi (Configuring and compiling): Document
8896         general use of test-wrapper and test-wrapper-env.
8897         * INSTALL: Regenerated.
8898
8899         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8900         (__fma): Do not extract and scale down low bits on after-rounding
8901         systems when result rounded to normal precision would have normal
8902         exponent.
8903         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8904         (__fmal): Do not extract and scale down low bits on after-rounding
8905         systems when result rounded to normal precision would have normal
8906         exponent.
8907         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
8908         (__fmal): Do not extract and scale down low bits on after-rounding
8909         systems when result rounded to normal precision would have normal
8910         exponent.
8911         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
8912         macro.
8913         (fma_test): Add more tests.
8914         (fma_test_towardzero): Likewise.
8915         (fma_test_downward): Likewise.
8916         (fma_test_upward): Likewise.
8917
8918 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
8919
8920         * sysdeps/i386/tininess.h: Renamed to ...
8921         * sysdeps/x86/tininess.h: This.
8922         * sysdeps/x86_64/tininess.h: Removed.
8923
8924 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8925
8926         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
8927         input.  Use $(build-program-cmd).
8928         ($(objpfx)tst-array1-static.out): Likewise.
8929         ($(objpfx)tst-array2.out): Likewise.
8930         ($(objpfx)tst-array3.out): Likewise.
8931         ($(objpfx)tst-array4.out): Likewise.
8932         ($(objpfx)tst-array5.out): Likewise.
8933         ($(objpfx)tst-array5-static.out): Likewise.
8934
8935 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
8936
8937         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
8938         if defined.
8939
8940         * nss/nsswitch.h (nss_interface_function): Provide new
8941         macro for use with NSS functions.
8942         * grp/initgroups.c: Use new macro.
8943         * nss/getXXbyYY.c: Likewise.
8944         * nss/getXXbyYY_r.c: Likewise.
8945         * nss/getXXent.c: Likewise.
8946         * nss/getXXent_r.c: Likewise.
8947         * sysdeps/posix/getaddrinfo.c: Likewise.
8948
8949 2012-10-30  Andreas Jaeger  <aj@suse.de>
8950
8951         * po/ru.po: Update Russion translation from translation project.
8952
8953 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8954
8955         [BZ #14152]
8956         [BZ #14783]
8957         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
8958         result and shift together with sticky bit instead of replicating
8959         round-to-nearest rounding.
8960         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8961         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8962         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
8963         missing underflow exceptions.
8964         (fma_test_towardzero): Add more tests.
8965         (fma_test_downward): Likewise.
8966         (fma_test_upward): Likewise.
8967
8968         [BZ #14047]
8969         * sysdeps/generic/tininess.h: New file.
8970         * sysdeps/i386/tininess.h: Likewise.
8971         * sysdeps/sh/tininess.h: Likewise.
8972         * sysdeps/x86_64/tininess.h: Likewise.
8973         * stdlib/tst-strtod-underflow.c: Likewise.
8974         * stdlib/tst-tininess.c: Likewise.
8975         * stdlib/strtod_l.c: Include <tininess.h>.
8976         (round_and_return): Do not set errno for exact underflow cases.
8977         Force an underflow exception when setting errno for underflow.
8978         Determine underflow based on rounding to normal precision if
8979         TININESS_AFTER_ROUNDING.
8980         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
8981         ERANGE for exact underflow cases.
8982         * stdlib/Makefile (tests): Add tst-tininess and
8983         tst-strtod-underflow.
8984         ($(objpfx)tst-tininess): Use $(link-libm).
8985         ($(objpfx)tst-strtod-underflow): Likewise.
8986
8987 2012-10-30  Andreas Jaeger  <aj@suse.de>
8988
8989         [BZ#14767]
8990         * elf/Makefile (tests): Remove conditional for have-initfini-array
8991         since this is now always required and the variable does not exist
8992         anymore.
8993         (tests-static): Likewise.
8994         (modules-names): Likewise.
8995
8996         * po/eo.po: Add Esperanto translation from translation project.
8997
8998         * elf/tst-array1.c (fini_array): Make writeable so that it can be
8999         merged with constructor/destructor.
9000         (init_array): Likewise.
9001         * elf/tst-array2dep.c (fini_array): Likewise.
9002         (init_array): Likewise.
9003
9004 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
9005
9006         * manual/message.texi: Delete @cartouche tags.
9007
9008 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
9009
9010         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
9011         EOPNOTSUPP.
9012         * sysdeps/mach/hurd/fsync.c: Likewise.
9013
9014         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
9015         [_POSIX_REALTIME_SIGNALS]: Change condition to
9016         [_POSIX_REALTIME_SIGNALS > 0].
9017
9018 2012-10-27  Andreas Jaeger  <aj@suse.de>
9019
9020         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
9021         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
9022         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
9023         [__WORDSIZE != 64]: Likewise.
9024
9025 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
9026
9027         *  iconvdata/tst-table.sh: Remove ${SHELL}.
9028         *  iconvdata/tst-tables.sh: Likewise.
9029
9030 2012-10-25  David S. Miller  <davem@davemloft.net>
9031
9032         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9033         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
9034         of strtoull.
9035
9036         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
9037         ifunc-impl-list.c
9038         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9039         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
9040         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
9041         file.
9042
9043 2012-10-25  Roland McGrath  <roland@hack.frob.com>
9044
9045         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9046         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
9047         __getdirentries.
9048
9049 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
9050             Jim Blandy  <jimb@codesourcery.com>
9051
9052         * scripts/cross-test-ssh.sh: New file.
9053         * manual/install.texi (Configuring and compiling): Document use of
9054         cross-test-ssh.sh.
9055         * INSTALL: Regenerated.
9056
9057 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
9058
9059         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
9060         EOPNOTSUPP.
9061
9062 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
9063
9064         * Makeconfig (run-program-prefix): Fix comment.
9065
9066 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
9067             Jim Blandy  <jimb@codesourcery.com>
9068
9069         * Makeconfig (test-wrapper): New variable,
9070         (test-wrapper-env): Likewise.
9071         [$(cross-compiling) = yes && $(test-wrapper) != ""]
9072         (run-built-tests): Define to yes.
9073         (run-program-prefix): Use $(test-wrapper).
9074         (built-program-cmd): Likewise.
9075         * Rules (make-test-out): Use $(test-wrapper-env) and
9076         $(host-built-program-cmd).
9077         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
9078         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
9079         tst-pathopt.sh.
9080         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
9081         $(test-wrapper-env) to tst-rtld-load-self.sh.
9082         ($(objpfx)order2.out): Use $(test-wrapper).
9083         ($(objpfx)tst-initorder.out): Likewise.
9084         ($(objpfx)tst-initorder2.out): Likewise.
9085         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
9086         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
9087         (test_wrapper_env): New variable.  Use it to run ld.so.
9088         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
9089         Use it to run ld.so.
9090         (test_wrapper_env): Likewise.
9091         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
9092         $(test-wrapper) to run-iconv-test.sh.
9093         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
9094         (ICONV): Use $test_wrapper.
9095         * posix/Makefile ($(objpfx)globtest.out): Pass
9096         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
9097         globtest.sh, not $(run-program-prefix).
9098         * posix/globtest.sh (run_via_rtld_prefix): New variable.
9099         (test_wrapper): Likewise.
9100         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
9101         set together with run_via_rtld_prefix.
9102         (run_program_prefix): Define in terms of test_wrapper and
9103         run_via_rtld_prefix.
9104
9105 2012-10-24  Roland McGrath  <roland@hack.frob.com>
9106
9107         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
9108         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
9109         Targets removed.
9110
9111         [BZ #14743]
9112         * include/time.h: Remove librt_hidden_proto (clock_gettime).
9113         Declare __clock_getres, __clock_gettime, __clock_settime,
9114         __clock_nanosleep, and __clock_getcpuclockid.
9115         * rt/clock_gettime.c: Define __clock_gettime as an alias.
9116         Remove librt_hidden_def (clock_gettime).
9117         * sysdeps/unix/clock_gettime.c: Likewise.
9118         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
9119         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
9120         * rt/clock_getres.c: Define __clock_getres as an alias.
9121         * sysdeps/posix/clock_getres.c: Likewise.
9122         * rt/clock_settime.c: Define __clock_settime as an alias.
9123         * sysdeps/unix/clock_settime.c: Likewise.
9124         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
9125         * sysdeps/unix/clock_nanosleep.c: Likewise.
9126         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
9127         * rt/clock-compat.c: New file.
9128         * rt/Makefile (librt-routines): Add clock-compat and move
9129         $(clock-routines) to ...
9130         (routines): ... here, new variable.
9131         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
9132         Don't add get_clockfreq here.
9133         * rt/Versions (libc: GLIBC_2.17): New version set.
9134         Add clock_* symbols here.
9135         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
9136         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
9137         (GLIBC_2.17): Add clock_* symbols.
9138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
9139         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
9140         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9142         Likewise.
9143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9144         Likewise.
9145         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
9147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
9148         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
9149         * NEWS: Mention the move.
9150
9151         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
9152         Use __open, __read, __close rather than their public counterparts.
9153         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9154         (__get_clockfreq_via_cpuinfo): Likewise.
9155         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
9156         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
9157
9158         * config.h.in (HAVE_IFUNC): New #undef.
9159         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
9160         was successful.
9161         * configure: Regenerated.
9162
9163 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
9164
9165         * configure.in: Move READELF check to start of file.
9166         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
9167         libc_cv_asm_gnu_indirect_function in the process.
9168         * configure: Regenerated.
9169
9170 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
9171
9172         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
9173         send the output to /dev/null.
9174         (libc_cv_cc_with_libunwind): Likewise.
9175         (libc_cv_as_noexecstack): Likewise.
9176         * configure: Regenerate.
9177
9178 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
9179
9180         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
9181
9182         * posix/globtest.sh (TMPDIR): Do not set.
9183         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
9184         (testout): Likewise.
9185
9186 2012-10-24  Andreas Jaeger  <aj@suse.de>
9187
9188         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
9189         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
9190         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
9191         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
9192         posix_fadvise64, posix_fallocate64.
9193
9194         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
9195         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
9196         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
9197         Likewise.
9198         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
9199         Likewise.
9200         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
9201
9202         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
9203         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
9204         <bits/fcntl-linux.h>.
9205         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
9206
9207         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
9208         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
9209         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
9210         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
9211         [__WORDSIZE != 64]: Likewise.
9212
9213 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
9214
9215         * Makeconfig (run-built-tests): New variable.
9216         * Rules [$(cross-compiling) = yes]: Change condition to
9217         [$(run-built-tests) = no].
9218         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
9219         to [$(run-built-tests) = yes].
9220         * elf/Makefile [$(cross-compiling) = no]: Likewise
9221         * grp/Makefile [$(cross-compiling) = no]: Likewise.
9222         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
9223         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
9224         * intl/Makefile [$(cross-compiling) = no]: Likewise.
9225         * io/Makefile [$(cross-compiling) = no]: Likewise.
9226         * libio/Makefile [$(cross-compiling) = no]: Likewise.
9227         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
9228         * misc/Makefile [$(cross-compiling) = no]: Likewise.
9229         * posix/Makefile [$(cross-compiling) = no]: Likewise.
9230         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
9231         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
9232         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
9233         * string/Makefile [$(cross-compiling) = no]: Likewise.
9234
9235         * posix/Makefile ($(objpfx)globtest.out): Pass
9236         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
9237         $(rtld-installed-name).
9238         * posix/globtest.sh (elf_objpfx): Remove variable.
9239         (rtld_installed_name): Likewise.
9240         (library_path): Likewise.
9241         (run_program_prefix): New variable.  Use for running globtest
9242         binary.
9243
9244 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
9245             Joseph Myers  <joseph@codesourcery.com>
9246
9247         * Makeconfig (host-built-program-cmd): New variable.
9248         * elf/Makefile (tst-stackguard1-ARGS): Use
9249         $(host-built-program-cmd).
9250         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
9251         (tst-spawn-ARGS): Likewise.
9252         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
9253
9254 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
9255             Jim Blandy  <jimb@codesourcery.com>
9256
9257         * Makeconfig (run-via-rtld-prefix): New variable.
9258         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
9259         (built-program-cmd): Likewise.
9260
9261 2012-10-22  Andreas Jaeger  <aj@suse.de>
9262
9263         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
9264         __O_RSYNC if it exists, otherwise to O_SYNC.
9265
9266 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
9267             Joseph Myers  <joseph@codesourcery.com>
9268
9269         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
9270         /dev/null.
9271         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
9272         from /dev/null
9273         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
9274         /dev/null.
9275
9276 2012-10-22  Andreas Jaeger  <aj@suse.de>
9277
9278         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
9279         Define always.
9280         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
9281
9282         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9283         bits/fcntl-linux.h.
9284
9285         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
9286         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
9287
9288         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
9289         to __O_LARGEFILE.
9290         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
9291         to __O_LARGEFILE.
9292
9293 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
9294             Joseph Myers  <joseph@codesourcery.com>
9295
9296         * config.make.in (NM): New variable.
9297
9298 2012-10-21  Andreas Jaeger  <aj@suse.de>
9299
9300         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
9301         definitions and declarations that are provided by
9302         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
9303
9304 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9305
9306         [BZ #14683]
9307         * elf/Makefile (tests-static): Add tst-leaks1-static.
9308         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
9309         ($(objpfx)tst-leaks1-static): New rule.
9310         ($(objpfx)tst-leaks1-static-mem): Likewise.
9311         (tst-leaks1-static-ENV): New macro.
9312         * elf/dl-open.c (dl_open_worker): Check the main application
9313         only if SHARED is defined.
9314         * elf/tst-leaks1-static.c: New file.
9315
9316 2012-10-20  Andreas Jaeger  <aj@suse.de>
9317
9318         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
9319         generic values for Linux.
9320         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
9321         and declarations that are provided by <bits/fcntl-linux.h> and
9322         include <bits/fcntl-linux.h>.
9323         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9324         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9325
9326 2012-10-20  Roland McGrath  <roland@hack.frob.com>
9327
9328         * io/fcntl.h: Move include of <bits/types.h> to the top and
9329         include it unconditionally.
9330
9331 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9332
9333         * wcsmbs/Makefile (tests-ifunc): New variable.
9334         (tests): Add $(tests-ifunc).
9335         * wcsmbs/test-wcschr-ifunc.c: New file.
9336         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
9337         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
9338         * wcsmbs/test-wcslen-ifunc.c: Likewise.
9339         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
9340         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
9341
9342         * string/Makefile (tests-ifunc): New variable.
9343         (tests): Add $(tests-ifunc).
9344         * string/test-memccpy.c (TEST_NAME): New macro.
9345         * string/test-memchr.c (TEST_NAME): Likewise.
9346         * string/test-memcmp.c (TEST_NAME): Likewise.
9347         * string/test-memcpy.c (TEST_NAME): Likewise.
9348         * string/test-memmem.c (TEST_NAME): Likewise.
9349         * string/test-memmove.c (TEST_NAME): Likewise.
9350         * string/test-memset.c (TEST_NAME): Likewise.
9351         * string/test-rawmemchr.c (TEST_NAME): Likewise.
9352         * string/test-stpcpy.c (TEST_NAME): Likewise.
9353         * string/test-stpncpy.c (TEST_NAME): Likewise.
9354         * string/test-strcasecmp.c (TEST_NAME): Likewise.
9355         * string/test-strcasestr.c (TEST_NAME): Likewise.
9356         * string/test-strcat.c (TEST_NAME): Likewise.
9357         * string/test-strchr.c (TEST_NAME): Likewise.
9358         * string/test-strcmp.c(TEST_NAME): Likewise.
9359         * string/test-strcpy.c (TEST_NAME): Likewise.
9360         * string/test-strcspn.c (TEST_NAME): Likewise.
9361         * string/test-strlen.c (TEST_NAME): Likewise.
9362         * string/test-strncasecmp.c (TEST_NAME): Likewise.
9363         * string/test-strncmp.c (TEST_NAME): Likewise.
9364         * string/test-strncpy.c (TEST_NAME): Likewise.
9365         * string/test-strnlen.c (TEST_NAME): Likewise.
9366         * string/test-strpbrk.c (TEST_NAME): Likewise.
9367         * string/test-strrchr.c (TEST_NAME): Likewise.
9368         * string/test-strspn.c (TEST_NAME): Likewise.
9369         * string/test-strstr.c (TEST_NAME): Likewise.
9370         * string/test-bcopy-ifunc.c: New file.
9371         * string/test-bzero-ifunc.c: Likewise.
9372         * string/test-memccpy-ifunc.c: Likewise.
9373         * string/test-memchr-ifunc.c: Likewise.
9374         * string/test-memcmp-ifunc.c: Likewise.
9375         * string/test-memcpy-ifunc.c: Likewise.
9376         * string/test-memmem-ifunc.c: Likewise.
9377         * string/test-memmove-ifunc.c: Likewise.
9378         * string/test-mempcpy-ifunc.c: Likewise.
9379         * string/test-memset-ifunc.c: Likewise.
9380         * string/test-rawmemchr-ifunc.c: Likewise.
9381         * string/test-stpcpy-ifunc.c: Likewise.
9382         * string/test-stpncpy-ifunc.c: Likewise.
9383         * string/test-strcasecmp-ifunc.c: Likewise.
9384         * string/test-strcasestr-ifunc.c: Likewise.
9385         * string/test-strcat-ifunc.c: Likewise.
9386         * string/test-strchr-ifunc.c: Likewise.
9387         * string/test-strchrnul-ifunc.c: Likewise.
9388         * string/test-strcmp-ifunc.c: Likewise.
9389         * string/test-strcpy-ifunc.c: Likewise.
9390         * string/test-strcspn-ifunc.c: Likewise.
9391         * string/test-strlen-ifunc.c: Likewise.
9392         * string/test-strncasecmp-ifunc.c: Likewise.
9393         * string/test-strncat-ifunc.c: Likewise.
9394         * string/test-strncmp-ifunc.c: Likewise.
9395         * string/test-strncpy-ifunc.c: Likewise.
9396         * string/test-strnlen-ifunc.c: Likewise.
9397         * string/test-strpbrk-ifunc.c: Likewise.
9398         * string/test-strrchr-ifunc.c: Likewise.
9399         * string/test-strspn-ifunc.c: Likewise.
9400         * string/test-strstr-ifunc.c: Likewise.
9401
9402         * debug/Makefile (tests-ifunc): New variable.
9403         (tests): Add $(tests-ifunc).
9404         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
9405         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
9406         * debug/test-stpcpy_chk-ifunc.c: New file.
9407         * debug/test-strcpy_chk-ifunc.c: Likewise.
9408
9409 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9410
9411         [BZ #13601]
9412         * elf/dl-load.c (open_verify): Retry read if the entire ELF
9413         header is not read in.
9414
9415 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
9416
9417         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
9418         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
9419         directly.  Pass built executable to script as
9420         $(built-program-cmd).
9421         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
9422         $testprogram without using LD_LIBRARY_PATH and $ldso.
9423
9424         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
9425         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
9426         $(rtld-installed-name).
9427         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
9428         (rtld_installed_name): Likewise.
9429         (library_path): Likewise.
9430         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
9431         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
9432         $(run-program-prefix) to tst-tables.sh.
9433         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
9434         it to run tst-table-from and tst-table-to.
9435         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
9436         Pass it to tst-table.sh.
9437         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
9438         $(run-program-prefix) to tst-gettext.sh.
9439         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
9440         tst-translit.sh.
9441         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
9442         tst-gettext2.sh.
9443         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
9444         to run tst-gettext.
9445         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
9446         to run tst-gettext2.
9447         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
9448         to run tst-translit.
9449         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
9450         $(run-program-prefix) to tst-mtrace.sh.
9451         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
9452         to run tst-mtrace.
9453         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
9454         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
9455         $(rtld-installed-name).
9456         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
9457         (rtld_installed_name): Likewise.
9458         (run_program_prefix): New variable.  Use it to run wordexp-test.
9459
9460         * Makeconfig (ARCH): Remove all definitions.
9461         (machine): Likewise.
9462         [ARCH]: Remove conditional code.
9463         [!objdir]: Give error.
9464         [!objdir] (objpfx): Remove.
9465         [!objdir] (common-objpfx): Likewise.
9466         [!objdir] (common-objdir): Likewise.
9467         * configure.in (config_makefile): Remove.  Hardcode Makefile in
9468         AC_CONFIG_FILES call.
9469         * configure: Regenerated.
9470
9471         [BZ #13888]
9472         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
9473         or TMPDIR.
9474         (testout): Likewise.
9475
9476         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
9477         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
9478         $(rtld-installed-name).
9479         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
9480         (rtld_installed_name): Likwise.
9481         (runit): Remove function.
9482         (run_getconf): New variable,  Use it for running getconf binary.
9483
9484 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
9485
9486         [BZ #14716]
9487         * string/test-memmem.c (check_result): New function.
9488         (do_one_test): Use it.
9489         (check1): New function.
9490         (test_main): Use it.
9491
9492 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9493
9494         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
9495
9496 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
9497
9498         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
9499         (_G_LSEEK64): Likewise.
9500         (_G_MMAP64): Likewise.
9501         (_G_FSTAT64): Likewise.
9502         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
9503         (_G_LSEEK64): Likewise.
9504         (_G_MMAP64): Likewise.
9505         (_G_FSTAT64): Likewise.
9506         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
9507         unconditional.  Call __mmap64 directly.
9508         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
9509         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
9510         __lseek64 directly.
9511         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
9512         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
9513         __mmap64 directly.
9514         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
9515         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
9516         __lseek64 directly.
9517         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
9518         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
9519         __lseek64 directly.
9520         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
9521         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
9522         __lseek64 directly.
9523         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
9524         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
9525         __fxstat64 directly.
9526         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
9527         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
9528         unconditional.
9529         (freopen64) [!_G_OPEN64]: Remove conditional code.
9530         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
9531         unconditional.
9532         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
9533         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
9534         unconditional.
9535         (ftello64) [!_G_LSEEK64]: Remove conditional code.
9536         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
9537         unconditional.
9538         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
9539         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
9540         unconditional.
9541         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
9542         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
9543         unconditional.
9544         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
9545         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
9546         unconditional.
9547         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
9548         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
9549         unconditional.
9550         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
9551
9552 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9553
9554         [BZ #12140]
9555         * manual/memory.texi (Malloc Tunable Parameters): Add note
9556         about free list pointers overwriting some perturb bytes.
9557         Wording suggested by Roland McGrath.
9558
9559 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
9560
9561         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
9562         (lgamma_test): Likewise.
9563         (tgamma_test): Likewise.
9564
9565 2012-10-16  Florian Weimer  <fweimer@redhat.com>
9566
9567         [BZ #14700]
9568         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
9569         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
9570
9571 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
9572
9573         * NEWS: Mention BZ #14716.
9574         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
9575         when removing AVAILABLE1_USES_J macro.
9576
9577 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9578
9579         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
9580         (__bswap_64): __uint64_t for unsigned 64-bit int.
9581
9582 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
9583
9584         * include/string.h (memmem): Declare libc hidden alias.
9585         * string/memmem.c (memmem): Define libc hidden alias.
9586         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
9587         __read, __close instead of open, read, close.
9588
9589 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
9590
9591         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
9592         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
9593         global and hidden.
9594         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
9595         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
9596         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
9597         Likewise.
9598         (__rawmemchr_sse2): Likewise.
9599         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
9600         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
9601         (__strchr_sse2): Likewise.
9602         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
9603         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
9604         (__strcasecmp_sse2): Likewise.
9605         (__strncasecmp_sse2): Likewise.
9606         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
9607         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
9608         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
9609         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
9610         (__strrchr_sse2): Likewise.
9611         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
9612         ifunc-impl-list.c.
9613         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
9614         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
9615         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
9616         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
9617         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
9618         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
9619         * sysdeps/x86_64/multiarch/memset.S: Likewise.
9620         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
9621         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
9622         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
9623         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
9624         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
9625         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
9626         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
9627         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
9628         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
9629         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
9630         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
9631         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
9632         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
9633         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
9634         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
9635         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
9636         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
9637         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
9638         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
9639         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
9640         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
9641         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
9642         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
9643
9644         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
9645         global and hidden.
9646         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
9647         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
9648         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
9649         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
9650         Likewise.
9651         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
9652         Likewise.
9653         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
9654         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
9655         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
9656         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
9657         ifunc-impl-list.c.
9658         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9659         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9660         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9661         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9662         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9663         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9664         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9665         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9666         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9667         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9668         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9669         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9670         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9671         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9672         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9673         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9674         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9675         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
9676         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9677         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
9678         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9679         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9680         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9681         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9682         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9683         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9684         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9685         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9686         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9687         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9688         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9689         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9690         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9691         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
9692         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9693         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9694         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9695         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9696         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9697         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9698         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
9699
9700         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
9701         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
9702         * include/ifunc-impl-list.h: New file.
9703         * misc/ifunc-impl-list.c: Likewise.
9704         * misc/Makefile (routines): Add ifunc-impl-list.
9705         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
9706         * string/test-string.h: Include <ifunc-impl-list.h>.
9707         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
9708         impl_array): New variables.
9709         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
9710         are defined.
9711         (test_init): Call __libc_ifunc_impl_list to initialize
9712         func_list if TEST_IFUNC and TEST_NAME are defined.
9713
9714         * string/Makefile (strop-tests): Add bcopy and bzero.
9715         * string/test-bcopy.c: New file.
9716         * string/test-bzero.c: Likewise.
9717         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
9718         defined.
9719         * string/test-memset.c: Support bzero test if TEST_BZERO is
9720         defined.
9721         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
9722         __libc_memmove.
9723         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
9724         __libc_memset.
9725         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
9726         of memset.
9727
9728 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
9729
9730         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
9731         * configure: Regenerated.
9732
9733         * Makeconfig (+link-static-before-libc): Don't include
9734         $(link-static-libc).
9735
9736         * libio/libio.h (_IO_pos_t): Remove.
9737
9738 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9739
9740         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
9741         McGrath.
9742
9743 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9744
9745         * crypt/crypt-entry.c: Include fips-private.h.
9746         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
9747         * crypt/md5c-test.c (main): Tolerate disabled MD5.
9748         * sysdeps/unix/sysv/linux/fips-private.h: New file.
9749         * sysdeps/generic/fips-private.h: New file, dummy fallback.
9750
9751 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9752
9753         * crypt/crypt-private.h: Include stdbool.h.
9754         (_ufc_setup_salt_r): Return bool.
9755         * crypt/crypt-entry.c: Include errno.h.
9756         (__crypt_r): Return NULL with EINVAL for bad salt.
9757         * crypt/crypt_util.c (bad_for_salt): New.
9758         (_ufc_setup_salt_r): Check that salt is long enough and within
9759         the specified alphabet.
9760         * crypt/badsalttest.c: New file.
9761         * crypt/Makefile (tests): Add it.
9762         ($(objpfx)badsalttest): New.
9763
9764 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9765
9766         * NEWS: Add entry for BZ #14602.
9767
9768 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9769
9770         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
9771         type-generic.
9772         * math/libm-test.inc: Update comment listing what functions and
9773         macros are tested.
9774         (isgreater_test): New function.
9775         (isgreaterequal_test): Likewise.
9776         (isless_test): Likewise.
9777         (islessequal_test): Likewise.
9778         (islessgreater_test): Likewise.
9779         (isunordered_test): Likewise.
9780         (main): Call the new functions.
9781
9782 2012-10-09  Roland McGrath  <roland@hack.frob.com>
9783
9784         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
9785         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
9786         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
9787         * sysdeps/i386/configure: Regenerated.
9788         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
9789         * sysdeps/mach/configure: Regenerated.
9790         * sysdeps/mach/hurd/configure: Regenerated.
9791         * sysdeps/powerpc/configure: Regenerated.
9792         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9793         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9794         * sysdeps/s390/s390-32/configure: Regenerated.
9795         * sysdeps/s390/s390-64/configure: Regenerated.
9796         * sysdeps/sh/configure: Regenerated.
9797         * sysdeps/sparc/configure: Regenerated.
9798         * sysdeps/unix/sysv/linux/configure: Regenerated.
9799         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
9800         * sysdeps/x86_64/configure: Regenerated.
9801
9802         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
9803         defined.  Don't check if MAP is NULL.
9804
9805 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9806
9807         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
9808         (_G_stat64): Likewise.
9809         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
9810         (_G_stat64): Likewise.
9811         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
9812         instead of struct _G_stat64.
9813         * libio/fileops.c (mmap_remap_check): Likewise.
9814         (decide_maybe_mmap): Likewise.
9815         (_IO_new_file_seekoff): Likewise.
9816         (_IO_file_stat): Likewise.
9817         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
9818         _G_off64_t.
9819         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
9820         instead of struct _G_stat64.
9821         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9822
9823 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
9824
9825         [BZ #14602]
9826         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9827         Replace with ...
9828         (CHECK_EOL): New macro.
9829         (two_way_short_needle): Check beginning of haystack for EOL.  Use
9830         CHECK_EOL.
9831         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9832         Replace with CHECK_EOL.
9833         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9834         Replace with CHECK_EOL.
9835
9836 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
9837
9838         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
9839         type-generic.
9840         * math/libm-test.inc: Update comment listing what functions and
9841         macros are tested.
9842         (finite_test): New function.
9843         (isinf_test): Likewise.
9844         (isnan_test): Likewise.
9845         (fpclassify_test): Test subnormal input.
9846         (isfinite_test): Likewise.
9847         (isnormal_test): Likewise.
9848         (main): Call the new functions.
9849
9850 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
9851
9852         [BZ #14660]
9853         * Makerules (%.dynsym): Force C locale when running
9854         $(OBJDUMP) --dynamic-syms.
9855
9856 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
9857
9858         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
9859         <stdint.h>.
9860
9861 2012-10-06  David S. Miller  <davem@davemloft.net>
9862
9863         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
9864         upper 32-bits of the length value in %o2 since we use branch-on-register
9865         tests which consider the entire 64-bit register.
9866
9867 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9868
9869         * string/test-strstr.c (check2): Add a test for page boundary.
9870
9871 2012-10-05  David S. Miller  <davem@davemloft.net>
9872
9873         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
9874         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9875         file.
9876         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9877         sysdep_routines.
9878         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9879         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
9880         and bzero when HWCAP_SPARC_CRYPTO is present.
9881
9882 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
9883
9884         [BZ #14602]
9885         * string/test-strstr.c (check2): New function.
9886         (test_main): Call check2.
9887
9888         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
9889         and bug-strchr1.
9890         * string/bug-strcasestr1.c (do_test): Moved to ...
9891         * string/test-strcasestr.c (check1): Here.  New function.
9892         (do_one_test): Break out result checking code into ...
9893         (check_result): This.  New function.
9894         (do_one_test): Call check_result.
9895         (test_main): Call check1.
9896         * string/bug-strchr1.c (do_test): Moved to ...
9897         * string/test-strchr.c (check1): Here.  New function.
9898         (do_one_test): Break out result checking code into ...
9899         (check_result): This.  New function.
9900         (do_one_test): Call check_result.
9901         (test_main): Call check1.
9902         * string/bug-strstr1.c (main): Moved to ...
9903         * string/test-strstr.c (check1): Here.  New function.
9904         (do_one_test): Break out result checking code into ...
9905         (check_result): This.  New function.
9906         (do_one_test): Call check_result.
9907         (test_main): Call check1.
9908         * string/bug-strcasestr1.c: Removed.
9909         * string/bug-strchr1.c: Likewise.
9910         * string/bug-strstr1.c: Likewise.
9911
9912         * elf/Makefile (dl-routines): Add hwcaps.
9913         * elf/dl-support.c (_dl_important_hwcaps): Removed.
9914         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
9915         (_dl_important_hwcaps): Moved to ...
9916         * elf/dl-hwcaps.c: Here.  New file.
9917         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
9918
9919         [BZ #14557]
9920         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
9921         if IS_IN_rtld isn't defined.
9922
9923         * elf/dl-support.c (_dl_sysinfo_map): New.
9924         Include "get-dynamic-info.h" and "setup-vdso.h".
9925         (_dl_non_dynamic_init): Call setup_vdso.
9926         * elf/dynamic-link.h: Don't include <assert.h>.
9927         (elf_get_dynamic_info): Moved to ...
9928         * elf/get-dynamic-info.h: Here.  New file.
9929         * elf/dynamic-link.h: Include "get-dynamic-info.h".
9930         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
9931         * elf/setup-vdso.h: Here.  New file.
9932         * elf/rtld.c: Include "setup-vdso.h".
9933         (dl_main): Call setup_vdso.
9934
9935 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
9936
9937         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
9938         creal in comment listing functions tested.  List finite, isinf,
9939         isnan, isless, islessequal, isgreater, isgreaterequal,
9940         islessgreater, isunordered, lgamma_r and pow10 as functions and
9941         macros not tested.  Mention which functions not tested are aliases
9942         for other functions.  Fix typo.  Note that signs of NaNs are not
9943         tested.
9944
9945         * scripts/config.guess: Update from config.git.
9946         * scripts/config.sub: Likewise.
9947
9948 2012-10-04  Roland McGrath  <roland@hack.frob.com>
9949
9950         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
9951         * misc/madvise.c (madvise): Renamed to __madvise.
9952         Make madvise a weak alias.
9953         * include/sys/mman.h: Declare __madvise.
9954         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
9955         * sysdeps/unix/syscalls.list
9956         (madvise): Make __madvise the strong name, and madvise a weak alias.
9957         * sysdeps/unix/sysv/linux/syscalls.list
9958         (madvise, mmap): Remove redundant entries.
9959         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
9960         * malloc/malloc.c (mtrim): Likewise.
9961         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
9962
9963 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9964
9965         * sysdeps/mach/hurd/dl-cache.c: File removed.
9966         * config.h.in (USE_LDCONFIG): New #undef.
9967         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
9968         * configure: Regenerated.
9969         * elf/Makefile (dl-routines): Add dl-cache only under
9970         [$(use-ldconfig) = yes].
9971         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
9972         cache on [USE_LDCONFIG].
9973         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
9974         [USE_LDCONFIG].
9975         * elf/rtld.c (dl_main): Likewise.
9976
9977 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
9978
9979         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
9980         _SC_LEVEL4_CACHE_LINESIZE.
9981
9982 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9983
9984         * sysdeps/unix/bsd/confstr.h: File removed.
9985
9986 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
9987
9988         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
9989         sys/sdt-config.h.
9990
9991 2012-10-02  Roland McGrath  <roland@hack.frob.com>
9992
9993         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
9994         Make 'mapoff' field ElfW(Off) rather than off_t.
9995
9996 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9997
9998         * nscd/Makefile: Remove nscd-cflags and all its users.
9999         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
10000         (CFLAGS-nonlib): Add compiler flags for nscd modules.
10001
10002         [BZ #10631]
10003         * malloc.c (malloc_printerr): Clarify error message.
10004
10005 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
10006
10007         [BZ #14648]
10008         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10009         Set bit_FMA_Usable if FMA is supported.
10010         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
10011         macro.
10012         (bit_FMA4_Usable): Updated.
10013         (index_FMA_Usable): New macro.
10014         (CPUID_FMA): Likewise
10015         (HAS_FMA): Defined with bit_FMA_Usable.
10016
10017 2012-10-01  Roland McGrath  <roland@hack.frob.com>
10018
10019         * bits/types.h (__swblk_t): Type removed.
10020         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
10021         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
10022         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10023         (__SWBLK_T_TYPE): Likewise.
10024         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10025         (__SWBLK_T_TYPE): Likewise.
10026         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10027         (__SWBLK_T_TYPE): Likewise.
10028         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10029         (__SWBLK_T_TYPE): Likewise.
10030
10031 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
10032             Honza Horak <hhorak@redhat.com>
10033
10034         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
10035         (xdr_mapname): Use YPMAXMAP as maxsize.
10036         (xdr_peername): Use YPMAXPEER as maxsize.
10037         (xdr_keydat): Use YPAXRECORD as maxsize.
10038         (xdr_valdat): Use YPMAXRECORD as maxsize.
10039
10040 2012-10-01  Roland McGrath  <roland@hack.frob.com>
10041
10042         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
10043
10044         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
10045         * csu/init-first.c: ... here.
10046         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
10047         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
10048         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
10049         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
10050         * sysdeps/i386/init-first.c: File removed.
10051         * sysdeps/sh/init-first.c: File removed.
10052
10053 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
10054
10055         [BZ #14645]
10056         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
10057         if x * y might underflow to zero and z is zero.
10058         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
10059         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
10060         * math/libm-test.inc (min_subnorm_value): New variable.
10061         (fma_test): Add more tests.
10062         (fma_test_towardzero): Likewise.
10063         (fma_test_downward): Likewise
10064         (fma_test_upward): Likewise.
10065         (initialize): Set min_subnorm_value.
10066
10067 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
10068
10069         [BZ #14638]
10070         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
10071         0 + 0.
10072         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
10073         mode for addition resulting in exact zero.
10074         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
10075         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
10076         exact 0 + 0.
10077         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
10078         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
10079         * math/libm-test.inc (fma_test): Add more tests.
10080         (fma_test_towardzero): New function.
10081         (fma_test_downward): Likewise.
10082         (fma_test_upward): Likewise.
10083         (main): Call the new functions.
10084
10085 2012-09-28  David S. Miller  <davem@davemloft.net>
10086
10087         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
10088
10089 2012-09-28  Roland McGrath  <roland@hack.frob.com>
10090
10091         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
10092         instead of SIGALRM.
10093
10094         * sysdeps/gnu/_G_config.h: Moved to ...
10095         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
10096         * sysdeps/mach/hurd/_G_config.h: Moved to ...
10097         * sysdeps/generic/_G_config.h: ... here.
10098
10099         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
10100
10101         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
10102
10103         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
10104         Conditionalize target on [libnss_test1.so-version].
10105
10106         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
10107
10108         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
10109         (elfobjdir): Move out of conditionals.
10110
10111         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
10112         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
10113         (__nss_lookup_function): Conditionalize label remove_from_tree on
10114         [!DO_STATIC_NSS || SHARED], matching its only use.
10115
10116 2012-09-28  David S. Miller  <davem@davemloft.net>
10117
10118         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
10119         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
10120         file.
10121         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
10122         sysdep_routines.
10123         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
10124         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
10125         when HWCAP_SPARC_CRYPTO is present.
10126
10127 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10128
10129         * io/tst-mknodat.c: Create a FIFO instead of a socket.
10130
10131 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
10132
10133         [BZ #6530]
10134         * stdio-common/vfprintf.c (process_string_arg): Revert
10135         2000-07-22 change.
10136
10137 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
10138
10139         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
10140         for testcase.
10141         * stdio-common/tst-sprintf.c: Include <locale.h>
10142         (main): Test sprintf's handling of incomplete multibyte
10143         characters.
10144
10145 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
10146
10147         * elf/dl-runtime.c (VERSYMIDX): Removed.
10148         * elf/dl-version.c (VERSYMIDX): Likewise.
10149         * elf/do-rel.h (VERSYMIDX): Likewise.
10150         (VALIDX): Likewise.
10151         * elf/dynamic-link.h (VERSYMIDX): Likewise.
10152         * elf/rtld.c (VALIDX): Likewise.
10153         (ADDRIDX): Likewise.
10154         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
10155         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
10156         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
10157         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
10158         (VALIDX): Likewise.
10159         (ADDRIDX): Likewise.
10160
10161 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10162
10163         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
10164
10165 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
10166
10167         [BZ #11438]
10168         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
10169         to global scope.
10170         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
10171         addresses are in the same scope as 192.0.2/24.
10172         * posix/gai.conf: Document new scope table defaults.
10173
10174 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10175
10176         [BZ #5298]
10177         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
10178         for ftell.  Compute offsets from write pointers instead.
10179         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
10180
10181 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10182
10183         [BZ #14543]
10184         * libio/Makefile (tests): New test case tst-fseek.
10185         * libio/tst-fseek.c: New test case to verify that fseek/ftell
10186         combination works in wide mode.
10187         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
10188         state when the external buffer state changes.
10189
10190 2012-09-27  David S. Miller  <davem@davemloft.net>
10191
10192         [BZ #14376]
10193         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
10194         pass reloc->r_addend in as the 'high' argument to
10195         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
10196
10197         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10198
10199 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10200
10201         * rt/tst-aio2.c: Include <pthread.h>.
10202         * rt/tst-aio3.c: Likewise.
10203
10204 2012-09-27  Steve Ellcey  <sellcey@mips.com>
10205
10206         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
10207
10208 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
10209
10210         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
10211         contents on [SHARED].
10212
10213 2012-09-26  Marek Polacek  <polacek@redhat.com>
10214
10215         [BZ #14530]
10216         [BZ #13741]
10217         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
10218         for C++ and GCC <4.3 as well as for non GCC compilers.
10219
10220 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10221
10222         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10223
10224 2012-09-25  Roland McGrath  <roland@hack.frob.com>
10225
10226         * Makefile.in (all, install): Declare with .PHONY.
10227         Reported by Michael Hope <michael.hope@linaro.org>.
10228
10229 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10230
10231         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
10232         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
10233         system header.
10234         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
10235         Likewise.
10236         (sydep_routines): Add the new and the internal functions.
10237         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
10238         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
10239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
10240         (GLIBC_2.17): Add the new function.
10241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
10242         (GLIBC_2.17): Likewise.
10243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
10244         (GLIBC_2.17): Likewise.
10245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
10246         (GLIBC_2.17): Likewise.
10247         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
10248
10249 2012-09-25  Alan Modra  <amodra@gmail.com>
10250
10251         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
10252         Add release barrier before setting once_control to say
10253         initialisation is done.  Add hints on lwarx.  Use macro in
10254         place of isync.
10255         (clear_once_control): Add release barrier.
10256
10257 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
10258
10259         [BZ #13629]
10260         * math/s_clog.c (__clog): Handle more values close to |z| = 1
10261         specially.
10262         * math/s_clog10.c (__clog10): Likewise.
10263         * math/s_clog10f.c (__clog10f): Likewise.
10264         * math/s_clog10l.c (__clog10l): Likewise.
10265         * math/s_clogf.c (__clogf): Likewise.
10266         * math/s_clogl.c (__clogl): Likewise.
10267         * math/Makefile (libm-calls): Add x2y2m1.
10268         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
10269         (__x2y2m1): Likewise.
10270         (__x2y2m1l): Likewise.
10271         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
10272         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
10273         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10274         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10275         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
10276         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10277         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
10278         * sysdeps/i386/fpu/libm-test-ulps: Update.
10279         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10280
10281         [BZ #14621]
10282         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
10283         int as type of variable DEPTH.
10284         (glob): Use size_t instead of int as type of variables NEWCOUNT
10285         and OLD_PATHC.
10286
10287 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10288
10289         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10290         Add s_sincosf-sse2.
10291         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
10292         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
10293         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
10294         macros for using routine as __sincosf_ia32.
10295         Use macro for function declaration and weak_alias.
10296         * sysdeps/i386/fpu/libm-test-ulps: Update.
10297
10298         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
10299         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10300
10301         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
10302         subnormal argument.
10303         * math/s_cexpf.c (__cexpf): Likewise.
10304         * math/s_csinf.c (__csinf): Likewise.
10305         * math/s_csinhf.c (__csinhf): Likewise.
10306         * math/s_ctanf.c (__ctanf): Likewise.
10307         * math/s_ctanhf.c (__ctanhf): Likewise.
10308         * math/s_ccosh.c (__ccoshf): Likewise.
10309         * math/s_cexp.c (__cexpl): Likewise.
10310         * math/s_csin.c (__csin): Likewise.
10311         * math/s_csinh.c (__csinh): Likewise.
10312         * math/s_ctan.c (__ctan): Likewise.
10313         * math/s_ctanh.c (ctanh): Likewise.
10314         * math/s_ccoshl.c (__ccoshl): Likewise.
10315         * math/s_cexpl.c (__cexpl): Likewise.
10316         * math/s_csinl.c (__csinl): Likewise.
10317         * math/s_csinhl.c (__csinhl): Likewise.
10318         * math/s_ctanl.c (__ctanl): Likewise.
10319         * math/s_ctanhl.c (__ctanhl): Likewise.
10320
10321 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
10322
10323         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
10324         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
10325         (_IO_off_t): Define to __off_t, not _G_off_t.
10326         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
10327         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
10328         (_IO_wint_t): Define to wint_t, not _G_wint_t.
10329         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
10330         type of __dummy and __dummy2 fields.
10331         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
10332         (_G_ssize_t): Likewise.
10333         (_G_off_t): Likewise.
10334         (_G_pid_t): Likewise.
10335         (_G_uid_t): Likewise.
10336         (_G_wchar_t): Likewise.
10337         (_G_wint_t): Likewise.
10338         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
10339         (_G_ssize_t): Likewise.
10340         (_G_off_t): Likewise.
10341         (_G_pid_t): Likewise.
10342         (_G_uid_t): Likewise.
10343         (_G_wchar_t): Likewise.
10344         (_G_wint_t): Likewise.
10345         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
10346         (_G_ssize_t): Likewise.
10347         (_G_off_t): Likewise.
10348         (_G_pid_t): Likewise.
10349         (_G_uid_t): Likewise.
10350         (_G_wchar_t): Likewise.
10351         (_G_wint_t): Likewise.
10352
10353 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10354
10355         * malloc/arena.c: Include malloc-sysdep.h.
10356         (shrink_heap): Use check_may_shrink_heap to decide if madvise
10357         is sufficient to shrink the heap or an unmap is needed.
10358         * sysdeps/generic/malloc-sysdep.h: New file.  Define
10359         new function check_may_shrink_heap.
10360         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
10361         new function check_may_shrink_heap.
10362
10363 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10364
10365         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
10366         comments.
10367
10368 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
10369
10370         * catgets/test-gencat.sh: Add "set -e".
10371         * elf/tst-pathopt.sh: Likewise.
10372         * grp/tst_fgetgrent.sh: Likewise.
10373         * iconvdata/run-iconv-test.sh: Likewise.
10374         * intl/tst-gettext.sh: Likewise.
10375         * intl/tst-gettext2.sh: Likewise.
10376         * intl/tst-gettext4.sh: Likewise.
10377         * intl/tst-gettext6.sh: Likewise.
10378         * intl/tst-translit.sh: Likewise.
10379         * io/ftwtest-sh: Likewise.
10380         * libio/test-freopen.sh: Likewise.
10381         * malloc/tst-mtrace.sh: Likewise.
10382         * posix/globtest.sh: Likewise.
10383         * posix/tst-getconf.sh: Likewise.
10384         * posix/wordexp-tst.sh: Likewise.
10385         * stdio-common/tst-printf.sh: Likewise.
10386         * stdio-common/tst-unbputc.sh: Likewise.
10387         * stdlib/tst-fmtmsg.sh: Likewise.
10388         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
10389         * catgets/Makefile: Do not specify -e option when running
10390         testsuite shell scripts.
10391         * elf/Makefile: Likewise.
10392         * grp/Makefile: Likewise.
10393         * iconvdata/Makefile: Likewise.
10394         * intl/Makefile: Likewise.
10395         * io/Makefile: Likewise.
10396         * libio/Makefile: Likewise.
10397         * malloc/Makefile: Likewise.
10398         * posix/Makefile: Likewise.
10399         * stdio-common/Makefile: Likewise.
10400         * stdlib/Makefile: Likewise.
10401         * sysdeps/x86_64/Makefile: Likewise.
10402
10403         * io/ftwtest-sh: Add copyright header.
10404         * posix/globtest.sh: Likewise.
10405         * posix/tst-getconf.sh: Likewise.
10406         * posix/wordexp-tst.sh: Likewise.
10407         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
10408
10409 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
10410
10411         [BZ #13679]
10412         * Makeconfig (+link): Defined as $(+link-static) if
10413         $(build-shared) isn't yes.
10414         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
10415         isn't yes.
10416         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
10417
10418         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
10419
10420         [BZ #14562]
10421         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
10422         new chunk size with MALLOC_ALIGN_MASK.
10423
10424 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
10425
10426         [BZ #5044]
10427         * stdio-common/printf_fphex.c: Include <stdbool.h> and
10428         <rounding-mode.h>.
10429         (__printf_fphex): Determine rounding using get_rounding_mode and
10430         round_away.
10431         * stdio-common/tst-printf-round.c (struct hex_test): New
10432         structure.
10433         (hex_tests): New variable.
10434         (test_hex_in_one_mode): New function.
10435         (do_test): Also run tests for hex float output.
10436
10437 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
10438
10439         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
10440         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
10441         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
10442         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
10443         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
10444         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
10445         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
10446         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
10447
10448 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
10449
10450         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
10451         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
10452         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
10453         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
10454
10455 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
10456
10457         [BZ #14579]
10458         * elf/rtld.c (dl_main): Limit the check for self loading to normal
10459         mode only.
10460         * elf/tst-rtld-load-self.sh: New test.
10461         * elf/Makefile: Run it.
10462
10463 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
10464
10465         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
10466         (tst-writev-ENV): Remove.
10467         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
10468
10469 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
10470
10471         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
10472
10473 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
10474
10475         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
10476         unconditional.
10477         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
10478         Likewise.
10479         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
10480         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
10481         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
10482         Likewise.
10483
10484 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
10485
10486         [BZ #14587]
10487         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
10488         * config.make.in (have-cpp-asm-debuginfo): Removed.
10489         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
10490         * configure: Regenerated.
10491
10492 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
10493
10494         [BZ #5044]
10495         * stdio-common/printf_fp.c: Include <stdbool.h> and
10496         <rounding-mode.h>.
10497         (___printf_fp): Determine rounding using get_rounding_mode and
10498         round_away.
10499         * stdio-common/tst-printf-round.c: New file.
10500         * stdio-common/Makefile (tests): Add tst-printf-round.
10501         (link-libm): New variable.
10502         ($(objpfx)tst-printf-round): Depend in $(link-libm).
10503
10504 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
10505
10506         [BZ #14576]
10507         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
10508         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
10509         Likewise.
10510         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
10511         Likewise.
10512
10513 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
10514
10515         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
10516         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10517         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10518         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10519
10520 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
10521
10522         [BZ #14518]
10523         * include/rounding-mode.h: New file.
10524         * sysdeps/generic/get-rounding-mode.h: Likewise.
10525         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
10526         * stdlib/strtod_l.c: Include <rounding-mode.h>.
10527         (MAX_VALUE): New macro.
10528         (MIN_VALUE): Likewise.
10529         (overflow_value): New function.
10530         (underflow_value): Likewise.
10531         (round_and_return): Use overflow_value and underflow_value to
10532         determine return values in overflow and underflow cases.  Use
10533         round_away to determine rounding depending on rounding mode.
10534         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
10535         determine return values in overflow and underflow cases.
10536         * stdlib/tst-strtod-round.c: Include <fenv.h>.
10537         (struct test_results): New structure.
10538         (struct test): Use struct test_results to store expected results
10539         for all rounding modes.
10540         (TEST): Include expected results for all rounding modes.
10541         (test_in_one_mode): New function.
10542         (do_test): Use test_in_one_mode to compute and check results.
10543         Check results for all rounding modes.
10544         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
10545         $(link-libm).
10546
10547 2012-12-09  Allan McRae  <allan@archlinux.org>
10548
10549         * sysdeps/i386/fpu/libm-test-ulps: Update
10550
10551 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
10552
10553         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
10554         (_G_int32_t): Likewise.
10555         (_G_uint16_t): Likewise.
10556         (_G_uint32_t): Likewise.
10557         (_G_HAVE_BOOL): Likewise.
10558         (_G_HAVE_ATEXIT): Likewise.
10559         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10560         (_G_HAVE_IO_FILE_OPEN): Likewise.
10561         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
10562         (_G_int32_t): Likewise.
10563         (_G_uint16_t): Likewise.
10564         (_G_uint32_t): Likewise.
10565         (_G_HAVE_BOOL): Likewise.
10566         (_G_HAVE_ATEXIT): Likewise.
10567         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10568         (_G_HAVE_IO_FILE_OPEN): Likewise.
10569         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
10570         (_G_int32_t): Likewise.
10571         (_G_uint16_t): Likewise.
10572         (_G_uint32_t): Likewise.
10573         (_G_HAVE_BOOL): Likewise.
10574         (_G_HAVE_ATEXIT): Likewise.
10575         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10576         (_G_HAVE_IO_FILE_OPEN): Likewise.
10577
10578 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
10579
10580         * csu/libc-tls.c: Update copyright years.
10581
10582 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
10583
10584         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
10585         [!_G_USING_THUNKS]: Remove conditional code.
10586         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
10587         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
10588
10589         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
10590         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
10591         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10592         (_G_VTABLE_LABEL_PREFIX): Likewise.
10593         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10594         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10595         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10596         (_G_VTABLE_LABEL_PREFIX): Likewise.
10597         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
10598         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10599         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10600         (_G_VTABLE_LABEL_PREFIX): Likewise.
10601         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
10602
10603 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
10604
10605         * libio/Makefile: Include ../Makeconfig before tests.
10606         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
10607         only if $(build-shared) is yes.
10608
10609         * iconv/gconv_db.c: Update copyright years.
10610
10611 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10612
10613         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
10614         unwind info if defined PIC. Fix special cases description.
10615         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
10616
10617         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
10618         DP_HI_MASK entry.
10619         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
10620
10621 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
10622
10623         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
10624
10625         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
10626         is NULL.
10627
10628         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
10629         (LDLIBS-tst-chk4): This.
10630         (LDFLAGS-tst-chk5): Renamed to ...
10631         (LDLIBS-tst-chk5): This.
10632         (LDFLAGS-tst-chk6): Renamed to ...
10633         (LDLIBS-tst-chk6): This.
10634         (LDFLAGS-tst-lfschk4): Renamed to ...
10635         (LDLIBS-tst-lfschk4): This.
10636         (LDFLAGS-tst-lfschk5): Renamed to ...
10637         (LDLIBS-tst-lfschk5): This.
10638         (LDFLAGS-tst-lfschk6): Renamed to ...
10639         (LDLIBS-tst-lfschk6): This.
10640
10641         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
10642         on $(common-objpfx)soversions.mk.
10643
10644 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
10645
10646         [BZ #10014]
10647         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
10648         example host name.
10649
10650 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
10651
10652         * malloc/arena.c (arena_get_retry): New function that gets
10653         another arena for the caller to try its request on.
10654         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
10655         current arena cannot fulfill the request.
10656         (__libc_memalign): Likewise.
10657         (__libc_memalign): Likewise.
10658         (__libc_pvalloc): Likewise.
10659         (__libc_calloc): Likewise.
10660
10661 2012-09-05  John Tobey  <john.tobey@gmail.com>
10662
10663         [BZ #13542]
10664         * manual/arith.texi (Operations on Complex): Fix description
10665         of carg branch cut.
10666
10667 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
10668
10669         [BZ #10014]
10670         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
10671         host name.
10672
10673         [BZ #10038]
10674         * manual/memory.texi (Memory): Make order of menu items match
10675         order of sections.
10676
10677 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10678
10679         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
10680         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
10681         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
10682
10683 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10684
10685         * csu/libc-tls.c (static_dtv): Renamed to ...
10686         (_dl_static_dtv): This.  Make it global.
10687         (_dl_initial_dtv): Removed.
10688         (__libc_setup_tls): Updated.
10689         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
10690         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
10691         DL_INITIAL_DTV.
10692
10693 2012-09-06  Petr Machata  <pmachata@redhat.com>
10694
10695         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
10696         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
10697         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
10698         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
10699
10700 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10701
10702         [BZ #14545]
10703         * csu/libc-tls.c (_dl_initial_dtv): New variable.
10704         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
10705         freeing dtv[-1].
10706
10707 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10708
10709         [BZ #14544]
10710         * Makeconfig (link-static-before-libc): Replace $(+prector)
10711         with $(+prectorT).
10712         (link-static-after-libc): Replace $(+postctor) with
10713         $(+postctorT).
10714         (link-bounded): Replace $(+prector)/$(+postctor) with
10715         $(+prectorT)/$(+postctorT).
10716         (+prectorT): New macro.
10717         (+postctorT): Likewise.
10718
10719 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
10720
10721         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
10722         (round_str): Handle values above the maximum for IBM long double
10723         as inexact.
10724         * stdlib/tst-strtod-round.c (tests): Regenerated.
10725
10726 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10727
10728         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
10729         assembler flag.
10730         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
10731         zarch_nohighgprs around the zarch optimized routines.
10732         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
10733         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
10734         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
10735         for zarch.
10736
10737 2012-09-05  David S. Miller  <davem@davemloft.net>
10738
10739         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10740
10741         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
10742         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
10743         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
10744         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
10745         entries.
10746
10747 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10748
10749         * malloc/arena.c: Fold copyright years.
10750         * malloc/mcheck.c, malloc/memusage.c: Likewise.
10751
10752 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10753
10754         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
10755
10756 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10757
10758         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
10759
10760 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10761
10762         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
10763         change internal state upon failure.
10764
10765 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10766
10767         * malloc/mcheck.c (mcheck_check_all): Fix typo.
10768         * malloc/memusage.c (mmap): Likewise.
10769         (mmap64, mremap): Likewise.  Adjust name in comment.
10770
10771 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10772
10773         * libio/fileops.c: Fix typos in comments.
10774         * libio/oldfileops.c: Likewise.
10775         * libio/wfileops.c: Likewise.
10776
10777 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10778
10779         [BZ #1349]
10780         * malloc/Makefile (tests): Add tst-malloc-usable test case.
10781         (tst-malloc-usable-ENV): Set environment for test case.
10782         * malloc/hooks.c (malloc_check_get_size): New function to get
10783         requested size.
10784         * malloc/malloc.c (musable): Use malloc_check_get_size.
10785         * malloc/tst-malloc-usable.c: New test case.
10786
10787 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10788
10789         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
10790
10791 2012-09-05  Allan McRae  <allan@archlinux.org>
10792
10793         [BZ #13966]
10794         * configure.in (CXX_SYSINCLUDES): Use compiler output to
10795         determine header location.
10796         * configure: Regenerated.
10797
10798 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10799
10800         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
10801         float format.
10802         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
10803         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
10804         format.
10805         (test): Regenerate.
10806
10807 2012-09-04  David S. Miller  <davem@davemloft.net>
10808
10809         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
10810         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
10811         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
10812
10813 2012-09-04  Florian Weimer  <fweimer@redhat.com>
10814
10815         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
10816         failures.
10817
10818         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
10819
10820 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
10821
10822         [BZ #9914]
10823         * libio/iogetdelim.c: Include <limits.h>.
10824         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
10825         + len + 1 would overflow.
10826
10827 2012-09-03  Andreas Jaeger  <aj@suse.de>
10828
10829         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10830         * sysdeps/i386/fpu/libm-test-ulps: Update.
10831
10832 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10833
10834         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10835         Add s_sinf-sse2, s_conf-sse2.
10836
10837         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
10838         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
10839         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
10840         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
10841
10842         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
10843         for using routine as __sinf_ia32.
10844         Use macro for function declaration and weak_alias.
10845         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
10846         for using routine as __cosf_ia32.
10847         Use macro for function declaration and weak_alias.
10848
10849         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
10850         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
10851
10852         * sysdeps/x86_64/fpu/s_sinf.S: New file.
10853         * sysdeps/x86_64/fpu/s_cosf.S: New file.
10854         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10855
10856         * math/libm-test.inc (cos_test): Add more test cases.
10857         (sin_test): Likewise.
10858         (sincos_test): Likewise.
10859
10860 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10861
10862         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
10863         (IFUNC_RESOLVE): Make pointers to the specialized implementations
10864         hidden.
10865         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10866
10867 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
10868
10869         [BZ #14538]
10870         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
10871         first element of the GOT.
10872         (elf_machine_load_address): Return the difference between
10873         the runtime address of _DYNAMIC and elf_machine_dynamic ().
10874
10875 2012-09-01  Allan McRae  <allan@archlinux.org>
10876
10877         [BZ #13412]
10878         * configure.in (AWK): Require gawk version 3.0 or later.
10879         * configure: Regenerated.
10880
10881 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
10882
10883         * sysdeps/unix/sysv/linux/kernel-features.h
10884         (__ASSUME_POSIX_CPU_TIMERS): Remove.
10885         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10886         [__NR_clock_getres]: Make code unconditional.
10887         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
10888         (clock_getcpuclockid): Remove code left unreachable by removal of
10889         conditionals.
10890         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
10891         code unconditional.
10892         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10893         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10894         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
10895         Make code unconditional.
10896         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10897         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10898         * sysdeps/unix/sysv/linux/clock_settime.c
10899         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
10900         conditional code.
10901         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
10902         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10903
10904 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
10905
10906         [BZ #14476]
10907         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
10908         scripts/test-installation.pl.
10909
10910         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
10911         and $ld_so_version if it is set.
10912
10913 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10914
10915         [BZ #14516]
10916         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
10917         failure if reading from procfs failed.
10918         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
10919
10920 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10921
10922         * sysdeps/unix/sysv/linux/kernel-features.h
10923         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
10924         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10925         Remove conditional code.
10926         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10927         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
10928         Remove conditional code.
10929         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10930         * sysdeps/unix/sysv/linux/i386/fxstat.c
10931         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10932         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10933         * sysdeps/unix/sysv/linux/i386/fxstatat.c
10934         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10935         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10936         * sysdeps/unix/sysv/linux/i386/lxstat.c
10937         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10938         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10939         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
10940         Remove conditional code.
10941         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10942         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10943         Remove conditional code.
10944         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10945         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
10946         <kernel-features.h>.
10947         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
10948         Remove.
10949         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
10950         Remove conditional code.
10951         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10952         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
10953         Remove conditional.
10954
10955 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
10956
10957         [BZ #5400]
10958         * NEWS: Add fixed bug number.
10959
10960 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10961
10962         [BZ #14519]
10963         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
10964         underflowing exponent in case of negative sign.
10965         * stdlib/tst-strtod-round-data: Add more tests.
10966         * stdlib/tst-strtod-round.c (tests): Regenerated.
10967
10968         [BZ #3479]
10969         * stdlib/strtod_l.c (NDIG): Remove.
10970         (HEXNDIG): Likewise.
10971         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
10972         smallest representable value.
10973         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
10974         lie within an exact representation of 1/2 ulp of the result.
10975         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
10976         unconditionally.
10977         (TENS_P9_IDX): Define unconditionally.
10978         (TENS_P9_SIZE): Likewise.
10979         (TENS_P10_IDX): Likewise.
10980         (TENS_P10_SIZE): Likewise.
10981         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
10982         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
10983         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
10984         entries for 10^2^13 and 10^2^14.
10985         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
10986         (TENS_P13_IDX): Define.
10987         (TENS_P13_SIZE): Likewise.
10988         (TENS_P14_IDX): Likewise.
10989         (TENS_P14_SIZE): Likewise.
10990         (_fpioconst_pow10): Change array size to
10991         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
10992         unconditional.
10993         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
10994         1024]: Add entries for 10^2^13 and 10^2^14.
10995         [LAST_POW10 > _LAST_POW10]: Remove #error.
10996         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
10997         (_fpioconst_pow10): Change array size to
10998         FPIOCONST_POW10_ARRAY_SIZE.
10999         * stdlib/gen-fpioconst.c: New file.
11000         * stdlib/gen-tst-strtod-round.c: Likewise.
11001         * stdlib/tst-strtod-round-data: Likewise.
11002         * stdlib/tst-strtod-round.c: Likewise.
11003         * stdlib/Makefile (tests): Add tst-strtod-round.
11004
11005         [BZ #14459]
11006         * stdlib/strtod_l.c: Include <stdint.h>.
11007         (NDEBUG): Do not define.
11008         (round_and_return): Change EXPONENT parameter to type intmax_t.
11009         Rearrange calculations to avoid internal overflow possibilities.
11010         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
11011         Rearrange calculations to avoid internal overflow possibilities.
11012         Assert that number fits inside MPNSIZE limbs.
11013         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
11014         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
11015         calculations and add assertions to avoid internal overflow
11016         possibilities.  Add casts to avoid signed/unsigned operations.
11017         * stdlib/tst-strtod-overflow.c: New file.
11018         * stdlib/Makefile (tests): Add tst-strtod-overflow.
11019
11020 2012-08-25  Marek Polacek  <polacek@redhat.com>
11021
11022         * time/time.h: Fix some typos in comments.
11023
11024 2012-08-23  Roland McGrath  <roland@hack.frob.com>
11025
11026         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
11027         * posix/tst-rfc3484-2.c: Likewise.
11028         * posix/tst-rfc3484-3.c: Likewise.
11029
11030 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
11031
11032         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
11033         (EF_ARM_ABI_FLOAT_HARD): Likewise.
11034
11035 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
11036
11037         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
11038         #include of fxstatat64.c.
11039
11040 2012-08-22  Roland McGrath  <roland@hack.frob.com>
11041
11042         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
11043         * shadow/getspent_r.c: Likewise.
11044         * shadow/getspnam.c: Likewise.
11045         * shadow/getspnam_r.c: Likewise.
11046         * gshadow/getsgent.c: Likewise.
11047         * gshadow/getsgent_r.c: Likewise.
11048         * gshadow/getsgnam.c: Likewise.
11049         * gshadow/getsgnam_r.c: Likewise.
11050         * inet/getnetbyad.c: Likewise.
11051         * inet/getnetbyad_r.c: Likewise.
11052         * inet/getnetbynm.c: Likewise.
11053         * inet/getnetbynm_r.c: Likewise.
11054         * inet/getnetent.c: Likewise.
11055         * inet/getnetent_r.c: Likewise.
11056         * inet/getproto.c: Likewise.
11057         * inet/getproto_r.c: Likewise.
11058         * inet/getprtent.c: Likewise.
11059         * inet/getprtent_r.c: Likewise.
11060         * inet/getprtname.c: Likewise.
11061         * inet/getprtname_r.c: Likewise.
11062         * inet/getrpcbyname.c: Likewise.
11063         * inet/getrpcbyname_r.c: Likewise.
11064         * inet/getrpcbynumber.c: Likewise.
11065         * inet/getrpcbynumber_r.c: Likewise.
11066         * inet/getrpcent.c: Likewise.
11067         * inet/getrpcent_r.c: Likewise.
11068         * inet/getaliasent.c: Likewise.
11069         * inet/getaliasent_r.c: Likewise.
11070         * inet/getaliasname.c: Likewise.
11071         * inet/getaliasname_r.c: Likewise.
11072         * nscd/getgrgid_r.c: Likewise.
11073         * nscd/getgrnam_r.c: Likewise.
11074         * nscd/gethstbyad_r.c: Likewise.
11075         * nscd/gethstbynm3_r.c: Likewise.
11076         * nscd/getpwnam_r.c: Likewise.
11077         * nscd/getpwuid_r.c: Likewise.
11078         * nscd/getsrvbynm_r.c: Likewise.
11079         * nscd/getsrvbypt_r.c: Likewise.
11080         * nscd/gai.c: Likewise.
11081
11082         * configure.in (build_nscd): New substituted variable, set
11083         by --disable-build-nscd and defaults to $use_nscd.
11084         * configure: Regenerated.
11085         * config.make.in (build-nscd): New substituted variable.
11086         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
11087         Change conditional to require [$(build-nscd) = yes] as well.
11088         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
11089
11090         [BZ# 13696]
11091         * configure.in (use_nscd): New substituted variable, set by
11092         --disable-nscd.  If enabled, define USE_NSCD.
11093         * configure: Regenerated.
11094         * config.h.in: Add USE_NSCD.
11095         * config.make.in (use-nscd): New substituted variable.
11096         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
11097         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
11098         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
11099         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
11100         (CFLAGS-getgrnam_r.c): Likewise.
11101         (CFLAGS-initgroups.c): Likewise.
11102         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
11103         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
11104         Variables removed.
11105         * inet/getnetgrent_r.c
11106         (nscd_setnetgrent): New function, broken out of ...
11107         (setnetgrent): ... here.  Call it.
11108         (innetgr): Conditionalize nscd bits on [USE_NSCD].
11109         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
11110         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
11111         * nscd/Makefile (routines, aux): Move definitions after include of
11112         Makeconfig.  Conditionalize on [$(use-nscd) != no].
11113         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
11114         Conditionalize on [USE_NSCD].
11115         (is_nscd, nscd_init_cb): Likewise.
11116         (nss_load_library): Conditionalize init callback on [USE_NSCD].
11117         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
11118         * nss/nss_db/db-init.c: Likewise.
11119         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
11120         [USE_NSCD].
11121         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
11122         (make_request): Use it.
11123         (cache_valid_p): New function.
11124         (__check_pf): Use it.
11125         * NEWS: Add item for --disable-nscd.
11126
11127 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
11128
11129         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
11130         to support sed >= 4.2.1-20-ga9bf076.
11131         * configure: Regenerated.
11132
11133 2012-08-22  Roland McGrath  <roland@hack.frob.com>
11134
11135         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
11136         Conditionalize whole body on [IREL].
11137
11138 2012-08-22  Jeff Law <law@redhat.com>
11139
11140         [BZ #14505]
11141         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
11142         if the family is PF_UNSPEC.
11143
11144 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
11145
11146         * Makerules (lib-version): Rename from V.
11147         (install-lib-nosubdir): Change V to lib-version.
11148
11149 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
11150
11151         [BZ #14252]
11152         * powerpc32/power6/wcschr.c: New file.
11153         * powerpc32/power6/wcscpy.c: New file.
11154         * powerpc32/power6/wcsrchr.c: New file.
11155         * powerpc64/power6/wcschr.c: New file.
11156         * powerpc64/power6/wcscpy.c: New file.
11157         * powerpc64/power6/wcsrchr.c: New file.
11158
11159 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
11160
11161         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
11162         (two_way_short_needle): Use it.
11163         * string/strstr.c (AVAILABLE1_USES_J): Define.
11164         * string/strcasestr.c: Likewise.
11165
11166         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
11167         array references.
11168         * string/strcasestr.c (TOLOWER): Make side-effect safe.
11169
11170         [BZ #11607]
11171         * NEWS: Add an entry.
11172         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
11173         define their defaults.
11174         (two_way_short_needle): Detect end-of-string on-the-fly.
11175         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
11176         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
11177         * string/bug-strcasestr1.c: New test.
11178         * string/Makefile: Run it.
11179
11180 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
11181
11182         [BZ #11607]
11183         * string/str-two-way.h (two_way_short_needle): Optimize matching of
11184         the first character.
11185
11186 2012-08-21  Roland McGrath  <roland@hack.frob.com>
11187
11188         * csu/elf-init.c (__libc_csu_irel): Function removed.
11189         * csu/libc-start.c (apply_irel): New function.
11190         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
11191
11192 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
11193
11194         * sysdeps/unix/sysv/linux/kernel-features.h
11195         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
11196         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
11197         <kernel-features.h>.
11198         [__NR_fadvise64_64]: Make code unconditional.
11199         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
11200         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
11201         !__NR_fadvise64_64)]: Likewise.
11202         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
11203         !__NR_fadvise64_64))]: Likewise.
11204         [__NR_fadvise64]: Make code unconditional.
11205         [!__NR_fadvise64]: Remove conditional code.
11206         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
11207         <kernel-features.h>.
11208         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11209         unconditional.
11210         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11211         conditional code.
11212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
11213         not include <kernel-features.h>.
11214         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11215         unconditional.
11216         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11217         conditional code.
11218         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
11219         include <kernel-features.h>.
11220         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11221         unconditional.
11222         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11223         conditional code.
11224
11225 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
11226
11227         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
11228         slight instruction rearrangements per scrollpipe analysis.
11229         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
11230
11231 2012-08-20  Roland McGrath  <roland@hack.frob.com>
11232
11233         * manual/syslog.texi (syslog; vsyslog, closelog):
11234         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
11235         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
11236
11237         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
11238         DSOCAPS to match condition on defining it.
11239
11240 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
11241
11242         * sysdeps/unix/sysv/linux/kernel-features.h
11243         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
11244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
11245         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11246         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
11248         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11249         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
11251         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11252         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11253
11254         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
11255         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
11256
11257         * sysdeps/unix/sysv/linux/kernel-features.h
11258         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
11259         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
11260         unconditional.
11261         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11262         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
11263         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
11264         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11265         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
11266         Make code unconditional.
11267         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11268         (__mmap64) [!__NR_mmap2]: Likewise.
11269         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
11270         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
11271         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11272         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
11273         [__NR_mmap2]: Make code unconditional.
11274         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11275         (__mmap64) [!__NR_mmap2]: Likewise.
11276
11277 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11278
11279         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
11280
11281 2012-08-18  Andreas Jaeger  <aj@suse.de>
11282
11283         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
11284
11285 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
11286
11287         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
11288         * include/unistd.h (__have_sock_cloexec): Likewise.
11289         (__have_pipe2): Likewise.
11290         (__have_dup3): Likewise.
11291
11292 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
11293
11294         [BZ #9685]
11295         * include/unistd.h (__have_pipe2): Change define into an extern int.
11296         (__have_dup3): Likewise.
11297         * socket/have_sock_cloexec.c: Include fcntl.h.
11298         (__have_pipe2): New variable.
11299         (__have_dup3): Likewise.
11300
11301 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
11302
11303         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
11304
11305 2012-08-17  Marek Polacek  <polacek@redhat.com>
11306
11307         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
11308         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
11309
11310 2012-08-17  Roland McGrath  <roland@hack.frob.com>
11311
11312         * configure.in: Add AC_SUBST for sysheaders.
11313         * configure: Regenerated.
11314         * config.make.in (sysheaders): New substituted variable.
11315
11316         * sysdeps/unix/mkfifo.c: Moved ...
11317         * sysdeps/posix/mkfifo.c: ... here.
11318         * sysdeps/unix/mkfifoat.c: Moved ...
11319         * sysdeps/posix/mkfifoat.c: ... here.
11320
11321         * sysdeps/unix/utime.c: Moved ...
11322         * sysdeps/posix/utime.c: ... here.
11323
11324         * sysdeps/unix/time.c: Moved ...
11325         * sysdeps/posix/time.c: ... here.
11326         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
11327         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
11328
11329         * sysdeps/unix/nice.c: Moved ...
11330         * sysdeps/posix/nice.c: ... here.
11331
11332         * sysdeps/unix/alarm.c: Moved ...
11333         * sysdeps/posix/alarm.c: ... here.
11334
11335         * intl/Makefile ($(codeset_mo)): Depend on the input file.
11336
11337 2012-08-17  Jeff Law <law@redhat.com>
11338
11339         * intl/Makefile (codeset_mo): New variable.
11340         ($(codeset_mo)): New target.
11341         (tst-codeset.out): Depend on that.  Remove explicit rule.
11342         (tst-gettext3.out, tst-gettext5.out): Likewise.
11343         (LOCPATH-ENV, tst-codeset-ENV): New variables.
11344         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
11345         * intl/tst-codeset.sh: Remove.
11346         * intl/tst-gettext3.sh: Likewise.
11347         * intl/tst-gettext5.sh: Likewise.
11348
11349 2012-08-17  Roland McGrath  <roland@hack.frob.com>
11350
11351         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
11352         * sysdeps/unix/syscalls.list: ... here.
11353
11354         * sysdeps/posix/getaddrinfo.c
11355         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
11356         (gaiconf_init, gaiconf_reload): Use them.
11357         [!_STATBUF_ST_NSEC]
11358         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
11359         Define using time_t rather than struct timespec.
11360
11361         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
11362         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
11363         Macros removed.
11364         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
11365         [!NO_THREADS].
11366         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
11367         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
11368         Likewise.
11369
11370         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
11371         __libc_cleanup_push argument.
11372
11373         * bits/param.h: New file.
11374         * misc/sys/param.h: New file.
11375         * include/sys/param.h: New file.
11376         * misc/Makefile (headers): Add bits/param.h.
11377         * sysdeps/generic/sys/param.h: File removed.
11378         * sysdeps/unix/sysv/linux/bits/param.h: New file.
11379         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
11380         * sysdeps/mach/hurd/bits/param.h: New file.
11381         * sysdeps/mach/hurd/sys/param.h: File removed.
11382
11383         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
11384         last change.
11385
11386         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
11387         [_IO_MTSAFE_IO].
11388         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
11389         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
11390         New macros.
11391
11392         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
11393         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
11394         rather than -D_IO_MTSAFE_IO conditionally.
11395         * stdio-common/Makefile (CPPFLAGS): Likewise.
11396         * wcsmbs/Makefile (CPPFLAGS): Likewise.
11397         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
11398         Use $(libio-mtsafe).
11399         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
11400         of -D_IO_MTSAFE_IO.
11401         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
11402         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
11403         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
11404         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
11405         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
11406         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
11407         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
11408         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
11409         (CFLAGS-fread_u_chk.c): Likewise.
11410         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
11411         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
11412         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
11413         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
11414         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
11415         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
11416         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
11417         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
11418         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
11419
11420         * libio/Makefile: Test [$(libc-reentrant) = yes]
11421         instead of [$(filter %REENTRANT, $(defines)) nonempty].
11422
11423         * Makeconfig
11424         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
11425         * sysdeps/pthread/configure: File removed.
11426         * sysdeps/pthread/Makeconfig: New file.
11427         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
11428         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
11429
11430 2012-08-16  Gary Benson  <gbenson@redhat.com>
11431
11432         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
11433         unmapping the first object in a namespace.
11434
11435 2012-08-16  Roland McGrath  <roland@hack.frob.com>
11436
11437         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
11438         (__internal_setnetgrent): ... this.  Add internal_function to
11439         definition.  Add libc_hidden_def.
11440         (setnetgrent): Update caller.
11441         (internal_endnetgrent): Renamed to ...
11442         (__internal_endnetgrent): ... this.  Add internal_function to
11443         definition.  Add libc_hidden_def.
11444         (endnetgrent): Update caller.
11445         (internal_getnetgrent_r): Renamed to ...
11446         (__internal_getnetgrent_r): ... this.  Add internal_function to
11447         definition.  Add libc_hidden_def.
11448         (__getnetgrent_r): Update caller.
11449         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
11450
11451 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
11452
11453         * stdlib/longlong.h: Update from GCC.
11454
11455 2012-08-16  Roland McGrath  <roland@hack.frob.com>
11456
11457         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
11458         on _QL, which is set by umul_ppmm but never used.
11459         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
11460         variables, which are set by GMP macros but never used.
11461         * stdio-common/_itowa.c (_itowa): Likewise.
11462         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
11463         * stdlib/mod_1.c (mpn_mod_1): Likewise.
11464
11465 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
11466
11467         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
11468         struct La_sh_regs is not constant.
11469         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
11470         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
11471         and struct La_sparc64_regs are not constant.
11472
11473 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
11474
11475         * sysdeps/unix/sysv/linux/kernel-features.h
11476         (__ASSUME_POSIX_TIMERS): Remove.
11477         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
11478         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11479         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
11480         Make code unconditional.
11481         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11482         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
11483         Make code unconditional.
11484         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11485         * sysdeps/unix/sysv/linux/clock_nanosleep.c
11486         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
11487         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11488         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
11489         Make code unconditional.
11490         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11491         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
11492         (__libc_missing_posix_timers): Remove.
11493
11494 2012-08-15  Roland McGrath  <roland@hack.frob.com>
11495
11496         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
11497         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
11498
11499         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
11500
11501         * elf/dl-sym.c: Include <stdlib.h>.
11502
11503         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
11504         constants, which avoids warnings in 32-bit builds.
11505
11506         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
11507         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
11508
11509         * misc/lseek.c: File moved to ...
11510         * io/lseek.c: ... here.
11511
11512         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
11513
11514         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
11515         shifting LEN more than 31 bits at once.
11516
11517 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11518
11519         [BZ #14195]
11520         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
11521         segmentation fault for a case of two empty input strings.
11522         * string/test-strncasecmp.c (check1): Renamed to...
11523         (bz12205): ...this.
11524         (bz14195): Add new testcase for two empty input strings and N > 0.
11525         (test_main): Call new testcase, adapt for renamed function.
11526
11527 2012-08-15  Andreas Jaeger  <aj@suse.de>
11528
11529         [BZ #14090]
11530         * crypt/md5test2.c: New test, based on test supplied by Serge
11531         Belyshev <belyshev@depni.sinp.msu.ru>.
11532         * crypt/Makefile (xtests): Add md5test-giant..
11533         * crypt/Makefile ($(objpfx)md5test-giant): Add.
11534
11535 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11536
11537         [BZ #14090]
11538         * crypt/md5.c (md5_process_block): Don't assume the buffer
11539         length is less than 2**32.
11540         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
11541         length is less than 2**64.
11542
11543 2012-08-15  Roland McGrath  <roland@hack.frob.com>
11544
11545         * string/str-two-way.h: Include <sys/param.h>.
11546         (MAX): Macro removed.
11547
11548         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
11549         Move #define and #undef of memmove to just before and after
11550         including <string.h>.
11551
11552         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
11553         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
11554         and after including <string.h>.  Move declarations of
11555         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
11556         to before #include "string/memmove.c".
11557
11558         * include/dirent.h: Declare __getdirentries.
11559
11560         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
11561         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
11562
11563 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
11564
11565         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
11566         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
11567         * sysdeps/i386/configure: Regenerated.
11568         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
11569         STABS_CURRENT_FILE, and STABS_FUN.
11570         (END): Remove call to STABS_FUN_END.
11571         (STABS_CURRENT_FILE1): Delete.
11572         (STABS_CURRENT_FILE): Likewise.
11573         (STABS_FUN): Likewise.
11574         (STABS_FUN_END): Likewise.
11575         (STABS_FUN2): Likewise.
11576         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
11577         * sysdeps/x86_64/configure: Regenerated.
11578
11579 2012-08-14  Roland McGrath  <roland@hack.frob.com>
11580
11581         * elf/dl-open.c: Include <atomic.h>.
11582         * elf/dl-lookup.c: Likewise.
11583
11584 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
11585
11586         * sysdeps/unix/sysv/linux/kernel-features.h
11587         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
11588         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
11589         unconditionally.
11590         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
11591         unconditionally.
11592         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
11593         condition on __ASSUME_CLONE_THREAD_FLAGS.
11594
11595 2012-08-14  Andreas Jaeger  <aj@suse.de>
11596
11597         * sysdeps/i386/fpu/libm-test-ulps: Update.
11598
11599 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
11600
11601         * include/atomic.h (atomic_exchange_and_add): Split into ...
11602         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
11603         New atomic macros.
11604
11605 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
11606
11607         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11608
11609 2012-08-13  Jeff Law <law@redhat.com>
11610
11611         * manual/stdio.texi (snprintf): Clarify handling of the trailing
11612         null byte in the output string.
11613
11614 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
11615
11616         * sysdeps/unix/sysv/linux/kernel-features.h
11617         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
11618         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
11619         (__ASSUME_ARG_MAX_STACK_BASED): Define.
11620         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
11621         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
11622         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
11623         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
11624
11625 2012-08-09  Jeff Law <law@redhat.com>
11626
11627         [BZ #13939]
11628         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
11629         When avoid_arena is set, don't retry in the that arena.  Pick the
11630         next one, whatever it might be.
11631         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
11632         (arena_lock): Pass in new parameter to arena_get2.
11633         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
11634         arena_get2.
11635         (__libc_malloc): Unify retrying after main arena failure with
11636         __libc_memalign version.
11637         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
11638
11639 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
11640
11641         [BZ #14166]
11642         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
11643         to __redirect_strstr.
11644         (__strstr_sse42): Use typeof __redirect_strstr.
11645         (__strstr_ia32): Likewise.
11646         (__libc_strstr): New prototype.
11647         (strstr): Renamed to ...
11648         (__libc_strstr): This.
11649         (strstr): New strong alias of __libc_strstr.
11650         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
11651         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
11652         __redirect_time.
11653         Include <time.h>.
11654         (__libc_time): New prototype.
11655         (time_ifunc): Replace time with __libc_time.
11656         (time): New strong alias and hidden definition of __libc_time.
11657         (__GI_time): Remove strong alias.
11658         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
11659         Include <stddef.h>.
11660         (memmove): Redefined to __redirect_memmove.
11661         (__memmove_sse2): Use typeof __redirect_memmove.
11662         (__memmove_ssse3): Likewise.
11663         (__memmove_ssse3_back): Likewise.
11664         (__libc_memmove): New prototype.
11665         (memmove): Renamed to ...
11666         (__libc_memmove): This.
11667         (memmove): New strong alias of __libc_memmove.
11668
11669 2012-08-08  Mark Salter  <msalter@redhat.com>
11670
11671         * elf/elf.h
11672         (R_MN10300_TLS_GD): Define.
11673         (R_MN10300_TLS_LD): Likewise.
11674         (R_MN10300_TLS_LDO): Likewise.
11675         (R_MN10300_TLS_GOTIE): Likewise.
11676         (R_MN10300_TLS_IE): Likewise.
11677         (R_MN10300_TLS_LE): Likewise.
11678         (R_MN10300_TLS_DTPMOD): Likewise.
11679         (R_MN10300_TLS_DTPOFF): Likewise.
11680         (R_MN10300_TLS_TPOFF): Likewise.
11681         (R_MN10300_SYM_DIFF): Likewise.
11682         (R_MN10300_ALIGN): Likewise.
11683         (R_MN10300_NUM): Update.
11684
11685 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
11686
11687         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
11688         Remove.
11689
11690 2012-08-08  Roland McGrath  <roland@hack.frob.com>
11691
11692         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
11693
11694         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
11695         sysdeps/unix -> sysdeps/posix move.
11696         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
11697
11698 2012-08-07      Allan McRae     <allan@archlinux.org>
11699
11700         [BZ #14303]
11701         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
11702         (SUNOS_CPP): Likewise.
11703         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
11704         not found.
11705         (open_input): Call CPP using execvp.
11706
11707 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11708
11709         * sysdeps/unix/sysv/linux/kernel-features.h
11710         (__ASSUME_PROT_GROWSUPDOWN): Remove.
11711         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11712         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11713         (__ASSUME_WAITID_SYSCALL): Likewise.
11714         * sysdeps/unix/sysv/linux/dl-execstack.c
11715         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
11716         code unconditional.
11717         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
11718         conditional code.
11719         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
11720         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
11721         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
11722         code.
11723         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
11724         unconditional.
11725         [__ASSUME_WAITID_SYSCALL]: Likewise.
11726         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
11727
11728 2012-08-07  Roland McGrath  <roland@hack.frob.com>
11729
11730         * sysdeps/unix/closedir.c: Renamed to ...
11731         * sysdeps/posix/closedir.c: ... here.
11732         * sysdeps/unix/dirfd.c: Renamed to ...
11733         * sysdeps/posix/dirfd.c: ... here.
11734         * sysdeps/unix/dirstream.h: Renamed to ...
11735         * sysdeps/posix/dirstream.h: ... here.
11736         * sysdeps/unix/fdopendir.c: Renamed to ...
11737         * sysdeps/posix/fdopendir.c: ... here.
11738         * sysdeps/unix/opendir.c: Renamed to ...
11739         * sysdeps/posix/opendir.c: ... here.
11740         * sysdeps/unix/readdir.c: Renamed to ...
11741         * sysdeps/posix/readdir.c: ... here.
11742         * sysdeps/unix/readdir_r.c: Renamed to ...
11743         * sysdeps/posix/readdir_r.c: ... here.
11744         * sysdeps/unix/rewinddir.c: Renamed to ...
11745         * sysdeps/posix/rewinddir.c: ... here.
11746         * sysdeps/unix/seekdir.c: Renamed to ...
11747         * sysdeps/posix/seekdir.c: ... here.
11748         * sysdeps/unix/telldir.c: Renamed to ...
11749         * sysdeps/posix/telldir.c: ... here.
11750         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
11751         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
11752         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
11753         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
11754
11755         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
11756         * bits/fcntl.h: ... here.
11757
11758         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
11759         not 0.
11760         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
11761         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
11762         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
11763         (struct flock): Move l_start, l_len to the beginning.
11764         Use __pid_t for l_pid.
11765         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
11766         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
11767         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
11768         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
11769         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
11770         [__USE_LARGEFILE64] (struct flock64): New type.
11771         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
11772
11773         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
11774         * bits/dirent.h: ... here.
11775
11776         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
11777         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
11778
11779 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11780
11781         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11782         Change from 2.6.0 to 2.6.16.
11783         * sysdeps/unix/sysv/linux/configure: Regenerated.
11784         * sysdeps/unix/sysv/linux/kernel-features.h
11785         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
11786         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
11787         version.
11788         (__ASSUME_UTIMES): Likewise.
11789         (__ASSUME_CLONE_STOPPED): Remove.
11790         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
11791         architectures, not kernel version.
11792         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
11793         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11794         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11795         (__ASSUME_WAITID_SYSCALL): Likewise.
11796         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
11797         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
11798         * README: State 2.6.16 as minimum Linux kernel version.  Do not
11799         refer to older versions.
11800
11801 2012-08-06  Roland McGrath  <roland@hack.frob.com>
11802
11803         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
11804         Define alphasort64 as an alias.
11805         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
11806         Define versionsort64 as an alias.
11807         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
11808         Define scandir64 as an alias.
11809         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
11810         Define scandirat64 as an alias.
11811         * dirent/alphasort64.c (alphasort64):
11812         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
11813         * dirent/versionsort64.c: Likewise.
11814         * dirent/scandir64.c: Likewise.
11815         * dirent/scandirat64.c: Likewise.
11816         * sysdeps/wordsize-64/alphasort.c: File removed.
11817         * sysdeps/wordsize-64/alphasort64.c: File removed.
11818         * sysdeps/wordsize-64/scandir.c: File removed.
11819         * sysdeps/wordsize-64/scandir64.c: File removed.
11820         * sysdeps/wordsize-64/scandirat.c: File removed.
11821         * sysdeps/wordsize-64/scandirat64.c: File removed.
11822         * sysdeps/wordsize-64/versionsort.c: File removed.
11823         * sysdeps/wordsize-64/versionsort64.c: File removed.
11824         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
11825         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
11826         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
11827         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
11828         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
11829         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
11830         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
11831         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
11832
11833         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
11834         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11835         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
11836         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11837         [defined __arch64__ || defined __sparcv9]
11838         (__INO_T_MATCHES_INO64_T): New macro.
11839         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11840         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
11841         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
11842         * sysdeps/unix/sysv/linux/bits/dirent.h
11843         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
11844         (_DIRENT_MATCHES_DIRENT64): New macro.
11845
11846         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
11847         Define lockf64 as an alias.
11848         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
11849         Define fseeko64 as an alias.
11850         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
11851         Define ftello64 as an alias.
11852         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
11853         Define _IO_fgetpos64 and fgetpos64 as aliases.
11854         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
11855         Define _IO_fsetpos64 and fsetpos64 as aliases.
11856         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
11857         Conditionalize body on this.
11858         * libio/fseeko64.c: Likewise.
11859         * libio/ftello64.c: Likewise.
11860         * libio/iofgetpos64.c: Likewise.
11861         * libio/iofsetpos64.c: Likewise.
11862         * sysdeps/wordsize-64/lockf.c: File removed.
11863         * sysdeps/wordsize-64/lockf64.c: File removed.
11864         * sysdeps/wordsize-64/fseeko.c: File removed.
11865         * sysdeps/wordsize-64/fseeko64.c: File removed.
11866         * sysdeps/wordsize-64/ftello.c: File removed.
11867         * sysdeps/wordsize-64/ftello64.c: File removed.
11868         * sysdeps/wordsize-64/iofgetpos.c: File removed.
11869         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
11870         * sysdeps/wordsize-64/iofsetpos.c: File removed.
11871         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
11872         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
11873         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
11874         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
11875         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
11876         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
11877         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
11878         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
11879         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
11880         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
11881         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
11882
11883         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11884         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11885         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
11886         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11887         [defined __arch64__ || defined __sparcv9]
11888         (__OFF_T_MATCHES_OFF64_T): New macro.
11889         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11890         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11891         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11892         (__OFF_T_MATCHES_OFF64_T): New macro.
11893
11894 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11895
11896         * stdlib/secure-getenv.c (__secure_getenv): Replace
11897         GLIBC_2_16 with GLIBC_2_17.
11898
11899 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11900
11901         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
11902         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11903
11904 2012-08-03  David S. Miller  <davem@davemloft.net>
11905
11906         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11907
11908 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11909
11910         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
11911         Remove.
11912         (__ASSUME_CORRECT_SI_PID): Likewise.
11913         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
11914         (__ASSUME_TMPFS_NAME): Likewise.
11915         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
11916         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
11917         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
11918         (HAVE_AUX_SECURE): Make definition unconditional.
11919         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
11920         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
11921
11922 2012-08-03  Roland McGrath  <roland@hack.frob.com>
11923
11924         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
11925         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
11926         * sysdeps/mach/hurd/eloop-threshold.h: New file.
11927         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
11928         __eloop_threshold instead of SYMLOOP_MAX.
11929
11930         * sysdeps/generic/eloop-threshold.h: New file.
11931         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
11932         of MAXSYMLINKS.
11933         * elf/chroot_canon.c (chroot_canon): Likewise.
11934
11935 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11936
11937         [BZ #13717]
11938         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11939         Change to 2.6.0 everywhere.
11940         * sysdeps/unix/sysv/linux/configure: Regenerated.
11941         * sysdeps/unix/sysv/linux/kernel-features.h
11942         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
11943         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
11944         kernel versions.
11945         (__ASSUME_POSIX_TIMERS): Define unconditionally.
11946         (__ASSUME_FUTEX_REQUEUE): Remove.
11947         (__ASSUME_STATFS64): Define unconditionally.
11948         (__ASSUME_AT_SECURE): Likewise.
11949         (__ASSUME_CORRECT_SI_PID): Likewise.
11950         (__ASSUME_TGKILL): Define without depending on kernel version for
11951         i386.
11952         (__ASSUME_UTIMES): Likewise.
11953         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
11954         kernel version.
11955         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
11956         (__ASSUME_TMPFS_NAME): Likewise.
11957         * README: Update reference to Linux kernel versions.
11958
11959 2012-08-02  Marek Polacek  <polacek@redhat.com>
11960
11961         [BZ# 14150]
11962         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
11963         libc_cv_asm_type_prefix with %.
11964         * configure: Regenerated.
11965         * include/libc-symbols.h: Remove comment about
11966         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11967         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
11968         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
11969         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
11970         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
11971         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11972         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
11973         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
11974         * elf/tst-unique2mod1.c: Likewise.
11975         * elf/tst-unique1mod2.c: Likewise.
11976         * elf/tst-unique1mod1.c: Likewise.
11977         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
11978         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
11979         Replace ASM_TYPE_DIRECTIVE with .type.
11980         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11981         * sysdeps/i386/sysdep.h: Likewise.
11982         * sysdeps/x86_64/sysdep.h: Likewise.
11983         * sysdeps/sh/sysdep.h: Likewise.
11984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11985         Do not define ASM_TYPE_DIRECTIVE.
11986         * sysdeps/powerpc/sysdep.h: Likewise.
11987         * sysdeps/powerpc/powerpc32/sysdep.h:
11988         Replace ASM_TYPE_DIRECTIVE with .type.
11989         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11990         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11991         * sysdeps/i386/fpu/e_powf.S: Likewise.
11992         * sysdeps/i386/fpu/e_expl.S: Likewise.
11993         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11994         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11995         * sysdeps/i386/fpu/e_pow.S: Likewise.
11996         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11997         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11998         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11999         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12000         * sysdeps/i386/fpu/e_log2.S: Likewise.
12001         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12002         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12003         * sysdeps/i386/fpu/e_powl.S: Likewise.
12004         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12005         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12006         * sysdeps/i386/fpu/e_logl.S: Likewise.
12007         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12008         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12009         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12010         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12011         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12012         * sysdeps/i386/fpu/e_log.S: Likewise.
12013         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12014         * sysdeps/i386/fpu/e_logf.S: Likewise.
12015         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12016         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12017         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12018         * sysdeps/i386/fpu/e_log10.S: Likewise.
12019         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12020         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12021         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12022         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12023         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12024         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
12025         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12026         * sysdeps/i386/i686/strtok.S: Likewise.
12027         * sysdeps/i386/i386-mcount.S: Likewise.
12028         * sysdeps/i386/strtok.S: Likewise.
12029         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
12030         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12031         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12032         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12033         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12034         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12035         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12036         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12037         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12038         * sysdeps/x86_64/_mcount.S: Likewise.
12039         * sysdeps/x86_64/strtok.S: Likewise.
12040         * sysdeps/sh/_mcount.S: Likewise.
12041
12042 2012-08-01  Roland McGrath  <roland@hack.frob.com>
12043
12044         * libio/iofopen.c: Include <fcntl.h>.
12045         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
12046         (_IO_fopen64, fopen64): Define as aliases.
12047         * libio/iofopen64.c: Include <fcntl.h>.
12048         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
12049         Conditionalize body on this.
12050         * sysdeps/wordsize-64/iofopen.c: File removed.
12051         * sysdeps/wordsize-64/iofopen64.c: File removed.
12052
12053 2012-08-01  Marek Polacek  <polacek@redhat.com>
12054
12055         * libc/Makeconfig: Use elf in place of binfmt-subdir.
12056         Use dlfcn directly instead of a variable.
12057         (binfmt-subdir): Do not define.
12058         (dlfcn): Likewise.
12059
12060 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
12061
12062         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
12063         Remove all definitions.
12064         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
12065         <kernel-features.h>.
12066         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
12067         (miss_F_GETOWN_EX): Remove all definitions.
12068         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
12069         macro definition.
12070         [!__ASSUME_FCNTL64]: Remove conditional code.
12071         [__ASSUME_FCNTL64]: Make code unconditional.
12072         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
12073         <kernel-features.h>.
12074         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
12075         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
12076         (lockf64) [__NR_fcntl64]: Make code unconditional.
12077         (lockf64) [__ASSUME_FCNTL64]: Likewise.
12078
12079         * sysdeps/unix/sysv/linux/kernel-features.h
12080         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
12081         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
12082         Make code unconditional.
12083         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
12084         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
12085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
12086         [__NR_vfork]: Make code unconditional.
12087         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
12088         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
12089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
12090         [__NR_vfork]: Make code unconditional.
12091         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
12092         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
12093
12094 2012-08-01  Roland McGrath  <roland@hack.frob.com>
12095
12096         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
12097         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
12098
12099         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12100         Define mkstemp64 as an alias.
12101         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12102         Define mkstemps64 as an alias.
12103         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12104         Define mkostemp64 as an alias.
12105         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12106         Define mkostemps64 as an alias.
12107         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
12108         Conditionalize body on this.
12109         * misc/mkostemp64.c: Likewise.
12110         * misc/mkostemps64.c: Likewise.
12111         * misc/mkstemps64.c: Likewise.
12112         * sysdeps/wordsize-64/mkstemp64.c: File removed.
12113         * sysdeps/wordsize-64/mkostemp64.c: File removed.
12114         * sysdeps/wordsize-64/mkostemp.c: File removed.
12115         * sysdeps/wordsize-64/mkstemp.c: File removed.
12116         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
12117         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
12118         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
12119         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
12120
12121         [BZ #14138]
12122         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
12123         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
12124         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
12125         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
12126
12127         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
12128         compat_symbol macros from <shlib-compat.h> rather than the underlying
12129         default_symbol_version and symbol_version macros, so that DEFAULT
12130         lines in shlib-versions are respected.
12131         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
12132
12133 2012-08-01  Florian Weimer  <fweimer@redhat.com>
12134
12135         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
12136         Declare with warn_unused_result.
12137         (setgid, setregid, setegid, setresgid): Likewise.
12138         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
12139         Likewise.
12140         * WUR-REPORT: Remove set*id functions.
12141
12142 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
12143
12144         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
12145
12146 2012-07-31  Roland McGrath  <roland@hack.frob.com>
12147
12148         [BZ #10191]
12149         * include/sys/socket.h (__libc_accept, __libc_accept4):
12150         Add attribute_hidden.
12151         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
12152
12153         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
12154         use of PTR_MANGLE.
12155         * inet/getnetgrent_r.c (setup): Likewise.
12156
12157         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
12158
12159 2012-07-31  David S. Miller  <davem@davemloft.net>
12160
12161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12162
12163 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
12164
12165         [BZ #13629]
12166         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
12167         value between 1.0 and 2.0 and smaller part has absolute value less
12168         than 1.0.
12169         * math/s_clog10.c (__clog10): Likewise.
12170         * math/s_clog10f.c (__clog10f): Likewise.
12171         * math/s_clog10l.c (__clog10l): Likewise.
12172         * math/s_clogf.c (__clogf): Likewise.
12173         * math/s_clogl.c (__clogl): Likewise.
12174         * math/libm-test.inc (clog_test): Add more tests.
12175         (clog10_test): Likewise.
12176         * sysdeps/i386/fpu/libm-test-ulps: Update.
12177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12178
12179 2012-07-31  Florian Weimer  <fweimer@redhat.com>
12180
12181         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
12182         Exit with zero in case no suitable GID is found, and write a
12183         message to standard error.
12184
12185 2012-07-30  Roland McGrath  <roland@hack.frob.com>
12186
12187         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
12188         rather than to 1.
12189         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
12190         (MAXPATHLEN): Removed.
12191         (NOGROUP, NODEV): New macros.
12192         (setbit, clrbit, isset, isclr): New macros.
12193         (howmany, roundup, powerof2): New macros.
12194         (DEV_BSIZE): New macro.
12195
12196         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
12197         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
12198
12199         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
12200         definition on [!__NO_LONG_DOUBLE_MATH].
12201
12202         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
12203         PTR_MANGLE and PTR_DEMANGLE.
12204
12205         * socket/accept4.c (accept4): Rename to __libc_accept4.
12206         Define accept4 as a weak alias.
12207
12208         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
12209         on [_DIRENT_HAVE_D_TYPE].
12210         * io/ftw.c (ftw_dir): Likewise.
12211
12212         * io/xmknod.c (__xmknod): Don't check PATH for being null.
12213
12214         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
12215
12216         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
12217         Use the BSD numbers rather than the arbitrary ones we had.
12218         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
12219         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
12220         (SIGXCPU, SIGXFSZ): New macros.
12221         (_NSIG): Now 32.
12222
12223         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
12224         initializer on [_LIBC_REENTRANT].
12225
12226         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
12227         definitions inside [_POSIX_MAPPED_FILES].
12228
12229         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
12230
12231         * dirent/opendir.c: Include <fcntl.h>.
12232
12233         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
12234         (__libc_getspecific): Likewise.
12235         (__libc_key_create): Likewise.
12236
12237         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
12238         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
12239         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
12240         (tmpfile64): Define as alias.
12241         * sysdeps/wordsize-64/tmpfile.c: File removed.
12242         * sysdeps/wordsize-64/tmpfile64.c: File removed.
12243         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
12244         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
12245
12246         * stdio-common/vfscanf.c: Include <stdbool.h>.
12247         * nss/makedb.c: Likewise.
12248         * stdio-common/_i18n_number.h: Likewise.
12249         * argp/argp-help.c: Likewise.
12250         * posix/wordexp.c: Likewise.
12251         * sysdeps/posix/spawni.c: Likewise.
12252         * nss/nss_files/files-initgroups.c: Likewise.
12253         * stdio-common/reg-modifier.c: Include <stdlib.h>.
12254         * nss/nss_files/files-initgroups.c: Likewise.
12255         * nss/nss_db/db-netgrp.c: Likewise.
12256         * nss/nss_db/db-initgroups.c: Likewise.
12257         * io/fchmodat.c: Include <sys/stat.h>.
12258
12259         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
12260         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
12261
12262         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
12263         [HAVE_MMAP].
12264
12265         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
12266         Add multiple inclusion protection.
12267
12268 2012-07-27  David S. Miller  <davem@davemloft.net>
12269
12270         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12271
12272 2012-07-27  Gary Benson  <gbenson@redhat.com>
12273
12274         [BZ #14298]
12275         * elf/rtld.c: Include <stap-probe.h>.
12276         (dl_main): Added static probes "init_start" and "init_complete".
12277         * elf/dl-load.c: Include <stap-probe.h>.
12278         (lose): Take new parameter "nsid".
12279         Added static probe "map_failed".
12280         (_dl_map_object_from_fd): Pass namespace id to lose.
12281         Added static probe "map_start".
12282         (open_verify): Pass namespace id to lose.
12283         * elf/dl-open.c: Include <stap-probe.h>.
12284         (dl_open_worker) Added static probes "map_complete", "reloc_start"
12285         and "reloc_complete".
12286         * elf/dl-close.c: Include <stap-probe.h>.
12287         (_dl_close_worker): Added static probes "unmap_start" and
12288         "unmap_complete".
12289         * elf/rtld-debugger-interface.txt: New file documenting the above.
12290
12291 2012-07-26  Roland McGrath  <roland@hack.frob.com>
12292
12293         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
12294         rather than a string variable.
12295         * sunrpc/rpc_main.c (h_output): Likewise.
12296         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
12297
12298 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
12299
12300         * inet/check_native.c: New file.
12301
12302 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
12303
12304         [BZ #13629]
12305         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
12306         if larger part has absolute value 1.0.
12307         * math/s_clog10.c (__clog10): Likewise.
12308         * math/s_clog10f.c (__clog10f): Likewise.
12309         * math/s_clog10l.c (__clog10l): Likewise.
12310         * math/s_clogf.c (__clogf): Likewise.
12311         * math/s_clogl.c (__clogl): Likewise.
12312         * math/libm-test.inc (clog_test): Add more tests.
12313         (clog10_test): Likewise.
12314         * sysdeps/i386/fpu/libm-test-ulps: Update.
12315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12316
12317         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
12318         (pltexit): Likewise.
12319         (La_regs): Likewise.
12320         (La_retval): Likewise.
12321         (int_retval): Likewise.
12322         Update #error for removed macros to refer only to definitions in
12323         tst-audit.h.
12324         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
12325         macro.
12326         (pltexit): Likewise.
12327         (La_regs): Likewise.
12328         (La_retval): Likewise.
12329         (int_retval): Likewise.
12330         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
12331         macro.
12332         (pltexit): Likewise.
12333         (La_regs): Likewise.
12334         (La_retval): Likewise.
12335         (int_retval): Likewise.
12336         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
12337         macro.
12338         (pltexit): Likewise.
12339         (La_regs): Likewise.
12340         (La_retval): Likewise.
12341         (int_retval): Likewise.
12342         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
12343         macro.
12344         (pltexit): Likewise.
12345         (La_regs): Likewise.
12346         (La_retval): Likewise.
12347         (int_retval): Likewise.
12348         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
12349         macro.
12350         (pltexit): Likewise.
12351         (La_regs): Likewise.
12352         (La_retval): Likewise.
12353         (int_retval): Likewise.
12354         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
12355         macro.
12356         (pltexit): Likewise.
12357         (La_regs): Likewise.
12358         (La_retval): Likewise.
12359         (int_retval): Likewise.
12360         * sysdeps/generic/tst-audit.h: Update comment to refer only to
12361         macro definitions in tst-audit.h.
12362         * sysdeps/i386/tst-audit.h: New file.
12363         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
12364         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
12365         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
12366         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
12367         * sysdeps/sh/tst-audit.h: Likewise.
12368         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
12369         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
12370         * sysdeps/x86_64/tst-audit.h: Likewise.
12371
12372 2012-07-26  Andreas Jaeger  <aj@suse.de>
12373
12374         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
12375         ptrace.
12376
12377         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
12378         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
12379         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
12380         PTRACE_O_MASK.
12381         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
12382         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
12383         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
12384
12385         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
12386         value.
12387
12388         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
12389         _sigsys.
12390         (si_call_addr, si_syscall, si_arch): Define new macro.
12391         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
12392         _sigsys.
12393         (si_call_addr, si_syscall, si_arch): Define new marcro.
12394         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
12395         _sigsys.
12396         (si_call_addr, si_syscall, si_arch): Define new macro.
12397         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
12398         _sigsys.
12399         (si_call_addr, si_syscall, si_arch): Define new macro.
12400
12401 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
12402
12403         [BZ #13717]
12404         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12405         Change to 2.4.21 where previously 2.4.1.
12406         * sysdeps/unix/sysv/linux/configure: Regenerated.
12407         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
12408         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
12409         Linux kernel version.
12410         (__ASSUME_STD_AUXV): Remove.
12411         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
12412         kernel version.
12413         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
12414         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
12415         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
12416         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
12417         (__ASSUME_NETLINK_SUPPORT): Likewise.
12418         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
12419         (__no_netlink_support): Remove conditional definition.
12420         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
12421         Remove.
12422         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
12423         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
12424         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
12425         (if_nameindex_ioctl): Remove.
12426         (if_nameindex_netlink): Do not handle __no_netlink_support.
12427         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
12428         code.
12429         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
12430         Remove conditional code.
12431         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
12432         code.
12433         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
12434         unconditional.
12435         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
12436         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
12437         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
12438         Remove.
12439         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
12440         [!__ASSUME_STD_AUXV]: Remove conditional code.
12441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
12442         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
12443         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
12444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
12445         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
12446         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
12447         code.
12448         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
12449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12450         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
12451         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
12452         conditional code.
12453         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
12454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12455         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
12456         code.
12457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12458         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
12459         conditional code.
12460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
12461         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12462         code unconditional.
12463         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12464         conditional code.
12465         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12466         unconditional.
12467         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12468         conditional code.
12469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12470         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12471         unconditional.
12472         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12473         conditional code.
12474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
12475         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12476         code unconditional.
12477         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12478         conditional code.
12479         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12480         unconditional.
12481         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12482         conditional code.
12483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
12484         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12485         code unconditional.
12486         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12487         conditional code.
12488         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12489         unconditional.
12490         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12491         conditional code.
12492
12493 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
12494
12495         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
12496         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
12497         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
12498         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
12499         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
12500         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
12501         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
12502         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
12503         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
12504         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
12505         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
12506         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
12507         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
12508         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
12509         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12510         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
12511         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
12512         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
12513         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
12514         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
12515         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
12516         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
12517         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
12518
12519 2012-07-25  Florian Weimer  <fweimer@redhat.com>
12520
12521         * Versions.def: Add GLIBC_2.17.
12522         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
12523         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
12524         Introduce __libc_secure_getenv.
12525         * stdlib/Versions (2.17): Add secure_getenv
12526         (GLIBC_PRIVATE): Add __libc_secure_getenv.
12527         * stdlib/secure-getenv.c: Rename __secure_getenv to
12528         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
12529         symbol __secure_getenv for GLIBC_2.0.
12530         * stdlib/tst-secure-getenv.c: New.
12531         * stdlib/Makefile (tests): Add testcase.
12532         * manual/startup.texi (Environment Access): Document
12533         secure_getenv.
12534         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
12535         __libc_secure_getenv.
12536         * inet/ruserpass.c (ruserpass): Likewise.
12537         * malloc/mtrace.c (mtrace): Likewise.
12538         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
12539         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
12540         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
12541         * sysdeps/posix/tempname.c: Likewise.  Evaluate
12542         HAVE_SECURE_GETENV.
12543         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
12544         __secure_getenv to __libc_secure_getenv.
12545         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
12546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12547         Likewise.
12548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12549         Likewise.
12550         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
12551         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
12552         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12553         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
12554         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
12555         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
12557
12558 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
12559
12560         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
12561         (struct La_i86_retval): Likewise.
12562         (struct La_x86_64_regs): Likewise.
12563         (struct La_x86_64_retval): Likewise.
12564         (struct La_x32_regs): Likewise.
12565         (struct La_x32_retval): Likewise.
12566         (struct La_ppc32_regs): Likewise.
12567         (struct La_ppc32_retval): Likewise.
12568         (struct La_ppc64_regs): Likewise.
12569         (struct La_ppc64_retval): Likewise.
12570         (struct La_sh_regs): Likewise.
12571         (struct La_sh_retval): Likewise.
12572         (struct La_s390_32_regs): Likewise.
12573         (struct La_s390_32_retval): Likewise.
12574         (struct La_s390_64_regs): Likewise.
12575         (struct La_s390_64_retval): Likewise.
12576         (struct La_sparc32_regs): Likewise.
12577         (struct La_sparc32_retval): Likewise.
12578         (struct La_sparc64_regs): Likewise.
12579         (struct La_sparc64_retval): Likewise.
12580         (struct audit_ifaces): Remove architecture-specific pltenter and
12581         pltexit members.
12582         * sysdeps/i386/ldsodefs.h: New file.
12583         * sysdeps/powerpc/ldsodefs.h: Likewise.
12584         * sysdeps/s390/ldsodefs.h: Likewise.
12585         * sysdeps/sh/ldsodefs.h: Likewise.
12586         * sysdeps/sparc/ldsodefs.h: Likewise.
12587         * sysdeps/x86_64/ldsodefs.h: Likewise.
12588
12589 2012-07-25  Marek Polacek  <polacek@redhat.com>
12590
12591         [BZ #6808]
12592         * math/libm-test.inc (yn_test): Add another test.
12593         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
12594         to ERANGE when the result is +-Inf.
12595         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
12596         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
12597         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
12598         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
12599
12600 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
12601
12602         * conform/data/time.h-data (NULL): Use macro-constant.  Require
12603         equal to 0.
12604         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
12605         clock_t.
12606         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
12607
12608 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
12609
12610         * configure.in <sysdeps resolving>: Correct printing
12611         Implies_before.
12612         * configure: Regenerate.
12613
12614 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
12615
12616         * math/w_ilogb.c: Include <limits.h>.
12617         * math/w_ilogbl.c: Likewise.
12618
12619 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
12620
12621         * manual/lang.texi (__va_copy): Document primarily as ISO C99
12622         va_copy.  Document allowing for unavailable va_copy only as
12623         pre-C99 compatibility.
12624         * manual/string.texi (Copying and Concatenation): Use va_copy
12625         instead of __va_copy in concat example.
12626
12627 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
12628
12629         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
12630         (__sendto): Use create_address_port.  Initialize APORT and deallocate
12631         it if not null.
12632
12633         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
12634         with O_NOLINK passed to __file_name_lookup.
12635
12636         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
12637         with O_NOLINK passed to __file_name_lookup.
12638
12639         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
12640         negative N or less than NGIDS.
12641
12642         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
12643         type to string_t.  Set ERANGE as errno and return it if NAME is not big
12644         enough.  Use memcpy instead of strncpy.
12645
12646 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
12647
12648         * elf/Makefile (check-data): Remove.
12649         (localplt.data): New vpath directive.
12650         ($(objpfx)check-localplt.out): Use localplt.data from vpath
12651         instead of $(check-data).
12652         * scripts/data/localplt-generic.data: Move to ...
12653         * sysdeps/generic/localplt.data: ... here.
12654         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
12655         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
12656         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
12657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
12658         ... here.
12659         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
12660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
12661         ... here.
12662         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
12663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
12664         ... here.
12665         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
12666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
12667         ... here.
12668         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
12669         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
12670         ... here.
12671         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
12672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
12673         ... here.
12674
12675 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12676
12677         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
12678         PPC32 and PPC64 files.
12679         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
12680         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
12681
12682 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12683
12684         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
12685         __makecontext_ret to ...
12686         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
12687         ... here and call exit if uc_link is NULL.  New file.
12688         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
12689         __makecontext_ret.S.
12690         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
12691         __makecontext_ret to ...
12692         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
12693         ... here and call exit if uc_link is NULL.  New file.
12694         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
12695         __makecontext_ret.S.
12696
12697 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12698
12699         * elf/elf.h (R_390_IRELATIVE): New definition.
12700         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
12701         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
12702         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
12703         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12704         (elf_machine_lazy_rel): Likewise.
12705         * sysdeps/s390/dl-irel.h: New file.
12706         * sysdeps/s390/s390-64/memcpy.S: New asm code.
12707         * sysdeps/s390/s390-64/memset.S: New asm code.
12708         * sysdeps/s390/s390-64/memcmp.S: New asm code.
12709         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
12710         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
12711         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
12712         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
12713         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
12714         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
12715         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
12716         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
12717         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
12718         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
12719         * sysdeps/s390/s390-32/memcpy.S: New asm code.
12720         * sysdeps/s390/s390-32/memset.S: New asm code.
12721         * sysdeps/s390/s390-32/memcmp.S: New asm code.
12722
12723 2012-07-17  Marek Polacek  <polacek@redhat.com>
12724
12725         [BZ #14349]
12726         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
12727         * sysdeps/s390/s390-64/configure.in: Likewise.
12728         * sysdeps/sparc/configure.in: Likewise.
12729         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
12730         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
12731         * sysdeps/i386/configure.in: Likewise.
12732         * sysdeps/x86_64/configure.in: Likewise.
12733         * sysdeps/sh/configure.in: Likewise.
12734         * sysdeps/s390/s390-32/configure: Regenerated.
12735         * sysdeps/s390/s390-64/configure: Likewise.
12736         * sysdeps/x86_64/configure: Likewise.
12737         * sysdeps/sh/configure: Likewise.
12738         * sysdeps/powerpc/powerpc64/configure: Likewise.
12739         * sysdeps/powerpc/powerpc32/configure: Likewise.
12740         * sysdeps/sparc/configure: Likwise.
12741         * sysdeps/i386/configure: Likewise.
12742
12743         * elf/dl-open.c: Comment fixes.
12744
12745 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
12746
12747         * Makefile [CXX] (check-data): Remove.
12748         [CXX] (c++-types.data): New vpath directive.
12749         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
12750         vpath.  Do not allow for C++ type data being missing.
12751         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
12752         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
12753         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
12754         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
12755         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
12756         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
12757         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
12758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
12759         ... here.
12760         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
12761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
12762         ... here.
12763         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
12764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
12765         ... here.
12766         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
12767         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
12768         ... here.
12769         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
12770         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
12771         ... here.
12772         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
12773         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
12774         ... here.
12775         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
12776         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
12777         ... here.
12778         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
12779         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
12780
12781         * elf/tls-macros.h (TLS_LE): Move architecture-specific
12782         definitions to architecture-specific files.
12783         (TLS_IE): Likewise.
12784         (TLS_LD): Likewise.
12785         (TLS_GD): Likewise.
12786         * sysdeps/i386/tls-macros.h: New file.
12787         * sysdeps/powerpc/tls-macros.h: Likewise.
12788         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
12789         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
12790         * sysdeps/sh/tls-macros.h: Likewise.
12791         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
12792         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
12793         * sysdeps/x86_64/tls-macros.h: Likewise.
12794
12795 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12796
12797         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
12798         zero value for regular exit case.
12799
12800         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
12801         (__start_context): Preserve zero value for regular exit case.
12802
12803 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12804             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12805
12806         * manual/setjmp.texi (setcontext): Clarify normal process
12807         termination when uc_link is the null pointer.
12808         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
12809         exit call.
12810
12811 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
12812
12813         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
12814         preprocessor.  Test for each exception mask separately.
12815
12816 2012-07-16  Andreas Jaeger  <aj@suse.de>
12817
12818         * po/ru.po: Update from translation team.
12819
12820 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
12821
12822         * conform/data/string.h-data (NULL): Use macro-constant.  Require
12823         equal to 0.
12824         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12825         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12826         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
12827         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
12828         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12829
12830 2012-07-13  Andreas Jaeger  <aj@suse.de>
12831
12832         * po/fr.po: Update from translation team.
12833
12834 2012-07-12  Marek Polacek  <polacek@redhat.com>
12835
12836         [BZ #14173]
12837         * math/libm-test.inc (yn_test): Add test for BZ #14173.
12838         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
12839         loop condition.
12840
12841 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
12842
12843         [BZ #13717]
12844         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12845         Change to 2.4.1 where previously 2.4.0.
12846         * sysdeps/unix/sysv/linux/configure: Regenerated.
12847         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
12848         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
12849         version.
12850         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
12851         (__ASSUME_AT_CLKTCK): Remove.
12852         (__ASSUME_AT_PAGESIZE): Likewise.
12853         (__ASSUME_AT_XID): Likewise.
12854         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
12855         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
12856         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
12857         unconditionally.
12858         (HAVE_AUX_PAGESIZE): Likewise.
12859         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
12860         [__ASSUME_AT_CLKTCK]: Make code unconditional.
12861         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
12862
12863 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
12864
12865         [BZ #14307]
12866         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
12867         the temporary buffer used to invoke __gethostbyname2_r,
12868         __gethostbyaddr_r and gethostbyname4_r to make room for struct
12869         host_data / struct gaih_addrtuple.
12870         * resolv/nss_dns/dns-host.c (global scope): Move definition of
12871         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
12872         header file nss/nsswitch.h.
12873         * nss/nsswitch.h (global scope): Add definition of implementation
12874         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
12875         resolv/nss_dns/dns-host.c).
12876
12877 2012-07-11  Andreas Jaeger  <aj@suse.de>
12878
12879         * po/fr.po: Update from translation team.
12880
12881         * po/sv.po: Update from translation team
12882         * po/fr.po: Another update from translation team.
12883
12884 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12885
12886         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
12887         for subnormals or multiply small sinh result by itself.
12888         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12889         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12890
12891 2012-07-11  David S. Miller  <davem@davemloft.net>
12892
12893         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12894
12895 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
12896
12897         [BZ #14347]
12898         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
12899         (INTERNAL_MARK): Shift it here.
12900
12901 2012-07-10  Marek Polacek  <polacek@redhat.com>
12902
12903         [BZ #14151]
12904         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
12905         libc_cv_asm_global_directive with .globl.
12906         * configure: Regenerated.
12907         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
12908         with .globl.
12909         * sysdeps/i386/configure: Regenerated.
12910         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
12911         with .globl.
12912         * sysdeps/x86_64/configure: Regenerated.
12913         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
12914         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
12915         * elf/tst-unique2mod2.c: Likewise.
12916         * elf/tst-unique2mod1.c: Likewise.
12917         * elf/tst-unique1mod2.c: Likewise.
12918         * elf/tst-unique1mod1.c: Likewise.
12919         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12920         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12921         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12922         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12923         * sysdeps/mach/sysdep.h: Likewise.
12924         * sysdeps/i386/sysdep.h: Likewise.
12925         * sysdeps/i386/i386-mcount.S: Likewise.
12926         * sysdeps/x86_64/_mcount.S: Likewise.
12927         * sysdeps/x86_64/sysdep.h: Likewise.
12928         * sysdeps/sh/_mcount.S: Likewise.
12929         * sysdeps/sh/sysdep.h: Likewise.
12930         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
12931         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
12932         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
12933         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12934         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
12935         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
12936         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
12937         * locale/localeinfo.h: Likewise.
12938         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
12939         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
12940
12941 2012-07-09  Roland McGrath  <roland@hack.frob.com>
12942
12943         [BZ #14336]
12944         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
12945         system".
12946         * manual/message.texi (The Uniforum approach): Likewise.
12947         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
12948         (glibc iconv Implementation): Likewise.
12949
12950 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
12951
12952         [BZ #14337]
12953         * math/s_clog.c (__clog): Avoid scaling a value down where that
12954         could result in underflow.
12955         * math/s_clog10.c (__clog10): Likewise.
12956         * math/s_clog10f.c (__clog10f): Likewise.
12957         * math/s_clog10l.c (__clog10l): Likewise.
12958         * math/s_clogf.c (__clogf): Likewise.
12959         * math/s_clogl.c (__clogl): Likewise.
12960         * math/libm-test.inc (clog_test): Add more tests.
12961         (clog10_test): Likewise.
12962         * sysdeps/i386/fpu/libm-test-ulps: Update.
12963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12964
12965 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
12966
12967         [BZ #14283]
12968         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
12969         by 7 not 8 to examine high bit of fractional part.
12970
12971         [BZ #14042]
12972         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
12973         for call to __mcount_internal.
12974         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
12975         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
12976         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
12977
12978 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
12979
12980         [BZ #14154]
12981         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
12982         approximation for values within 0x1p-13f of an odd multiple of
12983         pi/4.
12984         * math/libm-test.inc (tan_test): Do not allow spurious underflow
12985         exception.  Add more tests.
12986         * sysdeps/i386/fpu/libm-test-ulps: Update.
12987
12988         [BZ #6778]
12989         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
12990         inputs and return -1 for them.  Do not check for +Inf in case not
12991         reachable for +Inf.
12992         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
12993         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
12994         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12995         and return -1 for them.  Do not check for +Inf in case not
12996         reachable for +Inf.
12997         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
12998         define.
12999         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
13000         and return -1 for them.  Do not check for +Inf in case not
13001         reachable for +Inf.
13002         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
13003         spurious underflow.
13004         * sysdeps/i386/fpu/libm-test-ulps: Update.
13005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13006
13007 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
13008
13009         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
13010
13011 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
13012
13013         [BZ #14157]
13014         [BZ #14331]
13015         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
13016         could result in spurious underflow.  Scale down values above
13017         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
13018         * math/s_csqrtf.c (__csqrtf): Likewise.
13019         * math/s_csqrtl.c (__csqrtl): Likewise.
13020         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
13021         spurious underflow.
13022         * sysdeps/i386/fpu/libm-test-ulps: Update.
13023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13024
13025 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
13026
13027         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
13028         xopen-msg.sed.
13029         * catgets/xopen-msg.awk: New file.
13030         * catgets/xopen-msg.sed: Removed.
13031
13032         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
13033         po2text.sed.
13034         * intl/po2test.awk: New file.
13035         * intl/po2test.sed: Removed.
13036
13037 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
13038
13039         [BZ #14328]
13040         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
13041         or multiply small sinh result by itself.
13042         * math/s_ctanf.c (__ctanf): Likewise.
13043         * math/s_ctanh.c (__ctanh): Likewise.
13044         * math/s_ctanhf.c (__ctanhf): Likewise.
13045         * math/s_ctanhl.c (__ctanhl): Likewise.
13046         * math/s_ctanl.c (__ctanl): Likewise.
13047         * math/libm-test.inc (ctan_test_tonearest): New function.
13048         (ctan_test_towardzero): Likewise.
13049         (ctan_test_downward): Likewise.
13050         (ctan_test_upward): Likewise.
13051         (ctanh_test_tonearest): Likewise.
13052         (ctanh_test_towardzero): Likewise.
13053         (ctanh_test_downward): Likewise.
13054         (ctanh_test_upward): Likewise.
13055         (main): Call these new functions.
13056         * sysdeps/i386/fpu/libm-test-ulps: Update.
13057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13058
13059 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
13060
13061         * .gitignore: Delete /ports entry.
13062
13063 2012-07-03  Andreas Jaeger  <aj@suse.de>
13064
13065         * po/bg.po: Update from translation team.
13066         * po/cs.po: Likewise.
13067         * po/de.po: Likewise.
13068         * po/hr.po: Likewise.
13069         * po/nl.pl: Likewise.
13070         * po/pl.po: Likewise.
13071         * po/vi.po: Likewise.
13072
13073 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
13074
13075         * Makeconfig [!+link] (+link-before-libc): New variable.
13076         [!+link] (+link-after-libc): Likewise.
13077         [!+link] (+link-tests): Likewise.
13078         [!+link] (+link): Define in terms of $(+link-before-libc) and
13079         $(+link-after-libc).
13080         [!+link-static] (+link-static-before-libc): New variable.
13081         [!+link-static] (+link-static-after-libc): Likewise.
13082         [!+link-static] (+link-static-tests): Likewise.
13083         [!+link-static] (+link-static): Define in terms of
13084         $(+link-static-before-libc) and $(+link-static-after-libc).
13085         [build-shared] (link-libc-before-gnulib): New variable.
13086         [build-shared] (link-libc-tests): Likewise.
13087         [build-shared] (link-libc): Define in terms of
13088         $(link-libc-before-gnulib).
13089         [!build-shared] (link-libc-tests): New variable.
13090         (link-libc-static-tests): New variable.
13091         [!gnulib] (gnulib-arch): New variable.
13092         [!gnulib] (gnulib-tests): Likewise.
13093         [!gnulib] (static-gnulib-arch): Likewise.
13094         [!gnulib] (static-gnulib-tests): Likewise.
13095         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
13096         Define with "=" instead of ":=".
13097         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
13098         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
13099         * Rules (binaries-all-notests): New variable.
13100         (binaries-all-tests): Likewise.
13101         (binaries-static-notests): Likewise.
13102         (binaries-static-tests): Likewise.
13103         (binaries-all): Define using $(binaries-all-notests) and
13104         $(binaries-all-tests).
13105         (binaries-static): Define using $(binaries-static-notests) and
13106         $(binaries-static-tests).
13107         (binaries-shared-tests): New variable.
13108         (binaries-shared-notests): Likewise.
13109         (binaries-shared): Remove variable.
13110         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
13111         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
13112         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
13113         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
13114         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
13115         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
13116         * elf/Makefile (sln-modules): New variable.
13117         (extra-objs): Add $(sln-modules:=.o).
13118         (ldconfig-modules): Add static-stubs.
13119         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
13120         * elf/static-stubs.c: New file.
13121
13122         [BZ #14283]
13123         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
13124         by 7 not 8 to examine high bit of fractional part.  Use volatile
13125         variables when splitting into final array of floats if
13126         __FLT_EVAL_METHOD__ != 0.
13127         * math/libm-test.inc (cos_test): Add another test.
13128         (sin_test): Likewise.
13129         * sysdeps/i386/fpu/libm-test-ulps: Update.
13130
13131         [BZ #14273]
13132         * math/libm-test.inc (cosh_test): Add more tests.
13133
13134         * version.h (RELEASE): Set to "development".
13135         (VERSION): Set to "2.16.90".
13136
13137 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
13138
13139         * NEWS: Update copyright. Remove last-updated date.
13140         Mention math library bug fixes and timezone data changes.
13141         * README: Mention GNU/Hurd, x32, and HPPA support status.
13142
13143 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
13144
13145         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
13146
13147 2012-06-27  Andreas Jaeger  <aj@suse.de>
13148
13149         * manual/contrib.texi (Contributors): Add Samuel Thibault.
13150
13151 2012-06-25  Andreas Jaeger  <aj@suse.de>
13152
13153         * sysdeps/s390/fpu/libm-test-ulps: Update.
13154
13155 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
13156             Thomas Schwinge  <thomas@codesourcery.com>
13157
13158         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
13159         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
13160         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
13161         fanotify_mark.
13162
13163 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
13164
13165         * sysdeps/mach/start.c: Remove file.
13166         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
13167         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
13168         * sysdeps/sh/init-first.c: Likewise.
13169
13170         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
13171         registers for frame unwinding purposes, add CFI directives.
13172         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
13173         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
13174         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
13175         Likewise.
13176
13177         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
13178         __fortify_fail returning.
13179         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
13180
13181         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
13182         sysdeps/sh/____longjmp_chk.S.
13183         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
13184         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
13185         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
13186         (gen-as-const-headers): Append sigaltstack-offsets.sym.
13187
13188         * sysdeps/sh/abort-instr.h: New file.
13189         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
13190         process in case exit returns.
13191
13192         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
13193         initialize the GOT register before use.
13194
13195         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
13196         calculation of ARGC > 4.
13197
13198         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
13199         meaningful names to some local labels.
13200
13201 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13202             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13203
13204         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
13205         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
13206         (__arch_compare_and_exchange_val_16_acq): Likewise.
13207         (__arch_compare_and_exchange_val_32_acq): Likewise.
13208         (atomic_exchange_and_add): Fix gUSA sequence.
13209         (atomic_add): Likewise.
13210         (atomic_add_negative): Likewise.
13211         (atomic_add_zero): Likewise.
13212         (atomic_bit_test_set): Likewise.
13213
13214 2012-06-22  Andreas Schwab  <schwab@redhat.com>
13215
13216         [BZ #13579]
13217         * include/link.h (struct link_map): Add l_free_initfini.
13218         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
13219         l_initfini.
13220         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
13221         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
13222         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
13223         set.
13224
13225 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
13226
13227         * configure.in: Use AC_LANG_SOURCE.
13228         * configure: Regenerate.
13229
13230 2012-06-22  Roland McGrath  <roland@hack.frob.com>
13231
13232         * configure.in (libc_cv_localstatedir): New substituted variable.
13233         * configure: Regenerated.
13234         * config.make.in (localstatedir): New variable, substituted from
13235         libc_cv_localstatedir.
13236         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
13237         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
13238         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
13239         * sysdeps/gnu/configure: Regenerated.
13240
13241 2012-06-21  Jeff Law  <law@redhat.com>
13242
13243         [BZ #14277]
13244         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
13245         free.  Simplify list management for _LIBC case.
13246
13247 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
13248
13249         [BZ #14273]
13250         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
13251         Clear sign bit of 64-bit integer value before comparing against
13252         overflow value.
13253
13254         * sysdeps/mach/configure: Regenerated.
13255
13256 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13257
13258         [BZ #14278]
13259         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
13260
13261 2012-06-21  Jeff Law  <law@redhat.com>
13262
13263         [BZ #13882]
13264         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
13265         uint16_t for elements in the "seen" array to avoid char overflows.
13266         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13267         * elf/dl-open.c (dl_open_worker): Likewise.
13268
13269 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
13270
13271         * scripts/list-sources.sh: Scan PORTS for translations.
13272         * po/libc.pot: Regenerated.
13273
13274 2012-06-21  Andreas Jaeger  <aj@suse.de>
13275
13276         [BZ #12194]
13277         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
13278         warning.
13279         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
13280         * bits/byteswap-16.h (__bswap_16): Likewise.
13281         * bits/byteswap.h (__bswap_constant_16): Likewise.
13282
13283 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13284
13285         [BZ #14117]
13286         * sysdeps/i386/fpu_control.h: Removed.
13287         * sysdeps/x86_64/fpu_control.h: Moved to ...
13288         * sysdeps/x86/fpu_control.h: Here.
13289
13290         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
13291         (_FPU_SETCW): Likewise.
13292
13293 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
13294
13295         [BZ #14117]
13296         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
13297         * sysdeps/x86/fpu/bits/mathinline.h: This.
13298         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
13299
13300         [BZ #14050]
13301         [BZ #14117]
13302         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
13303         functions if __x86_64__ is defined.
13304
13305 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
13306
13307         * string/endian.h: Add !__ASSEMBLER__ condition for including
13308         conversion interfaces.
13309
13310 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
13311
13312         [BZ #14241]
13313         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
13314         of ABS(x) in calculating zero to negative powers other than odd
13315         integers.
13316         * math/libm-test.inc (pow_test): Add more tests.
13317
13318 2012-06-15  Andreas Jaeger  <aj@suse.de>
13319
13320         * manual/contrib.texi (Contributors): Update entry of Liubov
13321         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
13322         Machado Filho.
13323
13324 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
13325
13326         * string/string.h: Add __wur to GNU version of strerror_r.
13327
13328 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13329
13330         [BZ #14229]
13331         * string/Makefile (tests): Add tst-strtok_r.
13332         * string/tst-strtok_r.c: New file.
13333         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
13334         RAX_LP/RDX_LP on SAVE_PTR.
13335
13336 2012-06-14  Roland McGrath  <roland@hack.frob.com>
13337
13338         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
13339
13340 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
13341
13342         * libm_test.inc (csqrt_test): Allow more spurious underflow
13343         exceptions.
13344         (j0_test): Likewise.
13345         (j1_test): Likewise.
13346         (y0_test): Likewise.
13347         (y1_test): Likewise.
13348
13349 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
13350
13351         * po/Makefile (libc.pot): Use UTF-8 charset.
13352
13353 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
13354
13355         [BZ #14210]
13356         Suppress sign-conversion warning from FD_SET.
13357         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
13358         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
13359         not unsigned long int.
13360         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
13361
13362 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13363
13364         [BZ #14050]
13365         [BZ #14117]
13366         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
13367         __extern_always_inline instead of __extern_inline.
13368         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
13369         (__signbit): Likewise.
13370         (__signbitl): Support C++ namespace.
13371         (lrintf): New inline function.
13372         (lrint): Likewise.
13373         (llrintf): Likewise.
13374         (llrint): Likewise.
13375         (fmaxf): Likewise.
13376         (fmax): Likewise.
13377         (fminf): Likewise.
13378         (fmin): Likewise.
13379         (rint): Likewise.
13380         (rintf): Likewise.
13381         (ceil): Likewise.
13382         (ceilf): Likewise.
13383         (floor): Likewise.
13384         (floorf): Likewise.
13385         (nearbyint): Likewise.
13386         (nearbyintf): Likewise.
13387
13388 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
13389
13390         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
13391         non-default versions.
13392
13393 2012-06-11  Roland McGrath  <roland@hack.frob.com>
13394
13395         [BZ #14218]
13396         * manual/argp.texi (Argp): Reword argp_parse description slightly.
13397
13398 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
13399
13400         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
13401         (FE_UPWARD, FE_DOWNWARD): Don't define.
13402         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
13403         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13404
13405         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
13406         reading it.
13407         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13408         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13409
13410 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13411
13412         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
13413         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
13414         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
13415         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
13416
13417 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
13418
13419         [BZ #14117]
13420         * sysdeps/i386/fpu/bits/fenv.h: Removed.
13421         * sysdeps/i386/fpu/Implies: New file.
13422         * sysdeps/x86_64/fpu/Implies: Likewise.
13423         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
13424         * sysdeps/x86/fpu/bits/fenv.h: This.
13425
13426         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
13427         __SSE_MATH__.
13428
13429 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
13430
13431         [BZ #14134]
13432         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
13433         character 0xffff that matches the last element of the
13434         conversion table.
13435
13436 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13437
13438         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
13439         fmodl commit.
13440
13441 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13442
13443         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
13444         values higher than 25.6283.
13445
13446 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13447
13448         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
13449         subnormal exponent extraction and add some __builtin_expect.
13450         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
13451         Fix for subnormal mantissa calculation.
13452
13453 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
13454
13455         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
13456         cpu2 is -1 and errno is not ENOSYS.
13457
13458 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13459
13460         [BZ #14117]
13461         * sysdeps/i386/i486/bits/string.h: Renamed to ...
13462         * sysdeps/x86/bits/string.h: This.
13463         * sysdeps/x86_64/bits/string.h: Removed.
13464
13465         * sysdeps/i386/i486/bits/string.h: Define inline functions only
13466         if not compiling for x86-64, but compiling for >= i486.
13467
13468         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
13469         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
13470
13471         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
13472         New macro from Linux kernel 3.4.0.
13473         (FP_XSTATE_MAGIC2): Likewise.
13474         (FP_XSTATE_MAGIC2_SIZE): Likewise.
13475         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
13476         (struct _fpx_sw_bytes): New struct.
13477         (struct _xsave_hdr): Likewise.
13478         (struct _ymmh_state): Likewise.
13479         (struct _xstate): Likewise.
13480
13481         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
13482         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
13483         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
13484         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
13485         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
13486         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
13487
13488         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
13489         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
13490         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
13491         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
13492         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
13493         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
13494
13495 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13496
13497         [BZ #13743]
13498         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
13499         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
13500         (sysdep_headers): Include sys/platform/ppc.h.
13501         * sysdeps/powerpc/test-gettimebase.c: Test for
13502         __ppc_get_timebase() to catch future ISA opcode/insn changes.
13503         * manual/Makefile (appendices): Include platform.texi.
13504         * manual/contrib.texi (Contributors): Update @node pointers.
13505         * manual/maint.texi (Maintenance): Likewise.
13506         (Platform): New node.
13507         * manual/platform.texi: New file.  Document the new features.
13508
13509 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13510             Jakub Jelinek  <jakub@redhat.com>
13511
13512         [BZ #14188]
13513         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
13514         where __builtin_expect is unavailable.
13515
13516 2012-06-03  David S. Miller  <davem@davemloft.net>
13517
13518         * stdlib/longlong.h: Updated from GCC.
13519
13520 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
13521
13522         [BZ #14042]
13523         * sysdeps/powerpc/powerpc32/mcount.c: New file.
13524         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
13525         __mcount_internal.
13526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
13527         (GLIBC_2.16): Likewise.
13528
13529 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13530
13531         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
13532
13533 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
13534
13535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
13536         (default-abi): New variable.
13537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
13538         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
13539         variable.
13540         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
13541         Likewise.
13542         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
13543         Likewise.
13544         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
13545         Likewise.
13546
13547         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
13548         definition.  Document in comment.
13549
13550 2012-06-01  David S. Miller  <davem@davemloft.net>
13551
13552         * stdlib/longlong.h: Updated from GCC.
13553
13554 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13555
13556         [BZ #14117]
13557         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
13558         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
13559         sys/debugreg.h sys/io.h here.
13560         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
13561         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
13562         sys/io.h.
13563         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
13564         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
13565         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
13566         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
13567         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
13568         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
13569
13570         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
13571         Define only if __x86_64__ is defined.
13572
13573 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
13574
13575         [BZ #14048]
13576         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
13577         Use int64_t for variable i.
13578         * math/libm-test.inc (fmod_test): Add more tests.
13579
13580         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
13581         z computation is not scheduled after fetestexcept.
13582         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
13583         Use math_force_eval instead of asm to ensure calculation scheduled
13584         before exception test.
13585         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
13586         Ensure a1 + u.d computation is not scheduled after fetestexcept.
13587
13588 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
13589
13590         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
13591         computation is not scheduled after fetestexcept.
13592
13593 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13594
13595         [BZ #14117]
13596         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
13597         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
13598
13599 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13600
13601         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
13602         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13603
13604 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13605
13606         [BZ #14117]
13607         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
13608         <bits/wordsize.h>.
13609         (__WCHAR_MIN): Support __WORDSIZE == 64.
13610         (__WCHAR_MAX): Likewise.
13611
13612         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
13613         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
13614
13615         [BZ #14183]
13616         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
13617         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
13618
13619         [BZ #14117]
13620         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
13621         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
13622
13623         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
13624         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
13625
13626         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
13627         Defined to 1 if __x86_64__ isn't defined.
13628         (_STAT_VER_LINUX_OLD): New.
13629         (st_atime): Remove duplicate.
13630         (st_mtime): Likewise.
13631         (st_ctime): Likewise.
13632
13633 2012-05-31  David S. Miller  <davem@davemloft.net>
13634
13635         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
13636         entries.
13637
13638 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
13639
13640         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
13641         gen-libm-test.pl.
13642
13643         [BZ #14132]
13644         * elf/dl-reloc.c: Include <_itoa.h>.
13645         (_dl_reloc_bad_type): Remove use of INTUSE.
13646         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
13647         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
13648         * stdio-common/psiginfo.c (psiginfo): Likewise.
13649         * stdio-common/psignal.c (psignal): Likewise.
13650         * string/strsignal.c (strsignal): Likewise.
13651         * include/signal.h (_sys_siglist): Declare hidden proto.
13652         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
13653         INTVARDEF with libc_hidden_data_def.
13654         * stdio-common/itoa-udigits.c: Likewise.
13655         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
13656         (_itoa_lower_digits_internal): Remove declaration.
13657         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
13658         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
13659         (_sys_sigabbrev_internal): Remove aliases.
13660         (_sys_siglist): Define hidden alias.
13661
13662 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
13663
13664         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13665         bits/sysctl.h.
13666
13667 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13668
13669         [BZ #14117]
13670         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
13671         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
13672
13673         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
13674         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
13675         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
13676         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
13677         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
13678         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
13679
13680         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
13681         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
13682         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
13683
13684         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
13685         with __addr.
13686         (insw): Likewise.
13687         (insl): Likewise.
13688         (outsb): Likewise.
13689         (outsw): Likewise.
13690         (outsl): Likewise.
13691
13692         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
13693         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
13694         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
13695
13696         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
13697         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
13698         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
13699         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
13700         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
13701         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
13702
13703         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
13704         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
13705
13706         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
13707         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
13708
13709         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
13710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
13711         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
13712
13713         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
13714         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
13715         to ...
13716         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
13717
13718         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
13719         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
13720         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
13721
13722         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
13723         for x86-64.
13724         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
13725
13726 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
13727
13728         * math/math.h (M_El): Use two more decimal places.
13729         (M_LOG2El): Likewise.
13730         (M_LOG10El): Likewise.
13731         (M_LN2l): Likewise.
13732         (M_LN10l): Likewise.
13733         (M_PIl): Likewise.
13734         (M_PI_2l): Likewise.
13735         (M_PI_4l): Likewise.
13736         (M_1_PIl): Likewise.
13737         (M_2_PIl): Likewise.
13738         (M_2_SQRTPIl): Likewise.
13739         (M_SQRT2l): Likewise.
13740         (M_SQRT1_2l): Likewise.
13741
13742 2012-05-31  David S. Miller  <davem@davemloft.net>
13743
13744         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
13745         values between float registers.
13746         * sysdeps/sparc/sparc64/memset.S: Likewise.
13747         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
13748
13749 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
13750
13751         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
13752         -D_FORTIFY_SOURCE=1.
13753         (CPPFLAGS-tst-longjmp_chk.c): Define.
13754         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
13755         (CPPFLAGS-tst-longjmp_chk2.c): Define.
13756         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
13757         CFLAGS-tst-wchar-h.c.
13758
13759 2012-05-31  Marek Polacek  <polacek@redhat.com>
13760
13761         [BZ #14132]
13762         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
13763         __endmntent_internal): Remove declaration.
13764         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
13765         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
13766         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
13767
13768 2012-05-30  David S. Miller  <davem@davemloft.net>
13769
13770         * sysdeps/sparc/sparc32/soft-fp/q_util.c
13771         (___Q_simulate_exceptions): Use real FP ops rather than writing
13772         into the %fsr.
13773         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
13774         Likewise.
13775
13776 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13777
13778         [BZ #14117]
13779         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
13780         * sysdeps/x86/bits/xtitypes.h: This.
13781
13782         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
13783         * sysdeps/x86/bits/wordsize.h: This.
13784
13785         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
13786         * sysdeps/x86/bits/huge_vall.h: This.
13787
13788         * sysdeps/i386/bits/select.h: Removed.
13789         * sysdeps/x86_64/bits/select.h: Renamed to ...
13790         * sysdeps/x86/bits/select.h: This.
13791
13792         * sysdeps/i386/bits/setjmp.h: Removed.
13793         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
13794         * sysdeps/x86/bits/setjmp.h: This.
13795
13796         * sysdeps/i386/bits/mathdef.h: Removed.
13797         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
13798         * sysdeps/x86/bits/mathdef.h: This.
13799
13800 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13801
13802         [BZ #14132]
13803         * include/sys/socket.h (__connect_internal)
13804         (__libc_sa_len_internal): Remove declaration.
13805         (__connect, __libc_sa_len): Declare hidden_proto.
13806         (SA_LEN): Remove use of INTUSE.
13807         * socket/connect.c: Add libc_hidden_def.
13808         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
13809         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
13810         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
13811         alias.
13812         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13813         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13814         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
13815         of adding _internal alias.
13816
13817 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13818
13819         [BZ #14117]
13820         * sysdeps/i386/bits/link.h: Removed.
13821         * sysdeps/i386/bits/linkmap.h: Likewise.
13822         * sysdeps/x86_64/bits/link.h: Renamed to ...
13823         * sysdeps/x86/bits/link.h: This.
13824         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
13825         * sysdeps/x86/bits/linkmap.h: This.
13826
13827         * sysdeps/i386/bits/endian.h: Removed.
13828         * sysdeps/x86_64/bits/endian.h: Renamed to ...
13829         * sysdeps/x86/bits/endian.h: This.
13830
13831         * sysdeps/i386/bits/byteswap.h: Removed.
13832         * sysdeps/i386/bits/byteswap-16.h: Likewise.
13833         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
13834         * sysdeps/x86/bits/byteswap.h: This.
13835         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
13836         * sysdeps/x86/bits/byteswap-16.h: This.
13837         * sysdeps/i386/Implies: Add x86.
13838         * sysdeps/x86_64/Implies: Likewise.
13839
13840 2012-05-30  David S. Miller  <davem@davemloft.net>
13841
13842         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
13843         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
13844         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
13845         (FP_TRAPPING_EXCEPTIONS): Define.
13846         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
13847         (FP_TRAPPING_EXCEPTIONS): Define.
13848         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
13849         subnormals only when inexact has been signalled or underflow
13850         exceptions are enabled.
13851         (_FP_PACK_CANONICAL): Likewise.
13852
13853 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13854
13855         [BZ #14183]
13856         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
13857         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
13858
13859 2012-05-30  Richard Henderson  <rth@twiddle.net>
13860
13861         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
13862         with #ifndef NOT_IN_libc.
13863
13864         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
13865         marked to avoid plt entry.
13866
13867 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13868
13869         [BZ #14112]
13870         * Makeconfig (default-abi): New macro.
13871         (abi-includes): Likewise.
13872         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
13873         $(abi-$(default-abi)-lib-soname) for soname if defined.
13874         ($(common-objpfx)gnu/lib-names.stmp): Generate from
13875         abi-variants.
13876         * Makefile (installed-stubs): Likewise.
13877         * include/stubs-biarch.h: Removed.
13878         * scripts/lib-names.awk: Only handle one library at a time.
13879         * scripts/soversions.awk: Remove WORDSIZE support.
13880         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
13881         entries.
13882         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
13883         Removed.
13884         (syscall-list-default-condition): Likewise.
13885         (syscall-list-default-condition): Likewise.
13886         (syscall-list-includes): Likewise.
13887         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
13888         syscall-list-* with abi-*.  Handle undefined abi-variants.
13889         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
13890         * sysdeps/unix/sysv/linux/i386/Implies: New file.
13891         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
13892         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
13893         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
13894         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
13895         Removed.
13896         (syscall-list-32-options): Likewise.
13897         (syscall-list-32-condition): Likewise.
13898         (syscall-list-64-options): Likewise.
13899         (syscall-list-64-condition): Likewise.
13900         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
13901         macro.
13902         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
13903         Renamed to ...
13904         (abi-*): This.
13905         (abi-64-ld-soname): New macro.
13906         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
13907         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
13908         Renamed to ...
13909         (abi-*): This.
13910         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
13911         * sysdeps/x86_64/x32/shlib-versions: Likewise.
13912
13913 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
13914
13915         * sysdeps/unix/sysv/linux/kernel-features.h
13916         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
13917         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
13918         include <kernel-features.h>.
13919         [!__NR_ftruncate64]: Remove conditional code.
13920         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13921         [__NR_ftruncate64]: Make code unconditional.
13922         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13923         * sysdeps/unix/sysv/linux/truncate64.c: Do not
13924         include <kernel-features.h>.
13925         [!__NR_ftruncate64]: Remove conditional code.
13926         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13927         [__NR_ftruncate64]: Make code unconditional.
13928         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
13930         include <kernel-features.h>.
13931         [!__NR_ftruncate64]: Remove conditional code.
13932         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13933         [__NR_ftruncate64]: Make code unconditional.
13934         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13936         include <kernel-features.h>.
13937         [!__NR_ftruncate64]: Remove conditional code.
13938         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13939         [__NR_ftruncate64]: Make code unconditional.
13940         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13941
13942         * configure.in (libc_cv_fpie): Weaken to a compile test using
13943         LIBC_TRY_CC_OPTION.
13944         * configure: Regenerated.
13945
13946 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13947
13948         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
13949         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
13950         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
13951         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13952         Refreshed.
13953         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
13954         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
13955         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
13956         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
13957         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
13958         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13959         Refreshed.
13960
13961 2012-05-27  David S. Miller  <davem@davemloft.net>
13962
13963         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
13964         (___Q_zero): New.
13965         (__Q_simulate_exceptions): Return void.  Change to simulate
13966         exceptions by writing into the %fsr.
13967         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
13968         (__Qp_handle_exceptions): Likewise.
13969         (numbers): Delete.
13970         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
13971         __Qp_handle_exceptions.
13972         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
13973         __Qp_handle_exceptions.
13974         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13975         as unused and give dummy FP_RND_NEAREST initializer.
13976         (FP_INHIBIT_RESULTS): Define.
13977         (___Q_simulate_exceptions): Update declaration.
13978         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
13979         formatting.
13980         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13981         as unused and give dummy FP_RND_NEAREST initializer.
13982         (__Qp_handle_exceptions): Update declaration.
13983         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
13984         formatting.
13985
13986 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
13987
13988         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
13989         the temporary FPU control word.
13990         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
13991         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
13992         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
13993         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13994         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
13995         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
13996         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
13997         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13998         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
13999         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
14000         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14001
14002 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14003
14004         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
14005         fields.
14006
14007 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
14008
14009         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
14010         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
14011         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
14012         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
14013         Likewise.
14014         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
14015         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
14016         Likewise.
14017
14018 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
14019
14020         * po/h.po: Update from translation team.
14021
14022 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
14023
14024         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
14025
14026         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
14027         handling of denormals.
14028         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
14029         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
14030         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
14031         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
14032         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14033         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
14034         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
14035         Likewise.
14036
14037 2012-05-26  Marek Polacek  <polacek@redhat.com>
14038
14039         [BZ #14152]
14040         * math/libm-test.inc (fma_test): Don't always expect underflow
14041         exception.
14042
14043 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14044
14045         [BZ #12416]
14046         * elf/tst-execstack.c: Include stackinfo.h.
14047         (do_test): Adjust test case to ensure that pthread_getattr_np
14048         behaviour remains the same after marking stack executable.
14049
14050 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
14051
14052         * sysdeps/unix/sysv/linux/kernel-features.h
14053         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
14054         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
14055         kernel-features.h.
14056         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
14057         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
14058         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
14059         kernel-features.h.
14060         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
14061         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
14062
14063 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14064
14065         * configure.in: Define the default includes to being none.
14066         * configure: Regenerated.
14067
14068 2012-05-25  Roland McGrath  <roland@hack.frob.com>
14069
14070         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
14071         * sysdeps/x86_64/setjmp.S: Likewise.
14072         * sysdeps/i386/bsd-setjmp.S: Likewise.
14073         * sysdeps/i386/bsd-_setjmp.S: Likewise.
14074         * sysdeps/i386/setjmp.S: Likewise.
14075         * sysdeps/i386/__longjmp.S: Likewise.
14076         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14077         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
14078
14079         * include/stap-probe.h: New file.
14080         * configure.in: Handle --enable-systemtap.
14081         * configure: Regenerated.
14082         * config.h.in (USE_STAP_PROBE): New #undef.
14083         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
14084         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
14085         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
14086
14087 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
14088
14089         [BZ #13717]
14090         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
14091         to 2.4.0 where earlier.
14092         * sysdeps/unix/sysv/linux/configure: Regenerated.
14093         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
14094         <kernel-features.h>.
14095         [__ASSUME_32BITUIDS]: Make code unconditional.
14096         [!__ASSUME_32BITUIDS]: Remove conditional code.
14097         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
14098         <kernel-features.h>.
14099         [__ASSUME_32BITUIDS]: Make code unconditional.
14100         [!__ASSUME_32BITUIDS]: Remove conditional code.
14101         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
14102         [__ASSUME_32BITUIDS]: Make code unconditional.
14103         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
14104         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
14105         <kernel-features.h>.
14106         [__ASSUME_32BITUIDS]: Make code unconditional.
14107         [!__ASSUME_32BITUIDS]: Remove conditional code.
14108         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
14109         <kernel-features.h>.
14110         [__ASSUME_32BITUIDS]: Make code unconditional.
14111         [!__ASSUME_32BITUIDS]: Remove conditional code.
14112         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
14113         <kernel-features.h>.
14114         [__ASSUME_32BITUIDS]: Make code unconditional.
14115         [!__ASSUME_32BITUIDS]: Remove conditional code.
14116         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
14117         <kernel-features.h>.
14118         [__ASSUME_32BITUIDS]: Make code unconditional.
14119         [!__ASSUME_32BITUIDS]: Remove conditional code.
14120         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
14121         <kernel-features.h>.
14122         [__ASSUME_32BITUIDS]: Make code unconditional.
14123         [!__ASSUME_32BITUIDS]: Remove conditional code.
14124         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
14125         <kernel-features.h>.
14126         [__ASSUME_32BITUIDS]: Make code unconditional.
14127         [!__ASSUME_32BITUIDS]: Remove conditional code.
14128         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
14129         <kernel-features.h>.
14130         [__ASSUME_32BITUIDS]: Make code unconditional.
14131         [!__ASSUME_32BITUIDS]: Remove conditional code.
14132         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
14133         <kernel-features.h>.
14134         [__ASSUME_32BITUIDS]: Make code unconditional.
14135         [!__ASSUME_32BITUIDS]: Remove conditional code.
14136         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
14137         <kernel-features.h>.
14138         [__ASSUME_32BITUIDS]: Make code unconditional.
14139         [!__ASSUME_32BITUIDS]: Remove conditional code.
14140         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
14141         <kernel-features.h>.
14142         [__ASSUME_32BITUIDS]: Make code unconditional.
14143         [!__ASSUME_32BITUIDS]: Remove conditional code.
14144         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
14145         <kernel-features.h>.
14146         [__NR_setresgid] (__setresgid): Do not declare.
14147         [__ASSUME_32BITUIDS]: Make code unconditional.
14148         [!__ASSUME_32BITUIDS]: Remove conditional code.
14149         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
14150         <kernel-features.h>.
14151         [__NR_setresuid] (__setresuid): Do not declare.
14152         [__ASSUME_32BITUIDS]: Make code unconditional.
14153         [!__ASSUME_32BITUIDS]: Remove conditional code.
14154         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
14155         <kernel-features.h>.
14156         [__ASSUME_32BITUIDS]: Make code unconditional.
14157         [!__ASSUME_32BITUIDS]: Remove conditional code.
14158         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
14159         <kernel-features.h>.
14160         [__ASSUME_32BITUIDS]: Make code unconditional.
14161         [!__ASSUME_32BITUIDS]: Remove conditional code.
14162         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
14163         <kernel-features.h>.
14164         [__ASSUME_32BITUIDS]: Make code unconditional.
14165         [!__ASSUME_32BITUIDS]: Remove conditional code.
14166         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
14167         <kernel-features.h>.
14168         [__ASSUME_32BITUIDS]: Make code unconditional.
14169         [!__ASSUME_32BITUIDS]: Remove conditional code.
14170         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
14171         <kernel-features.h>.
14172         [__ASSUME_32BITUIDS]: Make code unconditional.
14173         [!__ASSUME_32BITUIDS]: Remove conditional code.
14174         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
14175         <kernel-features.h>.
14176         [__ASSUME_32BITUIDS]: Make code unconditional.
14177         [!__ASSUME_32BITUIDS]: Remove conditional code.
14178         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
14179         <kernel-features.h>.
14180         [__ASSUME_32BITUIDS]: Make code unconditional.
14181         [!__ASSUME_32BITUIDS]: Remove conditional code.
14182         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
14183         <kernel-features.h>.
14184         [__ASSUME_32BITUIDS]: Make code unconditional.
14185         [!__ASSUME_32BITUIDS]: Remove conditional code.
14186         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
14187         <kernel-features.h>.
14188         [__ASSUME_32BITUIDS]: Make code unconditional.
14189         [!__ASSUME_32BITUIDS]: Remove conditional code.
14190         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
14191         <kernel-features.h>.
14192         [__ASSUME_32BITUIDS]: Make code unconditional.
14193         [!__ASSUME_32BITUIDS]: Remove conditional code.
14194         * sysdeps/unix/sysv/linux/kernel-features.h
14195         (__ASSUME_SETRESUID_SYSCALL): Remove.
14196         (__ASSUME_SETRESGID_SYSCALL): Likewise.
14197         (__ASSUME_32BITUIDS): Likewise.
14198         (__ASSUME_LDT_WORKS): Likewise.
14199         (__ASSUME_O_DIRECTORY): Likewise.
14200         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
14201         architecture but not kernel version.
14202         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
14203         (__ASSUME_MMAP2_SYSCALL): Likewise.
14204         (__ASSUME_STAT64_SYSCALL): Likewise.
14205         (__ASSUME_IPC64): Likewise.
14206         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
14207         <kernel-features.h>.
14208         [__ASSUME_32BITUIDS]: Make code unconditional.
14209         [!__ASSUME_32BITUIDS]: Remove conditional code.
14210         * sysdeps/unix/sysv/linux/opendir.c: Do not include
14211         <kernel-features.h>.
14212         [__ASSUME_O_DIRECTORY]: Make code unconditional.
14213         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
14214         132096]: Remove conditional code.
14215         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
14216         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
14217         <kernel-features.h>.
14218         [__ASSUME_32BITUIDS]: Make code unconditional.
14219         [!__ASSUME_32BITUIDS]: Remove conditional code.
14220         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
14221         <kernel-features.h>.
14222         [__ASSUME_32BITUIDS]: Make code unconditional.
14223         [!__ASSUME_32BITUIDS]: Remove conditional code.
14224         * sysdeps/unix/sysv/linux/setegid.c: Do not include
14225         <kernel-features.h>.
14226         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
14227         unconditional.
14228         (__setresgid): Do not declare.
14229         [__ASSUME_32BITUIDS]: Make code unconditional.
14230         [!__ASSUME_32BITUIDS]: Remove conditional code.
14231         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
14232         <kernel-features.h>.
14233         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
14234         unconditional.
14235         (__setresuid): Do not declare.
14236         [__ASSUME_32BITUIDS]: Make code unconditional.
14237         [!__ASSUME_32BITUIDS]: Remove conditional code.
14238         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
14239         <kernel-features.h>.
14240         [__ASSUME_32BITUIDS]: Make code unconditional.
14241         [!__ASSUME_32BITUIDS]: Remove conditional code.
14242         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
14243         <kernel-features.h>.
14244         [__ASSUME_32BITUIDS]: Make code unconditional.
14245         [!__ASSUME_32BITUIDS]: Remove conditional code.
14246
14247 2012-05-25  Richard Henderson  <rth@twiddle.net>
14248
14249         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
14250         dl_hwcap to ifunc resolver.
14251         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
14252         elf_ifunc_invoke.
14253         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
14254         dl_hwcap to ifunc resolver.
14255         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
14256
14257 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14258
14259         [BZ #14153]
14260         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
14261         for |x| <= 2**-26, not 2**-57.
14262         * math/libm-test.inc (acos_test): Do not allow spurious underflow
14263         exception.
14264
14265 2012-05-24  Jeff Law  <law@redhat.com>
14266
14267         * stdio-common/Makefile (tests): Add bug25.
14268         * stdio-common/bug25.c: New test.
14269
14270 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14271
14272         [BZ #13576]
14273         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
14274         multiple of MALLOC_ALIGNMENT in size.
14275         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
14276
14277 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14278
14279         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
14280         Require >= 256.
14281         (FILENAME_MAX): Use macro-int-constant.
14282         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
14283         (_IOFBF): Use macro-int-constant.
14284         (_IOLBF): Likewise.
14285         (_IONBF): Likewise.
14286         (SEEK_CUR): Likewise.
14287         (SEEK_END): Likewise.
14288         (SEEK_SET): Likewise.
14289         (TMP_MAX): Likewise.
14290         (EOF): Use macro-int-constant.  Require < 0.
14291         (NULL): Use macro-constant.  Require == 0.
14292         (stdin): Require type to be FILE *.
14293         (stdout): Likewise.
14294         (stderr): Likewise.
14295         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
14296         macro-int-constant.
14297         (EXIT_SUCCESS): Likewise.
14298         (NULL): Use macro-constant.  Require == 0.
14299         (RAND_MAX): Use macro-int-constant.
14300         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
14301         [C99-based standards] (strtof): Require function.
14302         [C99-based standards] (strtold): Likewise.
14303         [C99-based standards] (strtoll): Likewise.
14304         [C99-based standards] (strtoull): Likewise.
14305         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
14306         [ISO || ISO99 || ISO11] (limits.h): Likewise.
14307         [ISO || ISO99 || ISO11] (math.h): Likewise.
14308         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
14309         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
14310         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14311
14312 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
14313
14314         [BZ #14132]
14315         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
14316         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
14317         * intl/dgettext.c (DCGETTEXT): Likewise.
14318         * intl/gettext.c (DCGETTEXT): Likewise.
14319         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
14320         * posix/regex_internal.h (gettext): Likewise.
14321         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
14322         Remove declaration.
14323         * include/argz.h (__argz_count_internal)
14324         (__argz_stringify_internal): Remove declaration.
14325         (__argz_count, __argz_stringify): Declare hidden proto.
14326         * intl/dcgettext.c: Remove use of INTDEF.
14327         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
14328         * string/argz-stringify.c: Likewise.
14329         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
14330         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
14331         Declare hidden proto.
14332         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
14333         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
14334         Declare hidden proto.
14335         * include/stdio.h (__asprintf_internal): Don't declare.
14336         (__asprintf): Don't define as macro.  Declare hidden proto.
14337         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
14338         (__fsetlocking): Declare hidden proto.
14339         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
14340         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
14341         hidden proto.
14342         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
14343         (_IO_setlinebuf): Remove use of INTUSE.
14344         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
14345         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
14346         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
14347         Remove declaration.
14348         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
14349         (_IO_do_flush): Remove use of INTUSE.
14350         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
14351         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
14352         (_IO_adjust_column, _IO_least_wmarker)
14353         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
14354         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
14355         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
14356         (_IO_default_doallocate, _IO_wdefault_doallocate)
14357         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
14358         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
14359         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
14360         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
14361         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
14362         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
14363         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
14364         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
14365         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
14366         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
14367         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
14368         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
14369         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
14370         proto.
14371         (_IO_flush_all_internal, _IO_adjust_column_internal)
14372         (_IO_default_uflow_internal, _IO_default_finish_internal)
14373         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
14374         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
14375         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
14376         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
14377         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
14378         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
14379         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
14380         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
14381         (_IO_file_close_internal, _IO_file_close_it_internal)
14382         (_IO_file_underflow_internal, _IO_file_overflow_internal)
14383         (_IO_file_init_internal, _IO_file_attach_internal)
14384         (_IO_file_fopen_internal, _IO_file_read_internal)
14385         (_IO_file_sync_internal, _IO_file_seek_internal)
14386         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
14387         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
14388         (_IO_str_underflow_internal, _IO_str_overflow_internal)
14389         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
14390         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
14391         (_IO_list_all_internal, _IO_link_in_internal)
14392         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
14393         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
14394         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
14395         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
14396         (_IO_do_write_internal, _IO_padn_internal)
14397         (_IO_getline_info_internal, _IO_getline_internal)
14398         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
14399         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
14400         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
14401         (_IO_vfscanf_internal, _IO_vfprintf_internal)
14402         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
14403         (_IO_init_internal, _IO_un_link_internal): Don't declare.
14404         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
14405         with libc_hidden_ver, remove use of INTUSE.
14406         * libio/genops.c: Likewise.
14407         * libio/freopen.c: Likewise.
14408         * libio/freopen64.c: Likewise.
14409         * libio/iofclose.c: Likewise.
14410         * libio/iofdopen.c: Likewise.
14411         * libio/iofflush.c: Likewise.
14412         * libio/iofflush_u.c: Likewise.
14413         * libio/iofgets.c: Likewise.
14414         * libio/iofgets_u.c: Likewise.
14415         * libio/iofopen.c: Likewise.
14416         * libio/iofopncook.c: Likewise.
14417         * libio/iofread.c: Likewise.
14418         * libio/iofread_u.c: Likewise.
14419         * libio/ioftell.c: Likewise.
14420         * libio/iofwrite.c: Likewise.
14421         * libio/iogetline.c: Likewise.
14422         * libio/iogets.c: Likewise.
14423         * libio/iogetwline.c: Likewise.
14424         * libio/iopadn.c: Likewise.
14425         * libio/iopopen.c: Likewise.
14426         * libio/ioseekoff.c: Likewise.
14427         * libio/ioseekpos.c: Likewise.
14428         * libio/iosetbuffer.c: Likewise.
14429         * libio/iosetvbuf.c: Likewise.
14430         * libio/ioungetc.c: Likewise.
14431         * libio/ioungetwc.c: Likewise.
14432         * libio/iovdprintf.c: Likewise.
14433         * libio/iovsprintf.c: Likewise.
14434         * libio/iovsscanf.c: Likewise.
14435         * libio/memstream.c: Likewise.
14436         * libio/obprintf.c: Likewise.
14437         * libio/oldfileops.c: Likewise.
14438         * libio/oldiofclose.c: Likewise.
14439         * libio/oldiofdopen.c: Likewise.
14440         * libio/oldiofopen.c: Likewise.
14441         * libio/oldiopopen.c: Likewise.
14442         * libio/oldstdfiles.c: Likewise.
14443         * libio/putc.c: Likewise.
14444         * libio/setbuf.c: Likewise.
14445         * libio/setlinebuf.c: Likewise.
14446         * libio/stdfiles.c: Likewise.
14447         * libio/strops.c: Likewise.
14448         * libio/vasprintf.c: Likewise.
14449         * libio/vscanf.c: Likewise.
14450         * libio/vsnprintf.c: Likewise.
14451         * libio/vswprintf.c: Likewise.
14452         * libio/wfiledoalloc.c: Likewise.
14453         * libio/wfileops.c: Likewise.
14454         * libio/wgenops.c: Likewise.
14455         * libio/wmemstream.c: Likewise.
14456         * libio/wstrops.c: Likewise.
14457         * libio/__fpurge.c: Likewise.
14458         * libio/__fsetlocking.c: Likewise.
14459         * assert/assert.c: Likewise.
14460         * debug/fgets_chk.c: Likewise.
14461         * debug/fgets_u_chk.c: Likewise.
14462         * debug/fread_chk.c: Likewise.
14463         * debug/fread_u_chk.c: Likewise.
14464         * debug/gets_chk.c: Likewise.
14465         * debug/obprintf_chk.c: Likewise.
14466         * debug/vasprintf_chk.c: Likewise.
14467         * debug/vdprintf_chk.c: Likewise.
14468         * debug/vsnprintf_chk.c: Likewise.
14469         * debug/vsprintf_chk.c: Likewise.
14470         * malloc/mtrace.c: Likewise.
14471         * misc/error.c: Likewise.
14472         * misc/syslog.c: Likewise.
14473         * stdio-common/asprintf.c: Likewise.
14474         * stdio-common/fxprintf.c: Likewise.
14475         * stdio-common/getw.c: Likewise.
14476         * stdio-common/isoc99_fscanf.c: Likewise.
14477         * stdio-common/isoc99_scanf.c: Likewise.
14478         * stdio-common/isoc99_vfscanf.c: Likewise.
14479         * stdio-common/isoc99_vscanf.c: Likewise.
14480         * stdio-common/isoc99_vsscanf.c: Likewise.
14481         * stdio-common/printf-prs.c: Likewise.
14482         * stdio-common/printf_fp.c: Likewise.
14483         * stdio-common/printf_fphex.c: Likewise.
14484         * stdio-common/printf_size.c: Likewise.
14485         * stdio-common/putw.c: Likewise.
14486         * stdio-common/scanf.c: Likewise.
14487         * stdio-common/sprintf.c: Likewise.
14488         * stdio-common/tmpfile.c: Likewise.
14489         * stdio-common/vfprintf.c: Likewise.
14490         * stdio-common/vfscanf.c: Likewise.
14491         * stdlib/strfmon_l.c: Likewise.
14492         * sunrpc/openchild.c: Likewise.
14493         * sunrpc/xdr_stdio.c: Likewise.
14494         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
14495         * sysdeps/mach/hurd/tmpfile.c: Likewise.
14496
14497 2012-05-24  Roland McGrath  <roland@hack.frob.com>
14498
14499         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14500
14501         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
14502         in the third column, to generate for the shared library an IFUNC
14503         that uses _dl_vdso_vsym.
14504         * Makerules (COMPILE.c, compile-stdin.c): New variables.
14505         * Makeconfig (object-suffixes-noshared): New variable.
14506
14507         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
14508         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
14509         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
14510         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
14511
14512         [BZ #14132]
14513         * include/sys/time.h (__gettimeofday): Remove macro.
14514         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
14515         * time/gettimeofday.c (__gettimeofday): Remove #undef.
14516         Remove INTDEF.
14517         (__gettimeofday): Add libc_hidden_def.
14518         (gettimeofday): Add libc_hidden_weak.
14519         * sysdeps/mach/gettimeofday.c: Likewise.
14520         * sysdeps/posix/gettimeofday.c: Likewise.
14521         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
14522         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
14523         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
14524         (__gettimeofday_internal): Remove strong_alias.
14525         (__gettimeofday): Add libc_hidden_def.
14526         (gettimeofday): Add libc_hidden_weak.
14527         * sysdeps/unix/syscalls.list (gettimeofday):
14528         Remove __gettimeofday_internal alias.
14529
14530 2012-05-24  Daniel Jacobowitz  <drow@false.org>
14531             H.J. Lu  <hongjiu.lu@intel.com>
14532
14533         [BZ #12495]
14534         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
14535         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
14536         (largebin_index_32_big): New.
14537         (largebin_index): Use it for 16-byte alignment.
14538         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
14539         correction with front_misalign.
14540
14541 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14542
14543         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
14544         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
14545         Likewise.
14546         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
14547         Likewise.
14548         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
14549         Likewise.
14550         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
14551         Likewise.
14552         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
14553         Likewise.
14554         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
14555         Likewise.
14556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
14557         Likewise.
14558         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
14559         Likewise.
14560         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
14561         Likewise.
14562         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
14563         Likewise.
14564         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
14565         Likewise.
14566         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
14567         Likewise.
14568
14569         * scripts/data/c++-types-x32-linux-gnu.data: New file.
14570         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
14571
14572 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14573
14574         [BZ #10846]
14575         [BZ #14036]
14576         * math/libm-test.inc (exp_test): Add test from bug 14036.
14577         (pow_test): Add test from bug 10846.
14578
14579         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
14580         and other flags.
14581         (special_function): Do not include flags in test name.
14582         (parse_args): Likewise.
14583         * sysdeps/i386/fpu/libm-test-ulps: Update.
14584         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14585         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
14586         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
14587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14588
14589         * math/gen-libm-test.pl (%beautify): Add entries for underflow
14590         exceptions.
14591         * math/libm-test.inc ("Philosophy"): Update comment about
14592         exception testing.
14593         (UNDERFLOW_EXCEPTION): New macro.
14594         (UNDERFLOW_EXCEPTION_OK): Likewise.
14595         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
14596         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
14597         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
14598         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
14599         (INVALID_EXCEPTION_OK): Update value.
14600         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
14601         (OVERFLOW_EXCEPTION_OK): Likewise.
14602         (IGNORE_ZERO_INF_SIGN): Likewise.
14603         (test_exceptions): Handle underflow exceptions.
14604         (acos_test): Update for underflow exception expectations.
14605         (cexp_test): Likewise.
14606         (clog_test): Likewise.
14607         (clog10_test): Likewise.
14608         (csqrt_test): Likewise.
14609         (ctan_test): Likewise.
14610         (ctanh_test): Likewise.
14611         (exp_test): Likewise.
14612         (exp10_test): Likewise.
14613         (exp2_test): Likewise.
14614         (expm1_test): Likewise.
14615         (fma_test): Likewise.
14616         (j0_test): Likewise.
14617         (jn_test): Likewise.
14618         (nexttoward_test): Likewise.
14619         (pow_test): Likewise.
14620         (scalbn_test): Likewise.
14621         (scalbln_test): Likewise.
14622         (tan_test): Likewise.
14623         (y1_test): Likewise.
14624         * sysdeps/i386/fpu/libm-test-ulps: Update.
14625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14626
14627 2012-05-23  David S. Miller  <davem@davemloft.net>
14628
14629         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
14630         (__libc_sigaction): Remove unused local variables.
14631
14632 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14633
14634         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
14635
14636 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14637
14638         mktime: avoid signed integer overflow
14639         * time/mktime.c (__mktime_internal): Do not mishandle the case
14640         where diff == INT_MIN.
14641
14642         mktime: simplify computation of average
14643         * time/mktime.c (ranged_convert): Use new time_t_avg function
14644         instead of rolling our own (probably-slower) code.
14645
14646         mktime: do not assume signed right shift propagates sign bit
14647         * time/mktime.c (isdst_differ): New static function.
14648         (__mktime_internal): No need to normalize tm_isdst now.
14649         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
14650         tm_isdst values.
14651
14652         mktime: merge another wrapv change from gnulib
14653         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
14654         from some compilers.
14655
14656         mktime: remove incorrect attempt at unusual arithmetics
14657         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
14658         The code didn't really work on such machines anyway.
14659         (TYPE_MINIMUM): Assume two's complement.
14660         (twos_complement_arithmetic): Verify that long_int and time_t
14661         are two's complement (or unsigned, in the latter case).
14662
14663         mktime: check signed shifts on long_int and time_t, too
14664         * time/mktime.c (SHR): Check that shifts work as desired
14665         on the types long_int and time_t too, as SHR is used on
14666         such types.
14667
14668         mktime: do not assume 'long' is wide enough
14669         * time/mktime.c (verify): Move decl up.
14670         (long_int): New type.
14671         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
14672         to remove assumption in the code that 'long' is wide enough to
14673         store year values.  This assumption is not true on x32 and on
14674         some non-glibc platforms.
14675
14676         mktime: merge wrapv change from gnulib
14677         * time/mktime.c (WRAPV): New macro.
14678         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
14679         (guess_time_tm, __mktime_internal): Do not assume that signed
14680         integer overflow wraps around; modern compilers generate code
14681         where this assumption is no longer valid.
14682
14683 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14684
14685         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14686         Replace "jmp L(pseudo_end)" with "ret".
14687         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14688         Likewise.
14689
14690 2012-05-23  Andreas Jaeger  <aj@suse.de>
14691
14692         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
14693         * sysdeps/unix/sysv/linux/poll.c: Remove file.
14694
14695 2012-05-23  Andreas Jaeger  <aj@suse.de>
14696             Maximilian Attems  <max@stro.at>
14697
14698         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
14699         New macros.
14700
14701 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14702
14703         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
14704         code so that pseudo_end is just ret and the stack pointer is
14705         correct also for static library in error case.
14706
14707 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
14708
14709         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
14710         move to syscalls.list.
14711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
14712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
14713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
14714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
14715
14716         * manual/install.texi (Running make install): Do not mention Linux
14717         kernel version for which pt_chown is not needed.
14718         (Linux): Do not mention problems with nscd with 2.0 kernels.
14719         * INSTALL: Regenerated.
14720
14721 2012-05-23  Andreas Jaeger  <aj@suse.de>
14722
14723         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
14724         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
14725         macro.
14726         * sysdeps/unix/sysv/linux/s390/bits/mman.h
14727         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14728         * sysdeps/unix/sysv/linux/sh/bits/mman.h
14729         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14730         * sysdeps/unix/sysv/linux/i386/bits/mman.h
14731         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14732         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
14733         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14734         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
14735         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14736         * sysdeps/unix/sysv/linux/bits/in.h
14737         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
14738
14739 2012-05-22  Roland McGrath  <roland@hack.frob.com>
14740
14741         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
14742         (PREPARE_VERSION): Just use assert instead, it will be elided
14743         under [NDEBUG] anyway.
14744
14745 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14746
14747         * sysdeps/unix/sysv/linux/Makefile: Include
14748         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
14749         (sysdep_routines): Remove sysctl.
14750         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
14751         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
14752         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
14753         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
14754         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
14755
14756 2012-05-22  Andreas Jaeger  <aj@suse.de>
14757
14758         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
14759         that pseudo_end is just ret and the stack pointer is correct also
14760         for static library in error case.
14761
14762 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
14763
14764         [BZ #14122]
14765         * nss/nsswitch.c (defconfig_entries): New variable.
14766         (__nss_database_lookup): Don't leak defconfig entries.
14767         (nss_parse_service_list): Don't leak on error paths.
14768         (free_database_entries): New function.
14769         (free_defconfig): New function.
14770         (free_mem): Move common code to free_database_entries.
14771
14772 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14773
14774         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
14775         Add arch_prctl.
14776         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
14777
14778         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
14779         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
14780         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
14781         New macro.
14782         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
14783         (INTERNAL_SYSCALL_TYPES): Likewise.
14784         (LOAD_ARGS_TYPES_[1-6]): Likewise.
14785         (LOAD_REGS_TYPES_[1-6]): Likewise.
14786         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
14787         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
14788
14789 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14790
14791         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
14792         copysignl for GLIBC_2_0.
14793         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
14794         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
14795         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
14796         logbl for GLIBC_2_0.
14797         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
14798         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
14799
14800 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14801
14802         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
14803         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14804
14805         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14806         Use "neg %eax".
14807
14808         * time/mktime.c: Update copyright years.
14809
14810 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14811
14812         mktime: merge comment-quoting-style change from gnulib
14813         * time/mktime.c: Quote 'like this' in comments.
14814         The GNU coding standards suggest that we no longer quote `like this',
14815         as "`" and "'" are typically rendered asymmetrically nowadays.
14816         The typical gnulib style is to quote 'like this' when quoting
14817         code, and "like this" when quoting English.
14818
14819         * time/mktime.c (compile-command): Add "-I.".
14820
14821         mktime: merge mktime-internal.h change from gnulib
14822         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
14823
14824         mktime: merge time_r change from gnulib
14825         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
14826
14827         mktime: merge DEBUG change from gnulib
14828         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
14829         case system <time.h> has a #define.
14830
14831         mktime: merge <sys/types.h> change from gnulib
14832         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
14833         since <time.t> is now guaranteed to define time_t.
14834
14835         mktime: merge HAVE_CONFIG_H change from gnulib
14836         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
14837
14838 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14839
14840         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14841         Use "neg %eax".
14842
14843         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
14844         __rlim_t cast.
14845         (struct rusage): Use anonymous union to pad each field to
14846         __syscall_slong_t.
14847
14848 2012-05-21  David S. Miller  <davem@davemloft.net>
14849
14850         * Makefules (o-iterator): Remove .s cases.
14851         (compile-command.s): Delete.
14852         (COMPILE.s): Delete.
14853         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
14854
14855 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
14856
14857         * configure.in (libc_cv_predef_stack_protector): Only consider
14858         "foobar" and "__stack_chk_fail" lines in libc_undefs.
14859         * configure: Regenerated.
14860
14861 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14862
14863         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14864         New macro.  Use R*LP on int and pointer.
14865         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
14866         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
14867         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
14868         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
14869
14870         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
14871         [__WORDSIZE_TIME64_COMPAT32] instead of
14872         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
14873         (struct utmp): Likewise.
14874         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
14875         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
14876         Renamed to ...
14877         (__WORDSIZE_TIME64_COMPAT32): This.
14878         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
14879         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
14880         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
14881         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
14882         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
14883         (__WORDSIZE_TIME64_COMPAT32): New macro.
14884
14885 2012-05-21  Andreas Jaeger  <aj@suse.de>
14886
14887         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
14888         only if [SHARED]. Add prototype for __wcschr_ia32.
14889
14890 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14891
14892         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
14893         of %rbp unmolested in the jmp_buf while mangling the low bits.
14894         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
14895         unmolested high bits of %rbp while demangling the low bits.
14896         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14897
14898 2012-05-21  Andreas Jaeger  <aj@suse.de>
14899
14900         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
14901         * sunrpc/svc_simple.c: Use it for registerrpc.
14902         * sunrpc/xcrypt.c: Use it for passwd2des.
14903
14904         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
14905
14906 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14907
14908         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
14909         Don't define if [__SYSCALL_WORDSIZE != 32].
14910         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
14911         New macro.
14912
14913 2012-05-21  Bruno Haible  <bruno@clisp.org>
14914             Andreas Jaeger  <aj@suse.de>
14915
14916         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
14917         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
14918         inptr and inend for must_buffer_ch.
14919         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
14920         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
14921         * stdio-common/Makefile (tests): Remove bug15.
14922         (bug15-ENV): Remove macro.
14923         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
14924         anymore.
14925
14926 2012-05-19  Andreas Jaeger  <aj@suse.de>
14927             Roland McGrath  <roland@hack.frob.com>
14928
14929         * manual/contrib.texi: Completely rewritten. It contains now an
14930         alphabetical list of contributors and their contributions.
14931
14932 2012-05-21  Richard Henderson  <rth@twiddle.net>
14933
14934         * misc/getauxval.c (__getauxval): Use unsigned long int.
14935         * misc/sys/auxv.h: Include <sys/cdefs.h>.
14936         (getauxval): Use unsigned long int.
14937
14938 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14939
14940         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14941
14942 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14943
14944         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
14945         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
14946         __alignof__ (long double).
14947
14948 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14949
14950         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14951
14952 2012-05-20  Richard Henderson  <rth@twiddle.net>
14953
14954         * misc/getauxval.c: New file.
14955         * misc/sys/auxv.h: New file.
14956         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
14957         (routines): Add getauxval.
14958         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
14959         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
14960         * elf/dl-sysdep.c (_dl_auxv): Remove.
14961         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
14962         * elf/dl-support.c (_dl_auxv): New variable.
14963         (_dl_aux_init): Initialize it.
14964         * manual/startup.texi (Auxiliary Vector): New node.
14965         * sysdeps/generic/bits/hwcap.h: New file.
14966         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
14967         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
14968         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
14969         * sysdeps/sparc/sysdep.h: ... here.  Include it.
14970         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
14971         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
14972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14973         Update.
14974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
14975         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
14976         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
14977         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
14978         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14979         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14980         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
14981         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
14982
14983 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14984
14985         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14986
14987 2012-05-19  David S. Miller  <davem@davemloft.net>
14988
14989         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14990
14991 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14992
14993         [BZ #14123]
14994         * math/s_ccosh.c: Include <float.h>
14995         (__ccosh): Avoid internal overflow calculating sinh and cosh
14996         values before multiplying by sin and cos values.
14997         * math/s_ccoshf.c: Likewise.
14998         * math/s_ccoshl.c: Likewise.
14999         * math/s_csin.c: Likewise.
15000         * math/s_csinf.c: Likewise.
15001         * math/s_csinl.c: Likewise.
15002         * math/s_csinh.c: Likewise.
15003         * math/s_csinhf.c: Likewise.
15004         * math/s_csinhl.c: Likewise.
15005         * math/libm-test.inc (ccos_test): Add more tests.
15006         (ccosh_test): Likewise.
15007         (csin_test): Likewise.
15008         (csinh_test): Likewise.
15009         * sysdeps/i386/fpu/libm-test-ulps: Update.
15010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15011
15012 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15013
15014         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
15015         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
15016
15017         * sysdeps/x86_64/x32/_itoa.h: Add comment.
15018
15019 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
15020
15021         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
15022         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
15023         * sysdeps/powerpc/soft-fp/Versions: Likewise.
15024         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
15025         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
15026         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
15027         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
15028         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
15029         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
15030         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
15031         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
15032         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
15033         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
15034         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
15035         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
15036         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
15037         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
15038         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
15039         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
15040         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
15041         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
15042         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
15043         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
15044         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
15045         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
15046         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
15047         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
15048         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
15049         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
15050         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
15051         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
15052
15053 2012-05-18  Andreas Jaeger  <aj@suse.de>
15054
15055         * csu/.gitignore: Delete.
15056
15057 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15058
15059         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
15060         (timex): Use __syscall_slong_t.
15061
15062 2012-05-18  Andreas Jaeger  <aj@suse.de>
15063             Carlos O'Donell  <carlos_odonell@mentor.com>
15064
15065         * manual/install.texi (Configuring and compiling): Update
15066         description about files modified in the source directory.
15067         * INSTALL: Regenerated.
15068
15069 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15070
15071         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
15072         value.  Use "or" to set return value to -1.
15073         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
15074         negate return value.
15075
15076 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15077
15078         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
15079         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
15080         failure if the compiler has Graphite support disabled.
15081         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
15082         Likewise.
15083         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
15084         CFLAGS-memmove.c): Likewise.
15085         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
15086         Likewise.
15087
15088 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15089
15090         * sysdeps/x86_64/x32/_itoa.h: New file.
15091
15092         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
15093         getdents system call only if kernel and user dirents have the
15094         same d_ino and d_off.
15095
15096         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
15097         LLONG_MAX != LONG_MAX.
15098         (_itoa_word): Use _ITOA_WORD_TYPE on value.
15099         (_fitoa_word): Likewise.
15100
15101         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
15102         years.
15103         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
15104         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
15105         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
15106
15107         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
15108         include <bits/wordsize.h>.  Check __x86_64__ instead of
15109         __WORDSIZE.
15110         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
15111         if __x86_64__ is defined.  Use anonymous union on fpstate.
15112
15113         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
15114         anonymous union.
15115
15116 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
15117
15118         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
15119         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
15120         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
15121         Refer to _rtld_local_ro instead of _rtld_global_ro.
15122         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
15123         Likewise.
15124         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
15125         Likewise.
15126         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
15127         Likewise.
15128         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
15129         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
15130         of _rtld_global, and rtld_progname instead of _dl_argv[0].
15131
15132         * sysdeps/powerpc/powerpc32/dl-machine.c
15133         (__elf_machine_runtime_setup) [PROF]: Don't reference
15134         _dl_prof_resolve.
15135
15136 2012-05-18  Andreas Jaeger  <aj@suse.de>
15137
15138         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
15139         function only available for GCCs before 3.4 since GCC 3.4
15140         introduced a builtin.
15141         (lrint): Likewise.
15142         (llrintf): Likewise.
15143         (llrint): Likewise.
15144         (fmaxf): Likewise.
15145         (fmax): Likewise.
15146         (fminf): Likewise.
15147         (fmin): Likewise.
15148         (rint): Likewise.
15149         (rintf): Likewise.
15150         (nearbyint): Likewise.
15151         (nearbyintf): Likewise.
15152         (ceil): Likewise.
15153         (ceilf): Likewise.
15154         (floor): Likewise.
15155         (floorf): Likewise.
15156
15157 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15158
15159         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
15160         on both fields and cast pointer to __syscall_ulong_t.
15161
15162         * bits/types.h (__fsword_t): New type.
15163         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
15164         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
15165         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15166         (__FSWORD_T_TYPE): Likewise.
15167         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15168         (__FSWORD_T_TYPE): Likewise.
15169         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15170         (__FSWORD_T_TYPE): Likewise.
15171         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
15172         (__FSWORD_T_TYPE): Likewise.
15173         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
15174         __SWORD_TYPE with __fsword_t.
15175         (statfs64): Likewise.
15176
15177 2012-05-17  David S. Miller  <davem@davemloft.net>
15178
15179         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
15180
15181 2012-05-17  Andreas Jaeger  <aj@suse.de>
15182
15183         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
15184         warning.
15185
15186 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15187
15188         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
15189
15190 2012-05-17  Andreas Jaeger  <aj@suse.de>
15191
15192         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
15193         when it is used.
15194
15195 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
15196
15197         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
15198
15199 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15200
15201         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
15202         * sysdeps/x86_64/tst-mallocalign1.c: New file.
15203
15204 2012-05-17  Andreas Jaeger  <aj@suse.de>
15205             Carlos O'Donell  <carlos_odonell@mentor.com>
15206
15207         [BZ #14059]
15208         * sysdeps/x86_64/multiarch/init-arch.h
15209         (bit_YMM_Usable): Rename to...
15210         (bit_AVX_Usable): ... this.
15211         (bit_FMA4_Usable): New macro.
15212         (bit_XMM_state): New macro.
15213         (bit_YMM_state): New macro.
15214         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
15215         [__ASSEMBLER__] (index_AVX_Usable): ... this.
15216         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
15217         (CPUID_OSXSAVE): New macro.
15218         (CPUID_AVX): New macro.
15219         (CPUID_FMA4): New macro.
15220         (index_YMM_Usable): Rename to...
15221         (index_AVX_Usable): ... this.
15222         (HAS_AVX): Use HAS_ARCH_FEATURE.
15223         (HAS_FMA4): Likewise.
15224         (HAS_YMM_USABLE): Remove.
15225         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15226         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
15227         are present.
15228         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
15229         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
15230         * sysdeps/x86_64/multiarch/Makefile: Likewise.
15231         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
15232         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
15233
15234 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
15235
15236         * math/libm-test.c: Support platforms without multiple rounding modes.
15237         * math/bug-nextafter.c: Support platforms without FP exceptions.
15238         * math/bug-nexttoward.c: Likewise.
15239         * math/test-fenv.c: Likewise.
15240         * math/test-misc.c: Likewise.
15241         * stdlib/bug-getcontext.c: Likewise.
15242
15243 2012-05-17  Andreas Jaeger  <aj@suse.de>
15244
15245         * manual/examples/search.c (critter_cmp): Change signature to
15246         avoid warnings.
15247         * manual/string.texi (Collation Functions): Likewise.
15248
15249 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15250
15251         * bits/types.h: Fold copyright years.
15252         * bits/typesizes.h: Likewise.
15253         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
15254         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
15255         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
15256         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
15257         * time/time.h: Likewise.
15258
15259 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
15260
15261         [BZ #208]
15262         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
15263         in instead of returning them.  Return void.
15264         (__libc_mallinfo): Accumulate over all arenas.
15265         (__malloc_stats): Adjust for change in int_mallinfo interface.
15266
15267 2012-05-16  Roland McGrath  <roland@hack.frob.com>
15268
15269         [BZ #10375]
15270         * configure.in (NM): Add AC_CHECK_TOOL for it.
15271         (libc_extra_cflags): New substituted variable.
15272         Check for -fstack-protector being used implicitly.
15273         * configure: Regenerated.
15274         * config.make.in (config-extra-cflags): New variable,
15275         gets @libc_extra_cflags@.
15276         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
15277
15278         [BZ #10375]
15279         * configure.in: Check for _FORTIFY_SOURCE being predefined.
15280         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
15281         * configure: Regenerated.
15282         * config.make.in (CPPUNDEFS): New substituted variable.
15283         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
15284         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
15285         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
15286
15287 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15288
15289         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
15290         (mq_attr): Use __syscall_slong_t.
15291
15292 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15293
15294         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
15295         Check __x86_64__ instead of __WORDSIZE.
15296         (_STAT_VER_LINUX): Likewise.
15297         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
15298         __syscall_ulong_t and __syscall_slong_t.
15299         (stat64): Likewise.
15300
15301 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15302
15303         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
15304
15305 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15306
15307         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
15308
15309 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15310
15311         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
15312         __syscall_ulong_t.
15313
15314         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
15315         include <bits/wordsize.h>.  Check __x86_64__ instead of
15316         __WORDSIZE.
15317         (greg_t): Use "__extension__ long long int" if __x86_64__ is
15318         defined.
15319         (mcontext_t): Replace "unsigned long" with "unsigned long long".
15320
15321         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
15322         include <bits/wordsize.h>.  Check __x86_64__ instead of
15323         __WORDSIZE.
15324         (user_regs_struct): Use "__extension__ unsigned long long"
15325         instead of "unsigned long" if __x86_64__ is defined.
15326         (user): Likewise.  Pad after pointer field if __ILP32__ is
15327         defined.
15328
15329 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
15330
15331         * configure.in (makeinfo): Require version 4.5 or later.  Allow
15332         versions 5 to 9.
15333         * configure: Regenerated.
15334         * manual/install.texi (texinfo): Increase version requirement to
15335         4.5 or later.
15336         * INSTALL: Regenerated.
15337
15338         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
15339
15340 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15341
15342         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
15343
15344         * sysdeps/x86_64/x32/ffs.c: New file.
15345
15346         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
15347         __syscall_ulong_t.
15348         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
15349         defined.  Use __syscall_ulong_t.
15350         (shminfo): Use __syscall_ulong_t.
15351         (shm_info): Likewise.
15352
15353         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
15354         __syscall_ulong_t.
15355
15356         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
15357         <bits/wordsize.h>.
15358         (msgqnum_t): Use __syscall_ulong_t.
15359         (msglen_t): Likewise.
15360         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
15361         __syscall_ulong_t.
15362
15363         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
15364         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
15365
15366         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
15367
15368         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
15369         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
15370
15371         * sysvipc/sys/msg.h (msgbuf): Replace long int with
15372         __syscall_slong_t.
15373
15374         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
15375         include <bits/wordsize.h>.  Check __x86_64__ instead of
15376         __WORDSIZE.
15377
15378         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
15379         "unsigned long long int" if __x86_64__ is defined.
15380         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
15381
15382         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
15383         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
15384         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
15385
15386         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
15387         <stdint.h>.
15388         (GET_PC): Cast to uintptr_t first.
15389         (GET_FRAME): Likewise.
15390         (GET_STACK): Likewise.
15391
15392         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
15393         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
15394         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
15395         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
15396         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
15397         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
15398         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
15399         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
15400         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
15401         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
15402         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
15403         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
15404         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
15405         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
15406         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
15407         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
15408         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
15409         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
15410         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
15411         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
15412         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
15413         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
15414         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
15415         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
15416         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
15417         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
15418         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
15419         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
15420         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
15421
15422 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
15423
15424         * Makerules (+depfiles): Also collect depfiles from .oS in
15425         $(extra-objs).
15426         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
15427         .oS, $(libnldbl-routines)).
15428
15429         * Makerules (native-compile-mkdep-flags): Define.
15430         * sunrpc/Makefile (extra-objs): Add $(addprefix
15431         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
15432         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
15433         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
15434         calling $(make-target-directory).
15435
15436 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15437
15438         * bits/types.h (__snseconds_t): Removed.
15439         * time/time.h (struct timespec): Replace __snseconds_t with
15440         __syscall_slong_t.
15441         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
15442         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
15443         Likewise.
15444         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15445         (__SNSECONDS_T_TYPE): Likewise.
15446         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15447         (__SNSECONDS_T_TYPE): Likewise.
15448         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15449         (__SNSECONDS_T_TYPE): Likewise.
15450
15451 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15452
15453         * sysdeps/mach/hurd/bits/typesizes.h
15454         (__SYSCALL_SLONG_TYPE): New macro.
15455         (__SYSCALL_ULONG_TYPE): Likewise.
15456
15457 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15458
15459         * bits/types.h (__syscall_slong_t): New type.
15460         (__syscall_ulong_t): Likewise.
15461
15462         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
15463         (__SYSCALL_ULONG_TYPE): Likewise.
15464         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15465         (__SYSCALL_SLONG_TYPE): Likewise.
15466         (__SYSCALL_ULONG_TYPE): Likewise.
15467         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15468         (__SYSCALL_SLONG_TYPE): Likewise.
15469         (__SYSCALL_ULONG_TYPE): Likewise.
15470         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15471         (__SYSCALL_SLONG_TYPE): Likewise.
15472         (__SYSCALL_ULONG_TYPE): Likewise.
15473
15474 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15475
15476         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
15477         Add sigaltstack-offsets.sym.
15478         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15479         <sigaltstack-offsets.h>.
15480         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
15481         longjmp_msg pointer.
15482         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
15483         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
15484         signal stack.
15485         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
15486
15487 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
15488
15489         * elf/stackguard-macros.h: Remove file.
15490         * sysdeps/generic/stackguard-macros.h: New file.
15491         * sysdeps/i386/stackguard-macros.h: Likewise.
15492         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
15493         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
15494         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
15495         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
15496         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
15497         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
15498         * sysdeps/x86_64/stackguard-macros.h: Likewise.
15499         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
15500         <elf/stackguard-macros.h>.
15501
15502         [BZ #14109]
15503         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
15504         __aligned__ in attribute.
15505         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
15506         (gregset_t): Likewise.
15507
15508 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15509
15510         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
15511         * sysdeps/x86_64/64/Implies-after: Here.  New file.
15512         * sysdeps/x86_64/x32/Implies-after: New file.
15513
15514 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15515
15516         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
15517         and access return value for _dl_profile_fixup.  Use R10_LP to
15518         load frame size.
15519
15520 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15521
15522         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
15523
15524 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15525
15526         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
15527         * sysdeps/x86_64/x32/sysdep.h: New file.
15528
15529 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15530
15531         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
15532         * sysdeps/x86_64/setjmp.S: Likewise.
15533
15534 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15535
15536         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
15537         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
15538         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
15539         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
15540         remove unused global constant.
15541
15542 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
15543
15544         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
15545         include of <not-cancel.h>.
15546
15547 2012-05-15  Roland McGrath  <roland@hack.frob.com>
15548
15549         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
15550
15551 2012-05-15  Jeff Law  <law@redhat.com>
15552             Andreas Jaeger  <aj@suse.de>
15553
15554         [BZ #13594]
15555         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
15556         out from...
15557         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
15558         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
15559         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
15560         code changing __hst_map_handle.map.
15561
15562 2012-05-15  Roland McGrath  <roland@hack.frob.com>
15563
15564         * configure.in (sysnames): Look for Implies-before and Implies-after
15565         files.
15566         * configure: Regenerated.
15567
15568 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15569
15570         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
15571         8-byte data alignment with LP_SIZE alignment.
15572
15573 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15574
15575         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
15576         into R10_LP.
15577
15578 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15579
15580         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
15581
15582 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15583
15584         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
15585         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
15586         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
15587         Likewise.
15588         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
15589
15590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15591
15592         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
15593         (stackinfo_sub_sp): Likewise.
15594
15595 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15596
15597         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
15598         RAX_LP.
15599
15600 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15601
15602         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
15603         into R*_LP.
15604
15605 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15606
15607         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
15608         sizes into R*_LP.
15609
15610 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15611
15612         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
15613
15614 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15615
15616         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
15617         into R11_LP and load __x86_64_shared_cache_size_half into
15618         R8_LP.
15619
15620 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15621
15622         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
15623         R8_LP.
15624
15625 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15626
15627         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
15628         logb for POWER7.
15629         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
15630         logbf for POWER7.
15631         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
15632         logbl for POWER7.
15633         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
15634         powerpc32/power7/fpu/s_logb.c via #include.
15635         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
15636         powerpc32/power7/fpu/s_logbf.c via #include.
15637         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
15638         powerpc32/power7/fpu/s_logbl.c via #include.
15639
15640 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
15641
15642         * README.libm: Remove file.
15643
15644 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15645
15646         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
15647         count for x32.  Use R*_LP and omit operand-size suffix.
15648
15649 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15650
15651         * shlib-versions: Move x86_64-.*-linux.* entries to ...
15652         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
15653         * sysdeps/x86_64/x32/shlib-versions: New file.
15654
15655 2012-05-14  Roland McGrath  <roland@hack.frob.com>
15656
15657         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
15658         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
15659         Use _dl_fatal_printf instead.
15660
15661 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15662
15663         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
15664         set if not set by the user.  Do not allow for being unset.
15665         * sysdeps/unix/sysv/linux/configure: Regenerated.
15666
15667 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15668
15669         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
15670         the `q' suffix from lea and replace .quad with ASM_ADDR.
15671
15672 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15673
15674         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
15675         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
15676         instead of $17.
15677         (PTR_DEMANGLE): Likewise.
15678
15679 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15680
15681         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
15682         (LP_OP): Likewise.
15683         (ASM_ADDR): Likewise.
15684         (RAX_LP): Likewise.
15685         (RBP_LP): Likewise.
15686         (RBX_LP): Likewise.
15687         (RCX_LP): Likewise.
15688         (RDI_LP): Likewise.
15689         (RSI_LP): Likewise.
15690         (RSP_LP): Likewise.
15691         (R8_LP): Likewise.
15692         (R9_LP): Likewise.
15693         (R10_LP): Likewise.
15694         (R10_LP): Likewise.
15695         (R11_LP): Likewise.
15696         (R12_LP): Likewise.
15697         (R13_LP): Likewise.
15698         (R14_LP): Likewise.
15699         (R15_LP): Likewise.
15700
15701 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15702
15703         * sysdeps/x86_64/x32/dl-machine.h: New file.
15704
15705 2012-05-14  Andreas Jaeger  <aj@suse.de>
15706
15707         * manual/Makefile (subdir): Remove export of subdir.
15708         (all): Remove target.
15709         (.PHONY): Remove all from list.
15710         (mkinstalldirs): Remove.
15711         (.PHONY): Remove installdirs from list.
15712         ($(inst_infodir)/libc.info): Use make-target-directory.
15713         (installdirs): Remove.
15714         (subdir_%): Remove.
15715         (glibc-targets): Remove.
15716         (lib): Remove.
15717         (stubs): Remove.
15718         ($(objpfx)stubs ../po/manual.pot): Remove.
15719         ($(objpfx)stamp%): Remove.
15720         (make-target-directory): Remove.
15721         (subdir_install): Remove.
15722         (routines): Remove.
15723         (aux): Remove.
15724         (sources): Remove.
15725         (objects): Remove.
15726         (headers): Remove.
15727
15728         [BZ #13750]
15729         * manual/.gitignore: Remove, it's not needed anymore.
15730         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
15731         all files in it.
15732         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
15733         directory.
15734         (texis): Renamed to $(objpfx)texis.
15735         (texis-path): New, contains path to generated files.
15736         (chapters.%): Use texis-path for complete path, add extra argument
15737         libc-texinfo.sh.
15738         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
15739         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
15740         (summary,texi, stamp-summary): Use complete path of
15741         files. Generate files in build dir.
15742         (dir-add.texi): Build in build dir.
15743         (libm-err.texi,stamp-libm-err): Likewise.
15744         (version.texi, stamp-version): Likewise.
15745         (.%c.texi): Likewise.
15746         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
15747         (mostlyclean): Remove target.
15748         (realclean): Remove target.
15749         (generated): Add new variable with contents from mostlyclean and
15750         realclean, remove entries duplicated in common-mostlyclean, add
15751         stamp-libm-err and stamp-version.
15752         (generated-dirs): Add libc directory.
15753         ($(inst_infodir)/libc.info): Install files from build dir.
15754
15755         * manual/install.texi (Configuring and compiling): Adjust since
15756         the info files are not part of the tar ball anymore.
15757
15758 2012-05-14  Andreas Jaeger  <aj@suse.de>
15759
15760         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
15761         variable.
15762
15763 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15764
15765         [BZ #13717]
15766         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
15767         to 2.2.0 where earlier.
15768         * sysdeps/unix/sysv/linux/configure: Regenerated.
15769         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
15770         Remove conditional code.
15771         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
15772         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
15773         Remove conditional code.
15774         [!__NR_lchown]: Likewise.
15775         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15776         [__NR_lchown]: Likewise.
15777         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
15778         comment referencing __ASSUME_LCHOWN_SYSCALL.
15779         * sysdeps/unix/sysv/linux/i386/sigaction.c
15780         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15781         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15782         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
15783         Remove conditional code.
15784         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
15785         (__protocol_available): Remove #if 0 code.
15786         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
15787         conditional code.
15788         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
15789         * sysdeps/unix/sysv/linux/kernel-features.h
15790         (__ASSUME_GETCWD_SYSCALL): Don't define.
15791         (__ASSUME_REALTIME_SIGNALS): Likewise.
15792         (__ASSUME_PREAD_SYSCALL): Likewise.
15793         (__ASSUME_PWRITE_SYSCALL): Likewise.
15794         (__ASSUME_POLL_SYSCALL): Likewise.
15795         (__ASSUME_LCHOWN_SYSCALL): Likewise.
15796         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
15797         non-SPARC.
15798         (__ASSUME_SIOCGIFNAME): Don't define.
15799         (__ASSUME_MSG_NOSIGNAL): Likewise.
15800         (__ASSUME_SENDFILE): Define unconditionally.
15801         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
15802         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
15803         conditional code.
15804         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
15805         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
15806         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15807         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15808         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
15809         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15810         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
15812         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15813         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
15815         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15816         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
15818         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15819         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
15821         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15822         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
15824         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15825         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
15827         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15828         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
15830         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15831         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
15833         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15834         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15835         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
15836         Remove conditional code.
15837         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15838         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15839         Remove conditional code.
15840         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15841         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
15842         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
15843         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15844         Remove conditional code.
15845         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15846         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
15847         Remove conditional code.
15848         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15849         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
15850         Remove conditional code.
15851         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15852         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15853         Remove conditional code.
15854         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15855         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15856         Remove conditional code.
15857         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15858         * sysdeps/unix/sysv/linux/sh/pwrite64.c
15859         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15860         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15861         * sysdeps/unix/sysv/linux/sigaction.c
15862         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15863         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15864         * sysdeps/unix/sysv/linux/sigpending.c
15865         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15866         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15867         * sysdeps/unix/sysv/linux/sigprocmask.c
15868         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15869         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15870         * sysdeps/unix/sysv/linux/sigsuspend.c
15871         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15872         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15873         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15874         (__libc_missing_rt_sigs): Remove.
15875         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
15876         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
15877         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
15878         Remove conditional code.
15879         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
15880         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
15881         return 1.
15882         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
15883         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
15884         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
15885         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
15886
15887 2012-05-14  Andreas Jaeger  <aj@suse.de>
15888
15889         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
15890         it's not used in glibc.
15891         (__coshm1): Likewise.
15892         (__acosh1p): Likewise.
15893         (__sgn): Likewise.
15894
15895         * manual/string.texi (Copying and Concatenation): Add missing
15896         variable in concat example.
15897         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
15898
15899 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15900
15901         [BZ #14103]
15902         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
15903         __builtin_clzl with __builtin_clzll.
15904
15905 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15906
15907         [BZ #14104]
15908         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
15909         libc_freeres_ptr.
15910
15911 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15912
15913         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
15914         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
15915         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
15916         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
15917
15918 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
15919
15920         * NEWS: Update ia64 info.
15921
15922 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
15923
15924         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
15925         used as bcopy.
15926
15927 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
15928
15929         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
15930         * sysdeps/unix/syscalls.list (dup3): Likewise.
15931         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
15932         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
15933
15934 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15935
15936         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
15937         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
15938
15939 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15940
15941         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
15942         thread pointer.
15943         (TLS_IE): Use mov/add instead of movq/addq to load thread
15944         pointer.
15945         (TLS_GD_PREFIX): New.
15946         (TLS_GD): Use it.
15947
15948 2012-05-11  David S. Miller  <davem@davemloft.net>
15949
15950         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
15951         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
15952         (_FPU_SETCW): Likewise.
15953
15954 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15955
15956         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
15957         is 32-byte aligned.
15958
15959 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
15960
15961         [BZ #11837]
15962         * iconvdata/gb18030.c: Update tables.
15963         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
15964         characters specially.
15965         (BODY for TO_LOOP): Add encoding of missing ranges.
15966
15967 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
15968
15969         [BZ #13673]
15970         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
15971         * sysdeps/mach/hurd/dup3.c: Likewise.
15972         * sysdeps/mach/hurd/readlinkat.c: Likewise.
15973         * sysdeps/powerpc/memmove.c:: Likewise.
15974
15975 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15976
15977         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
15978         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
15979
15980 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15981
15982         * elf/elf.h (R_X86_64_RELATIVE64): New.
15983         (R_X86_64_NUM): Updated.
15984         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
15985         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
15986         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
15987         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
15988         tst-quad1pie tst-quad2pie
15989         (modules-names): Add tst-quadmod1 tst-quadmod2.
15990         ($(objpfx)tst-quad1): New dependency.
15991         ($(objpfx)tst-quad2): Likewise.
15992         ($(objpfx)tst-quad1pie): Likewise.
15993         ($(objpfx)tst-quad2pie): Likewise.
15994         * sysdeps/x86_64/tst-quad1.c: New file.
15995         * sysdeps/x86_64/tst-quad1pie.c: New file.
15996         * sysdeps/x86_64/tst-quad2.c: Likewise.
15997         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
15998         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
15999         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
16000         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
16001         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
16002
16003 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16004
16005         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
16006         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
16007         * streams/stropts.h (t_scalar_t): Define type.
16008
16009         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
16010         (_PATH_PRESERVE): Set to "/var/lib".
16011         (_PATH_RWHODIR): Set to "/var/spool/rwho".
16012
16013         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
16014         instead of int.
16015
16016         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
16017         if __dir_mkfile succeeded.
16018
16019         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
16020         checking for _hurd_dtablesize.  Unlock it right after having
16021         finished _hurd_dtable allocation.
16022
16023 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16024
16025         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
16026         * sysdeps/mach/hurd/configure: Regenerated.
16027         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
16028         special-casing to...
16029         * sysdeps/gnu/configure.in: ... this new file.
16030         * sysdeps/unix/sysv/linux/configure: Regenerated.
16031         * sysdeps/gnu/configure: New generated file.
16032
16033         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
16034         for Linux: use nsec instead of usec, as well as:
16035         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
16036         members of type struct timespec.
16037         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
16038         New macros.
16039         (struct stat64): Likewise.
16040         (_STATBUF_ST_NSEC): New macro.
16041         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
16042
16043         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16044         __strtoul_internal rather than strtoul.
16045
16046 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16047
16048         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
16049         and reject them.
16050
16051 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16052
16053         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
16054         which preserves existing values.
16055         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
16056
16057 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16058
16059         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
16060         TIMEOUT values.  Return EINVAL for NFDS values either negative or
16061         greater than FD_SETSIZE.
16062
16063 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16064
16065         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
16066         allocated, call __vm_protect to finish enabling the existing space, and
16067         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
16068         allocate the remainder.
16069
16070 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16071
16072         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
16073         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
16074
16075 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16076
16077         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
16078         sysdeps/mach/hurd/readlink.c.
16079
16080         * posix/tst-sysconf.c (posix_options): Only use
16081         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
16082         _POSIX_SYNCHRONIZED_IO when they are defined
16083         * sysdeps/mach/hurd/bits/posix_opt.h:
16084         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
16085         (_XOPEN_REALTIME): Undefine macro.
16086         (_XOPEN_REALTIME_THREADS): Undefine macro.
16087         (_XOPEN_SHM): Undefine macro.
16088         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
16089         macro to -1.
16090         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
16091         macro to -1.
16092         (_POSIX_ASYNC_IO): Undefine macro.
16093         (_POSIX_PRIORITIZED_IO): Undefine macro.
16094         (_POSIX_SPIN_LOCKS): Define macro to -1.
16095
16096         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
16097         SA_NODEFER, SA_RESETHAND.
16098         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
16099         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
16100         F_DUPFD_CLOEXEC.
16101
16102 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16103
16104         * elf/Makefile (pldd-modules): Define unconditionally.
16105
16106 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16107
16108         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
16109
16110 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16111
16112         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
16113         Return ENOENT when name is empty.
16114         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
16115
16116 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16117
16118         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
16119
16120         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
16121
16122 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16123
16124         Fix mlock in all cases except non-readable pages.
16125         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
16126         instead of VM_PROT_ALL as parameter to __vm_wire function.
16127
16128         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
16129         (__mkdir): When path is `/', just fail with EEXIST.
16130         * sysdeps/mach/hurd/mkdirat.c: Likewise.
16131
16132 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16133
16134         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
16135         <sys/uio.h> (for writev).
16136         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
16137         and <sys/param.h> (for MIN).
16138
16139 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16140
16141         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
16142         REQUESTED_TIME.  Properly set the remaining time and return EINTR
16143         if interrupted.
16144
16145 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16146
16147         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
16148         Depend on against $(link-rpcuserlibs).
16149
16150 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16151
16152         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
16153         (__libc_stack_end): Do not use attribute_relro.
16154         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
16155         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
16156         to libthread-provided value.
16157         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
16158         attribute_relro.
16159
16160 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16161
16162         [BZ #3748]
16163         * bits/libc-lock.h (__libc_once_get): New macro.
16164         * sysdeps/mach/bits/libc-lock.h: Likewise.
16165         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
16166         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
16167         instead of using implementation details.
16168
16169         * libio/fileops.c: Unconditionally include <kernel-features.h>.
16170         * libio/freopen.c: Likewise.
16171         * libio/freopen64.c: Likewise.
16172         * misc/syslog.c: Likewise.
16173         * nscd/connections.c: Likewise.
16174         * nscd/netgroupcache.c: Likewise.
16175         * sysdeps/posix/getcwd.c: Likewise.
16176
16177 2012-05-10  Roland McGrath  <roland@hack.frob.com>
16178
16179         * math/w_ilogbf.c: Add #include <limits.h>.
16180
16181 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16182
16183         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
16184         path instead of returning without unlocking.
16185
16186         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
16187         immediate-write ioctls.
16188         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
16189
16190 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16191
16192         * sysdeps/mach/hurd/i386/init-first.c (init): Use
16193         __builtin_frame_address instead of making assumptions about the
16194         location of the return address relative to DATA.  Force early load of
16195         the return address.
16196         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
16197         __builtin_frame_address.
16198
16199         dup3 for GNU Hurd.
16200         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
16201         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
16202         implement dup3 and do some further code clean-ups.
16203         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
16204         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
16205
16206 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16207
16208         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
16209
16210         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
16211         HURD_CRITICAL_END around holding _hurd_dtable_lock.
16212         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
16213         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
16214         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
16215         d->port.lock.
16216
16217         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
16218         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
16219         when handler == SIG_ERR, not when handler != SIG_ERR.
16220
16221 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16222
16223         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
16224         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
16225         definitions.
16226
16227         accept4 for GNU Hurd.
16228         * include/sys/socket.h (__libc_accept4): New prototype.
16229         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
16230         to implement __libc_accept4.
16231         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
16232         __libc_accept4.
16233         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
16234
16235         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
16236         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
16237         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
16238         signal-defines.sym.
16239
16240 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16241
16242         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
16243
16244 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16245
16246         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
16247         assertion on O_CLOEXEC flag.
16248         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
16249         * hurd/intern-fd.c: Likewise.
16250         * hurd/port2fd.c: Likewise.
16251
16252 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16253
16254         [BZ #3906]
16255         * bits/in.h (IPV6_PKTINFO): Define new macro.
16256         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
16257
16258 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16259
16260         [BZ #13954]
16261         [BZ #13955]
16262         [BZ #13956]
16263         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
16264         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
16265         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
16266         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
16267         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
16268         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
16269         * math/libm-test.inc (logb_test) : Additional logb tests.
16270
16271 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
16272             Andreas Jaeger  <aj@suse.de>
16273
16274         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
16275         * configure: Regenerated.
16276         * config.h.in (LINK_OBSOLETE_RPC): New macro.
16277         * config.make.in (link-obsolete-rpc): New substituted variable.
16278         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
16279         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
16280         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
16281         (shared-only-routines): Don't set it under [link-obsolete-rpc],
16282         so that libc.a contains the symbols.
16283         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
16284         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
16285         * sunrpc/auth_none.c: Likewise.
16286         * sunrpc/auth_unix.c: Likewise.
16287         * sunrpc/authdes_prot.c: Likewise.
16288         * sunrpc/authuxprot.c: Likewise.
16289         * sunrpc/clnt_gen.c: Likewise.
16290         * sunrpc/clnt_perr.c: Likewise.
16291         * sunrpc/clnt_raw.c: Likewise.
16292         * sunrpc/clnt_simp.c: Likewise.
16293         * sunrpc/clnt_tcp.c: Likewise.
16294         * sunrpc/clnt_udp.c: Likewise.
16295         * sunrpc/clnt_unix.c: Likewise.
16296         * sunrpc/des_crypt.c: Likewise.
16297         * sunrpc/des_soft.c: Likewise.
16298         * sunrpc/get_myaddr.c: Likewise.
16299         * sunrpc/key_call.c: Likewise.
16300         * sunrpc/key_prot.c: Likewise.
16301         * sunrpc/netname.c: Likewise.
16302         * sunrpc/pm_getmaps.c: Likewise.
16303         * sunrpc/pm_getport.c: Likewise.
16304         * sunrpc/pmap_clnt.c: Likewise.
16305         * sunrpc/pmap_prot.c: Likewise.
16306         * sunrpc/pmap_prot2.c: Likewise.
16307         * sunrpc/pmap_rmt.c: Likewise.
16308         * sunrpc/publickey.c: Likewise.
16309         * sunrpc/rpc_cmsg.c: Likewise.
16310         * sunrpc/rpc_common.c: Likewise.
16311         * sunrpc/rpc_dtable.c: Likewise.
16312         * sunrpc/rpc_prot.c: Likewise.
16313         * sunrpc/rpc_thread.c: Likewise.
16314         * sunrpc/rtime.c: Likewise.
16315         * sunrpc/svc.c: Likewise.
16316         * sunrpc/svc_auth.c: Likewise.
16317         * sunrpc/svc_raw.c: Likewise.
16318         * sunrpc/svc_run.c: Likewise.
16319         * sunrpc/svc_tcp.c: Likewise.
16320         * sunrpc/svc_udp.c: Likewise.
16321         * sunrpc/svc_unix.c: Likewise.
16322         * sunrpc/svcauth_des.c: Likewise.
16323         * sunrpc/xcrypt.c: Likewise.
16324         * sunrpc/xdr.c: Likewise.
16325         * sunrpc/xdr_array.c: Likewise.
16326         * sunrpc/xdr_float.c: Likewise.
16327         * sunrpc/xdr_intXX_t.c: Likewise.
16328         * sunrpc/xdr_mem.c: Likewise.
16329         * sunrpc/xdr_rec.c: Likewise.
16330         * sunrpc/xdr_ref.c: Likewise.
16331         * sunrpc/xdr_sizeof.c: Likewise.
16332         * sunrpc/xdr_stdio.c: Likewise.
16333
16334 2012-05-10  Roland McGrath  <roland@hack.frob.com>
16335
16336         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
16337         change.  Update copyright years.
16338
16339 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
16340
16341         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
16342
16343 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
16344             Joseph Myers  <joseph@codesourcery.com>
16345             Paul Pluzhnikov  <ppluzhnikov@google.com>
16346
16347         [BZ #14012]
16348         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
16349         requiring rpcgen.
16350         [cross-compiling] (extra-libs): Likewise.
16351         [cross-compiling] (extra-libs-others): Likewise.
16352         [cross-compiling] (librpcsvc-routines): Likewise.
16353         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
16354         [cross-compiling] (omit-deps): Likewise.
16355         (sunrpc-CPPFLAGS): New variable.
16356         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
16357         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
16358         (cross-rpcgen-objs): New variable.
16359         (extra-objs): Append $(cross-rpcgen-objs).
16360         ($(cross-rpcgen-objs)): New rule.
16361         ($(objpfx)cross-rpcgen): Likewise.
16362         (rpcgen-cmd): Define to use $(built-program-file).  Expand
16363         comment.
16364         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
16365         ($(objpfx)x%.stmp): Likewise.
16366         * sunrpc/proto.h [IS_IN_build] (_): Define.
16367         [IS_IN_build] (_libc_intl_domainname): Likewise.
16368
16369 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16370
16371         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
16372         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
16373         and R_X86_64_TPOFF64.
16374
16375 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
16376
16377         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
16378         sysdeps/unix/sysv/syscalls.list.
16379         (stime): Likewise.
16380         (utime): Likewise.
16381         * sysdeps/unix/sysv/syscalls.list: Remove file.
16382
16383 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
16384
16385         [BZ #3440]
16386         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
16387         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
16388         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
16389         (__LC_IDENTIFICATION): Make these macros useful in #if
16390         expressions, as required by C99.
16391
16392 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
16393
16394         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
16395         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
16396         after this.
16397
16398 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16399
16400         * stdlib/longlong.h: Updated from GCC.
16401
16402 2012-05-09  Andreas Jaeger  <aj@suse.de>
16403
16404         * nscd/nscd.c (run_modes): Make named enum, reorder so that
16405         default is first entry.
16406         (run_mode): Set type.
16407         (main): Remove informal message about syslog.
16408         (options): Fix typo.
16409
16410         [BZ #14053]
16411         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
16412         to asm.
16413         (lrint): Likewise.
16414         (llrintf): Likewise.
16415         (llrint): Likewise.
16416         (rint): Likewise.
16417         (rintf): Likewise.
16418         (nearbyint): Likewise.
16419         (nearbyintf): Likewise.
16420
16421 2012-05-09  Andreas Jaeger  <aj@suse.de>
16422             Pedro Alves  <palves@redhat.com>
16423
16424         * nscd/nscd.c (run_mode): Use enum.
16425         (main): Cleanup coding style issue.
16426
16427 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
16428             Andreas Jaeger  <aj@suse.de>
16429
16430         * nscd/nscd.c (go_background): Replaced with...
16431         (run_mode): ... this.
16432         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
16433         (options): Add -F --foreground.
16434         (main): Implement it.
16435         (parse_opt): Parse it.
16436
16437 2012-05-09  Andreas Jaeger  <aj@suse.de>
16438
16439         [BZ #14083]
16440         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
16441         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
16442         -Wconversion warning.
16443         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
16444         Likewise.
16445
16446 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
16447
16448         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
16449         == 0.
16450         (LC_ALL): Use macro-int-constant.
16451         (LC_COLLATE): Likewise.
16452         (LC_CTYPE): Likewise.
16453         (LC_MESSAGES): Likewise.
16454         (LC_MONETARY): Likewise.
16455         (LC_NUMERIC): Likewise.
16456         (LC_TIME): Likewise.
16457         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
16458         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
16459         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16460         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
16461         Specify type.
16462         [C99-based standards] (float_t): Expect type.
16463         [C99-based standards] (double_t): Expect type.
16464         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
16465         type.
16466         [C99-based standards] (HUGE_VALL): Likewise.
16467         [C99-based standards] (INFINITY): Likewise.
16468         [C99-based standards] (NAN): Likewise.
16469         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
16470         [C99-based standards] (FP_NAN): Likewise.
16471         [C99-based standards] (FP_NORMAL): Likewise.
16472         [C99-based standards] (FP_SUBNORMAL): Likewise.
16473         [C99-based standards] (FP_ZERO): Likewise.
16474         [C99-based standards] (FP_FAST_FMA): Use
16475         optional-macro-int-constant.  Specify type.  Require == 1.
16476         [C99-based standards] (FP_FAST_FMAF): Likewise.
16477         [C99-based standards] (FP_FAST_FMAL): Likewise.
16478         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
16479         [C99-based standards] (FP_ILOGBNAN): Likewise.
16480         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
16481         Specify type.
16482         [C99-based standards] (MATH_ERREXCEPT): Likewise.
16483         [C99-based standards] (math_errhandling): Specify type.
16484         [ISO99 || ISO11] (signgam): Do not allow.
16485         [non-C99-based standards] (copysignf): Do not allow.
16486         [non-C99-based standards] (exp2f): Likewise.
16487         [non-C99-based standards] (log2f): Likewise.
16488         [non-C99-based standards] (modff): Allow.
16489         [non-C99-based standards] (erff): Do not allow.
16490         [non-C99-based standards] (erfcf): Likewise.
16491         [non-C99-based standards] (gammaf): Likewise.
16492         [non-C99-based standards] (hypotf): Likewise.
16493         [non-C99-based standards] (j0f): Likewise.
16494         [non-C99-based standards] (j1f): Likewise.
16495         [non-C99-based standards] (jnf): Likewise.
16496         [non-C99-based standards] (lgammaf): Likewise.
16497         [non-C99-based standards] (tgammaf): Likewise.
16498         [non-C99-based standards] (y0f): Likewise.
16499         [non-C99-based standards] (y1f): Likewise.
16500         [non-C99-based standards] (ynf): Likewise.
16501         [non-C99-based standards] (isnanf): Likewise.
16502         [non-C99-based standards] (acoshf): Likewise.
16503         [non-C99-based standards] (asinhf): Likewise.
16504         [non-C99-based standards] (atanhf): Likewise.
16505         [non-C99-based standards] (cbrtf): Likewise.
16506         [non-C99-based standards] (expm1f): Likewise.
16507         [non-C99-based standards] (ilogbf): Likewise.
16508         [non-C99-based standards] (log1pf): Likewise.
16509         [non-C99-based standards] (logbf): Likewise.
16510         [non-C99-based standards] (nextafterf): Likewise.
16511         [non-C99-based standards] (remainderf): Likewise.
16512         [non-C99-based standards] (rintf): Likewise.
16513         [non-C99-based standards] (scalbf): Likewise.
16514         [non-C99-based standards] (copysignl): Likewise.
16515         [non-C99-based standards] (exp2l): Likewise.
16516         [non-C99-based standards] (log2l): Likewise.
16517         [non-C99-based standards] (modfl): Allow.
16518         [non-C99-based standards] (erfl): Do not allow.
16519         [non-C99-based standards] (erfcl): Likewise.
16520         [non-C99-based standards] (gammal): Likewise.
16521         [non-C99-based standards] (hypotl): Likewise.
16522         [non-C99-based standards] (j0l): Likewise.
16523         [non-C99-based standards] (j1l): Likewise.
16524         [non-C99-based standards] (jnl): Likewise.
16525         [non-C99-based standards] (lgammal): Likewise.
16526         [non-C99-based standards] (tgammal): Likewise.
16527         [non-C99-based standards] (y0l): Likewise.
16528         [non-C99-based standards] (y1l): Likewise.
16529         [non-C99-based standards] (ynl): Likewise.
16530         [non-C99-based standards] (isnanl): Likewise.
16531         [non-C99-based standards] (acoshl): Likewise.
16532         [non-C99-based standards] (asinhl): Likewise.
16533         [non-C99-based standards] (atanhl): Likewise.
16534         [non-C99-based standards] (cbrtl): Likewise.
16535         [non-C99-based standards] (expm1l): Likewise.
16536         [non-C99-based standards] (ilogbl): Likewise.
16537         [non-C99-based standards] (log1pl): Likewise.
16538         [non-C99-based standards] (logbl): Likewise.
16539         [non-C99-based standards] (nextafterl): Likewise.
16540         [non-C99-based standards] (remainderl): Likewise.
16541         [non-C99-based standards] (rintl): Likewise.
16542         [non-C99-based standards] (scalbl): Likewise.
16543         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16544         [non-C99-based standards] (FP_*): Do not allow.
16545         [C99-based standards] (FP_*): Change to
16546         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
16547         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16548         allow.
16549         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
16550         (SIG_ERR): Likewise.
16551         [X/Open-based standards] (SIG_HOLD): Likewise.
16552         (SIG_IGN): Likewise.
16553         (SIGABRT): Use macro-int-constant.  Specify type.  Require
16554         positive value.
16555         (SIGFPE): Likewise.
16556         (SIGILL): Likewise.
16557         (SIGINT): Likewise.
16558         (SIGSEGV): Likewise.
16559         (SIGTER): Likewise.
16560         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
16561         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
16562         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
16563         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
16564         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
16565         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
16566         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
16567         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
16568         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
16569         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
16570         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
16571         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
16572         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
16573         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
16574         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
16575         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
16576         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
16577         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
16578         [X/Open-based standards] (SIGTRAP): Likewise.
16579         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
16580         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
16581         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
16582         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
16583         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16584         allow.
16585
16586 2012-05-08  Ian Wienand  <ianw@vmware.com>
16587
16588         [BZ #14080]
16589         * time/tzset.c (__tzset_parse_tz): Update default rules for
16590         daylight time changes in the Energy Policy Act of 2005.
16591
16592 2012-05-09  Andreas Jaeger  <aj@suse.de>
16593
16594         [BZ #13983]
16595         * elf/ldconfig.c (parse_conf): Change string to make clear that
16596         ldconfig only issued a warning if ld.so.conf does not exist.
16597
16598 2012-05-08  David S. Miller  <davem@davemloft.net>
16599
16600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
16601         movxtod instead of popping the value on the stack.
16602
16603         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16604
16605 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
16606
16607         * config.h.in: Add HAVE_ARM_PCS_VFP.
16608
16609 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
16610
16611         [BZ #13979]
16612         * include/features.h: Warn if user requests __FORTIFY_SOURCE
16613         checking but the checks are disabled for any reason.
16614
16615 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16616
16617         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
16618         and ELF64_R_TYPE with ELFW(R_TYPE).
16619
16620 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
16621
16622         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
16623         (ulimit): Likewise.
16624
16625         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
16626         (settimeofday): Likewise.
16627
16628 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
16629
16630         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
16631         a struct th_u2 inside the union, and move tu_block/tu_code into
16632         a new th_u3 union of tu_block/tu_code inside of that.  Move
16633         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
16634         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
16635         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
16636         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
16637         (th_stuff): Change to th_u1.tu_stuff.
16638         (th_data): Define.
16639         (th_msg): Change to th_u1.th_u2.tu_data.
16640
16641 2012-05-07  David S. Miller  <davem@davemloft.net>
16642
16643         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16644
16645         [BZ #14074]
16646         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
16647         (SETUP_PIC_REG): Use it.
16648         (SETUP_PIC_REG_LEAF): Use it.
16649
16650 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
16651
16652         [BZ #13885]
16653         [BZ #13923]
16654         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16655         USE_AS_EXPM1L.
16656         (EXPL_FINITE): Likewise.
16657         (FLDLOG): Likewise.
16658         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
16659         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
16660         e_expl.S.
16661         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16662         USE_AS_EXPM1L.
16663         (EXPL_FINITE): Likewise.
16664         (FLDLOG): Likewise.
16665         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
16666         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
16667         e_expl.S.
16668         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
16669         test of -max_value argument for long double.
16670         * sysdeps/i386/fpu/libm-test-ulps: Update.
16671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16672
16673 2012-05-06  David S. Miller  <davem@davemloft.net>
16674
16675         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
16676         quad soft-float symbols whose references which are compiler
16677         generated.
16678         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16679
16680 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
16681
16682         [BZ #13884]
16683         [BZ #13914]
16684         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16685         USE_AS_EXP10L.
16686         (EXPL_FINITE): Likewise.
16687         (FLDLOG): Likewise.
16688         (c0): Likewise.
16689         (c1): Likewise.
16690         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16691         Adjust comments for base varying.
16692         (__expl_finite): Change alias to EXPL_FINITE.
16693         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
16694         e_expl.S.
16695         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
16696         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16697         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16698         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
16699         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16700         USE_AS_EXP10L.
16701         (EXPL_FINITE): Likewise.
16702         (FLDLOG): Likewise.
16703         (c0): Likewise.
16704         (c1): Likewise.
16705         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16706         Adjust comments for base varying.
16707         (__expl_finite): Change alias to EXPL_FINITE.
16708         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
16709         tests for bugs.
16710         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16711
16712         [BZ #14064]
16713         * math/libm-test.inc (check_float_internal): Correct ulp
16714         calculation for subnormal expected results.
16715
16716 2012-05-06  Andreas Jaeger  <aj@suse.de>
16717
16718         * Makeconfig (+math-flags): New, set to -frounding-math.
16719         (+cflags): Add +math-flags so that all of glibc gets compiled with
16720         it.
16721
16722         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
16723
16724 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
16725
16726         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
16727         Disable one test.
16728
16729         [BZ #13787]
16730         [BZ #13922]
16731         [BZ #14036]
16732         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
16733         (__ieee754_expl): Allow for and saturate large arguments.
16734         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
16735         (u_threshold): Likewise.
16736         (__exp): Call __ieee754_exp before checking for overflow and
16737         underflow.
16738         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
16739         (u_threshold): Likewise.
16740         (__expf): Call __ieee754_expf before checking for overflow and
16741         underflow.
16742         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
16743         (u_threshold): Likewise.
16744         (__expl): Call __ieee754_expl before checking for overflow and
16745         underflow.
16746         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
16747         (__ieee754_expl): Allow for and saturate large arguments.
16748         * math/libm-test.inc (exp_test): Add another test.  Do not allow
16749         missing overflow exception on overflow.
16750         (expm1_test): Do not allow missing overflow exception on overflow.
16751
16752         * sysdeps/i386/fpu/e_expl.c: Move to ...
16753         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
16754         rather than using inline asm.
16755         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
16756         * sysdeps/x86_64/fpu/e_expl.S: Copy from
16757         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
16758
16759         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
16760         (nice): Likewise.
16761         (poll): Likewise.
16762         (signal): Likewise.
16763         (time): Likewise.
16764         (times): Likewise.
16765
16766 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16767
16768         * sysdeps/unix/syscalls.list (adjtime): Add entry from
16769         sysdeps/unix/common/syscalls.list.
16770         (fchmod): Likewise.
16771         (fchown): Likewise.
16772         (ftruncate): Likewise.
16773         (getrusage): Likewise.
16774         (gettimeofday): Likewise.
16775         (setpgid): Likewise.
16776         (setregid): Likewise.
16777         (setreuid): Likewise.
16778         (sigaction): Likewise.
16779         (truncate): Likewise.
16780         (vhangup): Likewise.
16781         * sysdeps/unix/common/syscalls.list: Remove file.
16782         * sysdeps/unix/bsd/Implies: Don't include unix/common.
16783         * sysdeps/unix/sysv/linux/Implies: Likewise.
16784
16785 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16786
16787         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
16788         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
16789         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
16790         Moved to ...
16791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
16792         Here.
16793         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
16794         to ...
16795         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
16796         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
16797         to ...
16798         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
16799         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
16800         to ...
16801         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
16802         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
16803         to ...
16804         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
16805         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
16806         to ...
16807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
16808         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
16809         to ...
16810         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
16811         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
16812         to ...
16813         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
16814         Here.
16815         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
16816         to ...
16817         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
16818         Here.
16819         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
16820         to ...
16821         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
16822         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
16823         Moved to ...
16824         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
16825         Here.
16826         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
16827         to ...
16828         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
16829
16830 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16831
16832         * sysdeps/unix/common/bits/dirent.h: Remove file.
16833         * sysdeps/unix/common/bits/fcntl.h: Likewise.
16834
16835         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
16836         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
16837         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
16838         * sysdeps/unix/bsd/isatty.c: Likewise.
16839         * sysdeps/unix/bsd/tcdrain.c: Likewise.
16840         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
16841         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
16842
16843 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16844
16845         [BZ #13563]
16846         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
16847         long double comparison inaccuracies.
16848         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16849         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16850
16851 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
16852
16853         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
16854         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
16855
16856 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16857
16858         [BZ #14049]
16859         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
16860         nonzero digits before rounding a hex value.
16861         * stdlib/tst-strtod.c (tests): Add another test.
16862
16863 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16864
16865         * sysdeps/s390/fpu/libm-test-ulps: Update.
16866
16867 2012-05-03  Andreas Jaeger  <aj@suse.de>
16868
16869         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
16870         does not get optimized out.
16871         (malloc_opt_barrier): New.
16872
16873 2012-05-03  Andreas Jaeger  <aj@suse.de>
16874             Roland McGrath  <roland@hack.frob.com>
16875
16876         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
16877         intermediate file deletion.
16878         (generated): Add .symlist files.
16879
16880 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
16881
16882         [BZ #13775]
16883         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
16884         Redirect under this condition.
16885         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16886         [__USE_GNU] (__dprintf_chk): Not under this condition.
16887         [__USE_GNU] (__vdprintf_chk): Likewise.
16888         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
16889         under this condition.
16890         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16891         [__USE_XOPEN2K8] (dprintf): Define under this condition.
16892         [__USE_XOPEN2K8] (vdprintf): Likewise.
16893         [__USE_GNU] (__dprintf_chk): Not under this condition.
16894         [__USE_GNU] (__vdprintf_chk): Likewise.
16895         [__USE_GNU] (dprintf): Likewise.
16896         [__USE_GNU] (vdprintf): Likewise.
16897
16898 2012-05-03  Roland McGrath  <roland@hack.frob.com>
16899
16900         * elf/Makefile (common-generated): Set this instead of generated for
16901         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
16902         $(all-built-dso)-derived lists.
16903
16904 2012-05-03  Andreas Jaeger  <aj@suse.de>
16905
16906         * sysdeps/i386/fpu/libm-test-ulps: Update.
16907
16908         * FAQ: Removed.
16909         * FAQ.in: Likewise.
16910         * scripts/gen-FAQ.pl: Likewise.
16911         * manual/install.texi (Installation): Point to online location of
16912         FAQ.
16913         * Makefile (files-for-dist): Remove FAQ.
16914         (FAQ): Remove.
16915
16916 2012-05-02  Allan McRae  <allan@archlinux.org>
16917
16918         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
16919         (LDFLAGS-reldepmod5.so): Likewise.
16920         (LDFLAGS-reldep6mod1.so): Likewise.
16921         (LDFLAGS-reldep6mod4.so): Likewise.
16922         (LDFLAGS-reldep8mod3.so): Likewise.
16923         (LDFLAGS-unload4mod1.so): Likewise.
16924         (LDFLAGS-unload4mod2.so): Likewise.
16925         (LDFLAGS-tst-initorder): Likewise.
16926         (LDFLAGS-tst-initordera2.so): Likewise.
16927         (LDFLAGS-tst-initordera3.so): Likewise.
16928         (LDFLAGS-tst-initordera4.so): Likewise.
16929         (LDFLAGS-tst-initorderb2.so): Likewise.
16930         (LDFLAGS-noload): Likewise.
16931         (LDFLAGS-next): Likewise.
16932         (LDFLAGS-order2mod1.so): Likewise.
16933         (LDFLAGS-order2mod2.so): Likewise.
16934         (LDFLAGS-tst-initorder2): Likewise.
16935         (LDFLAGS-tst-initorder2a.so): Likewise.
16936         (LDFLAGS-tst-initorder2b.so): Likewise.
16937         (LDFLAGS-tst-initorder2c.so): Likewise.
16938         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
16939
16940 2012-05-02  David S. Miller  <davem@davemloft.net>
16941
16942         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16943
16944 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
16945
16946         [BZ #14055]
16947         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
16948
16949 2012-05-02  Andreas Jaeger  <aj@suse.de>
16950
16951         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
16952         since we manipulate rounding mode.
16953         (CPPFLAGS-test-idouble.c): Likewise.
16954         (CPPFLAGS-test-ifloat.c): Likewise.
16955         (CFLAGS-test-ldouble.c): Likewise.
16956         (CFLAGS-test-double.c): Likewise.
16957         (CFLAGS-test-float.c): Likewise.
16958         (CFLAGS-test-misc.c): Likewise.
16959         (CFLAGS-test-test-fenv.c): Likewise.
16960
16961 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16962
16963         [BZ #2550]
16964         [BZ #2570]
16965         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
16966         comparisons to determine direction to adjust input.
16967
16968 2012-05-01  Roland McGrath  <roland@hack.frob.com>
16969
16970         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
16971         output to the target.
16972
16973         * scripts/localplt.awk: New file.
16974         * elf/Makefile ($(objpfx)check-localplt): Target removed.
16975         (check-localplt-CFLAGS): Variable removed.
16976         ($(all-built-dso:=.jmprel)): New static pattern rule.
16977         (generated): Add those targets.
16978         (localplt-built-dso): New variable.
16979         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
16980
16981         * elf/check-localplt.c: File removed.
16982
16983         * scripts/check-execstack.awk: New file.
16984         * elf/Makefile ($(objpfx)check-execstack): Target removed.
16985         (check-execstack-CFLAGS): Variable removed.
16986         ($(objpfx)check-execstack.h): Target removed.
16987         ($(objpfx)execstack-default): New target.
16988         (generated): Add that instead of check-execstack.h.
16989         ($(all-built-dso:=.phdr)): New static pattern rule.
16990         (generated): Add those targets.
16991         * elf/check-execstack.c: File removed.
16992
16993         * scripts/check-textrel.awk: New file.
16994         * elf/Makefile ($(objpfx)check-textrel): Target removed.
16995         (check-textrel-CFLAGS): Variable removed.
16996         (all-built-dso): Use := to define.o
16997         ($(all-built-dso:=.dyn)): New static pattern rule.
16998         (generated): Add those targets.
16999         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
17000         * config.make.in (READELF): New substituted variable.
17001         * elf/check-textrel.c: File removed.
17002
17003 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
17004
17005         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
17006         allow.
17007         * conform/data/ctype.h-data [C99-based standards] (isblank):
17008         Expect function.
17009         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
17010         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
17011         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17012         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
17013         Specify type.  Require positive value.
17014         (EILSEQ): Likewise.
17015         (ERANGE): Likewise.
17016         [ISO || POSIX] (EILSEQ): Do not expect.
17017         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
17018         Specify type.  Require positive value.
17019         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
17020         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
17021         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
17022         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
17023         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
17024         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
17025         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
17026         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
17027         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
17028         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
17029         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
17030         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
17031         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
17032         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
17033         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
17034         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
17035         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
17036         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
17037         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
17038         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
17039         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
17040         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
17041         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
17042         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
17043         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
17044         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
17045         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
17046         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
17047         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
17048         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
17049         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
17050         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
17051         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
17052         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
17053         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
17054         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
17055         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
17056         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
17057         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
17058         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
17059         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
17060         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
17061         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
17062         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
17063         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
17064         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
17065         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
17066         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
17067         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
17068         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
17069         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
17070         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
17071         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
17072         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
17073         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
17074         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
17075         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
17076         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
17077         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
17078         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
17079         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
17080         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
17081         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
17082         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
17083         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
17084         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
17085         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
17086         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
17087         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
17088         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
17089         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
17090         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
17091         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
17092         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
17093         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
17094         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
17095         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
17096         Require >= 2.
17097         (FLT_ROUNDS): Expect as macro, not constant.
17098         (FLT_MANT_DIG): Use macro-int-constant.
17099         (DBL_MANT_DIG): Likewise.
17100         (LDBL_MANT_DIG): Likewise.
17101         (FLT_DIG): Likewise.
17102         (DBL_DIG): Likewise.
17103         (LDBL_DIG): Likewise.
17104         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
17105         (DBL_MIN_EXP): Likewise.
17106         (LDBL_MIN_EXP): Likewise.
17107         (FLT_MAX_EXP): Use macro-int-constant.
17108         (DBL_MAX_EXP): Likewise.
17109         (LDBL_MAX_EXP): Likewise.
17110         (FLT_MAX_10_EXP): Likewise.
17111         (DBL_MAX_10_EXP): Likewise.
17112         (LDBL_MAX_10_EXP): Likewise.
17113         (FLT_MAX): Use macro-constant.
17114         (DBL_MAX): Likewise.
17115         (LDBL_MAX): Likewise.
17116         (FLT_EPSILON): Use macro-constant.  Give upper bound.
17117         (DBL_EPSILON): Likewise.
17118         (LDBL_EPSILON): Likewise.
17119         (FLT_MIN): Likewise.
17120         (DBL_MIN): Likewise.
17121         (LDBL_MIN): Likewise.
17122         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
17123         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
17124         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
17125         [ISO11] (FLT_HAS_SUBNORM): Likewise.
17126         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
17127         [ISO11] (DBL_DECIMAL_DIG): Likewise.
17128         [ISO11] (FLT_DECIMAL_DIG): Likewise.
17129         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
17130         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
17131         [ISO11] (FLT_TRUE_MIN): Likewise.
17132         [ISO11] (LDBL_TRUE_MIN): Likewise.
17133         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17134         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
17135         (SCHAR_MIN): Use macro-int-constant.  Specify type.
17136         (SCHAR_MAX): Likewise.
17137         (UCHAR_MAX): Likewise.
17138         (CHAR_MIN): Likewise.
17139         (CHAR_MAX): Likewise.
17140         (MB_LEN_MAX): Use macro-int-constant.
17141         (SHRT_MIN): Use macro-int-constant.  Specify type.
17142         (SHRT_MAX): Likewise.
17143         (USHRT_MAX): Likewise.
17144         (INT_MAX): Likewise.
17145         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
17146         bound negative.
17147         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17148         bound with "U".
17149         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17150         bound with "L".
17151         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
17152         bound negative.  Suffix upper bound with "L".
17153         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17154         bound with "UL".
17155         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
17156         Specify type.
17157         [C99-based standards] (LLONG_MAX): Likewise.
17158         [C99-based standards] (ULLONG_MAX): Likewise.
17159         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
17160         == 0.
17161         [ISO11] (max_align_t): Require type.
17162         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17163
17164         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
17165         from $CFLAGS, without defining away __attribute__ calls.
17166         (checknamespace): Use $CFLAGS_namespace.
17167
17168         * conform/conformtest.pl (@keywords): Only include C99 keywords
17169         for standards based on C99 or C11.
17170
17171         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
17172         Disable tests.
17173         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
17174         UNIX98]: Likewise.
17175
17176         * conform/conformtest.pl: Handle "macro-int-constant" and test for
17177         usability of symbols in #if.
17178
17179         * conform/conformtest.pl: If macro or constant types start
17180         "promoted:", expect the symbol to be of the following type
17181         promoted by the integer promotions.
17182
17183         * conform/conformtest.pl: Parse all "constant" and "macro" lines
17184         in one place.  Also handle "macro-constant".
17185
17186         * conform/conformtest.pl: Only accept expected macro values with
17187         "==".  Parse all "macro" lines in one place.
17188         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
17189
17190         * conform/conformtest.pl: Handle braced types on "constant" lines
17191         instead of handling "typed-constant".
17192         * conform/data/signal.h-data: Use "constant" instead of
17193         "typed-constant".
17194
17195         * conform/conformtest.pl: Handle "optional-" at start of lines in
17196         one place rather than duplicating several cases.  Handle each
17197         format of "macro" line with initial "optional-".
17198
17199         * conform/conformtest.pl: Only accept expected constant or
17200         optional-constant values with "==".  Parse all "constant" lines in
17201         one place.  Parse all "optional-constant" lines in one place.
17202         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
17203         * conform/data/fmtmsg.h-data: Likewise.
17204         * conform/data/netinet/in.h-data: Likewise.
17205         * conform/data/tar.h-data: Likewise.
17206         * conform/data/limits.h-data: Use "==" form on "constant" and
17207         "optional-constant" lines.
17208
17209         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
17210         Use -std=c99 for XOPEN2K.
17211         (@knownproblems): Remove.
17212         (newtoken): Don't check %isknown.
17213
17214         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
17215         Do not expect macro.
17216         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
17217         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
17218         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
17219         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
17220         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
17221         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
17222         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
17223         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
17224         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
17225         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
17226         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
17227         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
17228         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
17229         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
17230         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
17231         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
17232         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
17233         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
17234         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
17235         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
17236         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
17237         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
17238         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
17239         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
17240         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
17241         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
17242         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
17243         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
17244         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
17245         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
17246         [XPG3] (acosh): Likewise.
17247         [XPG3] (asinh): Likewise.
17248         [XPG3] (atanh): Likewise.
17249         [XPG3] (cbrt): Likewise.
17250         [XPG3] (expm1): Likewise.
17251         [XPG3] (ilogb): Likewise.
17252         [XPG3] (log1p): Likewise.
17253         [XPG3] (logb): Likewise.
17254         [XPG3] (nextafter): Likewise.
17255         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
17256         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
17257         [XPG3] (remainder): Likewise.
17258         [XPG3] (rint): Likewise.
17259         [XPG3 || XPG4 || UNIX98] (round): Likewise.
17260         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
17261         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
17262         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
17263         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
17264         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
17265         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
17266         [UNIX98 || XOPEN2K] (scalb): Expect.
17267         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
17268         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
17269         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
17270         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
17271         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
17272         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
17273         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
17274         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
17275         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
17276         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
17277         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
17278         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
17279         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
17280         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
17281         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
17282         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
17283         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
17284         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
17285         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
17286         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
17287         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
17288         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
17289         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
17290         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
17291         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
17292         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
17293         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
17294         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
17295         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
17296         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
17297         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
17298         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
17299         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
17300         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
17301         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
17302         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
17303         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
17304         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
17305         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
17306         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
17307         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
17308         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
17309         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
17310         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
17311         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
17312         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
17313         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
17314         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
17315         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
17316         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
17317         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
17318         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
17319         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
17320         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
17321         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
17322         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
17323         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
17324         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
17325         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
17326         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
17327         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
17328         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
17329         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
17330         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
17331         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
17332         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
17333         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
17334         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
17335         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
17336         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
17337         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
17338         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
17339         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
17340         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
17341         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
17342         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
17343         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
17344         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
17345         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
17346         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
17347         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
17348         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
17349         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
17350         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
17351         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
17352         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
17353         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
17354         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
17355         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
17356         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
17357         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
17358         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
17359         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
17360         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
17361         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
17362         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
17363         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
17364         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
17365         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
17366         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
17367         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
17368         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
17369         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
17370         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
17371         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
17372         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
17373         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
17374         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
17375         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
17376         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
17377         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
17378         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
17379         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
17380         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
17381         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
17382         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
17383         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
17384         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
17385         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
17386         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
17387         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
17388         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
17389         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
17390         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
17391         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
17392         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
17393         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
17394         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
17395         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
17396         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
17397         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
17398         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
17399         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
17400         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
17401         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
17402         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
17403         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
17404
17405         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
17406         _XOPEN_SOURCE_EXTENDED for XPG4.
17407
17408         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
17409
17410         * Makeconfig (localtime): Remove variable.
17411         (inst_localtime-file): Likewise.
17412
17413 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
17414
17415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
17416         Update.
17417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17418         Update.
17419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
17420         Update.
17421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
17422         Update.
17423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
17424         Update.
17425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
17426         Update.
17427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17428         Update.
17429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
17430         Update.
17431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
17432         Update.
17433
17434 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
17435
17436         [BZ #2550]
17437         [BZ #2570]
17438         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
17439         comparisons to determine direction to adjust input.
17440         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17441         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
17442         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
17443         Likewise.
17444         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
17445         Likewise.
17446         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17447         Likewise.
17448         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
17449         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17450         Likewise.
17451         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17452         Likewise.
17453         * math/libm-test.inc (nexttoward_test): Add more tests.
17454
17455 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
17456
17457         [BZ #14040]
17458         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
17459         in version GLIBC_2.1, not GLIBC_2.0.
17460         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
17461         Likewise.
17462
17463 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
17464
17465         [BZ #13942]
17466         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
17467         (1 - x) * (1 + x).
17468         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
17469         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
17470         * math/libm-test.inc (acos_test): Add more tests.
17471         (asin_test): Likewise.
17472         * sysdeps/i386/fpu/libm-test-ulps: Update.
17473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17474
17475         [BZ #14034]
17476         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
17477         of square root.
17478         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
17479         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
17480         * math/libm-test.inc (acos_test_tonearest): New function.
17481         (acos_test_towardzero): Likewise.
17482         (acos_test_downward): Likewise.
17483         (acos_test_upward): Likewise.
17484         (asin_test_tonearest): Likewise.
17485         (asin_test_towardzero): Likewise.
17486         (asin_test_downward): Likewise.
17487         (asin_test_upward): Likewise.
17488         (main): Call the new functions.
17489         * sysdeps/i386/fpu/libm-test-ulps: Update.
17490         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17491
17492         [BZ #13884]
17493         [BZ #13924]
17494         * math/e_exp10.c: Include <float.h>.
17495         (__ieee754_exp10): Handle underflow here rather than multiplying
17496         large negative argument by M_LN10.
17497         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
17498         of __ieee754_expf.
17499         * math/e_exp10l.c: Include <float.h>.
17500         (__ieee754_exp10l): Handle underflow here rather than multiplying
17501         large negative argument by M_LN10l.
17502         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
17503         spurious overflow exception on underflow.
17504
17505 2012-04-29  Marek Polacek  <polacek@redhat.com>
17506
17507         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
17508         (__fortify_function): New macro.
17509         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
17510         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
17511         __extern_always_inline.
17512         * libio/bits/stdio2.h: Likewise.
17513         * libio/bits/stdio.h: Likewise.
17514         * string/string.h: Likewise.
17515         * string/bits/string3.h: Likewise.
17516         * include/stdio.h: Likewise.
17517         * stdlib/bits/stdlib.h: Likewise.
17518         * stdlib/stdlib.h: Likewise.
17519         * rt/bits/mqueue2.h: Likewise.
17520         * rt/mqueue.h: Likewise.
17521         * posix/bits/unistd.h: Likewise.
17522         * posix/unistd.h: Likewise.
17523         * io/bits/poll2.h: Likewise.
17524         * io/bits/fcntl2.h: Likewise.
17525         * io/fcntl.h: Likewise.
17526         * io/sys/poll.h: Likewise.
17527         * misc/bits/syslog.h: Likewise.
17528         * misc/bits/syslog-ldbl.h: Likewise.
17529         * misc/sys/syslog.h: Likewise.
17530         * socket/bits/socket2.h: Likewise.
17531         * socket/sys/socket.h: Likewise.
17532         * debug/tst-chk1.c: Likewise.
17533         * wcsmbs/bits/wchar2.h: Likewise.
17534         * wcsmbs/bits/wchar-ldbl.h: Likewise.
17535         * wcsmbs/wchar.h: Likewise.
17536
17537 2012-04-29  Andreas Jaeger  <aj@suse.de>
17538
17539         * Makerules (tests): Remove enable-check-abi protection.
17540         (check-abi-warn): Remove.
17541         (check-abi-%): Remove check-abi-warn usage.
17542
17543         * configure.in: Remove check-abi configure option.
17544         * configure: Regenerated.
17545         * config.make.in (enable-check-abi): Remove.
17546
17547 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
17548
17549         [BZ #14033]
17550         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
17551         double functions to double *_finite functions.
17552
17553         [BZ #13941]
17554         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
17555         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
17556         LDBL_MIN_EXP.
17557         * stdio-common/Makefile (tests): Add tst-sprintf3.
17558         * stdio-common/tst-sprintf3.c: New file.
17559
17560         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
17561         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
17562
17563 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17564
17565         * conform/conformtest.pl: Remove duplicate typed-constant
17566         handling.
17567
17568 2012-04-28  David S. Miller  <davem@davemloft.net>
17569
17570         * Makerules (%.abilist): Add vpath on sysdep_dirs.
17571         (check-abi-%): Remove AWK script prerequisite and explicit
17572         abilist directory.
17573         (check-abi): Rewrite to just diff the symlist with the abilist.
17574         (config-tls, config-abi-config): Delete, no longer used.
17575         (update-abi-%): Remove AWK script and explicit abilist directory.
17576         (update-abi): Rewrite to simply compare and conditionally copy the
17577         symlist and the sysdep abilist file.  Remove update-abi-config
17578         checks.
17579         * abilist/ld.abilist: Remove.
17580         * abilist/libBrokenLocale.abilist: Remove.
17581         * abilist/libanl.abilist: Remove.
17582         * abilist/libcrypt.abilist: Remove.
17583         * abilist/libdl.abilist: Remove.
17584         * abilist/librt.abilist: Remove.
17585         * abilist/libthread_db.abilist: Remove.
17586         * abilist/libutil.abilist: Remove.
17587         * scripts/extract-abilist.awk: Remove.
17588         * scripts/merge-abilist.awk: Remove.
17589         * sysdeps/generic/libcidn.abilist: New file.
17590         * sysdeps/generic/libnss_compat.abilist: New file.
17591         * sysdeps/generic/libnss_db.abilist: New file.
17592         * sysdeps/generic/libnss_dns.abilist: New file.
17593         * sysdeps/generic/libnss_files.abilist: New file.
17594         * sysdeps/generic/libnss_hesiod.abilist: New file.
17595         * sysdeps/generic/libnss_nis.abilist: New file.
17596         * sysdeps/generic/libnss_nisplus.abilist: New file.
17597         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
17598         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
17599         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
17600         file.
17601         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
17602         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
17603         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
17604         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
17605         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
17606         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
17607         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
17608         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
17609         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
17610         file.
17611         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
17612         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
17613         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
17614         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
17615         file.
17616         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
17617         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
17618         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
17619         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
17620         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
17621         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
17622         file.
17623         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
17624         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
17625         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
17626         file.
17627         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
17628         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
17629         New file.
17630         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
17631         New file.
17632         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
17633         New file.
17634         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
17635         New file.
17636         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
17637         New file.
17638         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
17639         New file.
17640         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
17641         New file.
17642         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
17643         New file.
17644         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
17645         New file.
17646         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
17647         New file.
17648         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
17649         New file.
17650         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
17651         New file.
17652         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
17653         New file.
17654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
17655         file.
17656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
17657         New file.
17658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
17659         New file.
17660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
17661         file.
17662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
17663         New file.
17664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
17665         New file.
17666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
17667         file.
17668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
17669         New file.
17670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
17671         New file.
17672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
17673         New file.
17674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
17675         New file.
17676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
17677         New file.
17678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
17679         New file.
17680         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
17681         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
17682         file.
17683         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
17684         New file.
17685         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
17686         file.
17687         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
17688         file.
17689         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
17690         file.
17691         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
17692         file.
17693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
17694         file.
17695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
17696         New file.
17697         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
17698         file.
17699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
17700         file.
17701         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
17702         New file.
17703         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
17704         file.
17705         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
17706         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
17707         file.
17708         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
17709         New file.
17710         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
17711         file.
17712         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
17713         file.
17714         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
17715         file.
17716         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
17717         file.
17718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
17719         file.
17720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
17721         New file.
17722         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
17723         file.
17724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
17725         file.
17726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
17727         New file.
17728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
17729         file.
17730         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
17731         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
17732         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
17733         file.
17734         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
17735         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
17736         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
17737         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
17738         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
17739         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
17740         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
17741         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
17742         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
17743         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
17744         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
17745         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
17746         file.
17747         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
17748         New file.
17749         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
17750         file.
17751         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
17752         file.
17753         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
17754         file.
17755         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
17756         file.
17757         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
17758         file.
17759         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
17760         New file.
17761         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
17762         New file.
17763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
17764         file.
17765         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
17766         New file.
17767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
17768         file.
17769         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
17770         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
17771         file.
17772         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
17773         New file.
17774         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
17775         file.
17776         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
17777         file.
17778         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
17779         file.
17780         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
17781         file.
17782         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
17783         file.
17784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
17785         New file.
17786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
17787         New file.
17788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
17789         file.
17790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
17791         New file.
17792         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
17793         file.
17794
17795 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17796
17797         * conform/conformtest.pl: Fix typo in handling typed-constant from
17798         allow-header.
17799
17800 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17801
17802         * README: Cut down references to pre-2.6 Linux kernels and
17803         Linuxthreads.  Update lists of configurations in libc and ports
17804         and sort alphabetically.  Say "or newer" with Linux kernel version
17805         requirements.
17806
17807         * config.h.in [IS_IN_build]: Allow compiling without optimization.
17808
17809 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17810
17811         [BZ #887]
17812         * math/libm-test.inc (logb_test_downward): New test to expose
17813         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
17814         rounding mode.
17815
17816 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17817
17818         [BZ #14027]
17819         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
17820         to be done.
17821         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
17822         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
17823
17824 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
17825
17826         * sysdeps/unix/i386/brk.S: Remove file.
17827         * sysdeps/unix/i386/dl-brk.S: Likewise.
17828         * sysdeps/unix/i386/pipe.S: Likewise.
17829         * sysdeps/unix/i386/sigreturn.S: Likewise.
17830         * sysdeps/unix/i386/syscall.S: Likewise.
17831         * sysdeps/unix/i386/vfork.S: Likewise.
17832         * sysdeps/unix/i386/wait.S: Likewise.
17833
17834         * sysdeps/unix/common/tcsendbrk.c: Move to ...
17835         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
17836
17837         * configure.in (arm*-none*): Do not allow without
17838         --enable-hacker-mode.
17839         (netbsd*): Remove case setting base_os.
17840         (386bsd*): Likewise.
17841         (freebsd*): Likewise.
17842         (bsdi*): Likewise.
17843         (osf*): Likewise.
17844         (sunos*): Likewise.
17845         (ultrix*): Likewise.
17846         (newsos*): Likewise.
17847         (dynix*): Likewise.
17848         (*bsd*): Likewise.
17849         (sysv*): Likewise.
17850         (isc*): Likewise.
17851         (esix*): Likewise.
17852         (sco*): Likewise.
17853         (minix*): Likewise.
17854         (irix4*): Likewise.
17855         (irix6*): Likewise.
17856         (solaris[2-9]*): Likewise.
17857         (none): Likewise.
17858         * configure: Regenerated.
17859
17860 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17861
17862         [BZ #11521]
17863         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
17864         overflow or cancellation in calculating denominator.
17865         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
17866         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
17867         down expression to avoid unexpected rounding in newer GCCs.
17868         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
17869
17870 2012-04-26  David S. Miller  <davem@davemloft.net>
17871
17872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
17873         long-double compat symbols.
17874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
17878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
17880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
17881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
17882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
17883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
17884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
17885         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
17886         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17887
17888 2012-04-25  David S. Miller  <davem@davemloft.net>
17889
17890         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
17891         HWCAP_* values only after the memory barriers have been defined.
17892         (atomic_full_barrier): Define.
17893         (atomic_read_barrier): Define.
17894         (atomic_write_barrier): Define.
17895
17896 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17897
17898         * shlib-versions: Add libgcc_s version information.
17899         * sysdeps/generic/libgcc_s.h: Remove.
17900         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
17901         libgcc_s.h.
17902         * sysdeps/gnu/unwind-resume.c: Likewise.
17903         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
17904
17905 2012-04-25  David S. Miller  <davem@davemloft.net>
17906
17907         * sysdeps/unix/sparc/brk.S: Delete.
17908         * sysdeps/unix/sparc/dl-brk.S: Delete.
17909         * sysdeps/unix/sparc/pipe.S: Delete.
17910         * sysdeps/unix/sparc/sysdep.S: Delete.
17911         * sysdeps/unix/sparc/sysdep.h: Delete.
17912         * sysdeps/unix/sparc/vfork.S: Delete.
17913         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
17914         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
17915         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
17916         ret_ERRVAL, r0, r1, MOVE): Define.
17917         (JUMPTARGET): Remove.
17918         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
17919         sysdeps/unix/sparc/sysdep.h
17920         (ENTRY, END): Remove.
17921         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17922
17923 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
17924
17925         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
17926         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
17927         -DIS_IN_build.
17928
17929         * timezone/README: Update upstream location and email address for
17930         tzcode and tzdata.
17931         * timezone/zdump.c: Update from tzcode 2012b.
17932         * timezone/zic.c: Likewise.
17933
17934         * configure.in (libc_cv_as_needed): Remove test.
17935         * configure: Regenerated.
17936         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
17937         conditional definition.
17938         [$(have-as-needed) != yes] (no-as-needed): Likewise.
17939         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
17940         * config.make.in (have-as-needed): Remove variable.
17941
17942 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17943             Paul Pluzhnikov  <ppluzhnikov@google.com>
17944
17945         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
17946         strings correctly.
17947
17948 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17949
17950         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
17951         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
17952         * sysdeps/sh/strlen.S: Likewise.
17953
17954 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17955
17956         * sysdeps/unix/fork.S: Remove file.
17957         * sysdeps/unix/i386/fork.S: Likewise.
17958         * sysdeps/unix/sparc/fork.S: Likewise.
17959
17960         * sysdeps/unix/system.c: Remove file.
17961         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
17962
17963         * sysdeps/unix/getegid.S: Remove file.
17964         * sysdeps/unix/geteuid.S: Likewise.
17965
17966 2012-04-24  Roland McGrath  <roland@hack.frob.com>
17967
17968         * scripts/check-localplt.awk: New file.
17969         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
17970         of diff.
17971         * scripts/data/localplt-generic.data: Add a comment.
17972
17973         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
17974         NODE when __dir_mkfile failed.
17975         * sysdeps/mach/hurd/symlinkat.c: Likewise.
17976         Reported by Ludovic Courtès <ludo@gnu.org>.
17977
17978 2012-04-24  Andreas Jaeger  <aj@suse.de>
17979
17980         * Makerules (common-clean): Also remove gen-as-const-headers
17981         files.
17982
17983 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17984
17985         * Makerules (native-compile): Do not change working directory for
17986         build.  Use $(OUTPUT_OPTION) in command.
17987         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
17988
17989 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17990
17991         [BZ #13886]
17992         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
17993         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
17994         * math/libm-test.inc (floor_test): Add more tests.
17995         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
17996
17997 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17998
17999         * sysdeps/unix/getdents.c: Remove file.
18000         * sysdeps/unix/sysv/getdents.c: Likewise.
18001         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
18002
18003         * sysdeps/unix/syscalls.list (madvise): Add syscall from
18004         sysdeps/unix/mman/syscalls.list.
18005         (mmap): Likewise.
18006         (mprotect): Likewise.
18007         (msync): Likewise.
18008         (munmap): Likewise.
18009         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
18010         * sysdeps/unix/mman/syscalls.list: Remove.
18011         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
18012
18013         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
18014         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
18015         * configure: Regenerated.
18016         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
18017         $(libgcc_s_suffix).
18018         * config.make.in (libgcc_s_suffix): Remove variable.
18019
18020 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
18021
18022         * sysdeps/unix/sysv/gethostname.c: Move to ...
18023         * sysdeps/posix/gethostname.c: ... here.
18024
18025         * sysdeps/unix/execve.S: Remove file.
18026
18027         * sysdeps/unix/_exit.S: Remove file.
18028
18029 2012-04-23  Andreas Jaeger  <aj@suse.de>
18030
18031         [BZ #13739]
18032         * manual/Makefile: Remove make dist support, there's no
18033         need for a stand-alone documentation tar ball.
18034         (TEXI2DVI): Define always, it's not in Makeconfig.
18035         (dist): Removed.
18036         (tar-it): Removed.
18037         (edition): Removed.
18038         (glibc-doc-$(edition).tar): Removed
18039         (%.Z): Removed.
18040         (%.gz): Removed.
18041         (%.uu): Removed.
18042         (ETAGS): Remove, it's in Makeconfig.
18043         (move-if-change): Remove, it's in Makeconfig.
18044
18045 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
18046
18047         [BZ #13970]
18048         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
18049         (strtod, strtof, strtold, strtol, strtoul, strtoq)
18050         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
18051         (strtod_l, strtof_l, strtold_l): Remove __wur.
18052         It is not necessarily an error to ignore strtol's return value.
18053         One can reliably look at the stored endptr to decide whether
18054         the number had valid syntax.
18055
18056 2012-04-21  Andreas Jaeger  <aj@suse.de>
18057
18058         [BZ #13739]
18059         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
18060
18061 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
18062
18063         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
18064         * sysdeps/unix/sysv/Versions: Remove file.
18065
18066 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
18067
18068         [BZ #13927]
18069         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18070
18071 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
18072
18073         [BZ #7064]
18074         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
18075         version from __vm86.
18076
18077 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
18078
18079         * sysdeps/unix/common/lxstat.c: Remove file.
18080         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
18081
18082         * sysdeps/unix/sysv/Makefile: Remove file.
18083
18084         * sysdeps/unix/sysv/direct.h: Remove file.
18085
18086         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
18087         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
18088         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
18089         * sysdeps/unix/sysv/bits/signum.h: Likewise.
18090         * sysdeps/unix/sysv/bits/stat.h: Likewise.
18091         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
18092         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
18093
18094         * sysdeps/unix/sysv/setrlimit.c: Remove file.
18095
18096         * sysdeps/unix/xmknod.c: Remove file.
18097         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
18098
18099         * sysdeps/unix/sysv/settimeofday.c: Remove file.
18100
18101         * sysdeps/unix/sysv/i386/time.S: Remove file.
18102
18103         * sysdeps/unix/fxstat.c: Remove file.
18104         * sysdeps/unix/xstat.c: Likewise.
18105         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
18106
18107         * sysdeps/unix/sysv/sigaction.c: Remove file.
18108
18109         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
18110         (sysdep_headers): Remove variable.
18111         [termio.h not in sysdep_headers] (generated): Likewise.
18112         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
18113         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
18114         * sysdeps/unix/sysv/tcdrain.c: Likewise.
18115         * sysdeps/unix/sysv/tcflow.c: Likewise.
18116         * sysdeps/unix/sysv/tcflush.c: Likewise.
18117         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
18118         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
18119         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
18120         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
18121         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
18122
18123         * sysdeps/unix/siglist.c: Remove file.
18124
18125         * sysdeps/unix/getppid.S: Remove file.
18126
18127         * sysdeps/unix/mkdir.c: Remove file.
18128         * sysdeps/unix/rmdir.c: Likewise.
18129
18130 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
18131
18132         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
18133         ERR_MAX value.
18134         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
18135         errlist-compat value.
18136
18137 2012-04-18  David S. Miller  <davem@davemloft.net>
18138
18139         * sysdeps/generic/memcopy.h (reg_char): Delete.
18140         * debug/strcat_chk.c: Use char, not reg_char.
18141         * debug/strcpy_chk.c: Likewise.
18142         * debug/strncat_chk.c: Likewise.
18143         * debug/strncpy_chk.c: Likewise.
18144         * string/memchr.c: Likewise.
18145         * string/memrchr.c: Likewise.
18146         * string/rawmemchr.c: Likewise.
18147         * string/strcat.c: Likewise.
18148         * string/strchr.c: Likewise.
18149         * string/strchrnul.c: Likewise.
18150         * string/strcmp.c: Likewise.
18151         * string/strcpy.c: Likewise.
18152         * string/strncat.c: Likewise.
18153         * string/strncmp.c: Likewise.
18154         * string/strncpy.c: Likewise.
18155
18156 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18157
18158         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
18159         __builtin_memcopy is called when src and dest ranges are known to not
18160         overlap.
18161
18162 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18163
18164         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
18165         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
18166         fwd_align_merge macro call.
18167         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
18168         bwd_align_merge macro call.
18169         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
18170
18171 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18172
18173         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
18174         bwd_align_merge macros.
18175         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
18176         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
18177         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
18178
18179 2012-04-18  David S. Miller  <davem@davemloft.net>
18180
18181         * sysdeps/sparc/sparc64/memcopy.h: Delete.
18182
18183 2012-04-18  Andreas Jaeger  <aj@suse.de>
18184
18185         [BZ# 6794]
18186         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
18187         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
18188         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18189
18190         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
18191         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
18192         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18193
18194         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
18195         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
18196         Adjust for changed ldbl-128 files.
18197
18198         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
18199         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
18200         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18201
18202 2012-04-17  David S. Miller  <davem@davemloft.net>
18203
18204         * sysdeps/sparc/sparc32/memcopy.h: Delete.
18205
18206 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
18207
18208         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
18209         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
18210         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
18211         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
18212         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
18213         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
18214
18215 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18216
18217         [BZ #6794]
18218         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
18219         * math/libm-test.inc: Add ilogb errno and exception tests.
18220         * math/w_ilogb.c: New file: ilogb wrapper.
18221         * math/w_ilogbf.c: New file: ilogbf wrapper.
18222         * math/w_ilogbl.c: New file: ilogbl wrapper.
18223         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
18224         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
18225         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
18226         exception being thrown with 0.0 as argument.
18227         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
18228         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
18229         exception being thrown with 0.0 as argument.
18230         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
18231         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
18232         exception being thrown with 0.0 as argument.
18233         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
18234         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
18235         exception being thrown with 0.0 as argument.
18236         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
18237         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
18238         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
18239         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
18240         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
18241         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
18242         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
18243         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
18244         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
18245
18246 2012-04-17  Petr Baudis  <pasky@ucw.cz>
18247
18248         * include/sys/uio.h: Change __vector to __iovec to avoid clash
18249         with altivec.
18250
18251 2012-04-16  Marek Polacek  <polacek@redhat.com>
18252
18253         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
18254
18255 2012-04-16  Marek Polacek  <polacek@redhat.com>
18256
18257         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
18258         operands of fdivp instruction.
18259
18260 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18261
18262         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
18263         * elf/tst-auditmod3b.c: Likewise.
18264         * elf/tst-auditmod4b.c: Likewise.
18265         * elf/tst-auditmod5b.c: Likewise.
18266         * elf/tst-auditmod6b.c: Likewise.
18267         * elf/tst-auditmod6c.c: Likewise.
18268         * elf/tst-auditmod7b.c: Likewise.
18269         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
18270         * sysdeps/x86_64/preconfigure.in: Likewise.
18271         * sysdeps/x86_64/preconfigure: Regenerated.
18272
18273 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18274
18275         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
18276         __ILP32__.
18277
18278 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
18279
18280         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18281         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
18282
18283 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
18284
18285         [BZ #13973]
18286         * locale/iso-639.def: Fix gl language name. Spotted by
18287         Yaron Shahrabani.
18288
18289 2012-04-12  Roland McGrath  <roland@hack.frob.com>
18290
18291         [BZ #2074]
18292         * libio/libio.h (__io_write_fn): Update comment.
18293
18294 2012-04-12  Petr Baudis  <pasky@ucw.cz>
18295
18296         [BZ #2074]
18297         * stdio.texi (Hook Functions): The user provided writer function
18298         is not allowed to return -1.
18299
18300 2012-04-11  David S. Miller  <davem@davemloft.net>
18301
18302         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18303
18304 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
18305
18306         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
18307         Add a leading slash to rtkaio.
18308
18309 2012-04-11  Jim Meyering  <meyering@redhat.com>
18310
18311         [BZ #11959]
18312         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
18313         It is not necessarily an error to ignore fwrite's return
18314         value.  One can reliably use ferror to test for errors after
18315         the fact.
18316
18317 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
18318
18319         * bits/types.h (__snseconds_t): New type.
18320         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
18321
18322         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
18323         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18324         (__SNSECONDS_T_TYPE): Likewise.
18325         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18326         (__SNSECONDS_T_TYPE): Likewise.
18327         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18328         (__SNSECONDS_T_TYPE): Likewise.
18329
18330 2012-04-10  Andreas Jaeger  <aj@suse.de>
18331
18332         [BZ #2636]
18333         * manual/time.texi (Processor Time): Return type of times is
18334         elapsed real time since an arbitrary point in the past.
18335         (CPU Time): Move CLK_TCK from here...
18336         (Processor Time): ...to here.  Correct description.
18337         * manual/conf.texi (Constants for Sysconf): Correct description of
18338         _SC_CLK_TCK.
18339
18340 2012-04-10  David S. Miller  <davem@davemloft.net>
18341
18342         [BZ #13967]
18343         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
18344         where the is a gap between DT_REL(A) and DT_JMPREL.
18345
18346 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
18347
18348         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
18349         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
18350         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
18351
18352 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18353
18354         * elf/dl-support.c (_dl_inhibit_cache): New variable.
18355         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
18356         (dl_main): Handle --inhibit-cache.
18357         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
18358         _dl_inhibit_cache.
18359         * elf/dl-load.c (_dl_map_object): Use it.
18360         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
18361
18362 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
18363
18364         [BZ #13872]
18365         * sysdeps/i386/fpu/e_powl.S (p78): New object.
18366         (__ieee754_powl): Saturate large exponents rather than testing for
18367         overflow of y*log2(x).
18368         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18369         * math/libm-test.inc (pow_test): Do not permit spurious overflow
18370         exceptions.
18371
18372         [BZ #11521]
18373         * math/s_ctan.c: Include <float.h>.
18374         (__ctan): Avoid internal overflow or cancellation in calculating
18375         denominator.
18376         * math/s_ctanf.c: Likewise.
18377         * math/s_ctanl.c: Likewise.
18378         * math/s_ctanh.c: Likewise.
18379         * math/s_ctanhf.c: Likewise.
18380         * math/s_ctanhl.c: Likewise.
18381         * math/libm-test.inc (ctan_test): Add more tests.
18382         (ctanh_test): Likewise.
18383         * sysdeps/i386/fpu/libm-test-ulps: Update.
18384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18385
18386 2012-04-09  Andreas Jaeger  <aj@suse.de>
18387
18388         [BZ #6894]
18389         * manual/filesys.texi (Directory Entries): Mention that d_namlen
18390         is an optional BSD extension.
18391
18392         [BZ #10254]
18393         * manual/stdio.texi (Opening Streams): Document additional fopen
18394         parameters.
18395
18396 2012-04-09  Roland McGrath  <roland@hack.frob.com>
18397
18398         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
18399         %eax without telling the compiler.
18400
18401 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
18402
18403         [BZ # 13963]
18404         * manual/install.texi: Use sourceware.org.
18405
18406 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
18407
18408         [BZ #13873]
18409         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
18410         (__ieee754_pow): Generate overflow and underflow using huge*huge
18411         and tiny*tiny rather than just returning constant infinity or zero
18412         for large exponents.
18413         * math/libm-test.inc (pow_test): Require overflow exceptions for
18414         applicable cases of large exponents.
18415
18416         [BZ #706]
18417         * sysdeps/i386/fpu/e_pow.S (p10): New object.
18418         (__ieee754_pow): Use iterative multiplication algorithm only for
18419         integer exponents with absolute value below 1024.  Check for odd
18420         integer exponents when using algorithm for real exponents.
18421         * math/libm-test.inc (pow_test): Add more tests.
18422         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18423
18424 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
18425
18426         [BZ #13705]
18427         * math/libm-test.inc (exp_test): Do not allow overflow exception
18428         on underflow test.
18429
18430 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
18431
18432         [BZ #13705]
18433         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
18434         instead of __kernel_standard_f.
18435
18436 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
18437
18438         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
18439         * sysdeps/x86_64/memset_chk.S: Likewise.
18440
18441 2012-04-08  Andreas Jaeger  <aj@suse.de>
18442
18443         [BZ #10153]
18444         * manual/startup.texi (Environment Access): Describe return value
18445         for putenv and setenv.
18446
18447         [BZ #6895]
18448         * manual/filesys.texi (Directory Entries): Add description for
18449         DT_LNK.
18450
18451         [BZ #6890]
18452         * manual/filesys.texi (Directory Entries): Clarify that it's file
18453         system not operating system in the description of DT_UNKNOWN.
18454
18455         [BZ #6578]
18456         * manual/syslog.texi (closelog): Fix reference, it's openlog.
18457
18458 2012-04-08  Stephen Compall  <s11@member.fsf.org>
18459
18460         [BZ #6649]
18461         * manual/llio.texi (Opening and Closing Files): Add cross
18462         reference to explain mode argument.
18463
18464 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
18465
18466         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
18467         * sysdeps/x86_64/memset_chk.S: Likewise.
18468
18469 2012-04-07  David S. Miller  <davem@davemloft.net>
18470
18471         * elf/elf.h (R_SPARC_WDISP10): Define.
18472         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
18473         R_SPARC_SIZE32.
18474         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
18475         R_SPARC_SIZE64 and R_SPARC_H34.
18476
18477 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
18478
18479         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
18480         conditions and remove no longer applicable assertion.
18481
18482 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18483
18484         * bits/byteswap.h: Include <features.h>.
18485         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
18486         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
18487
18488 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18489
18490         * bits/byteswap.h (__bswap_16): Removed.
18491         Include <bits/byteswap-16.h> to get __bswap_16.
18492         * sysdeps/i386/bits/byteswap.h: Likewise.
18493         * sysdeps/s390/bits/byteswap.h: Likewise.
18494         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18495         * bits/byteswap-16.h: New file.
18496         * sysdeps/i386/bits/byteswap-16.h: Likewise.
18497         * sysdeps/s390/bits/byteswap-16.h: Likewise.
18498         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
18499         * string/Makefile (headers): Add bits/byteswap-16.h.
18500
18501 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18502
18503         [BZ #13895]
18504         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
18505         extra indirection.
18506         * nss/Makefile (tests-static, tests): Add tst-nss-static.
18507         * nss/tst-nss-static.c: New.
18508
18509 2012-04-06  Robert Millan  <rmh@gnu.org>
18510
18511         [BZ #6486]
18512         * manual/llio.texi (File Position Primitive): lseek
18513         refers to WHENCE when it really means OFFSET.
18514
18515 2012-04-06  Andreas Jaeger  <aj@suse.de>
18516
18517         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
18518         strncmp declarations.
18519
18520         * abilist/libc.abilist: Add __poll and __ppoll.
18521
18522 2012-04-05  David S. Miller  <davem@davemloft.net>
18523
18524         * scripts/check-local-headers.sh: Accept a host triplet in the
18525         path matched by the exclude regexp.
18526
18527         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
18528         definition.
18529         * sysdeps/powerpc/powerpc32/dl-machine.h
18530         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
18531         * sysdeps/s390/s390-32/dl-machine.h
18532         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18533         * sysdeps/sparc/sparc32/dl-machine.h
18534         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18535         * sysdeps/sparc/sparc64/dl-machine.h
18536         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18537
18538         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
18539         lazy binding.
18540         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
18541         undefined symbol errors.
18542
18543         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
18544         DT_NEEDED entries.
18545
18546 2012-04-05  Michael Matz  <matz@suse.de>
18547
18548         [BZ #13592]
18549         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
18550
18551 2012-04-05  Andreas Jaeger  <aj@suse.de>
18552
18553         [BZ #13908]
18554         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
18555         comment.
18556
18557 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18558
18559         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
18560         which ROUND is no valid rounding mode.
18561
18562 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18563
18564         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
18565         read again.
18566         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
18567
18568 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18569
18570         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
18571         an exception using FPU order intentionally.
18572
18573 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18574
18575         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
18576         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
18577         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
18578         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
18579
18580 2012-04-05  Simon Josefsson  <simon@josefsson.org>
18581
18582         [BZ #12340]
18583         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
18584         EINVAL when BUFLEN is too smal.
18585
18586 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
18587
18588         [BZ #13553]
18589         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
18590         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
18591
18592 2012-04-03  Andreas Jaeger  <aj@suse.de>
18593
18594         [BZ #13938]
18595         * manual/setjmp.texi (System V contexts): Fix sentence.
18596
18597         [BZ #13926]
18598         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
18599         New macro for this case.
18600         [!__GNUC__] (__bswap_64): New inline function for this case.
18601         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18602         * bits/byteswap.h: Likewise.
18603         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
18604         ull, guard with __GLIBC_HAVE_LONG_LONG.
18605
18606         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
18607         __GLIBC_HAVE_LONG_LONG.
18608
18609         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
18610         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
18611
18612 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18613
18614         [BZ #13691]
18615         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
18616         inptr and inend, rather than using last_ch.
18617
18618 2012-04-02  David S. Miller  <davem@davemloft.net>
18619
18620         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
18621         * stdio-common/printf-parse.h (read_int): Change return type to
18622         'int', return -1 on INT_MAX overflow.
18623         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
18624         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
18625         overflows INT_MAX.  Check for overflow of in-format-string precision
18626         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
18627         SIZE_MAX not INT_MAX for integer overflow test.
18628         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
18629         skip the construct in the format string but do not record anything.
18630         * stdio-common/bug22.c: Adjust to test both width/prevision
18631         INT_MAX overflow as well as total length INT_MAX overflow.  Check
18632         explicitly for proper errno values.
18633
18634 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
18635
18636         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
18637         CHAR_MAX.
18638         * string/test-strcmp.c [! WIDE]: Likewise.
18639         * time/tst-mktime2.c: Likewise for INT_MAX.
18640         * string/test-string.h: #include <sys/param.h> for MIN.
18641
18642         * csu/init-first.c (__libc_init_first): Call __ctype_init.
18643         * sysdeps/i386/init-first.c (init): Likewise.
18644         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
18645         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
18646         * sysdeps/sh/init-first.c (init): Likewise.
18647
18648 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
18649
18650         * po/ru.po: Update from translation team.
18651         * po/vi.po: Likewise.
18652
18653 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
18654
18655         * resolv/nss_dns/dns-host.c: Merge copyright years.
18656
18657 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18658
18659         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
18660         Optimize memcpy with prefetch if
18661         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
18662         src, dst pointers have unequal 16 byte alignments.
18663
18664 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18665
18666         [BZ #13928]
18667         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
18668         from a CNAME entry and return the minimum ttl for the query.
18669         (gaih_getanswer_slice): Likewise.
18670
18671 2012-03-30  Jeff Law  <law@redhat.com>
18672
18673         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
18674         due to long keys.
18675         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
18676         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
18677
18678         * resolv/nss_dns/dns-host.c: Update copyright year.
18679
18680 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
18681
18682         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
18683         requests to save a system call.  Fix check that all bytes are sent.
18684
18685         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
18686         comments for sendmmsg.
18687
18688 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18689
18690         [BZ #13691]
18691         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
18692         with only 1 character between 0x0041 and 0x01b0.
18693         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
18694         * wcsmbs/tst-mbsnrtowcs.c: New file.
18695
18696 2012-03-29  David S. Miller  <davem@davemloft.net>
18697
18698         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
18699         small copies by hand.
18700
18701 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18702
18703         [BZ #13761]
18704         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
18705         _nss_compat_initgroups_dyn): Fall back to malloc/free
18706         for large group memberships.
18707
18708 2012-03-28  David S. Miller  <davem@davemloft.net>
18709
18710         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
18711         that branches into memcpy.
18712         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
18713         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
18714         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18715         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
18716         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
18717         bits.
18718         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
18719         implementation too.
18720         * sysdeps/sparc/mempcpy.S: New file.
18721
18722         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
18723         the IFUNC routine in the libc case.
18724         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
18725
18726         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
18727         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
18728         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
18729         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
18730         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
18731         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
18732         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
18733         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
18734
18735         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
18736         loop to 256 bytes instead of 64 bytes and fix test signedness.
18737
18738         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
18739         * sysdeps/sparc/sparc32/Makefile: rather than here...
18740         * sysdeps/sparc/sparc64/Makefile: and here.
18741
18742 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
18743
18744         * malloc/mallocbug.c: Avoid warnings about unused variables.
18745
18746 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18747
18748         [BZ #13760]
18749         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
18750         in the right place. Discard and retry query if response is
18751         larger than input buffer size.
18752
18753 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
18754
18755         [BZ #369]
18756         [BZ #2678]
18757         [BZ #3866]
18758         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
18759         x for large integer exponent.
18760         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
18761         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
18762         sign of result as needed afterwards.
18763         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
18764         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
18765         result for underflowing pow the same as for overflow.
18766         (__kernel_standard_l): Handle powl overflow and underflow here
18767         rather than calling __kernel_standard.
18768         * math/libm-test.inc (pow_test): Add more tests.
18769
18770         [BZ #3868]
18771         [BZ #13879]
18772         [BZ #13910]
18773         [BZ #13911]
18774         [BZ #13912]
18775         [BZ #13913]
18776         [BZ #13915]
18777         [BZ #13916]
18778         [BZ #13917]
18779         [BZ #13918]
18780         [BZ #13919]
18781         [BZ #13920]
18782         [BZ #13921]
18783         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
18784         * sysdeps/ieee754/k_standard.c: Include <float.h>.
18785         (__kernel_standard_l): New function.
18786         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
18787         __kernel_standard.
18788         * math/w_acosl.c (__acosl): Likewise.
18789         * math/w_asinl.c (__asinl): Likewise.
18790         * math/w_atan2l.c (__atan2l): Likewise.
18791         * math/w_atanhl.c (__atanhl): Likewise.
18792         * math/w_coshl.c (__coshl): Likewise.
18793         * math/w_exp10l.c (__exp10l): Likewise.
18794         * math/w_exp2l.c (__exp2l): Likewise.
18795         * math/w_fmodl.c (__fmodl): Likewise.
18796         * math/w_hypotl.c (__hypotl): Likewise.
18797         * math/w_j0l.c (__j0l, __y0l): Likewise.
18798         * math/w_j1l.c (__j1l, __y1l): Likewise.
18799         * math/w_jnl.c (__jnl, __ynl): Likewise.
18800         * math/w_lgammal.c (__lgammal): Likewise.
18801         * math/w_log10l.c (__log10l): Likewise.
18802         * math/w_log2l.c (__log2l): Likewise.
18803         * math/w_logl.c (__logl): Likewise.
18804         * math/w_powl.c (__powl): Likewise.
18805         * math/w_remainderl.c (__remainderl): Likewise.
18806         * math/w_scalbl.c (sysv_scalbl): Likewise.
18807         * math/w_sinhl.c (__sinhl): Likewise.
18808         * math/w_sqrtl.c (__sqrtl): Likewise.
18809         * math/w_tgammal.c (__tgammal): Likewise.
18810         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
18811         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
18812         * math/libm-test.inc (acos_test): Add more tests.
18813         (acosh_test): Likewise.
18814         (asin_test): Likewise.
18815         (atanh_test): Likewise.
18816         (exp_test): Likewise.
18817         (exp10_test): Likewise.
18818         (exp2_test): Likewise.
18819         (expm1_test): Likewise.
18820         (lgamma_test): Likewise.
18821         (log_test): Likewise.
18822         (log10_test): Likewise.
18823         (log1p_test): Likewise.
18824         (log2_test): Likewise.
18825         (pow_test): Do not allow some spurious overflow exceptions.
18826         (sqrt_test): Add more tests.
18827         (tgamma_test): Likewise.
18828         (y0_test): Likewise.
18829         (y1_test): Likewise.
18830         (yn_test): Likewise.
18831
18832 2012-03-27  Anton Blanchard  <anton@samba.org>
18833
18834         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
18835         MAP_HUGETLB.
18836         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18837         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18838         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18839
18840 2012-03-27  David S. Miller  <davem@davemloft.net>
18841
18842         * conform/Makefile: Run run-conformtest.sh using $(BASH).
18843
18844         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
18845         have-as-vis3 check.
18846
18847 2012-03-27  Andreas Jaeger  <aj@suse.de>
18848
18849         * sysdeps/x86_64/elf/configure.in: Moved to ...
18850         * sysdeps/x86_64/configure.in: ... here.
18851         * sysdeps/x86_64/elf/start.S: Moved to ...
18852         * sysdeps/x86_64/start.S: ... here.
18853         * sysdeps/x86_64/elf/configure: Delete.
18854
18855         * sysdeps/x86_64/configure.in: Merge contents from
18856         sysdeps/i386/configure.in (without i686 check).
18857
18858         * sysdeps/i386/elf/Versions: Merge into ...
18859         * sysdeps/i386/Versions: ... this.
18860         * sysdeps/i386/elf/Versions: Delete file.
18861         * sysdeps/i386/elf/start.S: Moved to ...
18862         * sysdeps/i386/start.S: ...here.
18863         * sysdeps/i386/elf/configure.in: Merge into...
18864         * sysdeps/i386/configure.in: ...here.
18865         * sysdeps/i386/elf/configure.in: Delete file.
18866         * sysdeps/i386/elf/configure: Delete file.
18867
18868         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
18869         * debug/backtracesyms.c: ... here.
18870         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
18871         * debug/backtracesymsfd.c: ... here.
18872         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
18873         * sysdeps/generic/ifunc-sel.h: ... here.
18874
18875         * sysdeps/unix/i386/start.c: Delete file.
18876         * sysdeps/unix/sparc/start.c: Delete file.
18877         * sysdeps/unix/start.c: Delete file.
18878
18879         * sysdeps/sh/elf/configure.in: Moved to ...
18880         * sysdeps/sh/configure.in: ... here.
18881         * sysdeps/sh/elf/start.S: Moved to ...
18882         * sysdeps/sh/start.S: ... here.
18883         * sysdeps/sh/elf/configure: Delete file.
18884
18885         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
18886         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
18887         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
18888         * sysdeps/powerpc/powerpc64/entry.h: ... here.
18889         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
18890         * sysdeps/powerpc/powerpc64/start.S: here.
18891         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
18892         * sysdeps/powerpc/powerpc64/Makefile: ... this.
18893         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
18894         * sysdeps/powerpc/powerpc64/configure.in: ... this.
18895         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
18896
18897         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
18898         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
18899         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
18900         * sysdeps/powerpc/powerpc32/start.S: ... here.
18901         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
18902         * sysdeps/powerpc/powerpc32/configure.in: ... this.
18903         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
18904
18905         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
18906         * sysdeps/powerpc/ifunc-sel.h: ... here.
18907         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
18908         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
18909
18910         * sysdeps/sparc/elf/configure.in: Moved to ...
18911         * sysdeps/sparc/configure.in: ... here.
18912         * sysdeps/sparc/elf/configure: Delete file.
18913         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
18914         * sysdeps/sparc/sparc32/start.S: ... here.
18915         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
18916         * sysdeps/sparc/sparc64/start.S: ... here.
18917         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
18918         * sysdeps/sparc/sparc32/Makefile: ... this.
18919         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
18920         * sysdeps/sparc/sparc64/Makefile: ... this.
18921
18922         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
18923         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
18924         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
18925         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
18926         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
18927         * sysdeps/s390/s390-32/setjmp.S: ... here.
18928         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
18929         * sysdeps/s390/s390-32/configure.in: ... here.
18930         * sysdeps/s390/s390-32/elf/configure: Delete file.
18931         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
18932         * sysdeps/s390/s390-32/start.S: ... here.
18933
18934         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
18935         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
18936         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
18937         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
18938         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
18939         * sysdeps/s390/s390-64/setjmp.S: ... here.
18940         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
18941         * sysdeps/s390/s390-64/configure.in: ... here
18942         * sysdeps/s390/s390-64/elf/configure: Delete file.
18943         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
18944         * sysdeps/s390/s390-64/start.S: ... here.
18945         * sysdeps/s390/s390-64/elf/configure: Delete.
18946
18947         * configure.in: Remove support for elf directories in sysdeps.
18948
18949         * configure: Regenerated.
18950         * sysdeps/i386/configure: Regenerated.
18951         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18952         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18953         * sysdeps/s390/s390-32/configure: Regenerated.
18954         * sysdeps/s390/s390-64/configure: Regenerated.
18955         * sysdeps/sh/configure: Regenerated.
18956         * sysdeps/sparc/configure: Regenerated.
18957         * sysdeps/x86_64/configure: Regenerated.
18958
18959 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
18960
18961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18962
18963         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
18964         denormal result into account.
18965
18966 2012-03-25  Roland McGrath  <roland@hack.frob.com>
18967
18968         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
18969         Reported by Allan McRae <allan@archlinux.org>.
18970
18971 2012-03-23  Jeff Law  <law@redhat.com>
18972
18973         * nss/getnssent.c (__nss_getent): Fix typo.
18974
18975 2012-03-23  David S. Miller  <davem@davemloft.net>
18976
18977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18978
18979 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18980
18981         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
18982         to pad to uint64_t for each field.
18983         (dl_tls_index): Replace unsigned long with uint64_t.
18984
18985 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
18986         Paul Pluzhnikov  <ppluzhnikov@google.com>
18987
18988         [BZ #6528]
18989         * grp/Makefile (otherlibs): Don't set it.
18990         * inet/Makefile (otherlibs): Likewise.
18991         * login/Makefile (otherlibs): Likewise.
18992         * nscd/Makefile (otherlibs): Likewise.
18993         * posix/Makefile (otherlibs): Likewise.
18994         * pwd/Makefile (otherlibs): Likewise.
18995         * rt/Makefile (otherlibs): Likewise.
18996         * sunrpc/Makefile (otherlibs): Likewise.
18997         * nss/Makefile (otherlibs): Likewise.
18998         Add libnss_files to routines and static-only-routines.
18999         ($(objpfx)getent): Remove rule.
19000         * resolv/Makefile: Add libnss_dns and libresolv to routines and
19001         static-only-routines.
19002
19003 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
19004
19005         [BZ #13892]
19006         * math/s_cexp.c: Include <float.h>.
19007         (__cexp): Handle exp result overflowing not necessarily
19008         overflowing both real and imaginary parts of result.
19009         * math/s_cexpf.c: Likewise.
19010         * math/s_cexpl.c: Likewise.
19011         * math/libm-test.inc (cexp_test): Add more tests.
19012         * sysdeps/i386/fpu/libm-test-ulps: Update.
19013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19014
19015 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19016
19017         * include/link.h (ELFW): New macro.
19018         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
19019         Replace ELF64_R_TYPE with ELFW(R_TYPE).
19020
19021 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19022
19023         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
19024         with uint64_t.
19025
19026 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19027
19028         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
19029         declaration.
19030         (struct La_x32_retval): Likewise.
19031
19032 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19033
19034         * sysdeps/x86_64/preconfigure.in: New file.
19035         * sysdeps/x86_64/preconfigure: New generated file.
19036
19037 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
19038
19039         [BZ #13824]
19040         * math/e_exp2l.c: Include <float.h>.
19041         (__ieee754_exp2l): Handle overflow and underflow cases
19042         separately.  Only pass fractional part of argument to
19043         __ieee754_expl.
19044         * math/libm-test.inc (exp2_test): Add more tests.
19045
19046         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
19047         negating x to take absolute value.
19048         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
19049         Likewise.
19050         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
19051         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
19052         Likewise.
19053         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
19054         computing low part if x was negated.
19055         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
19056
19057 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
19058
19059         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
19060         la_x32_gnu_pltexit.
19061         (pltexit): Cast int_retval to ptrdiff_t.
19062         * elf/tst-auditmod3b.c: Likewise.
19063         * elf/tst-auditmod4b.c: Likewise.
19064         * elf/tst-auditmod5b.c: Likewise.
19065         * elf/tst-auditmod6b.c: Likewise.
19066         * elf/tst-auditmod6c.c: Likewise.
19067         * elf/tst-auditmod7b.c: Likewise.
19068
19069         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
19070         and x32_gnu_pltexit.
19071
19072         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
19073         __ELF_NATIVE_CLASS.
19074         (La_x32_regs): New macro.
19075         (La_x32_retval): Likewise.
19076         (la_x32_gnu_pltenter): New function prototype.
19077         (la_x32_gnu_pltexit): Likewise.
19078
19079 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
19080
19081         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
19082         exponent.
19083
19084         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19085
19086         * configure.in (libc_cv_cc_nofma): Check for option to disable
19087         generation of FMA instructions.
19088         * configure: Regenerate.
19089         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
19090         * sysdeps/ieee754/dbl-64/Makefile: New file.
19091         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19092         Remove brandred-fma4.
19093         (CFLAGS-brandred-fma4.c): Remove.
19094         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
19095         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
19096         define.
19097         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
19098         define.
19099
19100 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
19101
19102         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
19103         LLONG_MAX != LONG_MAX.
19104         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19105         (_fitoa_word): Likewise.
19106         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
19107         LLONG_MAX != LONG_MAX.
19108         * stdio-common/_itowa.h: Include <_itoa.h>.
19109         (_itowa_word): Use _ITOA_WORD_TYPE on value.
19110         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
19111         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
19112         only if not defined.
19113         (_ITOA_WORD_TYPE): Likewise.
19114         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19115         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
19116
19117 2012-03-21  David S. Miller  <davem@davemloft.net>
19118
19119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19120
19121 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
19122
19123         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
19124         of x86_64 when setting libc_cv_slibdir, libdir and
19125         libc_cv_localedir.
19126         * sysdeps/unix/sysv/linux/configure: Regenerated.
19127
19128 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19129
19130         * manual/lang.texi (Old Varargs): Remove section.
19131         (How Variadic): Update menu.
19132         (va_start): Do not mention varargs.h.
19133
19134 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19135             Joseph Myers  <joseph@codesourcery.com>
19136
19137         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
19138         link test.
19139         * configure: Regenerated.
19140
19141 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19142
19143         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
19144         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
19145         conformtest.pl
19146
19147 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19148
19149         * NOTES: Remove.
19150         * Makefile (files-for-dist): Remove NOTES.
19151         (NOTES): Remove rule.
19152         * README: Don't refer to NOTES.
19153         * manual/creature.texi: Don't include macros.texi.
19154         * manual/intro.texi (creature.texi): Remove comment referring to
19155         NOTES.
19156
19157         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
19158         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
19159         * configure: Regenerated.
19160         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
19161         LIBC_TRY_CC_OPTION.
19162         (libc_cv_as_i686): Likewise.
19163         (libc_cv_cc_avx): Likewise.
19164         (libc_cv_cc_sse2avx): Likewise.
19165         (libc_cv_cc_fma4): Likewise.
19166         (libc_cv_cc_novzeroupper): Likewise.
19167         * sysdeps/i386/configure: Regenerated.
19168
19169         [BZ #13883]
19170         * sysdeps/i386/fpu/s_cexp.S: Remove.
19171         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
19172         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
19173         * math/libm-test.inc (cexp_test): Add more tests.
19174         * sysdeps/i386/fpu/libm-test-ulps: Update.
19175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19176
19177 2012-03-21  Allan McRae  <allan@archlinux.org>
19178
19179         * timezone/Makefile: Do not install iso3166.tab and zone.tab
19180
19181 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19182
19183         [BZ #13871]
19184         * math/w_exp2.c: Do not include <float.h>.
19185         (o_threshold, u_threshold): Remove.
19186         (__exp2): Calculate result before checking finiteness and calling
19187         __kernel_standard.
19188         * math/w_exp2f.c: Likewise.
19189         * math/w_exp2l.c: Likewise.
19190         * math/libm-test.inc (exp2_test): Require overflow exception for
19191         1e6 input.
19192
19193         [BZ #3866]
19194         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
19195         range of signed 64-bit integers before using fistpll.  Remove
19196         checks for whether integers fit in mantissa bits.
19197         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
19198         the range of signed 32-bit integers before using fistpl.  Remove
19199         checks for whether integers fit in mantissa bits.
19200         * sysdeps/i386/fpu/e_powl.S (p64): New object.
19201         (__ieee754_powl): Test for y outside the range of signed 64-bit
19202         integers before using fistpll.  Reduce 64-bit values to 63-bit
19203         ones as needed.
19204         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
19205         divide-by-zero is raised for zero to large negative powers.
19206         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
19207         (__ieee754_powl): Test for y outside the range of signed 64-bit
19208         integers before using fistpll.  Reduce 64-bit values to 63-bit
19209         ones as needed.
19210         * math/libm-test.inc (pow_test): Add more tests.
19211
19212 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19213
19214         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
19215         <stdio-common/_itoa.h>.
19216         * debug/segfault.c: Likewise.
19217         * elf/dl-cache.c: Likewise.
19218         * elf/dl-minimal.c: Likewise.
19219         * elf/dl-misc.c: Likewise.
19220         * elf/dl-sysdep.c: Likewise.
19221         * elf/dl-version.c: Likewise.
19222         * elf/rtld.c: Likewise.
19223         * hurd/hurdsock.c: Likewise.
19224         * hurd/lookup-retry.c: Likewise.
19225         * malloc/malloc.c: Likewise.
19226         * malloc/mtrace.c: Likewise.
19227         * nscd/nscd_getgr_r.c: Likewise.
19228         * nscd/nscd_getpw_r.c: Likewise.
19229         * nscd/nscd_getserv_r.c: Likewise.
19230         * posix/getopt_init.c: Likewise.
19231         * posix/wordexp.c: Likewise.
19232         * stdio-common/_itoa.c: Likewise.
19233         * stdio-common/printf_fphex.c: Likewise.
19234         * stdio-common/vfprintf.c: Likewise.
19235         * string/_strerror.c: Likewise.
19236         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
19237         * sysdeps/i386/i686/hp-timing.h: Likewise.
19238         * sysdeps/mach/_strerror.c: Likewise.
19239         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
19240         * sysdeps/mach/hurd/sethostid.c: Likewise.
19241         * sysdeps/mach/hurd/xmknodat.c: Likewise.
19242         * sysdeps/mach/xpg-strerror.c: Likewise.
19243         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
19244         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
19245         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
19246         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
19247         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
19248         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
19249         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
19250         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
19251         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
19252         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
19253         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
19254         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
19255         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
19256         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
19257         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
19258         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
19259         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
19260         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
19261         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
19262         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
19263         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
19264
19265         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
19266
19267         * stdio-common/_itoa.h: Moved to ...
19268         * sysdeps/generic/_itoa.h: Here.
19269
19270         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
19271
19272         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
19273         instead of "_itoa.h" and "_itowa.h".
19274         * stdio-common/vfprintf.: Likewise.
19275
19276 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19277
19278         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
19279         <bits/wordsize.h>.
19280         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
19281         (__signbit): Likwise.
19282         (llrintf): Likwise.
19283         (llrint): Likwise.
19284
19285 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19286
19287         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
19288         __WORDSIZE != 64.
19289
19290 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
19291
19292         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
19293         OVERFLOW_EXCEPTION_OK.
19294         * math/libm-test.inc ("Philosophy"): Update comment about
19295         exception testing.
19296         (OVERFLOW_EXCEPTION): Define.
19297         (OVERFLOW_EXCEPTION_OK): Likewise.
19298         (INVALID_EXCEPTION_OK): Renumber.
19299         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
19300         (IGNORE_ZERO_INF_SIGN): Likewise.
19301         (test_exceptions): Handle FE_OVERFLOW.
19302         (exp10_test): Expect overflow exceptions.
19303         (exp2_test): Likewise.
19304         (expm1_test): Likewise.
19305         (nextafter_test): Likewise.
19306         (pow_test): Likewise.
19307         (scalbn_test): Likewise.
19308         (scalbln_test): Likewise.
19309
19310 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19311
19312         * sysdeps/x86_64/bits/atomic.h
19313         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
19314         64bit integer.
19315         (atomic_exchange_acq): Likewise.
19316         (__arch_exchange_and_add_body): Likewise.
19317         (__arch_add_body): Likewise.
19318         (atomic_add_negative): Likewise.
19319         (atomic_add_zero): Likewise.
19320
19321 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19322
19323         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
19324         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
19325
19326 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19327
19328         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
19329         Check __x86_64__ instead of __WORDSIZE.
19330
19331 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19332
19333         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
19334
19335 2012-03-19  David S. Miller  <davem@davemloft.net>
19336
19337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19338
19339         * sysdeps/sparc/fpu/fenv_private.h: New file.
19340         * sysdeps/sparc/fpu/math_private.h: Use it.
19341         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
19342         Remove.
19343         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
19344         (libc_feholdexcept_setroundl): Remove.
19345         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
19346         Remove.
19347         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
19348         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
19349
19350 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19351
19352         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
19353         int64_t instead of long int.
19354         (INSERT_WORDS64): Likwise.
19355
19356 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19357
19358         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
19359         _Unwind_GetCFA return to _Unwind_Ptr first.
19360
19361 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
19362
19363         [BZ #13629]
19364         * math/s_clog.c: Include <float.h>.
19365         (__clog): Scale large or subnormal inputs.
19366         * math/s_clogf.c: Likewise.
19367         * math/s_clogl.c: Likewise.
19368         * math/s_clog10.c: Include <float.h>.
19369         (M_LOG10_2): Define.
19370         (__clog10): Scale large or subnormal inputs.
19371         * math/s_clog10f.c: Likewise.
19372         * math/s_clog10l.c: Likewise.
19373         * math/libm-test.inc (clog_test): Add more tests.
19374         (clog10_test): Likewise.
19375         * sysdeps/i386/fpu/libm-test-ulps: Update.
19376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19377
19378         [BZ #11451]
19379         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
19380         x and y.
19381         * math/libm-test.inc (atan2_test): Add another test.
19382
19383         * Makerules (common-objdir-compile): Remove.
19384         * sysdeps/unix/Makefile (config-generated): Do not add
19385         $(unix-generated) to variable.
19386         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
19387         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
19388         Remove rule.
19389         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
19390         Likewise.
19391         [generic bits/local_lim.h] (before-compile): Do not append to
19392         variable.
19393         [generic bits/local_lim.h] (common-generated): Likewise.
19394         [generic sys/param.h] (before-compile): Do not append to variable.
19395         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
19396         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
19397         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
19398         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
19399         include.
19400         [generic sys/param.h] (sys/param.h-includes): Remove variable.
19401         [generic sys/param.h] (sys/param.h-includes): Remove rule.
19402         [generic sys/param.h] ($(addprefix
19403         $(common-objpfx),$(sys/param.h-includes))): Likewise.
19404         [generic sys/param.h] (common-generated): Do not append to
19405         variable.
19406         [generic sys/param.h] (sysdep_headers): Likewise.
19407         [generic bits/errno.h] (before-compile): Do not append to
19408         variable.
19409         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
19410         rule.
19411         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
19412         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
19413         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
19414         [generic bits/errno.h] (common-generated): Do not append to
19415         variable.
19416         [generic bits/ioctls.h] (before-compile): Do not append to
19417         variable.
19418         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
19419         rule.
19420         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
19421         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
19422         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
19423         rule.
19424         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
19425         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
19426         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
19427         [generic bits/ioctls.h] (common-generated): Do not append to
19428         variable.
19429         [generic sys/syscall.h] (syscall.h): Remove variable.
19430         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
19431         rule.
19432         [generic sys/syscall.h] (before-compile): Do not append to
19433         variable.
19434         [generic sys/syscall.h] (common-generated): Likewise.
19435         * sysdeps/unix/errnos-tmpl.c: Remove file.
19436         * sysdeps/unix/errnos.awk: Likewise.
19437         * sysdeps/unix/ioctls-tmpl.c: Likewise.
19438         * sysdeps/unix/ioctls.awk: Likewise.
19439         * sysdeps/unix/mk-local_lim.c: Likewise.
19440         * sysdeps/unix/snarf-ioctls: Likewise.
19441
19442 2012-03-19  Richard Henderson  <rth@twiddle.net>
19443
19444         * sysdeps/i386/fpu/fenv_private.h: New file.
19445         * sysdeps/i386/fpu/math_private.h: Use it.
19446         (math_opt_barrier, math_force_eval): Remove.
19447         (libc_feholdexcept_setround_53bit): Remove.
19448         (libc_feupdateenv_53bit): Remove.
19449         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19450         (math_opt_barrier, math_force_eval): Remove.
19451         (libc_feholdexcept): Remove.
19452         (libc_feholdexcept_setround): Remove.
19453         (libc_fetestexcept, libc_fesetenv): Remove.
19454         (libc_feupdateenv_test): Remove.
19455         (libc_feupdateenv, libc_feholdsetround): Remove.
19456         (libc_feresetround): Remove.
19457
19458         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
19459         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
19460
19461         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
19462         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
19463         (libc_feupdateenv_testl): New.
19464         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
19465         (libc_feupdateenv_testf): New.
19466         (libc_feupdateenv): Use libc_feupdateenv_test.
19467         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
19468         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
19469
19470         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
19471         (libc_feholdsetroundf, libc_feholdsetroundl): New.
19472         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
19473         (libc_feresetround_noex): New.
19474         (libc_feresetround_noexf): New.
19475         (libc_feresetround_noexl): New.
19476         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
19477         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
19478         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
19479         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
19480         SET_RESTORE_ROUND.
19481         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19482         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
19483         (__cos): Likewise.
19484         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
19485         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
19486         SET_RESTORE_ROUND_NOEX.
19487         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
19488         SET_RESTORE_ROUND_NOEXF.
19489         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
19490         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
19491         (libc_feholdsetroundf): New.
19492         (libc_feresetround, libc_feresetroundf): New.
19493
19494         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
19495         (libc_feholdexcept_setround_53bit): Convert from macro to function.
19496         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
19497
19498         * sysdeps/generic/math_private.h: Include <fenv.h>.
19499         (default_libc_feholdexcept): New.
19500         (default_libc_feholdexcept_setround): New.
19501         (default_libc_fesetenv, default_libc_feupdateenv): New.
19502         (libc_feholdexcept): Only define if undefined.
19503         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
19504         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
19505         (libc_feholdexcept_setroundl): Likewise.
19506         (libc_feholdexcept_setround_53bit): Likewise.
19507         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
19508         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
19509         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
19510         (libc_feupdateenv_53bit): Likewise.
19511         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
19512         (libc_feholdexcept): Convert from macro to inline function.
19513         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
19514         (libc_fesetenv, libc_feupdateenv): Likewise.
19515
19516         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
19517         not previously defined.
19518         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
19519         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
19520         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
19521         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
19522         * sysdeps/ieee754/flt-32/math_private.h: New file.
19523         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
19524         math_private.h below SET_FLOAT_WORD.
19525         (__isnan, __isinf_ns, __finite): Remove.
19526         (__isnanf, __isinf_nsf, __finitef): Remove.
19527
19528 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
19529
19530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19531
19532 2012-03-17  David S. Miller  <davem@davemloft.net>
19533
19534         [BZ #6471]
19535         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
19536         for 2.16.
19537
19538 2012-03-16  David S. Miller  <davem@davemloft.net>
19539
19540         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
19541         warnings.
19542
19543         [BZ #6471]
19544         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
19545         properly.
19546         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
19547         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
19548         sysdep_routines when subdir is sysvipc.
19549         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
19550         __getshmlba helper.
19551
19552         * sysdeps/sparc/fpu/libm-test/ulps: Update.
19553
19554 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19555
19556         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
19557         [__LP64__].
19558
19559 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19560
19561         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
19562         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
19563         (__lround): Renamed to ...
19564         (__llround): This.  Replace long int with long long int.
19565         Define lround functions as aliases of llround functions.
19566         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
19567
19568 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19569
19570         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
19571         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
19572         adresses to uintptr_t.  Replace "long int" and "unsigned long
19573         int" with "greg_t" on va_arg.
19574
19575 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19576
19577         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
19578         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
19579
19580         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
19581         Move e_machine check before EI_CLASS check.  Handle x32
19582         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
19583         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
19584         SKIP_EM_IA_64 and include
19585         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
19586
19587         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
19588         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
19589         (add_system_dir): New macro.
19590
19591         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
19592         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
19593
19594 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
19595
19596         [BZ #2551]
19597         [BZ #2552]
19598         [BZ #2553]
19599         [BZ #2554]
19600         [BZ #2562]
19601         [BZ #2563]
19602         [BZ #2565]
19603         [BZ #2566]
19604         [BZ #2576]
19605         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
19606         (y0): Likewise.
19607         * math/w_j0f.c (j0f): Likewise.
19608         (y0f): Likewise.
19609         * math/w_j0l.c (__j0l): Likewise.
19610         (__y0l): Likewise.
19611         * math/w_j1.c (j1): Likewise.
19612         (y1): Likewise.
19613         * math/w_j1f.c (j1f): Likewise.
19614         (y1f): Likewise.
19615         * math/w_j1l.c (__j1l): Likewise.
19616         (__y1l): Likewise.
19617         * math/w_jn.c (jn): Likewise.
19618         (yn): Likewise.
19619         * math/w_jnf.c (jnf): Likewise.
19620         (ynf): Likewise.
19621         * math/w_jnl.c (__jnl): Likewise.
19622         (__ynl): Likewise.
19623         * math/libm-test.inc (j0_test): Add more tests.
19624         (j1_test): Likewise.
19625         (jn_test): Likewise.  Add trailing semicolon to existing test.
19626         (y0_test): Likewise.
19627         (y1_test): Likewise.
19628         * sysdeps/i386/fpu/libm-test-ulps: Update.
19629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19630
19631         [BZ #13851]
19632         [BZ #13854]
19633         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
19634         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
19635         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
19636         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
19637         (__tanl): Set errno for infinite argument.
19638         * sysdeps/i386/fpu/mptan.c: Remove.
19639         * sysdeps/i386/fpu/s_tan.S: Likewise.
19640         * sysdeps/i386/fpu/s_tanl.S: Likewise.
19641         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
19642         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
19643         * math/libm-test.inc (tan_test): Add more tests and enable more
19644         tests for double and long double.
19645         * sysdeps/i386/fpu/libm-test-ulps: Update.
19646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19647
19648 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
19649
19650         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
19651         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
19652
19653 2012-03-16  Roland McGrath  <roland@hack.frob.com>
19654
19655         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
19656         * configure.in: Use it for both main tree and add-ons.
19657         * configure: Regenerated.
19658
19659 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19660
19661         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
19662
19663 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
19664
19665         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
19666         in comment.
19667
19668         [BZ #13851]
19669         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
19670         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
19671         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
19672         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
19673         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
19674         infinite argument.
19675         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
19676         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
19677         != 0 for prec == 2.
19678         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
19679         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
19680         * sysdeps/i386/fpu/s_cosl.S: Likewise.
19681         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
19682         * sysdeps/i386/fpu/s_sinl.S: Likewise.
19683         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
19684         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
19685         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
19686         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
19687         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
19688         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
19689         * math/libm-test.inc (cos_test): Add more tests and enable more
19690         tests for long double.
19691         (sin_test): Likewise.
19692         (sincos_test): Likewise.
19693         * sysdeps/i386/fpu/libm-test-ulps: Update.
19694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19695
19696 2012-03-16  David S. Miller  <davem@davemloft.net>
19697
19698         * sysdeps/sparc/fpu/math_private.h: New file.
19699
19700 2012-03-15  David S. Miller  <davem@davemloft.net>
19701
19702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
19703         file.
19704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
19705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
19706         file.
19707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
19708         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
19709         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
19710         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
19711         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
19712         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
19713         sysdep routines.
19714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19715
19716         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
19717         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
19718
19719         * sysdeps/sparc/sparc-ifunc.h: New file.
19720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
19721         sparc-ifunc.h
19722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
19723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
19724         Likewise.
19725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
19726         Likewise.
19727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
19728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
19730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
19731         Likewise.
19732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
19733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
19734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
19735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
19736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
19737         Likewise.
19738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
19739         Likewise.
19740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
19741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
19743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
19744         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
19745         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
19746         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
19747         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
19748         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
19749         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
19750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
19751         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
19752         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
19753         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
19754         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
19755         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
19756         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
19757         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
19758         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
19759         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
19760         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
19761         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
19762         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
19763         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
19764
19765 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19766
19767         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
19768         scaling.
19769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19770
19771 2012-03-15  Andreas Jaeger  <aj@suse.de>
19772
19773         [BZ #13852]
19774         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
19775         ieee754/flt-32 implementation for sin, cos and sincos.
19776         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
19777         * sysdeps/i386/fpu/s_cosf.S: Likewise.
19778         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
19779         * sysdeps/i386/fpu/s_sinf.S: Likewise.
19780         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
19781         ieee754/flt-32 implementation for tan.
19782
19783         * math/libm-test.inc (cos_test): Enable some large input tests for
19784         float as well
19785         (sin_test): Likewise.
19786         (sincos_test): Likewise.
19787         (tan_test): Add tests for large input.
19788
19789         * sysdeps/i386/fpu/libm-test-ulps: Update.
19790
19791 2012-03-15  Andreas Jaeger  <aj@suse.de>
19792
19793         [BZ #13658]
19794         * math/libm-test.inc (cos_test): Add more test cases.
19795         (sin_test): Likewise.
19796         (sincos_test): Likewise.
19797
19798 2012-03-15  Andreas Jaeger  <aj@suse.de>
19799
19800         [BZ #13837]
19801         * math/libm-test.inc (cos_test): Add a test case for large input
19802         value.
19803         (sin_test): Likewise.
19804         (sincos_test): Likewise.
19805
19806 2012-03-15  Andreas Jaeger  <aj@suse.de>,
19807         Joseph Myers  <joseph@codesourcery.com>
19808
19809         [BZ #13658]
19810         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
19811         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
19812         * sysdeps/i386/fpu/branred.c: Likewise.
19813         * sysdeps/i386/fpu/dosincos.c: Likewise.
19814         * sysdeps/i386/fpu/mpa.c: Likewise.
19815         * sysdeps/i386/fpu/s_cos.S: Likewise.
19816         * sysdeps/i386/fpu/s_sin.S: Likewise.
19817         * sysdeps/i386/fpu/s_sincos.S: Likewise.
19818         * sysdeps/i386/fpu/sincos32.c: Likewise.
19819
19820         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
19821         Define.
19822         (libc_feupdateenv_53bit): Define.
19823         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
19824         Define.
19825         (libc_feupdateenv_53bit): Define.
19826
19827         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
19828         53 bit (without extend i386 double precision).
19829
19830         * math/libm-test.inc (sincos_test): Add tests for large input.
19831         (sin): Likewise.
19832         (cos): Likewise.
19833
19834         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
19835
19836 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19837
19838         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19839
19840 2012-03-15  David S. Miller  <davem@davemloft.net>
19841
19842         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
19843         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
19844         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
19845         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
19846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
19847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
19848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
19849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
19850         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
19851         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
19852         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
19853         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
19854         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
19855         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
19856         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
19857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
19858         file.
19859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
19860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
19861         file.
19862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
19863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
19864         file.
19865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
19866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
19867         file.
19868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
19869         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
19870         fmin/fmax sysdep routines.
19871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19872
19873 2012-03-14  David S. Miller  <davem@davemloft.net>
19874
19875         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
19876         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
19877         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
19878         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
19879         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
19880         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
19881         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
19882         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
19883         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
19884         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
19885         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
19886         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
19887         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
19888         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
19889         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
19890         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
19891         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
19892         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
19893         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
19894         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
19895         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
19896         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
19897         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
19898         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
19899         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
19900         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
19901         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
19902         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
19903         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
19904         routines.
19905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
19906         file.
19907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
19908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
19909         file.
19910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
19911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
19912         file.
19913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
19914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
19915         file.
19916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
19917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
19918         file.
19919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
19920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
19921         file.
19922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
19923         file.
19924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
19925         file.
19926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
19927         file.
19928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
19929         New file.
19930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
19931         file.
19932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
19933         file.
19934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
19935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
19936         file.
19937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
19938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
19939         file.
19940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
19941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
19942         file.
19943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
19944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
19945         VIS3 routines.
19946
19947         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
19948         New file.
19949
19950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19951
19952         * sysdeps/sparc/configure.in: New file.
19953         * sysdeps/sparc/configure: Generate.
19954         * configure.in (libc_cv_sparc_as_vis3): Substitute.
19955         * configure: Regenerate.
19956         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
19957         * config.make.in (have-as-vis3): New.
19958         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
19959         available use -Av9d instead of -Av9a.
19960         * sysdeps/sparc/sparc64/Makefile: Likewise.
19961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
19962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
19963         New file.
19964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
19965         file.
19966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
19967         New file.
19968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
19969         file.
19970         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
19971         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
19972         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
19973         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
19974         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
19975
19976         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
19977         fzeros/fnegs to load 0x80000000 into a float register instead of
19978         using the stack.
19979         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
19980
19981 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19982
19983         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19984         bits/syscall.h.
19985         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
19986         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
19987         ($(inst_includedir)/bits/syscall.h): Remove rule.
19988         ($(objpfx)bits/syscall.d): Include instead of
19989         $(objpfx)syscall-list.d.
19990         (generated): Change syscall-list.h and syscall-list.d to
19991         bits/syscall.h and bits/syscall.d.
19992
19993 2012-03-14  Roland McGrath  <roland@hack.frob.com>
19994
19995         [BZ #13846]
19996         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
19997
19998 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19999
20000         [BZ #13841]
20001         * math/s_csqrt.c: Include <float.h>.
20002         (__csqrt): Scale large or subnormal inputs.
20003         * math/s_csqrtf.c: Likewise.
20004         * math/s_csqrtl.c: Likewise.
20005         * math/libm-test.inc (csqrt_test): Add more tests.
20006         * sysdeps/i386/fpu/libm-test-ulps: Update.
20007         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20008
20009         [BZ #13840]
20010         * math/libm-test.inc (hypot_test): Add more tests.
20011
20012 2012-03-13  David S. Miller  <davem@davemloft.net>
20013
20014         [BZ #13840]
20015         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
20016         double-precision for the calculation instead of scaling.
20017
20018 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
20019
20020         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
20021         manipulate bits before adding and subtracting TWO52[sx].
20022         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
20023         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
20024         Likewise.
20025         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
20026
20027 2012-03-13  David S. Miller  <davem@davemloft.net>
20028
20029         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
20030         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
20031         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
20032         rtld-global-offsets.h
20033         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20034
20035         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
20036         large parameters.
20037
20038         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
20039
20040         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
20041         'err' in the ifdef scope in which it is actually used.
20042
20043         * nss/nss_db/db-init.c: Include string.h
20044
20045 2012-03-12  David S. Miller  <davem@davemloft.net>
20046
20047         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
20048         masking out of the most significant byte of random value used.
20049         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20050         Fix coding style in previous change.
20051
20052         * sysdeps/unix/sysv/linux/kernel-features.h
20053         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
20054         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
20055         expression.
20056         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
20057         later.
20058
20059 2012-03-11  David S. Miller  <davem@davemloft.net>
20060
20061         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
20062         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
20063         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
20064         for 'resultvar' otherwise things get truncated on 64-bit.
20065
20066         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20067         Fix masking out of the most significant byte of random value used.
20068
20069         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20070
20071 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
20072
20073         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20074
20075 2012-03-09  David S. Miller  <davem@davemloft.net>
20076
20077         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
20078         variables with appropriate CPP guards.
20079         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
20080         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
20081         on resulting framesize and the management of the outregs buffer for pltexit.
20082         Preserve floating point return values across _dl_call_pltexit call.
20083         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
20084         framesize and the management of the outregs buffer for pltexit.
20085         Preserve floating point return values across _dl_call_pltexit
20086         call.
20087         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
20088         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
20089         (print_exit): Fix format string for return register value.
20090
20091 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
20092
20093         * sunrpc/Makefile (others): Add rpcgen.
20094         ($(objpfx)rpcgen): Remove special build rule and dependency on
20095         libc.
20096         * sunrpc/rpcgen.c: New file.
20097
20098 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
20099
20100         [BZ #13673]
20101         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
20102         * stdio-common/bug-vfprintf-nargs.c: Likewise.
20103         * sysdeps/i386/crti.S: Likewise.
20104         * sysdeps/i386/crtn.S: Likewise.
20105         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
20106         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
20107         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
20108         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
20109         * sysdeps/sh/crti.S: Likewise.
20110         * sysdeps/sh/crtn.S: Likewise.
20111         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20112
20113         [BZ #13673]
20114         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
20115         with URL.
20116         * locale/programs/locfile-kw.gperf: Likewise.
20117         * locale/programs/charmap-kw.h: Regenerated.
20118         * locale/programs/locfile-kw.h: Likewise.
20119
20120         [BZ #13673]
20121         * intl/plural.y: Replace FSF snail mail address with URL.
20122         * intl/plural.c: Regenerated.
20123
20124 2012-03-09  Richard Henderson  <rth@twiddle.net>
20125
20126         * include/math_private.h: Remove file.
20127         * math/math_private.h: Move file ...
20128         * sysdeps/generic/math_private.h: ... here.
20129
20130         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
20131         * sysdeps/powerpc/fpu/math_private.h: Likewise.
20132         * sysdeps/x86_64/fpu/math_private.h: Likewise.
20133
20134         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
20135         and <math_private.h>.
20136         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
20137         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
20138         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
20139         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
20140         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
20141         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
20142         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
20143         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20144         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
20145         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
20146         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20147         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20148         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
20149         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20150         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
20151         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
20152         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20153         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
20154         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
20155         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
20156         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20157         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
20158         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
20159         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20160         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
20161         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
20162         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
20163         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
20164         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20165         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
20166         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
20167         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20168         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
20169         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
20170         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
20171         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
20172         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
20173         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
20174         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
20175         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20176         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
20177         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
20178         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
20179         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
20180         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
20181         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20182         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
20183         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
20184         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
20185         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
20186         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
20187         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
20188         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
20189         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
20190         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
20191         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
20192         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20193         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
20194         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
20195         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
20196         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
20197         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
20198         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20199         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
20200         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
20201         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
20202         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
20203         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20204         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
20205         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
20206         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
20207         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20208         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
20209         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20210         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
20211         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
20212         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
20213         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20214         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
20215         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
20216         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
20217         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
20218         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
20219         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
20220         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
20221         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
20222         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
20223         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
20224         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
20225         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20226         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20227         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
20228         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20229         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
20230         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
20231         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
20232         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
20233         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
20234         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
20235         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
20236         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
20237         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
20238         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
20239         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
20240         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
20241         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
20242         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
20243         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
20244         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
20245         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
20246         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
20247         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
20248         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
20249         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
20250         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
20251         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20252         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
20253         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
20254         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
20255         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
20256         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
20257         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
20258         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20259         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
20260         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
20261         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
20262         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
20263         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
20264         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
20265         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
20266         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
20267         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
20268         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
20269         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
20270         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
20271         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
20272         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
20273         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
20274         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
20275         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
20276         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20277         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
20278         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
20279         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
20280         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
20281         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20282         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
20283         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
20284         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
20285         * sysdeps/ieee754/k_standard.c: Likewise.
20286         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
20287         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
20288         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20289         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
20290         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
20291         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
20292         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
20293         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
20294         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
20295         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
20296         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
20297         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
20298         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
20299         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
20300         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
20301         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
20302         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
20303         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
20304         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
20305         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
20306         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
20307         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
20308         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
20309         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
20310         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
20311         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
20312         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
20313         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
20314         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
20315         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
20316         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
20317         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
20318         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
20319         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
20320         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
20321         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
20322         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
20323         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
20324         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
20325         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
20326         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
20327         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
20328         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
20329         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
20330         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
20331         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
20332         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
20333         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
20334         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
20335         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
20336         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
20337         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
20338         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
20339         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
20340         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
20341         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
20342         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
20343         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
20344         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
20345         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
20346         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
20347         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
20348         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20349         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
20350         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20351         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20352         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
20353         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
20354         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
20355         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
20356         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
20357         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20358         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
20359         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
20360         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
20361         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
20362         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
20363         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
20364         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20365         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
20366         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
20367         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
20368         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
20369         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
20370         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
20371         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
20372         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
20373         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
20374         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
20375         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
20376         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
20377         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
20378         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
20379         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
20380         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
20381         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
20382         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
20383         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
20384         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
20385         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
20386         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
20387         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
20388         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
20389         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
20390         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
20391         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
20392         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
20393         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
20394         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
20395         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
20396         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
20397         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
20398         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
20399         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20400         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
20401         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
20402         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
20403         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20404         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
20405         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
20406         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
20407         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
20408         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
20409         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
20410         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20411         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
20412         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
20413         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
20414         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
20415         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
20416         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
20417         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
20418         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
20419         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
20420         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
20421         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
20422         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
20423         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
20424         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
20425         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
20426         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
20427         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
20428         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
20429         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
20430         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
20431         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
20432         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
20433         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
20434         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
20435         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
20436         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
20437         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
20438         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
20439         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
20440         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
20441         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
20442         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
20443         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
20444         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
20445         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
20446         * sysdeps/ieee754/s_lib_version.c: Likewise.
20447         * sysdeps/ieee754/s_matherr.c: Likewise.
20448         * sysdeps/ieee754/s_signgam.c: Likewise.
20449         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
20450         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
20451         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
20452         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
20453         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
20454         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
20455         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
20456         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
20457         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
20458         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
20459         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
20460         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
20461         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
20462         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
20463         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
20464         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
20465         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
20466         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
20467         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
20468         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
20469         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
20470
20471 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
20472
20473         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
20474         * sunrpc/rpc_main.c: Likewise.
20475         * sunrpc/rpc_svcout.c: Likewise.
20476
20477 2012-03-09  David S. Miller  <davem@davemloft.net>
20478
20479         * include/math_private.h: New file.
20480
20481 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
20482
20483         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
20484         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
20485         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
20486         from <bits/socket_type.h>.
20487         (enum __socket_type): Don't define here.
20488         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
20489         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20490         bits/socket_type.h.
20491
20492         [BZ #13566]
20493         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
20494         checking __USE_GNU.
20495
20496         * Makerules ($(inst_includedir)/%.h): New rule.
20497         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
20498         (install-others): Remove variable setting.
20499         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
20500
20501 2012-03-08  Richard Henderson  <rth@twiddle.net>
20502
20503         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
20504         from macro to inline function; merge with the
20505         !__LIBC_INTERNAL_MATH_INLINES version.
20506         (__ieee754_sqrtf): Likewise.
20507
20508         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
20509         to inline function.
20510         (__rintf, __floor, __floorf): Likewise.
20511
20512         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
20513         macro to inline function.
20514         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
20515
20516         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
20517         not <math/math_private.h>.
20518
20519 2012-03-08  David S. Miller  <davem@davemloft.net>
20520
20521         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
20522         copyright year.
20523         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
20524
20525 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
20526
20527         * resolv/gai_misc.c (handle_requests): Fix struct timespec
20528         normalization.
20529         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
20530         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
20531
20532 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
20533
20534         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
20535         be defined individually, they must be defined as a block.  Define
20536         S for printing a string instead of hidint the different by using a
20537         macro for adding the 'l'.
20538         * stdio-common/tst-fphex-wide.c: Adjust.
20539
20540 2012-03-07  Marek Polacek  <polacek@redhat.com>
20541
20542         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
20543
20544 2012-03-08  Marek Polacek  <polacek@redhat.com>
20545
20546         [BZ #13806]
20547         * stdio-common/Makefile (tests): Add tst-fphex-wide.
20548         * stdio-common/tst-fphex.c: Define a few macros to make the
20549         test reusable.  Use them.
20550         * stdio-common/tst-fphex-wide.c: New file.
20551
20552 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
20553
20554         [BZ #6911]
20555         * manual/macros.texi (gnusystems): New macro.
20556         (nongnusystems): Likewise.
20557         (gnulinuxhurdsystems): Likewise.
20558         (gnuhurdsystems): Likewise..
20559         (gnulinuxsystems): Likewise.
20560         * manual/charset.texi: Use new macros or @theglibc{} to refer to
20561         variants of the GNU system, not "GNU system".
20562         * manual/conf.texi: Likewise.
20563         * manual/errno.texi: Likewise.  Update example of errno macro
20564         expansion.
20565         * manual/filesys.texi: Likewise.
20566         (getumask): Document as specific to GNU/Hurd.
20567         * manual/install.texi: Likewise.  Reword some references to
20568         GNU/Linux.
20569         * manual/intro.texi: Likewise.
20570         * manual/io.texi: Likewise.
20571         (File Name Portability): Detail which constraints are inapplicable
20572         to all GNU systems and which are only inapplicable to GNU/Hurd.
20573         * manual/job.texi: Likewise.
20574         * manual/llio.texi: Likewise.
20575         (O_NOCTTY): Document as present on GNU/Linux.
20576         * manual/maint.texi: Likewise.
20577         * manual/memory.texi: Likewise.
20578         * manual/pattern.texi: Likewise.
20579         * manual/pipe.texi: Likewise.
20580         * manual/process.texi: Likewise.
20581         * manual/resource.texi: Likewise.
20582         (RUSAGE_CHILDREN): Remove statement about specifying a particular
20583         child on GNU/Hurd.
20584         * manual/setjmp.texi: Likewise.
20585         * manual/signal.texi: Likewise.
20586         * manual/startup.texi: Likewise.
20587         * manual/stdio.texi: Likewise.
20588         * manual/terminal.texi: Likewise.
20589         (ONLCR): Document as POSIX.
20590         (OXTABS): Document availability on GNU/Linux as XTABS.
20591         (ONOEOT): Document availability separately from other bits.
20592         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
20593         * manual/time.texi: Likewise.
20594         * manual/users.texi: Likewise.
20595         * INSTALL: Regenerated.
20596         * sysdeps/gnu/errlist.c: Regenerated.
20597
20598         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
20599         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
20600         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
20601         puts.
20602         * configure: Regenerated.
20603
20604 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
20605
20606         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
20607         default includes instead of AC_HEADER_CHECK.
20608         * sysdeps/i386/configure: Regenerated.
20609
20610         [BZ #10716]
20611         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
20612         * math/s_cacoshf.c (__cacoshf): Likewise.
20613         * math/s_cacoshl.c (__cacoshl): Likewise.
20614         * math/s_casinh.c (__casinh): Set signs of result from argument.
20615         * math/s_casinhf.c (__casinhf): Likewise.
20616         * math/s_casinhl.c (__casinhl): Likewise.
20617         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
20618         (casinh_test): Add more tests.
20619         * sysdeps/i386/fpu/libm-test-ulps: Update.
20620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20621
20622 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
20623
20624         * po/zh_TW.po: Update from translation team.
20625
20626         * login/Makefile (distribute): Remove variable.
20627         * catgets/Makefile: Likewise.
20628         * mach/Makefile: Likewise.
20629         * malloc/Makefile: Likewise.
20630         * misc/Makefile: Likewise.
20631         * iconv/Makefile: Likewise.
20632         * nscd/Makefile: Likewise.
20633         * hurd/Makefile: Likewise.
20634         * manual/Makefile: Likewise.
20635         * locale/Makefile: Likewise.
20636         * intl/Makefile: Likewise.
20637         * conform/Makefile: Likewise.
20638         * nss/Makefile: Likewise.
20639         * time/Makefile: Likewise.
20640         * soft-fp/Makefile: Likewise.
20641         * dirent/Makefile: Likewise.
20642         * gmon/Makefile: Likewise.
20643         * po/Makefile: Likewise.
20644         * rt/Makefile: Likewise.
20645         * socket/Makefile: Likewise.
20646         * math/Makefile: Likewise.
20647         * signal/Makefile: Likewise.
20648         * debug/Makefile: Likewise.
20649         * elf/Makefile: Likewise.
20650         * timezone/Makefile: Likewise.
20651         * stdlib/Makefile: Likewise.
20652         * iconvdata/Makefile: Likewise.
20653         * sunrpc/Makefile: Likewise.
20654         * io/Makefile: Likewise.
20655         * argp/Makefile: Likewise.
20656         * inet/Makefile: Likewise.
20657         * hesiod/Makefile: Likewise.
20658         * grp/Makefile: Likewise.
20659         * csu/Makefile: Likewise.
20660         * wctype/Makefile: Likewise.
20661         * crypt/Makefile: Likewise.
20662         * libio/Makefile: Likewise.
20663         * string/Makefile: Likewise.
20664         * nis/Makefile: Likewise.
20665         * resolv/Makefile: Likewise.
20666         * stdio-common/Makefile: Likewise.
20667         * wcsmbs/Makefile: Likewise.
20668         * dlfcn/Makefile: Likewise.
20669         * posix/Makefile: Likewise.
20670
20671         [BZ #6959]
20672         * timezone/Makefile: Don't install timezone files, just the programs
20673         and scripts.
20674
20675 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
20676
20677         * nss/databases.def: Add missing gshadow entry.
20678
20679         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
20680
20681 2012-03-06  Marek Polacek  <polacek@redhat.com>
20682
20683         [BZ #13726]
20684         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
20685         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
20686         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
20687         * stdio-common/tst-long-dbl-fphex.c: New file.
20688
20689 2012-03-06  David S. Miller  <davem@davemloft.net>
20690
20691         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
20692         (set_obp_int): New function.
20693         (get_obp_int): New function.
20694         (__get_clockfreq_via_dev_openprom): Likewise.
20695         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
20696         Avoid unused variable warnings on 'val' and use builtin_expect.
20697         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
20698         __builtin_expect.
20699         (INLINE_CLONE_SYSCALL): Likewise.
20700
20701 2012-03-05  David S. Miller  <davem@davemloft.net>
20702
20703         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20704
20705 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
20706
20707         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20708
20709         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
20710         only for |x| >= 40.
20711         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20712
20713 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20714
20715         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
20716         Replace gettimeofday with __vdso_gettimeofday.
20717
20718         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20719         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
20720         __vdso_clock_gettime and __vdso_getcpu.
20721
20722         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
20723         time with __vdso_time.
20724
20725 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20726
20727         * manual/lang.texi (size_t): Note types to which size_t may be
20728         equivalent with the GNU C Library, but do not describe when
20729         differences between them are significant.
20730
20731 2012-03-05  Andreas Jaeger  <aj@suse.de>
20732
20733         * sysdeps/i386/fpu/libm-test-ulps: Update.
20734
20735 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20736
20737         [BZ #3976]
20738         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
20739         (__ieee754_pow): Save and restore rounding mode and use
20740         round-to-nearest for main computations.
20741         * math/libm-test.inc (pow_test_tonearest): New function.
20742         (pow_test_towardzero): Likewise.
20743         (pow_test_downward): Likewise.
20744         (pow_test_upward): Likewise.
20745         (main): Call the new functions.
20746         * sysdeps/i386/fpu/libm-test-ulps: Update.
20747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20748
20749         [BZ #3976]
20750         * math/libm-test.inc (cosh_test_tonearest): New function.
20751         (cosh_test_towardzero): Likewise.
20752         (cosh_test_downward): Likewise.
20753         (cosh_test_upward): Likewise.
20754         (sinh_test_tonearest): Likewise.
20755         (sinh_test_towardzero): Likewise.
20756         (sinh_test_downward): Likewise.
20757         (sinh_test_upward): Likewise.
20758         (main): Call the new functions.
20759         * sysdeps/i386/fpu/libm-test-ulps: Update.
20760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20761
20762 2012-03-05  Tom de Vries  <tom@codesourcery.com>
20763
20764         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
20765         default stack guard is set in last bytes.
20766         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
20767
20768 2012-03-05  Kees Cook  <keescook@chromium.org>
20769
20770         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
20771
20772         [BZ #13656]
20773         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
20774         possibly allocate from heap instead of stack.
20775         * stdio-common/bug-vfprintf-nargs.c: New file.
20776         * stdio-common/Makefile (tests): Add nargs overflow test.
20777
20778 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
20779
20780         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20781
20782 2012-03-03  Marek Polacek  <polacek@redhat.com>
20783
20784         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
20785         * math/math_private.h: Likewise.
20786         * stdlib/tst-strtod.c: Likewise.
20787         * sysdeps/i386/i486/bits/atomic.h: Likewise.
20788         * sysdeps/x86_64/bits/atomic.h: Likewise.
20789
20790 2012-03-02  David S. Miller  <davem@davemloft.net>
20791
20792         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
20793         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
20794         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
20795         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
20796         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
20797         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
20798         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
20799         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
20800
20801 2012-03-02  Roland McGrath  <roland@hack.frob.com>
20802
20803         [BZ #13792]
20804         * manual/examples/README: New file, says the example source files
20805         can be used under GPL>=2.
20806         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
20807         line containing just "*/".
20808         * manual/examples/add.c: Add copyright header (GPL>=2).
20809         * manual/examples/argp-ex1.c: Likewise.
20810         * manual/examples/argp-ex2.c: Likewise.
20811         * manual/examples/argp-ex3.c: Likewise.
20812         * manual/examples/argp-ex4.c: Likewise.
20813         * manual/examples/atexit.c: Likewise.
20814         * manual/examples/db.c: Likewise.
20815         * manual/examples/dir.c: Likewise.
20816         * manual/examples/dir2.c: Likewise.
20817         * manual/examples/execinfo.c: Likewise.
20818         * manual/examples/filecli.c: Likewise.
20819         * manual/examples/filesrv.c: Likewise.
20820         * manual/examples/fmtmsgexpl.c: Likewise.
20821         * manual/examples/genpass.c: Likewise.
20822         * manual/examples/inetcli.c: Likewise.
20823         * manual/examples/inetsrv.c: Likewise.
20824         * manual/examples/isockad.c: Likewise.
20825         * manual/examples/longopt.c: Likewise.
20826         * manual/examples/memopen.c: Likewise.
20827         * manual/examples/memstrm.c: Likewise.
20828         * manual/examples/mkfsock.c: Likewise.
20829         * manual/examples/mkisock.c: Likewise.
20830         * manual/examples/mygetpass.c: Likewise.
20831         * manual/examples/pipe.c: Likewise.
20832         * manual/examples/popen.c: Likewise.
20833         * manual/examples/rprintf.c: Likewise.
20834         * manual/examples/search.c: Likewise.
20835         * manual/examples/select.c: Likewise.
20836         * manual/examples/setjmp.c: Likewise.
20837         * manual/examples/sigh1.c: Likewise.
20838         * manual/examples/sigusr.c: Likewise.
20839         * manual/examples/stpcpy.c: Likewise.
20840         * manual/examples/strdupa.c: Likewise.
20841         * manual/examples/strftim.c: Likewise.
20842         * manual/examples/strncat.c: Likewise.
20843         * manual/examples/subopt.c: Likewise.
20844         * manual/examples/swapcontext.c: Likewise.
20845         * manual/examples/termios.c: Likewise.
20846         * manual/examples/testopt.c: Likewise.
20847         * manual/examples/testpass.c: Likewise.
20848         * manual/examples/timeval_subtract.c: Likewise.
20849
20850         [BZ #13792]
20851         * manual/time.texi (Elapsed Time): Move timeval_subtract example
20852         function to ...
20853         * manual/timeval_subtract.c.texi: ... here, new file.
20854
20855 2012-03-02  David S. Miller  <davem@davemloft.net>
20856
20857         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
20858
20859 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
20860
20861         [BZ #3976]
20862         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
20863         (__sin): Save and restore rounding mode and use round-to-nearest
20864         for all computations.
20865         (__cos): Save and restore rounding mode and use round-to-nearest
20866         for all computations.
20867         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
20868         <fenv.h>.
20869         (tan): Save and restore rounding mode and use round-to-nearest for
20870         all computations.
20871         * math/libm-test.inc (cos_test_tonearest): New function.
20872         (cos_test_towardzero): Likewise.
20873         (cos_test_downward): Likewise.
20874         (cos_test_upward): Likewise.
20875         (sin_test_tonearest): Likewise.
20876         (sin_test_towardzero): Likewise.
20877         (sin_test_downward): Likewise.
20878         (sin_test_upward): Likewise.
20879         (tan_test_tonearest): Likewise.
20880         (tan_test_towardzero): Likewise.
20881         (tan_test_downward): Likewise.
20882         (tan_test_upward): Likewise.
20883         (main): Call the new functions.
20884         * sysdeps/i386/fpu/libm-test-ulps: Update.
20885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20886
20887         [BZ #10135]
20888         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
20889         small n, then large n, before computing and testing k+n.
20890         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
20891         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
20892         Likewise.
20893         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
20894         Likewise.
20895         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
20896         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
20897         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
20898         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
20899         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20900         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20901         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
20902         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
20903         * math/libm-test.inc (scalbn_test): Add more tests.
20904         (scalbln_test): Likewise.
20905
20906         * manual/filesys.texi (mode_t): Describe constraints on size and
20907         signedness, not exact equivalence to a particular type.
20908         (ino_t): Likewise.
20909         (ino64_t): Likewise.
20910         (dev_t): Likewise.
20911         (nlink_t): Likewise.
20912         (blkcnt_t): Likewise.
20913         (blkcnt64_t): Likewise.
20914         * manual/llio.texi (off_t): Likewise.
20915
20916         [BZ #3976]
20917         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
20918         (__ieee754_exp): Save and restore rounding mode and use
20919         round-to-nearest for all computations.
20920         * math/libm-test.inc (exp_test_tonearest): New function.
20921         (exp_test_towardzero): Likewise.
20922         (exp_test_downward): Likewise.
20923         (exp_test_upward): Likewise.
20924         (main): Call the new functions.
20925         * sysdeps/i386/fpu/libm-test-ulps: Update.
20926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20927
20928 2012-03-01  Chris Demetriou  <cgd@google.com>
20929
20930         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
20931         have predictable order.
20932
20933 2012-03-01  David S. Miller  <davem@davemloft.net>
20934
20935         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
20936
20937         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
20938         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
20939         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
20940         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
20941
20942         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
20943         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
20944         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
20945         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
20946         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
20947         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
20948         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
20949         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
20950         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
20951
20952         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20953
20954         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
20955         * sysdeps/sparc/fpu/libm-test-ulps: to here.
20956         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
20957
20958         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
20959         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20960         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20961         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
20962         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
20963         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
20964         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
20965         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20966         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20967         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
20968         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
20969         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20970         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20971         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20972         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20973         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20974         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
20975         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
20976         * sysdeps/sparc/elf/configure: Regenerated.
20977
20978 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
20979
20980         * configure.in (AS, LD): Require binutils 2.20 or later.
20981         * configure: Regenerated.
20982         * manual/install.texi (Tools for Compilation): Give binutils 2.20
20983         as required minimum version.
20984         * INSTALL: Regenerated.
20985
20986         [BZ #2541]
20987         [BZ #4108]
20988         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
20989         before squaring exponent.
20990         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
20991         bottom long double and 27 bits of top long double before squaring
20992         exponent.
20993         * math/libm-test.inc (erfc_test): Add more tests.
20994         * sysdeps/i386/fpu/libm-test-ulps: Update.
20995         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20997
20998 2012-03-01  Kai Tietz  <ktietz@redhat.com>
20999
21000         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
21001         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
21002         containing bit-fields.
21003         * soft-fp/extended.h (_FP_UNION_E): Likewise.
21004         * soft-fp/single.h (_FP_UNION_S): Likewise.
21005         * soft-fp/double.h (_FP_UNION_D): Likewise.
21006
21007 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
21008
21009         [BZ #13786]
21010         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
21011         not include ../strcmp.S.
21012         [USE_AS_STRNCASECMP_L]: Likewise.
21013         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
21014         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
21015         * sysdeps/i386/i686/multiarch/strncase_l-c.c
21016         (__strncasecmp_l_ia32): Define as alias to
21017         __strncasecmp_l_nonascii.
21018
21019         [BZ #5794]
21020         * math/libm-test.inc (expm1_test): Add test for bug 5794.
21021         * sysdeps/i386/fpu/libm-test-ulps: Update.
21022         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21023
21024         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
21025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21026
21027 2012-02-29  Jeff Law  <law@redhat.com>
21028
21029         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
21030         out of bounds read.
21031
21032 2012-02-29  Marek Polacek  <polacek@redhat.com>
21033
21034         [BZ #13706]
21035         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
21036         * elf/Makefile: Add rules to run tst-unused-dep.out.
21037
21038 2012-02-28  David S. Miller  <davem@davemloft.net>
21039
21040         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
21041         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
21042         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
21043         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
21044         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
21045         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
21046
21047 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
21048
21049         * math/libm-test.inc (llround_test): Move one test from
21050         lround_test.  Use TEST_f_L in moved test.
21051         (lround_test): Move misplaced test to llround_test.  Add testcase
21052         from bug 2561.
21053
21054 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
21055
21056         * sysdeps/x86_64/fpu/e_expf.S: New file.
21057         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
21058
21059 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
21060
21061         [BZ #13637]
21062         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
21063         of remain_len that may cause incomplete multi-byte character and
21064         false match.
21065         * posix/bug-regex33.c: New file.
21066         * posix/Makefile (tests): Add bug-regex33.
21067
21068 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
21069
21070         * manual/macros.texi: New file.
21071         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
21072         * manual/libc.texinfo: Include macros.texi.
21073         * manual/creatute.texi: Likewise.
21074         * manual/install.texi: Likewise.
21075         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
21076         @glibcadj{} in references to the GNU C Library.
21077         * manual/charset.texi: Likewise.
21078         * manual/conf.texi: Likewise.
21079         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
21080         when not using those macros.
21081         * manual/creature.texi: Likewise.
21082         * manual/crypt.texi: Likewise.
21083         * manual/errno.texi: Likewise.
21084         * manual/filesys.texi: Likewise.
21085         * manual/header.texi: Likewise.
21086         * manual/install.texi: Likewise.
21087         * manual/intro.texi: Likewise.
21088         * manual/io.texi: Likewise.
21089         * manual/job.texi: Likewise.
21090         * manual/lang.texi: Likewise.
21091         * manual/libc.texiinfo: Likewise.
21092         * manual/llio.texi: Likewise.
21093         * manual/locale.texi: Likewise.
21094         * manual/maint.texi: Likewise.
21095         * manual/math.texi: Likewise.
21096         * manual/memory.texi: Likewise.
21097         * manual/message.texi: Likewise.
21098         * manual/nss.texi: Likewise.
21099         * manual/pattern.texi: Likewise.
21100         * manual/process.texi: Likewise.
21101         * manual/resource.texi: Likewise.
21102         * manual/search.texi: Likewise.
21103         * manual/setjmp.texi: Likewise.
21104         * manual/signal.texi: Likewise.
21105         * manual/socket.texi: Likewise.
21106         * manual/startup.texi: Likewise.
21107         * manual/stdio.texi: Likewise.
21108         * manual/string.texi: Likewise.
21109         * manual/sysinfo.texi: Likewise.
21110         * manual/syslog.texi: Likewise.
21111         * manual/terminal.texi: Likewise.
21112         * manual/time.texi: Likewise.
21113         * manual/users.texi: Likewise.
21114         * INSTALL: Regenerated.
21115         * NOTES: Regenerated.
21116         * sysdeps/gnu/errlist.c: Regenerated.
21117
21118 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
21119
21120         * include/dirent.h: Include <dirstream.h> before
21121         <dirent/dirent.h>.
21122
21123 2012-02-28  David S. Miller  <davem@davemloft.net>
21124
21125         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
21126         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
21127         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
21128         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
21129
21130 2012-02-27  David S. Miller  <davem@davemloft.net>
21131
21132         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
21133         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
21134         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
21135         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
21136
21137         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
21138         frame pointer instead of stack pointer relative arg slot.
21139         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
21140         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
21141         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
21142
21143 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
21144
21145         [BZ #3992]
21146         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
21147
21148 2012-02-27  David S. Miller  <davem@davemloft.net>
21149
21150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
21151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
21152         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
21153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
21154         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
21155         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
21156         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
21157         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
21158
21159 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
21160
21161         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
21162         later.  Allow versions 5-9.
21163         * configure: Regenerated.
21164         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
21165         required minimum version and 4.6 as recommended version.  Do not
21166         mention bugs in GCC 2.7 and 2.8.
21167         * INSTALL: Regenerated.
21168
21169 2012-02-27  David S. Miller  <davem@davemloft.net>
21170
21171         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
21172         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
21173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
21174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
21175         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
21176         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
21177         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
21178         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
21179
21180         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
21181         manipulate bits before adding and subtracting TWO112[sx].
21182         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
21183
21184 2012-02-27  Roland McGrath  <roland@hack.frob.com>
21185
21186         [BZ #13775]
21187         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
21188         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
21189         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
21190         being in POSIX, because they are in 1003.1-2008.
21191
21192         * rt/tst-aio.c: Include <fcntl.h>.
21193         * rt/tst-aio7.c: Likewise.
21194         * rt/tst-aio64.c: Likewise.
21195
21196         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
21197
21198 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
21199
21200         * manual/install.texi (--with-headers): Describe headers as
21201         interface headers, not private headers.
21202         (Specific advice for GNU/Linux systems): Describe use of headers
21203         from "make headers_install", not private headers from older
21204         kernels.
21205         * INSTALL: Regenerated.
21206         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
21207         Change to 2.6.19.
21208         * sysdeps/unix/sysv/linux/configure: Regenerated.
21209
21210         * manual/llio.texi (fclean): Remove documentation.
21211
21212         * manual/Makefile (libc-texi-generated): New variable.  Include
21213         version.texi.
21214         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
21215         $(libc-texi-generated), not duplicated list of files.
21216         (version.texi, stamp-version): New rules.
21217         (realclean): Remove $(libc-texi-generated), not individual files
21218         from that list.  Do not remove dir-add.texinfo.
21219         * manual/libc.texinfo: Comment out uses of edition numbers and
21220         references to printed manual.  Remove last-updated dates.
21221         (EDITION): Comment out.
21222         (ISBN): Likewise.
21223         (VERSION, UPDATED): Remove.
21224         (version.texi): Include.
21225
21226 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
21227
21228         * sysdeps/posix/spawni.c: Include <signal.h>.
21229         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
21230         * sysdeps/pthread/aio_fsync.c: Likewise.
21231
21232 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
21233
21234         * conform/Makefile (tests): Run only when not cross-compiling and
21235         when fast-check is not defined.
21236
21237         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
21238         * conform/data/limits.h-data: Fixes for POSIX2008.
21239         * conform/run-conformtest.sh: Run all tests.
21240         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
21241         headers.
21242         * include/bits/dlfcn.h: Likewise.
21243         * include/langinfo.h: Likewise.
21244         * include/monetary.h: Likewise.
21245         * include/sys/poll.h: Likewise.
21246
21247         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
21248         for __USE_GNU.
21249         * posix/spawn.h: Define __need_sigset_t.
21250         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
21251         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
21252         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
21253         to get sigevent_t only.
21254         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
21255         only for __USE_GNU.
21256         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21257         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
21258         process_vm_writev only for __USE_GNU.
21259         * termios/termios.h: Declare tcgetsid also for POSIX2008.
21260
21261         * conform/Makefile: For now ignore errors from run-conformtest.
21262         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
21263         POSIX to avoid namespace pollution.  Don't prepend headers.
21264         * conform/data/aio.h-data: Fixes for POSIX testing.
21265         * conform/data/fcntl.h-data: Likewise.
21266         * conform/data/glob.h-data: Likewise.
21267         * conform/data/grp.h-data: Likewise.
21268         * conform/data/pthread.h-data: Likewise.
21269         * conform/data/pwd.h-data: Likewise.
21270         * conform/data/signal.h-data: Likewise.
21271         * conform/data/spawn.h-data: Likewise.
21272         * conform/data/stdio.h-data: Likewise.
21273         * conform/data/stdlib.h-data: Likewise.
21274         * conform/data/stropts.h-data: Likewise.
21275         * conform/data/sys/mman.h-data: Likewise.
21276         * conform/data/sys/stat.h-data: Likewise.
21277         * conform/data/sys/types.h-data: Likewise.
21278         * conform/data/sys/wait.h-data: Likewise.
21279         * conform/data/time.h-data: Likewise.
21280         * conform/data/unistd.h-data: Likewise.
21281         * conform/data/utime.h-data: Likewise.
21282
21283         * io/sys/stat.h: fchmod was always in POSIX.
21284         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
21285         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
21286         * rt/aio.h: Define __need_timespec before including <time.h>.
21287         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
21288         struct.  Add forward declaration of pthread_attr_t and use it in
21289         sigevent.
21290         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
21291         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
21292         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
21293         always remove CLK_TCK definition.
21294
21295 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
21296
21297         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
21298
21299 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
21300
21301         * conform/run-conformtest.sh: New file.
21302         * conform/Makefile: Run run-conformtest for tests.
21303         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
21304         support.
21305
21306         * conform/data/uchar.h-data: New file.
21307         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
21308         * conform/data/arpa/inet.h-data: Likewise.
21309         * conform/data/assert.h-data: Likewise.
21310         * conform/data/complex.h-data: Likewise.
21311         * conform/data/cpio.h-data: Likewise.
21312         * conform/data/ctype.h-data: Likewise.
21313         * conform/data/dirent.h-data: Likewise.
21314         * conform/data/dlfcn.h-data: Likewise.
21315         * conform/data/errno.h-data: Likewise.
21316         * conform/data/fcntl.h-data: Likewise.
21317         * conform/data/float.h-data: Likewise.
21318         * conform/data/fmtmsg.h-data: Likewise.
21319         * conform/data/fnmatch.h-data: Likewise.
21320         * conform/data/ftw.h-data: Likewise.
21321         * conform/data/glob.h-data: Likewise.
21322         * conform/data/grp.h-data: Likewise.
21323         * conform/data/iconv.h-data: Likewise.
21324         * conform/data/inttypes.h-data: Likewise.
21325         * conform/data/langinfo.h-data: Likewise.
21326         * conform/data/libgen.h-data: Likewise.
21327         * conform/data/limits.h-data: Likewise.
21328         * conform/data/locale.h-data: Likewise.
21329         * conform/data/math.h-data: Likewise.
21330         * conform/data/monetary.h-data: Likewise.
21331         * conform/data/mqueue.h-data: Likewise.
21332         * conform/data/ndbm.h-data: Likewise.
21333         * conform/data/net/if.h-data: Likewise.
21334         * conform/data/netdb.h-data: Likewise.
21335         * conform/data/netinet/in.h-data: Likewise.
21336         * conform/data/nl_types.h-data: Likewise.
21337         * conform/data/poll.h-data: Likewise.
21338         * conform/data/pthread.h-data: Likewise.
21339         * conform/data/pwd.h-data: Likewise.
21340         * conform/data/regex.h-data: Likewise.
21341         * conform/data/sched.h-data: Likewise.
21342         * conform/data/search.h-data: Likewise.
21343         * conform/data/semaphore.h-data: Likewise.
21344         * conform/data/setjmp.h-data: Likewise.
21345         * conform/data/signal.h-data: Likewise.
21346         * conform/data/spawn.h-data: Likewise.
21347         * conform/data/stdarg.h-data: Likewise.
21348         * conform/data/stdio.h-data: Likewise.
21349         * conform/data/stdlib.h-data: Likewise.
21350         * conform/data/string.h-data: Likewise.
21351         * conform/data/strings.h-data: Likewise.
21352         * conform/data/stropts.h-data: Likewise.
21353         * conform/data/sys/ipc.h-data: Likewise.
21354         * conform/data/sys/mman.h-data: Likewise.
21355         * conform/data/sys/msg.h-data: Likewise.
21356         * conform/data/sys/resource.h-data: Likewise.
21357         * conform/data/sys/select.h-data: Likewise.
21358         * conform/data/sys/sem.h-data: Likewise.
21359         * conform/data/sys/shm.h-data: Likewise.
21360         * conform/data/sys/socket.h-data: Likewise.
21361         * conform/data/sys/stat.h-data: Likewise.
21362         * conform/data/sys/statvfs.h-data: Likewise.
21363         * conform/data/sys/time.h-data: Likewise.
21364         * conform/data/sys/timeb.h-data: Likewise.
21365         * conform/data/sys/times.h-data: Likewise.
21366         * conform/data/sys/types.h-data: Likewise.
21367         * conform/data/sys/uio.h-data: Likewise.
21368         * conform/data/sys/un.h-data: Likewise.
21369         * conform/data/sys/utsname.h-data: Likewise.
21370         * conform/data/sys/wait.h-data: Likewise.
21371         * conform/data/syslog.h-data: Likewise.
21372         * conform/data/tar.h-data: Likewise.
21373         * conform/data/termios.h-data: Likewise.
21374         * conform/data/utime.h-data: Likewise.
21375         * conform/data/utmpx.h-data: Likewise.
21376         * conform/data/varargs.h-data: Likewise.
21377         * conform/data/wchar.h-data: Likewise.
21378         * conform/data/wctype.h-data: Likewise.
21379         * conform/data/wordexp.h-data: Likewise.
21380
21381         * include/stropts.h: New file.
21382         * include/uchar.h: New file.
21383         * include/aio.h: Changes to allow conformtest.pl to use the headers.
21384         * include/assert.h: Likewise.
21385         * include/ctype.h: Likewise.
21386         * include/dirent.h: Likewise.
21387         * include/dlfcn.h: Likewise.
21388         * include/fcntl.h: Likewise.
21389         * include/fnmatch.h: Likewise.
21390         * include/glob.h: Likewise.
21391         * include/grp.h: Likewise.
21392         * include/libio.h: Likewise.
21393         * include/locale.h: Likewise.
21394         * include/math.h: Likewise.
21395         * include/net/if.h: Likewise.
21396         * include/netdb.h: Likewise.
21397         * include/netinet/in.h: Likewise.
21398         * include/pthread.h: Likewise.
21399         * include/pwd.h: Likewise.
21400         * include/regex.h: Likewise.
21401         * include/sched.h: Likewise.
21402         * include/search.h: Likewise.
21403         * include/setjmp.h: Likewise.
21404         * include/signal.h: Likewise.
21405         * include/stdio.h: Likewise.
21406         * include/stdlib.h: Likewise.
21407         * include/string.h: Likewise.
21408         * include/sys/cdefs.h: Likewise.
21409         * include/sys/mman.h: Likewise.
21410         * include/sys/msg.h: Likewise.
21411         * include/sys/resource.h: Likewise.
21412         * include/sys/select.h: Likewise.
21413         * include/sys/socket.h: Likewise.
21414         * include/sys/stat.h: Likewise.
21415         * include/sys/statvfs.h: Likewise.
21416         * include/sys/time.h: Likewise.
21417         * include/sys/times.h: Likewise.
21418         * include/sys/uio.h: Likewise.
21419         * include/sys/utsname.h: Likewise.
21420         * include/sys/wait.h: Likewise.
21421         * include/termios.h: Likewise.
21422         * include/time.h: Likewise.
21423         * include/ulimit.h: Likewise.
21424         * include/unistd.h: Likewise.
21425         * include/utime.h: Likewise.
21426         * include/wchar.h: Likewise.
21427         * include/wctype.h: Likewise.
21428         * include/wordexp.h: Likewise.
21429
21430         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
21431
21432         * time/time.h: TIME_UTC must be a macro.
21433         Make timespec_get available for ISO C11 only as well.
21434
21435 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
21436
21437         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
21438         Reported by Peng Haitao <penght@cn.fujitsu.com>.
21439
21440 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21441
21442         * configure.in: Use -o not -a in test for unsupported multi-arch.
21443
21444 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21445
21446         * manual/texinfo.tex: Update to version 2012-01-19.16.
21447
21448 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21449
21450         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
21451
21452 2012-02-24  Roland McGrath  <roland@hack.frob.com>
21453
21454         [BZ #13738]
21455         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
21456         * manual/fdl-1.3.texi: New file.
21457         * manual/fdl-1.1.texi: File removed.
21458
21459         [BZ #13738]
21460         * manual/libc.texinfo (FDL_VERSION): New @set.
21461         Use it for mention of FDL in cover text.
21462         (Documentation License): Use it in @include file name.
21463
21464 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21465             Roland McGrath  <roland@hack.frob.com>
21466
21467         [BZ #5461]
21468         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
21469         not LONG_LONG_MAX and LONG_LONG_MIN.
21470         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
21471         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
21472         name.
21473         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
21474
21475 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21476
21477         [BZ #2547]
21478         [BZ #11365]
21479         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
21480         manipulate bits before adding and subtracting TWO23[sx].
21481         * math/libm-test.inc (nearbyint_test): Add more tests.
21482
21483 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21484
21485         [BZ #2548]
21486         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
21487         bits before adding and subtracting TWO23[sx].
21488         * math/libm-test.inc (rint_test): Add more tests.
21489         (rint_test_tonearest): Likewise.
21490         (rint_test_towardzero): Likewise.
21491         (rint_test_downward): Likewise.
21492         (rint_test_upward: Likewise.
21493
21494 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21495
21496         [BZ #10110]
21497         * include/stdc-predef.h: New file.  Extracted from features.h.
21498         * include/features.h: Include stdc-predef.h.
21499         * Makefile (headers): Add stdc-predef.h.
21500         * CONFORMANCE (Compiler limitations): Update.
21501
21502 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21503
21504         * manual/libc.texinfo (VERSION, UPDATED): Revert.
21505
21506 2012-02-21  David S. Miller  <davem@davemloft.net>
21507
21508         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
21509         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
21510
21511 2012-02-20  David S. Miller  <davem@davemloft.net>
21512
21513         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
21514         using a normal save/restore sequence, rather than allocating a
21515         dummy stack frame just to store a frame pointer and restore.
21516         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21517
21518 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21519
21520         * manual/install.texi: Fix stray word in line-wrapped comment.
21521
21522 2012-02-20  David S. Miller  <davem@davemloft.net>
21523
21524         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
21525         both binutils and gcc support GOTDATA.
21526
21527         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
21528         "rd %pc" in the PIC register setup sequences.
21529
21530         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
21531         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
21532         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
21533         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
21534         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
21535         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
21536         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21537         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21538         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
21539         (SYSCALL_ERROR_HANDLER): Likewise.
21540         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
21541         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
21542         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
21543         (SYSCALL_ERROR_HANDLER): Likewise.
21544
21545         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
21546         (HAVE_GCC_GOTDATA): New.
21547         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
21548         relocation support in both binutils and gcc.
21549         * sysdeps/sparc/elf/configure: Regenerate.
21550
21551         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
21552         * sysdeps/sparc/sparc32/elf/configure: Delete.
21553         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
21554         * sysdeps/sparc/sparc64/elf/configure: Delete.
21555         * sysdeps/sparc/elf/configure.in: New file.
21556         * sysdeps/sparc/elf/configure: Generate.
21557
21558         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
21559         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
21560         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
21561         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
21562         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
21563
21564 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21565
21566         * manual/install.texi: Do not mention specific glibc version
21567         numbers.
21568         * manual/libc.texinfo (VERSION, UPDATED): Update.
21569         (@copying): Use @copyright{} and range of years.
21570
21571 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21572
21573         [BZ #13695]
21574         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
21575         [crti.S not in sysdirs] (generated): Do not append.
21576         [crti.S not in sysdirs] (omit-deps): Likewise.
21577         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
21578         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
21579         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
21580         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
21581         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
21582         Likewise.
21583         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
21584         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
21585         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
21586         * csu/defs.awk: Remove file.
21587         * sysdeps/generic/initfini.c: Likewise.
21588         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
21589         variable.
21590         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
21591         Likewise.
21592
21593 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21594
21595         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
21596         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
21597         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
21598         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
21599         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21600         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
21601         <bits/epoll.h>.
21602         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
21603         (__EPOLL_PACKED): Define to empty if not defined by
21604         <bits/epoll.h>.
21605         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
21606         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21607         bits/epoll.h.
21608
21609 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21610
21611         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
21612         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
21613         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
21614         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
21615         <bits/timerfd.h>.
21616         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
21617         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21618         bits/timerfd.h.
21619
21620 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21621
21622         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
21623         in C locale.
21624         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21625         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
21626         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
21627         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21628
21629 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
21630
21631         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21632         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
21633
21634 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21635
21636         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
21637         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
21638         defined.
21639         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
21640         Likewise.
21641         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
21642         entry for 2.16.
21643
21644 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
21645
21646         * math/w_acos.c: Use non-signaling floating-point comparisons.
21647         * math/w_acosf.c: Likewise.
21648         * math/w_acosh.c: Likewise.
21649         * math/w_acoshf.c: Likewise.
21650         * math/w_acoshl.c: Likewise.
21651         * math/w_acosl.c: Likewise.
21652         * math/w_asin.c: Likewise.
21653         * math/w_asinf.c: Likewise.
21654         * math/w_asinl.c: Likewise.
21655         * math/w_atanh.c: Likewise.
21656         * math/w_atanhf.c: Likewise.
21657         * math/w_atanhl.c: Likewise.
21658         * math/w_exp2.c: Likewise.
21659         * math/w_exp2f.c: Likewise.
21660         * math/w_exp2l.c: Likewise.
21661         * math/w_j0.c: Likewise.
21662         * math/w_j0f.c: Likewise.
21663         * math/w_j0l.c: Likewise.
21664         * math/w_j1.c: Likewise.
21665         * math/w_j1f.c: Likewise.
21666         * math/w_j1l.c: Likewise.
21667         * math/w_jn.c: Likewise.
21668         * math/w_jnf.c: Likewise.
21669         * math/w_log.c: Likewise.
21670         * math/w_log10.c: Likewise.
21671         * math/w_log10f.c: Likewise.
21672         * math/w_log10l.c: Likewise.
21673         * math/w_log2.c: Likewise.
21674         * math/w_log2f.c: Likewise.
21675         * math/w_log2l.c: Likewise.
21676         * math/w_logf.c: Likewise.
21677         * math/w_logl.c: Likewise.
21678         * math/w_sqrt.c: Likewise.
21679         * math/w_sqrtf.c: Likewise.
21680         * math/w_sqrtl.c: Likewise.
21681         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
21682         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
21683         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21684         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
21685         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
21686
21687 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21688
21689         [BZ #9739]
21690         * manual/string.texi (strnlen): Use correct parameter name in
21691         equivalent expression.
21692
21693 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21694
21695         [BZ #11174]
21696         * manual/users.texi (seteuid): Consistently use neweuid for
21697         argument name.
21698
21699 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21700
21701         [BZ #13704]
21702         * manual/nss.texi (Services in the NSS configuration): Correct
21703         list of services in example configuration file.
21704
21705 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
21706
21707         [BZ #11322]
21708         * manual/arith.texi: Remove statements about negative zero
21709         behaving identically to zero.
21710
21711 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21712
21713         [BZ #5993]
21714         * manual/install.texi: Do not document upgrading from libc5.
21715
21716 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21717
21718         [BZ #4596]
21719         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
21720
21721 2012-02-18  David S. Miller  <davem@davemloft.net>
21722
21723         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
21724         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
21725         %o7 across the call.
21726         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
21727         instead.
21728         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
21729         SETUP_PIC_REG_LEAF.
21730         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21731         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
21732         * sysdeps/sparc/crtn.S: Likewise.
21733
21734 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
21735
21736         * aout/Makefile: Remove.
21737
21738 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
21739
21740         [BZ #13058]
21741         * manual/examples/argp-ex1.c (main): Format definition in GNU
21742         style.
21743         * manual/examples/argp-ex2.c (main): Likewise.
21744         * manual/examples/argp-ex3.c (main): Likewise.
21745         * manual/examples/argp-ex4.c (main): Likewise.
21746         * manual/examples/longopt.c (main): Use new-style prototype
21747         definition.
21748         * manual/examples/strncat.c (main): Specify return type and use
21749         (void) for arguments.
21750         * manual/examples/subopt.c (main): Use char **argv argument.
21751
21752 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21753
21754         [BZ #5077]
21755         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
21756         rounding modes.
21757
21758 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
21759
21760         [BZ #6907]
21761         * manual/string.texi (strchr): Change when strchrnul is
21762         recommended.
21763
21764 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
21765
21766         [BZ #174]
21767         * manual/locale.texi (setlocale): Document LOCPATH.
21768
21769 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21770
21771         [BZ #10210]
21772         * manual/process.texi (execle): Move @dots{} before last argument.
21773
21774 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
21775
21776         [BZ #12047]
21777         * manual/charset.texi (Generic Charset Conversion): Fix typo
21778         (LC_TYPE -> LC_CTYPE).
21779
21780 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
21781
21782         [BZ #5805]
21783         * manual/arith.texi (scalbn): Use @var{} on parameter names.
21784         (scalbnf): Likewise.
21785         (scalbnl): Likewise.
21786         (scalbln): Likewise.
21787         (scalblnf): Likewise.
21788         (scalblnl): Likewise.
21789         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
21790         (vwarnx): Likewise.
21791         (verr): Likewise.
21792         (verrx): Likewise.
21793         * manual/filesys.texi (telldir): Use braces around return type.
21794         * manual/llio.texi (mmap): Add space after comma.
21795         (mmap64): Likewise.
21796         * manual/math.texi (jn): Use @var{} on parameter names.
21797         (jnf): Likewise.
21798         (jnl): Likewise.
21799         (yn): Likewise.
21800         (ynf): Likewise.
21801         (ynl): Likewise.
21802         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
21803         line.
21804         * manual/resource.texi (ulimit): Use @dots{} instead of literal
21805         "...".
21806         (sched_get_priority_min): Remove semicolon on @deftypefun line.
21807         (sched_get_priority_max): Likewise.
21808         * manual/signal.texi (sigvec): Add space after comma.
21809         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
21810         names.
21811         (if_indextoname): Likewise.
21812         (if_freenameindex): Likewise.
21813         (sendto): Use ',' instead of '.' in prototype.
21814         * manual/startup.texi (syscall): Use @dots{} instead of literal
21815         "...".
21816         * manual/stdio.texi (__fpending): Separate initial words of
21817         paragraph from @deftypefun line.
21818         * manual/syslog.texi (syslog): Use @dots{} instead of literal
21819         "...".
21820         (vsyslog): Use @var{} on parameter names.
21821         * manual/terminal.texi (stty): Use @var{} on parameter names.
21822         * manual/users.texi (getutmp): Use @var{} on parameter names.
21823         (getutmpx): Likewise.
21824
21825 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21826
21827         [BZ #6884]
21828         * manual/stdio.texi (fopen): Fix typos in description of
21829         ",ccs=STRING".
21830
21831 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
21832
21833         [BZ #4026]
21834         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
21835         get clock_id definition.
21836
21837 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
21838
21839         [BZ #4822]
21840         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
21841         (madvise): Cast every argument to void on its own.
21842
21843 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21844
21845         [BZ #9902]
21846         * manual/startup.texi (Exit Status): Fix typo.
21847
21848 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21849
21850         [BZ #10140]
21851         * manual/examples/argp-ex1.c: Include <stdlib.h>.
21852         * manual/examples/argp-ex2.c: Likewise.
21853         * manual/examples/argp-ex3.c: Likewise.
21854
21855 2012-02-16  Richard Henderson  <rth@redhat.com>
21856
21857         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
21858         * sysdeps/s390/s390-32/initfini.c: Remove.
21859         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
21860         * sysdeps/s390/s390-64/initfini.c: Remove.
21861
21862 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21863
21864         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
21865         compiler output for sysdeps/generic/initfini.c.
21866         * sysdeps/sh/elf/initfini.c: Remove file.
21867
21868 2012-02-16  David S. Miller  <davem@davemloft.net>
21869
21870         [BZ #11494]
21871         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
21872
21873         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
21874         * sysdeps/sparc/crti.S: New file.
21875         * sysdeps/sparc/crtn.S: New file.
21876         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
21877         * sysdeps/sparc/sparc64/Makefile: Likewise.
21878
21879 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
21880
21881         [BZ #3335]
21882         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
21883
21884 2012-02-15  Roland McGrath  <roland@hack.frob.com>
21885
21886         [BZ #4822]
21887         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
21888
21889         * mach/devstream.c (cookie_io_functions_t): Macro removed.
21890         (write, read, close): Likewise.
21891         Patch by Aurelien Jarno <aurelien@aurel32.net>.
21892
21893 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
21894
21895         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
21896         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
21897         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
21898         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
21899         <bits/signalfd.h>.
21900         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
21901         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21902         bits/signalfd.h.
21903
21904 2012-02-14  Marek Polacek  <polacek@redhat.com>
21905
21906         * sysdeps/x86_64/crti.S: New file.
21907         * sysdeps/x86_64/crtn.S: New file.
21908         * sysdeps/x86_64/elf/initfini.c: Remove file.
21909
21910 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21911
21912         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
21913         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
21914         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
21915         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
21916         <bits/inotify.h>.
21917         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
21918         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21919         bits/inotify.h.
21920
21921 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21922
21923         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
21924         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
21925         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
21926         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
21927         <bits/eventfd.h>.
21928         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
21929         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21930         bits/eventfd.h.
21931
21932 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
21933
21934         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
21935         __feraiseexcept instead of feraiseexcept.
21936
21937         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
21938         nanosleep invocations.
21939         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
21940         strings, and add error checking for a nanosleep invocations.
21941
21942 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21943
21944         Replace FSF snail mail address with URLs, as per GNU coding standards.
21945         Most of the snail mail addresses were wrong anyway, and omitting
21946         them makes the source code easier to maintain.  Almost all of the
21947         changes are to license notices and to locale LC_IDENTIFICATION
21948         addresses, except for this one:
21949         * manual/libc.texinfo: In "Published by", give the FSF's URL,
21950         not its snail mail address.
21951
21952 2012-02-09  Richard Henderson  <rth@twiddle.net>
21953
21954         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
21955         of kernel-features.h.
21956
21957         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
21958
21959 2012-02-08  Marek Polacek  <polacek@redhat.com>
21960
21961         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
21962         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
21963         * sysdeps/gnu/_G_config.h: Likewise.
21964         * sysdeps/generic/_G_config.h: Likewise.
21965
21966 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
21967
21968         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
21969         tests.
21970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21971
21972         * sysdeps/powerpc/powerpc32/crti.S: New file.
21973         * sysdeps/powerpc/powerpc32/crtn.S: New file.
21974         * sysdeps/powerpc/powerpc64/crti.S: New file.
21975         * sysdeps/powerpc/powerpc64/crtn.S: New file.
21976
21977         * Makeconfig (have-initfini): Don't set.
21978         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
21979         * configure.in (nopic_initfini): Don't substitute.
21980         * config.h.in (HAVE_INITFINI): Don't #undef.
21981         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
21982         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
21983
21984 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
21985
21986         Support crti.S and crtn.S provided directly by architectures.
21987         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
21988         [crti.S in sysdirs] (omit-deps): Likewise.
21989         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
21990         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
21991         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
21992         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
21993         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
21994         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
21995         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
21996         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
21997         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
21998         compiler output for sysdeps/generic/initfini.c.
21999         * sysdeps/i386/elf/Makefile: Remove file.
22000         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
22001
22002 2012-02-07  Marek Polacek  <polacek@redhat.com>
22003
22004         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
22005         * sysdeps/gnu/_G_config.h: Likewise.
22006         * sysdeps/mach/hurd/_G_config.h: Likewise.
22007
22008 2012-02-07  Marek Polacek  <polacek@redhat.com>
22009
22010         * math/Makefile (tests): Add tst-CMPLX2.
22011         * math/tst-CMPLX2.c: New file.
22012
22013 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
22014
22015         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22016
22017         * math/libm-test.inc (jn_test): Add missing L suffix.
22018
22019 2012-02-06  Marek Polacek  <polacek@redhat.com>
22020
22021         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
22022         * sysdeps/i386/fpu/e_powf.S: Likewise.
22023         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
22024         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
22025         * sysdeps/i386/fpu/e_acosh.S: Likewise.
22026         * sysdeps/i386/fpu/e_pow.S: Likewise.
22027         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
22028         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
22029         * sysdeps/i386/fpu/s_expm1.S: Likewise.
22030         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
22031         * sysdeps/i386/fpu/e_log2.S: Likewise.
22032         * sysdeps/i386/fpu/e_log2l.S: Likewise.
22033         * sysdeps/i386/fpu/e_scalb.S: Likewise.
22034         * sysdeps/i386/fpu/e_powl.S: Likewise.
22035         * sysdeps/i386/fpu/s_log1p.S: Likewise.
22036         * sysdeps/i386/fpu/e_log10f.S: Likewise.
22037         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
22038         * sysdeps/i386/fpu/e_logl.S: Likewise.
22039         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
22040         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
22041         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
22042         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
22043         * sysdeps/i386/fpu/e_log2f.S: Likewise.
22044         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
22045         * sysdeps/i386/fpu/e_log.S: Likewise.
22046         * sysdeps/i386/fpu/s_cexp.S: Likewise.
22047         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
22048         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
22049         * sysdeps/i386/fpu/e_logf.S: Likewise.
22050         * sysdeps/i386/fpu/e_log10l.S: Likewise.
22051         * sysdeps/i386/fpu/e_atanh.S: Likewise.
22052         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
22053         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
22054         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
22055         * sysdeps/i386/fpu/e_log10.S: Likewise.
22056         * sysdeps/i386/fpu/s_frexp.S: Likewise.
22057         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
22058         * sysdeps/i386/fpu/s_asinh.S: Likewise.
22059         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
22060         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
22061         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
22062         * sysdeps/i386/asm-syntax.h: Likewise.
22063         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
22064         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
22065         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
22066         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
22067         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
22068         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
22069         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
22070         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
22071         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
22072         * sysdeps/powerpc/sysdep.h: Likewise.
22073         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22074         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
22075
22076 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
22077
22078         [BZ #411]
22079         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
22080
22081 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
22082
22083         * sysdeps/i386/sysdep.h: Include <features.h>.
22084         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
22085         version.
22086
22087 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
22088
22089         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
22090         Define.
22091         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
22092         LOAD_PIC_REG_STR.
22093
22094 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22095
22096         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
22097         (SETUP_PIC_REG): Use GET_PC_THUNK.
22098         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
22099         macro.
22100
22101 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22102
22103         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
22104         for non-PIC compilation.
22105         (SETUP_PIC_REG): Add .p2align directive.
22106         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
22107         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
22108         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
22109         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
22110         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
22111         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
22112         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
22113         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
22114         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22115         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22116         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22117         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22118         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22119         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22120         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
22121         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
22122         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
22123         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
22124         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
22125         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
22126         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
22127         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
22128         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
22129         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
22130         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
22131         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
22132         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22133         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
22134         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
22135         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
22136         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
22137         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22138         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
22139         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
22140         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
22141         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
22142         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
22143         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
22144         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
22145         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
22146         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
22147
22148 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22149
22150         * math/tst-CMPLX.c: Include <stdio.h>.
22151
22152 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
22153
22154         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
22155         float.
22156         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
22157         * sysdeps/sparc/bits/mathdef.h: Likewise.
22158
22159 2012-01-31  Marek Polacek  <polacek@redhat.com>
22160
22161         * libio/libio.h: Don't define _PARAMS.
22162         * locale/programs/config.h: Don't define PARAMS.
22163         * stdlib/strtol_l.c: Likewise.
22164         (__strtol_l): Remove PARAMS from the prototype.
22165
22166 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
22167
22168         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
22169         names.  Just use the correct names.  Remove unnecessary wrapper
22170         functions.
22171         * malloc/arena.c: Likewise.
22172         * malloc/hooks.c: Likewise.
22173
22174         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
22175         ARENA_TEST says not to.  Simplify test for creation of a new arena.
22176         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
22177
22178 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
22179
22180         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
22181         into tail calls.
22182         (update_get_addr): New function.
22183         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
22184         GET_ADDR_MODULE parameter.
22185
22186 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
22187
22188         * crypt/cert.c: Remove __STDC__ conditionals.
22189         * crypt/crypt-entry.c: Likewise.
22190         * crypt/crypt_util.c: Likewise.
22191         * libio/filedoalloc.c: Likewise.
22192         * libio/fileops.c: Likewise.
22193         * libio/genops.c: Likewise.
22194         * libio/iofclose.c: Likewise.
22195         * libio/iofdopen.c: Likewise.
22196         * libio/iofopen.c: Likewise.
22197         * libio/iofopen64.c: Likewise.
22198         * libio/iogetdelim.c: Likewise.
22199         * libio/iopopen.c: Likewise.
22200         * libio/obprintf.c: Likewise.
22201         * libio/oldfileops.c: Likewise.
22202         * libio/oldiofclose.c: Likewise.
22203         * libio/oldiofdopen.c: Likewise.
22204         * libio/oldiofopen.c: Likewise.
22205         * libio/oldiopopen.c: Likewise.
22206         * libio/wfiledoalloc.c: Likewise.
22207         * libio/wgenops.c: Likewise.
22208         * locale/programs/xmalloc.c: Likewise.
22209         * misc/syslog.c: Likewise.
22210         * stdio-common/xbug.c: Likewise.
22211         * string/memchr.c: Likewise.
22212         * string/memcmp.c: Likewise.
22213         * string/memrchr.c: Likewise.
22214         * string/rawmemchr.c: Likewise.
22215         * sysdeps/posix/getcwd.c: Likewise.
22216         * time/strftime_l.c: Likewise.
22217
22218 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
22219
22220         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
22221         * config.make.in (config-cflags-sse2avx): Define.
22222         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
22223         Fix typo.
22224
22225 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
22226
22227         * scripts/config.guess: Update from upstream config git repository.
22228         * scripts/config.sub: Likewise.
22229
22230 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
22231
22232         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
22233         (EM_NUM): Update.
22234         (R_TILEPRO_*, R_TILEGX_*): New macros.
22235
22236         * scripts/firstversions.awk: Fix bug in version range handling.
22237
22238         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
22239
22240         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
22241
22242         * include/sys/epoll.h: New file.
22243         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
22244         libc_hidden_def.
22245
22246 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
22247
22248         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
22249         Avoid unnecessary __WORDSIZE == 64 test.
22250         (fmaxf): Use VEX format if possible.
22251         (fmax): Likewise.
22252         (fminf): Likewise.
22253         (fmin): Likewise.
22254
22255         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
22256         * math/math_private.h: Remove libc_fegetround* and
22257         libc_fesetround*.
22258         * sysdeps/i386/configure.in: Check for -msse2avx.
22259         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
22260         also if SSE2AVX is defined.
22261         Remove libc_fegetround* and libc_fesetround*.
22262         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
22263         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
22264         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
22265         of HAS_YMM_USABLE.
22266         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22267         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22268         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22269         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22270         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22271
22272         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
22273
22274 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22275
22276         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
22277         size is not set.
22278         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
22279
22280 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
22281
22282         [BZ #13618]
22283         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
22284         relocation.
22285         * Makeconfig (libm): Define.
22286         * elf/Makefile: Add rules to build and run tst-relsort1.
22287         * elf/tst-relsort1.c: New file.
22288         * elf/tst-relsort1mod1.c: New file.
22289         * elf/tst-relsort1mod2.c: New file.
22290
22291 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
22292
22293         * math/s_ldexp.c: Remove __STDC__ conditionals.
22294         * math/s_ldexpf.c: Likewise.
22295         * math/s_ldexpl.c: Likewise.
22296         * math/s_nextafter.c: Likewise.
22297         * math/s_nexttowardf.c: Likewise.
22298         * math/s_significand.c: Likewise.
22299         * math/s_significandf.c: Likewise.
22300         * math/s_significandl.c: Likewise.
22301         * math/w_jnl.c: Likewise.
22302         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
22303         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
22304         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
22305         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
22306         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
22307         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
22308         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
22309         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
22310         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
22311         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
22312         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
22313         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22314         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
22315         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
22316         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
22317         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
22318         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
22319         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
22320         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
22321         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
22322         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
22323         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
22324         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
22325         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
22326         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
22327         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
22328         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
22329         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
22330         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
22331         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
22332         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
22333         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
22334         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
22335         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
22336         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
22337         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
22338         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
22339         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
22340         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
22341         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
22342         * sysdeps/ieee754/k_standard.c: Likewise.
22343         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
22344         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
22345         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
22346         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
22347         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
22348         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
22349         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
22350         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
22351         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
22352         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
22353         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
22354         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
22355         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
22356         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
22357         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
22358         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
22359         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
22360         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
22361         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
22362         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
22363         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
22364         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
22365         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
22366         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
22367         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
22368         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
22369         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
22370         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
22371         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
22372         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
22373         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
22374         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
22375         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
22376         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
22377         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
22378         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
22379         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
22380         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
22381         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
22382         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
22383         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
22384         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
22385         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22386         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
22387         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
22388         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
22389         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
22390         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
22391         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
22392         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22393         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
22394         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
22395         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
22396         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
22397         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
22398         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
22399         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
22400         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
22401         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
22402         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
22403         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
22404         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
22405         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
22406         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
22407         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
22408         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
22409         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
22410         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
22411         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
22412         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
22413         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
22414         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
22415         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
22416         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
22417         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
22418         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
22419         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
22420         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
22421         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
22422         * sysdeps/ieee754/s_matherr.c: Likewise.
22423         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
22424         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
22425         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
22426         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
22427
22428 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
22429
22430         * crypt/md5.h: Remove __STDC__ conditionals.
22431         * libio/libioP.h: Likewise.
22432         * locale/programs/config.h: Likewise.
22433         * sysdeps/generic/sysdep.h: Likewise.
22434         * sysdeps/i386/asm-syntax.h: Likewise.
22435         * sysdeps/s390/asm-syntax.h: Likewise.
22436         * sysdeps/unix/sysdep.h: Likewise.
22437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
22438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22439
22440 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
22441
22442         * libio/libio.h: Remove __STDC__ conditionals.
22443         * malloc/obstack.h: Likewise.
22444         * math/complex.h: Likewise.
22445         * math/math.h: Likewise.
22446         * sysdeps/generic/_G_config.h: Likewise.
22447         * sysdeps/gnu/_G_config.h: Likewise.
22448         * sysdeps/mach/hurd/_G_config.h: Likewise.
22449         * sysdeps/powerpc/bits/mathdef.h: Likewise.
22450         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
22451         * sysdeps/sparc/bits/mathdef.h: Likewise.
22452
22453 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
22454
22455         [BZ #13583]
22456         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
22457         Clean up HAS_* macros.
22458         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
22459         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
22460         possible.
22461         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
22462         HAS_AVX.
22463         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22464         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22465         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22466         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22467         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22468
22469 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
22470
22471         * elf/tst-unique3.cc (gets): Remove declaration.
22472         * elf/tst-unique3lib.cc (gets): Likewise.
22473         * elf/tst-unique3lib2.cc (gets): Likewise.
22474         * elf/tst-unique4.cc (gets): Likewise.
22475
22476 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
22477
22478         * include/stdio.h: Add C++ protection.  Add gets declarations and
22479         definitions.
22480         * debug/tst-chk1.c: Don't declare gets here.
22481         * stdio-common/tst-gets.c: Likewise.
22482
22483 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
22484
22485         * posix/glob: Remove directory.
22486
22487 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
22488
22489         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
22490
22491 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
22492
22493         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
22494         of the non-standard EPFNOSUPPORT.
22495
22496 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22497
22498         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
22499         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
22500         ANYWHERE set to 1 only on KERN_NO_SPACE error.
22501
22502 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
22503
22504         * wcsmbs/uchar.h: Test __STDC_VERSION__.
22505
22506 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
22507
22508         * nscd/aicache.c (addhstaiX): Do not cache negative results of
22509         transient errors.
22510         * nscd/grpcache.c (cache_addgr): Likewise.
22511         * nscd/hstcache.c (cache_addhst): Likewise.
22512         * nscd/initgrcache.c (addinitgroupsX): Likewise.
22513         * nscd/pwdcache.c (cache_addpw): Likewise.
22514         * nscd/servicescache.c (cache_addserv): Likewise.
22515
22516 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
22517
22518         * malloc/malloc.c: Various cleanups.
22519         * malloc/hooks.c: Likewise.
22520
22521         * stdlib/Makefile (tests): Add bug-fmtmsg1.
22522         * stdlib/bug-fmtmsg1.c: New file.
22523
22524         * stdlib/fmtmsg.c (init): Add missing unlock.
22525         Patch by Peng Haitao <penght@cn.fujitsu.com>.
22526
22527 2012-01-12  Marek Polacek  <polacek@redhat.com>
22528
22529         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
22530         and _GNU_SOURCE.
22531
22532 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
22533
22534         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
22535         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
22536         macro to ensure uniqueness of label name.
22537         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22538         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22539
22540 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
22541
22542         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
22543
22544         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
22545         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
22546         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
22547         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
22548
22549 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
22550
22551         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
22552
22553         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
22554         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
22555         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
22556
22557         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
22558
22559         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
22560         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
22561         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
22562         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
22563
22564         * math/bits/math-finite.h: Add ldexp support.
22565
22566 2012-01-10  Marek Polacek  <polacek@redhat.com>
22567
22568         * locale/programs/localedef.h (show_archive_content): Add noreturn
22569         attribute.
22570
22571 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
22572
22573         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
22574
22575 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22576
22577         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
22578
22579         * io/Makefile (headers): Add bits/poll2.h.
22580
22581 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
22582
22583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
22584         typo #include statement.
22585
22586 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22587
22588         * include/sys/cdefs.h: Define __attribute_alloc_size.
22589         * catgets/gencat.c: Add alloc_size attribute and apply consistently
22590         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
22591         * elf/pldd.c: Likewise.
22592         * iconv/iconv_charmap.c: Likewise.
22593         * iconv/iconvconfig.c: Likewise.
22594         * iconv/strtab.c: Likewise.
22595         * locale/programs/locale.c: Likewise.
22596         * locale/programs/localedef.h: Likewise.
22597         * locale/programs/simple-hash.c: Likewise.
22598         * nscd/nscd.h: Likewise.
22599         * nss/makedb.c: Likewise.
22600         * sysdeps/generic/ldconfig.h: Likewise.
22601         * locale/programs/localedef.c: Remove xmalloc prototype.
22602         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
22603
22604 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
22605
22606         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
22607         appropriate.
22608
22609 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22610
22611         * math/Makefile (tests): Add tst-CMPLX.
22612         * math/tst-CMPLX.c: New file.
22613
22614         * math/complex.h (CMPLXL): Fix typo.
22615
22616         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
22617         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
22618         GLIBC_2.16.
22619         * debug/tst-chk1.c: Add poll and ppoll tests.
22620         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
22621         * include/sys/poll.h: Add hidden proto for ppoll.
22622         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
22623         * sysdeps/mach/hurd/ppoll.c: Likewise.
22624         * io/ppoll.c: Likewise.
22625         * debug/poll_chk.c: New file.
22626         * debug/ppoll_chk.c: New file.
22627         * include/bits/poll2.h: New file.
22628         * io/bits/poll2.h: New file.
22629
22630         [BZ #1350]
22631         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
22632
22633         * configure.in: static is always set to yes.  Remove.
22634         * config.make.in: Don't set build-static.
22635         * Makeconfig: Remove use of build-static.
22636         * dlfcn/Makefile: Likewise.
22637         * elf/Makefile: Likewise.
22638         * math/Makefile: Likewise.
22639         * misc/Makefile: Likewise.
22640         * nptl/Makefile: Likewise.
22641         * sysdeps/mach/hurd/Makefile: Likewise.
22642
22643         * configure.in: PWD_P is not used anymore.
22644         * config.make.in: Remove PWD_P entry.
22645
22646         * configure.in: Remove last remnants of RANLIB.
22647         No need to check for signed size_t anymore.
22648         Don't set libc_commonpagesize and libc_relro_required here for Alpha
22649         and IA-64.
22650         Remove __builtin_expect test because we require at least gcc 3.4.
22651         * aclocal.m4: Likewise.
22652
22653         * wcsmbs/mbrtoc16.c: Implement using towc function.
22654         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
22655         * wcsmbs/wcsmbsload.c: Likewise.
22656         * iconv/gconv_simple.c: Likewise.
22657         * iconv/gconv_int.h: Likewise.
22658         * iconv/gconv_builtin.h: Likewise.
22659         * iconv/iconv_prog.c: Remove CHAR16 handling.
22660
22661         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
22662
22663         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
22664
22665         * configure.in: Remove --with-elf and --enable-bounded options.
22666         Dont set base_machine for ia64.  More non-ELF conditions removed.
22667         Remove testing and setting of leading underscore information.
22668         * config.make.in (build-bounded): Set to no.
22669         * config.h.in: Remove NO_UNDERSCORES entry.
22670         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
22671         them.
22672         * csu/start.c: Remove !NO_UNDERSCORE code.
22673         * locale/localeinfo.h: Likewise.
22674         * sysdeps/generic/machine-gmon.h: Likewise.
22675         * sysdeps/generic/sysdep.h: Likewise.
22676         * sysdeps/i386/sysdep.h: Likewise.
22677         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22678         * sysdeps/mach/sysdep.h: Likewise.
22679         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22680         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22681         * sysdeps/sh/sysdep.h: Likewise.
22682         * sysdeps/sparc/sparc32/alloca.S: Likewise.
22683         * sysdeps/unix/i386/sysdep.S: Likewise.
22684         * sysdeps/unix/sparc/start.c: Likewise.
22685         * sysdeps/unix/sparc/sysdep.S: Likewise.
22686         * sysdeps/unix/sparc/sysdep.h: Likewise.
22687         * sysdeps/unix/start.c: Likewise.
22688         * sysdeps/unix/x86_64/sysdep.S: Likewise.
22689         * sysdeps/x86_64/sysdep.h: Likewise.
22690
22691 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
22692
22693         [BZ #13553]
22694         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
22695         for non-gcc.
22696         * argp/argp-fmtstream.h: Use const instead __const.
22697         * argp/argp.h: Likewise.
22698         * assert/assert.h: Likewise.
22699         * bits/fenv.h: Likewise.
22700         * bits/sched.h: Likewise.
22701         * bits/sigset.h: Likewise.
22702         * bits/sigthread.h: Likewise.
22703         * catgets/nl_types.h: Likewise.
22704         * conform/data/pthread.h-data: Likewise.
22705         * crypt/crypt-private.h: Likewise.
22706         * crypt/crypt.h: Likewise.
22707         * crypt/crypt_util.c: Likewise.
22708         * ctype/ctype.h: Likewise.
22709         * debug/execinfo.h: Likewise.
22710         * debug/mbsnrtowcs_chk.c: Likewise.
22711         * debug/mbsrtowcs_chk.c: Likewise.
22712         * debug/wcsnrtombs_chk.c: Likewise.
22713         * debug/wcsrtombs_chk.c: Likewise.
22714         * debug/wcstombs_chk.c: Likewise.
22715         * dirent/dirent.h: Likewise.
22716         * dlfcn/dlfcn.h: Likewise.
22717         * elf/neededtest4.c: Likewise.
22718         * grp/grp.h: Likewise.
22719         * gshadow/gshadow.h: Likewise.
22720         * iconv/gconv.h: Likewise.
22721         * iconv/gconv_int.h: Likewise.
22722         * iconv/gconv_simple.c: Likewise.
22723         * iconv/iconv.h: Likewise.
22724         * iconv/loop.c: Likewise.
22725         * iconv/skeleton.c: Likewise.
22726         * include/aio.h: Likewise.
22727         * include/aliases.h: Likewise.
22728         * include/argz.h: Likewise.
22729         * include/arpa/inet.h: Likewise.
22730         * include/assert.h: Likewise.
22731         * include/dirent.h: Likewise.
22732         * include/dlfcn.h: Likewise.
22733         * include/execinfo.h: Likewise.
22734         * include/fcntl.h: Likewise.
22735         * include/fenv.h: Likewise.
22736         * include/glob.h: Likewise.
22737         * include/grp.h: Likewise.
22738         * include/libintl.h: Likewise.
22739         * include/mntent.h: Likewise.
22740         * include/netdb.h: Likewise.
22741         * include/pwd.h: Likewise.
22742         * include/rpc/netdb.h: Likewise.
22743         * include/sched.h: Likewise.
22744         * include/search.h: Likewise.
22745         * include/shadow.h: Likewise.
22746         * include/signal.h: Likewise.
22747         * include/stdio.h: Likewise.
22748         * include/stdlib.h: Likewise.
22749         * include/string.h: Likewise.
22750         * include/sys/socket.h: Likewise.
22751         * include/sys/stat.h: Likewise.
22752         * include/sys/statfs.h: Likewise.
22753         * include/sys/statvfs.h: Likewise.
22754         * include/sys/syslog.h: Likewise.
22755         * include/sys/time.h: Likewise.
22756         * include/sys/uio.h: Likewise.
22757         * include/time.h: Likewise.
22758         * include/unistd.h: Likewise.
22759         * include/utmp.h: Likewise.
22760         * include/wchar.h: Likewise.
22761         * include/wctype.h: Likewise.
22762         * inet/aliases.h: Likewise.
22763         * inet/arpa/inet.h: Likewise.
22764         * inet/netinet/ether.h: Likewise.
22765         * inet/netinet/in.h: Likewise.
22766         * intl/libintl.h: Likewise.
22767         * io/bits/fcntl2.h: Likewise.
22768         * io/fcntl.h: Likewise.
22769         * io/ftw.h: Likewise.
22770         * io/sys/poll.h: Likewise.
22771         * io/sys/stat.h: Likewise.
22772         * io/sys/statfs.h: Likewise.
22773         * io/sys/statvfs.h: Likewise.
22774         * io/utime.h: Likewise.
22775         * libio/bits/stdio.h: Likewise.
22776         * libio/bits/stdio2.h: Likewise.
22777         * libio/libio.h: Likewise.
22778         * libio/libioP.h: Likewise.
22779         * libio/stdio.h: Likewise.
22780         * locale/lc-ctype.c: Likewise.
22781         * locale/locale.h: Likewise.
22782         * login/utmp.h: Likewise.
22783         * malloc/arena.c: Likewise.
22784         * malloc/malloc.c: Likewise.
22785         * malloc/malloc.h: Likewise.
22786         * malloc/mcheck.c: Likewise.
22787         * malloc/mtrace.c: Likewise.
22788         * math/bits/mathcalls.h: Likewise.
22789         * math/fenv.h: Likewise.
22790         * math/math_private.h: Likewise.
22791         * misc/bits/error.h: Likewise.
22792         * misc/bits/syslog.h: Likewise.
22793         * misc/err.h: Likewise.
22794         * misc/error.h: Likewise.
22795         * misc/fstab.h: Likewise.
22796         * misc/mntent.h: Likewise.
22797         * misc/regexp.h: Likewise.
22798         * misc/search.h: Likewise.
22799         * misc/sgtty.h: Likewise.
22800         * misc/sys/mman.h: Likewise.
22801         * misc/sys/syslog.h: Likewise.
22802         * misc/sys/uio.h: Likewise.
22803         * misc/sys/xattr.h: Likewise.
22804         * misc/ttyent.h: Likewise.
22805         * nis/rpcsvc/ypclnt.h: Likewise.
22806         * nss/nss.h: Likewise.
22807         * posix/bits/unistd.h: Likewise.
22808         * posix/fnmatch.h: Likewise.
22809         * posix/glob.h: Likewise.
22810         * posix/sched.h: Likewise.
22811         * posix/spawn.h: Likewise.
22812         * posix/sys/wait.h: Likewise.
22813         * posix/unistd.h: Likewise.
22814         * posix/wordexp.h: Likewise.
22815         * pwd/pwd.h: Likewise.
22816         * resolv/netdb.h: Likewise.
22817         * resource/sys/resource.h: Likewise.
22818         * rt/aio.h: Likewise.
22819         * rt/bits/mqueue2.h: Likewise.
22820         * rt/mqueue.h: Likewise.
22821         * shadow/shadow.h: Likewise.
22822         * signal/signal.h: Likewise.
22823         * socket/send.c: Likewise.
22824         * socket/sendto.c: Likewise.
22825         * socket/sys/socket.h: Likewise.
22826         * stdio-common/printf.h: Likewise.
22827         * stdlib/bits/stdlib.h: Likewise.
22828         * stdlib/fmtmsg.h: Likewise.
22829         * stdlib/monetary.h: Likewise.
22830         * stdlib/stdlib.h: Likewise.
22831         * stdlib/ucontext.h: Likewise.
22832         * streams/stropts.h: Likewise.
22833         * string/argz.h: Likewise.
22834         * string/bits/string2.h: Likewise.
22835         * string/string.h: Likewise.
22836         * string/strings.h: Likewise.
22837         * sunrpc/rpc/auth.h: Likewise.
22838         * sunrpc/rpc/auth_des.h: Likewise.
22839         * sunrpc/rpc/clnt.h: Likewise.
22840         * sunrpc/rpc/netdb.h: Likewise.
22841         * sunrpc/rpc/pmap_clnt.h: Likewise.
22842         * sunrpc/rpc/xdr.h: Likewise.
22843         * sysdeps/generic/inttypes.h: Likewise.
22844         * sysdeps/generic/net/if.h: Likewise.
22845         * sysdeps/generic/sys/swap.h: Likewise.
22846         * sysdeps/gnu/net/if.h: Likewise.
22847         * sysdeps/gnu/utmpx.h: Likewise.
22848         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
22849         * sysdeps/i386/i486/bits/string.h: Likewise.
22850         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
22851         * sysdeps/s390/bits/string.h: Likewise.
22852         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
22853         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
22854         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22855         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
22856         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
22857         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
22858         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
22859         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
22860         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
22861         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
22862         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
22863         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
22864         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
22865         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
22866         * sysdeps/unix/sysv/linux/readv.c: Likewise.
22867         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
22868         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
22869         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22870         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
22871         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
22872         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22873         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
22874         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
22875         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
22876         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
22877         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
22878         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
22879         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22880         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
22881         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
22882         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
22883         * sysvipc/sys/ipc.h: Likewise.
22884         * sysvipc/sys/msg.h: Likewise.
22885         * sysvipc/sys/sem.h: Likewise.
22886         * sysvipc/sys/shm.h: Likewise.
22887         * termios/termios.h: Likewise.
22888         * time/sys/time.h: Likewise.
22889         * time/time.h: Likewise.
22890         * wcsmbs/bits/wchar2.h: Likewise.
22891         * wcsmbs/uchar.h: Likewise.
22892         * wcsmbs/wchar.h: Likewise.
22893         * wctype/wctype.h: Likewise.
22894
22895         [BZ #13551]
22896         * Makeconfig: Remove all but ELF support including AIX support.
22897         * Makerules: Likewise.
22898         * config.h.in: Likewise.
22899         * config.make.in: Likewise.
22900         * configure: Likewise.
22901         * configure.in: Likewise.
22902         * csu/Makefile: Likewise.
22903         * csu/version.c: Likewise.
22904         * debug/Makefile: Likewise.
22905         * dlfcn/Makefile: Likewise.
22906         * elf/Makefile: Likewise.
22907         * extra-lib.mk: Likewise.
22908         * iconv/Makefile: Likewise.
22909         * include/libc-symbols.h: Likewise.
22910         * include/shlib-compat.h: Likewise.
22911         * resolv/Makefile: Likewise.
22912         * resolv/res_libc.c: Likewise.
22913         * rt/Makefile: Likewise.
22914         * sysdeps/i386/asm-syntax.h: Likewise.
22915         * sysdeps/i386/sysdep.h: Likewise.
22916         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22917         * sysdeps/mach/sysdep.h: Likewise.
22918         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
22919         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
22920         * sysdeps/s390/asm-syntax.h: Likewise.
22921         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22922         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22923         * sysdeps/sh/sysdep.h: Likewise.
22924         * sysdeps/unix/sparc/sysdep.h: Likewise.
22925         * sysdeps/wordsize-32/divdi3.c: Likewise.
22926         * sysdeps/x86_64/sysdep.h: Likewise.
22927
22928         * argp/Versions: Remove _argp_unlock_xxx.
22929
22930         [BZ #13559]
22931         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
22932         * abilist/libBrokenLocale.abilist: Likewise.
22933         * abilist/libanl.abilist: Likewise.
22934         * abilist/libc.abilist: Likewise.
22935         * abilist/libcrypt.abilist: Likewise.
22936         * abilist/libdl.abilist: Likewise.
22937         * abilist/libm.abilist: Likewise.
22938         * abilist/libnsl.abilist: Likewise.
22939         * abilist/libpthread.abilist: Likewise.
22940         * abilist/libresolv.abilist: Likewise.
22941         * abilist/librt.abilist: Likewise.
22942         * abilist/libthread_db.abilist: Likewise.
22943         * abilist/libutil.abilist: Likewise.
22944         * abilist/libnss_db.abilist: New file.
22945
22946         * scripts/abilist.awk: Add support for indirect functions.
22947
22948         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
22949
22950         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
22951
22952         * shlib-versions: Remove entries for ports architectures.
22953
22954         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
22955         files in ports.
22956         * elf/stackguard-macros.h: Remove support for IA-64.
22957         * elf/tst-auditmod1.c: Likewise.
22958         * sysdeps/generic/ldsodefs.h: Likewise.
22959
22960         * sysdeps/unix/sysv/linux/configure.in: Ports should define
22961         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
22962         configure files.
22963
22964         [BZ #13552]
22965         * configure.in: Remove --enable-omitfp support.
22966         * FAQ.in: Adjust.
22967         * config.make.in: Likewise.
22968         * Makeconfig: Likewise.
22969         * manual/install.texi: Likewise.
22970
22971         In case anyone cares, the IA-64 architecture could move to ports.
22972         * sysdeps/ia64/*: Removed.
22973         * sysdeps/unix/sysv/linux/ia64/*: Removed.
22974         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
22975
22976         [BZ #13555]
22977         * configure.in: Remove entries for unsupported architectures.
22978
22979         [BZ #13533]
22980         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
22981         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
22982         routines.
22983         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
22984         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
22985         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
22986         fall back to using wcrtomb.
22987         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
22988         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
22989         renaming.
22990         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
22991         * wcsmbs/tst-c16c32-1.c: New file.
22992
22993         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
22994         local variable.
22995
22996         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
22997
22998         * elf/tst-unique3.cc: Add explicit declaration of gets.
22999         * elf/tst-unique3lib.cc: Likewise.
23000         * elf/tst-unique3lib2.cc: Likewise.
23001         * elf/tst-unique4.cc: Likewise.
23002
23003         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
23004
23005 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
23006
23007         [BZ #13566]
23008         * assert/assert.h (static_assert): Don't define for C++.
23009         * libio/stdio.h (gets): Do declare for C++ <= C++11.
23010         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
23011
23012 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
23013
23014         * iconv/loop.c (single loop): Fix assertion in storing of
23015         remaining bytes.
23016
23017         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
23018
23019 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
23020
23021         * posix/getconf.c: Update copyright year.
23022         * nss/getent.c: Likewise.
23023         * nss/makedb.c: Likewise.
23024         * iconv/iconvconfig.c: Likewise.
23025         * iconv/iconv_prog.c: Likewise.
23026         * elf/ldconfig.c: Likewise.
23027         * elf/pldd.c: Likewise.
23028         * elf/sotruss.ksh: Likewise.
23029         * catgets/gencat.c: Likewise.
23030         * csu/version.c: Likewise.
23031         * elf/ldd.bash.in: Likewise.
23032         * elf/sprof.c (print_version): Likewise.
23033         * locale/programs/locale.c: Likewise.
23034         * locale/programs/localedef.c: Likewise.
23035         * login/programs/pt_chown.c: Likewise.
23036         * nscd/nscd.c (print_version): Likewise.
23037         * debug/xtrace.sh: Likewise.
23038         * malloc/memusage.sh: Likewise.
23039         * malloc/mtrace.pl: Likewise.
23040         * debug/catchsegv.sh: Likewise.
23041
23042 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
23043
23044         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
23045         pure attribute.
23046
23047 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
23048
23049         [BZ #13533]
23050         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
23051         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
23052         transformations.
23053         * iconv/gconv_int.h: Likewise.
23054         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
23055         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
23056         from libc for GLIBC_2.16.
23057         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
23058         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
23059         * wcsmbs/uchar.h: Really define mbstate_t.
23060         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
23061         * wcsmbs/c16rtomb.c: New file.
23062         * wcsmbs/mbrtoc16.c: New file.
23063         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
23064         for C/POSIX locale.
23065         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
23066         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
23067
23068         * wcsmbs/wchar.h: Add missing __restrict.
23069
23070 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
23071
23072         [BZ #13532]
23073         * time/Makefile (routines): Add timespec_get.
23074         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
23075         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
23076         timespec for ISO C11.
23077         * time/timespec_get.c: New file.
23078         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
23079         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
23080
23081         [BZ #13531]
23082         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
23083         * stdlib/stdlib.h: Declare aligned_alloc.
23084         * Versions.def: Add GLIBC_2.16 for libc.
23085         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
23086
23087         [BZ 13527]
23088         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
23089         ISO C11.
23090
23091         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
23092         code.
23093
23094         [BZ #13528]
23095         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
23096
23097         [BZ #13529]
23098         * assert/assert.h (static_assert): Define.
23099
23100         * version.h: Update for 2.16 development version.
23101
23102         [BZ #13526]
23103         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
23104         _ISOC11_SOURCE.
23105
23106         * version.h (RELEASE): Bump for 2.15 release.
23107         * include/features.h (__GLIBC_MINOR__): Bump to 15.
23108
23109         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
23110         Patch by Marek Polacek <mpolacek@redhat.com>.
23111
23112         * bits/byteswap.h: Protect long long constants with __extension__.
23113         * sysdeps/i386/bits/byteswap.h: Likewise.
23114         * sysdeps/ia64/bits/byteswap.h: Likewise.
23115         * sysdeps/s390/bits/byteswap.h: Likewise.
23116         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23117
23118 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23119
23120         [BZ #13540]
23121         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
23122         destination buffer.
23123         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23124
23125 2011-12-23  Marek Polacek  <polacek@redhat.com>
23126
23127         * elf/dl-addr.c (determine_info): Add inline keyword.
23128         * elf/tst-auditmod4b.c (check_avx): Likewise.
23129         * elf/tst-auditmod6b.c (check_avx): Likewise.
23130         * elf/tst-auditmod6c.c (check_avx): Likewise.
23131         * elf/tst-auditmod7b.c (check_avx): Likewise.
23132
23133 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
23134
23135         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
23136         !__SSE_MATH__.
23137
23138 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23139
23140         [BZ #13540]
23141         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
23142         processing for last bytes.
23143
23144 2011-08-06  Bruno Haible  <bruno@clisp.org>
23145
23146         [BZ #13061]
23147         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
23148         U+0385, not to U+1FEE.
23149
23150         [BZ #13062]
23151         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
23152         entry for U+00A5 U+0301.
23153
23154 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
23155
23156         [BZ #13166]
23157         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
23158         buffer for the output is too small.
23159
23160         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
23161         optimization.
23162
23163         [BZ #13185]
23164         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
23165         SSE flags if possible.
23166
23167 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23168
23169         [BZ #13540]
23170         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
23171         processing for last bytes.
23172
23173 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
23174
23175         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
23176         (syscall-list-default-options, syscall-list-default-condition)
23177         (syscall-list-includes): Define.
23178         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
23179         list of ABIs and options and #if conditions for each ABI.  Do not
23180         handle common syscalls between ABIs specially.
23181         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
23182         Remove.
23183         (syscall-list-variants, syscall-list-32bit-options)
23184         (syscall-list-32bit-condition, syscall-list-64bit-options)
23185         (syscall-list-64bit-condition): Define.
23186         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
23187         (syscall-list-variants, syscall-list-32bit-options)
23188         (syscall-list-32bit-condition, syscall-list-64bit-options)
23189         (syscall-list-64bit-condition): Define.
23190         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
23191         Remove.
23192         (syscall-list-variants, syscall-list-32bit-options)
23193         (syscall-list-32bit-condition, syscall-list-64bit-options)
23194         (syscall-list-64bit-condition): Define.
23195         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
23196         Remove.
23197         (syscall-list-variants, syscall-list-32bit-options)
23198         (syscall-list-32bit-condition, syscall-list-64bit-options)
23199         (syscall-list-64bit-condition): Define.
23200
23201 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
23202
23203         * locale/iso-639.def: Add brx entry.
23204
23205         [BZ #13328]
23206         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
23207         Proposed by Mariusz_Cukr <marcukr@op.pl>.
23208
23209         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
23210         __feraiseexcept_renamed.
23211
23212 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
23213
23214         [BZ #13538]
23215         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
23216         EPOLLET with unsigned values.
23217         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
23218         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
23219
23220         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
23221         to large cancellation.
23222         * math/s_cacoshf.c: Likewise.
23223         * math/s_cacoshl.c: Likewise.
23224
23225 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
23226
23227         [BZ #13305]
23228         [BZ #12786]
23229         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
23230         * math/s_cacoshf.c: Likewise.
23231         * math/s_cacoshl.c: Likewise.
23232
23233 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
23234
23235         [BZ #13439]
23236         * iconv/gconv.h: Define __GCONV_SWAP.
23237         * iconvdata/unicode.c: The swap bit must be stored in __flags.
23238         * iconvdata/utf-16.c: Likewise.
23239         * iconvdata/utf-32.c: Likewise.
23240
23241 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
23242
23243         [BZ #13524]
23244         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
23245         numerator after shifting it by one limb.
23246
23247 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
23248
23249         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
23250         under [__USE_EXTERN_INLINES].
23251
23252 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
23253
23254         [BZ #13446]
23255         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
23256
23257 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23258
23259         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
23260         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
23261         optimized code.
23262         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
23263         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
23264         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
23265         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
23266         for strncasecmp/strncasecmp_l compilation.
23267         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
23268         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
23269
23270 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
23271
23272         [BZ #13484]
23273         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
23274         of __asm__.
23275
23276 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
23277
23278         [BZ #13506]
23279         * time/tzfile.c (__tzfile_read): Check values from file header.
23280
23281 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
23282
23283         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
23284         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
23285         * powerpc/powerpc32/dl-start.S: Likewise.
23286         * powerpc/powerpc32/elf/start.S: Likewise.
23287         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23288         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
23289         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
23290         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
23291         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
23292         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
23293         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
23294         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
23295         * powerpc/powerpc32/fpu/s_round.S: Likewise.
23296         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
23297         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
23298         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
23299         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23300         * powerpc/powerpc32/memset.S: Likewise.
23301         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
23302         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23303         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23304         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23305         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23306         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23307         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23308         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23309         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
23310         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
23311         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
23312         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
23313         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
23314
23315 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23316
23317         * math/libm-test.inc: Added more nearbyint tests.
23318         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
23319         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
23320         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
23321         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
23322
23323 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
23324
23325         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
23326         FD_CLOEXEC.
23327
23328 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23329
23330         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
23331         Add wcscpy-ssse3 wcscpy-c.
23332         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
23333         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
23334         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
23335         * sysdeps/x86_64/wcschr.S: New file.
23336         * sysdeps/x86_64/wcsrchr.S: New file.
23337         * string/test-strcmp.c: Remove checking of wcscmp function for
23338         wrong alignments.
23339         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
23340         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
23341         wcsrchr-sse2 wcsrchr-c.
23342         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
23343         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
23344         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
23345         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
23346         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
23347         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
23348         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
23349         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
23350         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
23351         * wcsmbc/wcschr.c (WCSCHR): New macro.
23352
23353 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23354
23355         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
23356         * wcsmbs/test-wcsrchr.c: New file.
23357         * string/test-strrchr.c: Add wcsrchr support.
23358         (WIDE): New macro.
23359         * wcsmbs/test-wcscpy.c: New file.
23360         * string/test-strcpy.c: Add wcscpy support.
23361         (WIDE): New macro.
23362
23363 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
23364
23365         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
23366         the inner loop.
23367
23368 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
23369
23370         [BZ #13472]
23371         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
23372
23373 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
23374
23375         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
23376         Minor optimizations.
23377
23378         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
23379         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
23380         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
23381
23382 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
23383
23384         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
23385         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
23386         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
23387         for gcc to avoid warnings.
23388         * inet/Makefile (tests): Add tst-checks.
23389         * inet/tst-checks.c: New file.
23390
23391         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
23392         warning.
23393
23394         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
23395         __wmemcmp_sse2.
23396
23397         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
23398         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
23399
23400         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
23401
23402 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
23403
23404         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
23405         problem.
23406
23407         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
23408
23409 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
23410
23411         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
23412         conditional on GCC version.
23413         (__arch_compare_and_exchange_val_8_acq)
23414         (__arch_compare_and_exchange_val_16_acq)
23415         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
23416         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
23417         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
23418
23419 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
23420
23421         * sysdeps/sh/backtrace.c: New file.
23422
23423 2011-12-02  Andreas Schwab  <schwab@redhat.com>
23424
23425         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
23426         parenthesis.
23427
23428 2011-12-01  Andreas Schwab  <schwab@redhat.com>
23429
23430         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
23431         falling back to utime.
23432
23433 2011-11-30  Andreas Schwab  <schwab@redhat.com>
23434
23435         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
23436         expectations for float.
23437
23438 2011-11-29  Andreas Schwab  <schwab@redhat.com>
23439
23440         * locale/weight.h (findidx): Add parameter len.
23441         * locale/weightwc.h (findidx): Likewise.
23442         * posix/fnmatch_loop.c (FCT): Adjust caller.
23443         * posix/regcomp.c (build_equiv_class): Likewise.
23444         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
23445         * posix/regexec.c (check_node_accept_bytes): Likewise.
23446         * string/strcoll_l.c (STRCOLL): Likewise.
23447         * string/strxfrm_l.c (STRXFRM): Likewise.
23448
23449 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
23450
23451         * Makefile.in: Remove CVSOPT handling.
23452         * configure.in: Remove use of AC_REVISION.
23453         * iconvdata/Makefile (distribute): No need to filter out CVS.
23454         * scripts/list-sources.sh: Remove CVS, subversion and monotone
23455         handling.
23456
23457 2011-11-16  Andreas Schwab  <schwab@redhat.com>
23458
23459         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
23460         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
23461         [USE_AS_STRNCASECMP_L]: Likewise.
23462         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
23463         NO_TLS_DIRECT_SEG_REFS.
23464         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
23465         Fix argument offsets for non-PIC.
23466         [USE_AS_STRNCASECMP_L]: Likewise.
23467         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
23468         NO_TLS_DIRECT_SEG_REFS.
23469
23470 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
23471
23472         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
23473         O_CLOEXEC.
23474         * locale/loadlocale.c (_nl_load_locale): Likewise.
23475
23476 2011-11-15  Andreas Schwab  <schwab@redhat.com>
23477
23478         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
23479         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
23480         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
23481         (SYSCALL_GETTIME): Set errno on error.
23482
23483         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
23484         count references to noai6ai_cached.
23485
23486 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
23487
23488         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
23489
23490         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
23491         FD_CLOEXEC for /proc/self/maps.
23492
23493         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
23494         FD_CLOEXEC for /proc/meminfo.
23495
23496         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
23497         gai.conf.
23498
23499         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
23500         FD_CLOEXEC for given file.
23501
23502         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
23503
23504         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
23505         FD_CLOEXEC for /etc/hosts.
23506         (_gethtent): Likewise.
23507
23508         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
23509
23510         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
23511         cancellation and set FD_CLOEXEC for /etc/netgroup.
23512
23513         * nss/nss_files/files-key.c (search): Don't allow cancellation when
23514         reading /etc/publickey.
23515
23516         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
23517         allow cancellation when reading /etc/group.
23518
23519         * nss/nss_files/files-alias.c (internal_setent): Don't allow
23520         cancellation.
23521         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
23522
23523         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
23524         when using data file.
23525
23526         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
23527
23528         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
23529         (write_nis_obj): Use "c" and "e" in fopen.
23530
23531         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
23532
23533         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
23534
23535         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
23536
23537         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
23538
23539         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
23540         locale.alias.
23541
23542         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
23543
23544         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
23545
23546         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
23547
23548         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
23549         file parsing and set FD_CLOEXEC.
23550
23551 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
23552
23553         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
23554
23555 2011-11-14  Andreas Schwab  <schwab@redhat.com>
23556
23557         * malloc/arena.c (arena_get2): Don't call reused_arena when
23558         _int_new_arena failed.
23559
23560 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
23561
23562         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
23563         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
23564         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
23565         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23566         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
23567         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
23568         to compile strcasecmp and strncasecmp.
23569         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
23570         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
23571
23572         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
23573
23574 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
23575
23576         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
23577         locale-defines.sym to gen-as-const-headers.
23578         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
23579         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
23580         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
23581         to compile strcasecmp and strncasecmp.
23582         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
23583         strcasecmp_l and strncasecmp_l.
23584         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
23585         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
23586         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
23587         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
23588         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
23589         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
23590         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
23591         * sysdeps/i386/i686/multiarch/strncase.S: New file.
23592         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
23593         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
23594         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
23595
23596 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
23597
23598         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
23599         result of SYSDEP_GETTIME_CPU to retval.
23600         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
23601         parameter list to macro.  Remove trailing semicolon.  Adjust users.
23602
23603         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
23604         variable.
23605
23606         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
23607         mantissa words.
23608         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
23609
23610         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
23611         from unused variable.
23612
23613         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
23614         DWARF definitions.
23615         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
23616         for assembling.
23617
23618         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
23619         over namespaces.
23620
23621         * sunrpc/rpc_prot.c (rejected): Fix case value.
23622
23623         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
23624         unsigned long long int to avoid warnings in shift.
23625
23626         * posix/regex_internal.c (re_string_reconstruct): Actually use result
23627         of use of trans.
23628         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
23629         variable tmp.
23630
23631         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
23632         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23633         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23634
23635         * nis/nis_table.c (nis_list): Use variable of correct type for
23636         result of __follow_path call.
23637
23638 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23639
23640         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
23641         of math functions ceil, trunc, floor, round, and sqrt, when
23642         avaliable on the platform.
23643         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
23644         name clash.
23645         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23646         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23647         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23648
23649 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
23650
23651         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
23652         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
23653
23654 2011-11-11  Roland McGrath  <roland@hack.frob.com>
23655
23656         * include/unistd.h: Fix __readlink return type.
23657         Reported by Chris Metcalf <cmetcalf@tilera.com>.
23658
23659 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
23660
23661         * stdlib/ucontext.h: Undo last change for makecontext.
23662
23663 2011-11-11  Andreas Schwab  <schwab@redhat.com>
23664
23665         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
23666
23667         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
23668         * setjmp/setjmp.h: Mark functions as non-leaf.
23669         * setjmp/bits/setjmp2.h: Likewise.
23670         * stdlib/ucontext.h: Likewise.
23671
23672 2011-11-10  Andreas Schwab  <schwab@redhat.com>
23673
23674         * malloc/arena.c (_int_new_arena): Don't increment narenas.
23675         (reused_arena): Don't check arena limit.
23676         (arena_get2): Atomically check arena limit.
23677
23678 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
23679
23680         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
23681         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
23682
23683         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
23684         instructions.
23685
23686 2011-11-07  Andreas Schwab  <schwab@redhat.com>
23687
23688         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
23689         handler when locking.
23690
23691         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23692         Fix size of allocated buffer.
23693
23694 2011-11-04  Andreas Schwab  <schwab@redhat.com>
23695
23696         [BZ #10103]
23697         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
23698         declarations for long double functions.
23699         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
23700
23701         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
23702
23703 2011-11-03  Andreas Schwab  <schwab@redhat.com>
23704
23705         * nscd/nscd.c (main): Don't start AVC thread until credentials are
23706         installed.
23707
23708         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
23709         is disabled.
23710
23711 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23712
23713         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
23714
23715 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
23716
23717         * include/alloca.h (stackinfo_alloca_round): Define.
23718         (extend_alloca): Use it.
23719         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
23720         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
23721         here.
23722
23723         * scripts/check-local-headers.sh: Ignore libaudit.h.
23724
23725         * nscd/Makefile (extra-objs): Make recursively expanded.
23726
23727 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
23728
23729         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
23730         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
23731
23732         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
23733         * posix/tst-rfc3484-2.c: Likewise.
23734         * posix/tst-rfc3484-3.c: Likewise.
23735
23736         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
23737         process_vm_writev.
23738         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
23739         process_vm_writev.
23740         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
23741         process_vm_writev from libc using GLIBC_2.15 version.
23742
23743         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
23744
23745 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
23746
23747         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
23748         stack usage.
23749
23750 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
23751
23752         [BZ #13367]
23753         * nss/getent.c (initgroups_keys): Show error message in case no group
23754         names are given.
23755
23756         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
23757         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
23758         __bump_nl_timestamp.
23759         * nscd/connections (nscd_init): When host database is served open
23760         netlink socket and request notification about configuration changes.
23761         (main_loop_poll): Track netlink file descriptor and bump timestamp
23762         in case data becomes available.
23763         (main_loop_epoll): Likewise.
23764         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
23765         (database_pers_head): Add extra_data fileds.
23766         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
23767         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
23768         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
23769         Adjust caller.
23770         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
23771         in6ai data, call __free_in6ai.
23772         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
23773         Add -DHAVE_NETLINK.
23774         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
23775         interface information.  Reuse previous data if netlink timestamp
23776         is not changed.
23777         (__bump_nl_timestamp): New function.
23778         (__free_in6ai): New function.
23779
23780 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
23781
23782         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
23783         close_not_cancel_no_status here.
23784         (__check_pf): Reorganize code a bit to not call close twice if OOM.
23785
23786 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23787
23788         [BZ #13276]
23789         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
23790         return value.
23791
23792         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
23793         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
23794         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
23795
23796 2011-07-03  Andreas Jaeger  <aj@suse.de>
23797
23798         [BZ #10709]
23799         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
23800         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
23801         * math/libm-test.inc (sin_test): Add test case.
23802
23803 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23804
23805         [BZ #13337]
23806         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
23807         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23808
23809         * elf/chroot_canon.c (chroot_canon): Cleanups.
23810
23811         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
23812
23813         [BZ #13335]
23814         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
23815         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23816
23817         * string/test-strchr.c: Make usable for strchrnul testing.
23818         * string/test-strchrnul.c: New file.
23819         * string/Makefile (strop-tests): Add strchrnul.
23820
23821         * po/it.po: Update from translation team.
23822         * po/es.po: Likewise.
23823
23824 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
23825
23826         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
23827         the three constants needed as parameters.  Drop the others.
23828         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
23829         __m128i_strloadu_tolower.
23830         Create and initialize variable zero and use it in all the places
23831         where _mm_setzero_si128 was used.
23832
23833         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
23834         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
23835         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
23836         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
23837         anymore.
23838         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
23839         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
23840         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
23841         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
23842         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
23843         __mpranred, __mptan.
23844         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
23845         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
23846         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
23847         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
23848         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
23849         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
23850         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
23851         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
23852         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
23853
23854 2011-10-28  Andreas Schwab  <schwab@redhat.com>
23855
23856         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
23857         redefine if SHARED.
23858         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
23859
23860         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
23861         wide char related routines to wcsmbs subdir.
23862
23863 2011-10-27  Andreas Schwab  <schwab@redhat.com>
23864
23865         [BZ #13344]
23866         * misc/sys/cdefs.h (__THROWNL): Define.
23867         * posix/unistd.h: Use __THREADNL instead of __THREAD
23868         for memory synchronization functions.
23869
23870 2011-10-26  Roland McGrath  <roland@hack.frob.com>
23871
23872         [BZ #13349]
23873         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
23874         doesn't exist.
23875         * manual/stdio.texi (Obstack Streams): Node removed.
23876
23877 2011-10-26  Andreas Schwab  <schwab@redhat.com>
23878
23879         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
23880         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23881         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23882
23883         * math/math_private.h (math_force_eval): Allow non-addressable
23884         arguments.
23885         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
23886
23887 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23888
23889         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
23890         file is not needed.
23891
23892         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
23893         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
23894         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23895         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23896         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23897         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23898         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23899         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
23900         Add AVX variants.
23901         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
23902         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
23903         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
23904         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
23905         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
23906         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
23907         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
23908         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
23909         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
23910         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
23911         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
23912         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
23913         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
23914         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
23915         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
23916         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
23917         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
23918         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
23919         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
23920
23921         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
23922         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
23923
23924         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
23925         place.  Use VEX encoding when compiling for AVX.
23926
23927 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23928
23929         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
23930         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23931
23932         * string/test-strchr.c (do_test): Don't generate NUL bytes.
23933
23934 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23935
23936         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
23937         useless if() expression.
23938         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23939         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23940         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23941         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23942         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23943         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23944         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23945         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23946         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23947         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23948         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23949         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23950         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23951         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23952         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23953         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23954         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23955         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23956         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23957
23958         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
23959
23960 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23961
23962         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
23963         condition.
23964         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23965
23966 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23967
23968         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
23969         .text section.  Avoid duplicate constants.
23970         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23971         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23972         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23973         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23974         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23975         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23976         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23977         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23978         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23979         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
23980         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23981         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23982         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23983         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23984         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23985         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23986         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23987         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23988         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23989         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23990         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23991         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23992         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23993         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
23994         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
23995         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
23996         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
23997         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
23998         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
23999         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
24000         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
24001         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
24002         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
24003         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
24004         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
24005         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
24006         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
24007         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
24008         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
24009         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
24010         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
24011         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
24012         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
24013         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24014         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
24015
24016 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
24017
24018         * sysdeps/x86_64/dla.h: Move to ...
24019         * sysdeps/x86_64/fpu/dla.h: ...here.
24020         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
24021         situations.  Use __builtin_fma only for gcc 4.6 and up.
24022
24023         * config.make.in: Add have-mfma4 entry.
24024         * configure.in: Substitute libc_cv_cc_fma4.
24025         * math/Makefile (dbl-only-routines): Add sincostab.
24026         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
24027         Use __sincostab not sincos.
24028         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
24029         name is a macro.
24030         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24031         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24032         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24033         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
24034         using __copysign.
24035         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
24036         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
24037         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
24038         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
24039         and __inv.
24040         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
24041         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
24042         __copysign.
24043         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
24044         define aliases when function name is a macro.
24045         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
24046         sysdeps/ieee754/dbl-64/sincos.tbl.
24047         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
24048         fma4-enabled routines.
24049         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
24050         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
24051         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
24052         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
24053         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
24054         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
24055         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
24056         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
24057         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
24058         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
24059         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
24060         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
24061         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
24062         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
24063         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
24064         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
24065         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
24066         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
24067         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
24068         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
24069         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
24070         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
24071         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
24072         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
24073         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
24074         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
24075         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
24076         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
24077         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
24078         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
24079
24080         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
24081         rename.
24082         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24083         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24084         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24085         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24086         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24087         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24088         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24089         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24090
24091 2011-10-24  Andreas Schwab  <schwab@redhat.com>
24092
24093         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
24094
24095 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24096
24097         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
24098
24099         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
24100         prediction.
24101         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
24102
24103         * string/strnlen.c: Don't define STRNLEN, reverse logic.
24104         Remove unused variable magic_bits.
24105         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
24106
24107         * string/strnlen.c: Define and use STRNLEN macro.
24108         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
24109         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
24110         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
24111         * wcsmbs/wcslen.c: Define and use WCSLEN.
24112         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
24113         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
24114         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
24115         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
24116         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
24117         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
24118         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24119
24120 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24121
24122         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24123         strnlen-sse2-no-bsf.
24124         Rename strlen-no-bsf to strlen-sse2-no-bsf.
24125         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
24126         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
24127         Add strnlen support.
24128         (USE_AS_STRNLEN): New macro.
24129         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
24130         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
24131         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
24132         * sysdeps/x86_64/wcslen.S: New file.
24133
24134 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
24135
24136         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
24137         XMM-moves are used for copying on small sizes.
24138
24139 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24140
24141         * wcsmbs/Makefile (strop-tests): Add wcschr.
24142         * wcsmbs/test-wcschr.c: New file.
24143         * string/test-strchr.c: Update.
24144         Add wcschr support.
24145         (WIDE): New macro.
24146
24147 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24148
24149         * wcsmbs/Makefile (strop-tests): Add wcslen.
24150         * wcsmbs/test-wcslen.c: New file.
24151         * string/test-strlen.c: Update.
24152         Add wcslen support.
24153         (WIDE): New macro.
24154
24155 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24156
24157         * po/it.po: Update from translation team.
24158
24159 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24160
24161         * sysdeps/x86_64/wcscmp.S: Update.
24162         Fix wrong comparison semantics.
24163         wcscmp shall use signed comparison not unsigned.
24164         Don't use substraction to avoid overflow bug.
24165         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24166         * wcsmbc/wcscmp.c: Likewise.
24167         * string/test-strcmp.c: Likewise.
24168         Add new tests to check cases with negative values.
24169
24170 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24171
24172         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
24173         * sysdeps/x86_64/dla.h: ...here.  New file.
24174         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
24175         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24176         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24177         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24178         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24179         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24180         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24181         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24182         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24183
24184 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
24185
24186         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
24187         __ynl_finite aliases.
24188
24189 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
24190
24191         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24192
24193         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
24194         define DLA_FMA.
24195         [DLA_FMA] (EMULV): Use DLA_FMA.
24196         [DLA_FMA] (MUL12): Use EMULV.
24197         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
24198         that are not needed.
24199         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24200         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24201         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24202         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24203         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24204         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24205         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24206
24207 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
24208
24209         * math/s_nan.c: Undef __nan.
24210         * math/s_nanf.c: Undef __nanf.
24211         * math/s_nanl.c: Undef __nanl.
24212         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
24213         "math_private.h".
24214
24215 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
24216
24217         * math/s_catan.c: Add branch predictions.
24218         * math/s_catanf.c: Likewise.
24219         * math/s_catanh.c: Likewise.
24220         * math/s_catanhf.c: Likewise.
24221         * math/s_catanhl.c: Likewise.
24222         * math/s_catanl.c: Likewise.
24223         * math/s_cexp.c: Likewise.
24224         * math/s_cexpf.c: Likewise.
24225         * math/s_cexpl.c: Likewise.
24226         * math/s_clog.c: Likewise.
24227         * math/s_clog10.c: Likewise.
24228         * math/s_clog10f.c: Likewise.
24229         * math/s_clog10l.c: Likewise.
24230         * math/s_clogf.c: Likewise.
24231         * math/s_clogl.c: Likewise.
24232         * math/s_csqrt.c: Likewise.
24233         * math/s_csqrtf.c: Likewise.
24234         * math/s_csqrtl.c: Likewise.
24235         * math/s_ctanf.c: Likewise.
24236         * math/s_ctanh.c: Likewise.
24237         * math/s_ctanhf.c: Likewise.
24238         * math/s_ctanhl.c: Likewise.
24239         * math/s_ctanl.c: Likewise.
24240
24241         * math/math_private.h: Define __nan, __nanf, __nanl.
24242         * math/s_cacosh.c: Include <math_private.h>.
24243         * math/s_cacoshl.c: Likewise.
24244         * math/s_casinh.c: Likewise.
24245         * math/s_casinhf.c: Likewise.
24246         * math/s_casinhl.c: Likewise.
24247         * math/s_ccos.c: Rely entire on ccosh.
24248         * math/s_ccosf.c: Rely entire on ccoshf.
24249         * math/s_ccosl.c: Rely entirely on ccoshl.
24250         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
24251         Remove tests for FE_INVALID.
24252         * math/s_ccoshf.c: Likewise.
24253         * math/s_ccoshl.c: Likewise.
24254         * math/s_csin.c: Likewise.
24255         * math/s_csinf.c: Likewise.
24256         * math/s_csinh.c Likewise.
24257         * math/s_csinhf.c: Likewise.
24258         * math/s_csinhl.c: Likewise.
24259         * math/s_csinl.c: Likewise.
24260         * math/s_ctan.c: Likewise.
24261         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
24262         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
24263         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
24264
24265 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
24266
24267         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
24268         compilation problems.
24269
24270         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
24271         __builtin_expect.
24272
24273 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
24274
24275         * sysdeps/i386/configure.in: Test for -mfma4 option.
24276         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
24277         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
24278         COMMON_CPUID_INDEX_80000001.
24279         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
24280         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
24281         use it if FMA3 is not supported.
24282         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
24283
24284         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
24285         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
24286
24287 2011-10-20  Andreas Schwab  <schwab@redhat.com>
24288
24289         [BZ #12892]
24290         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
24291         it would create a cycle with a link time dependency.
24292
24293 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
24294
24295         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
24296         instruction.
24297         * string/Makefile (strop-tests): Add rawmemchr.
24298         * string/test-rawmemchr.c: New file.
24299
24300         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
24301         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
24302         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
24303         when compiling str{,n}casecmp and when AVX is available.  Hook up
24304         new optimized code in initializers.
24305
24306 2011-10-19  Andreas Schwab  <schwab@redhat.com>
24307
24308         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
24309         __feraiseexcept instead of feraiseexcept.
24310
24311 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
24312
24313         * math/math_private.h: Define defaults for libc_fetestexcept and
24314         libc_feupdateenv.
24315         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
24316         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
24317         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
24318         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
24319         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
24320         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
24321         libc_fetestexcept and libc_feupdateenv.
24322
24323         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
24324         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
24325         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
24326         * sysdeps/x86_64/fpu/math_private.h: Define special version of
24327         libc_feholdexcept_setround.
24328
24329         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
24330         Add s_nearbyint-c and s_nearbyintf-c.
24331         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
24332         nearbyintf inlines.
24333         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
24334         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
24335         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
24336         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
24337
24338         * math/math_private.h: Define defaults for libc_fegetround,
24339         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
24340         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
24341         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
24342         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
24343         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
24344         standard functions.
24345         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
24346         Remove comments and hacks for old compiler versions.
24347         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
24348         libc_fegetround, libc_fesetround, libc_feholdexcept, and
24349         libc_feholdexceptl.
24350
24351 2011-10-18  Andreas Schwab  <schwab@redhat.com>
24352
24353         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
24354         (__feraiseexcept_renamed): Add __NTH.
24355         (feraiseexcept): Add __NTH.  Rename local variables to fix
24356         namespace violations.
24357
24358 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
24359
24360         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
24361
24362         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
24363
24364         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
24365         recently added interfaces.
24366         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
24367
24368         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
24369         about macro parameter expansion.
24370
24371         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
24372         __NO_MATH_INLINES is defined.  Cleanups.
24373
24374         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
24375         and __floorf is target has SSE4.1.
24376         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
24377         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
24378         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
24379         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
24380
24381         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
24382         name.
24383         (floorf): Likewise.
24384
24385         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
24386
24387 2011-10-17  Andreas Schwab  <schwab@redhat.com>
24388
24389         * misc/sys/cdefs.h: Fix last change.
24390
24391         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
24392         database lookup.
24393
24394 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
24395
24396         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
24397
24398         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
24399         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24400         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
24401         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24402         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24403         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
24404         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24405         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24406         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
24407         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
24408         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
24409         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
24410         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
24411         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
24412         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
24413         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
24414         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
24415         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
24416         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
24417         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
24418         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
24419         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
24420
24421         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
24422         ceil, ceilf, floor, floorf.
24423
24424         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
24425         Perform IRELATIVE relocations last.
24426
24427         * elf/do-rel.h: Add another parameter nrelative, replacing the
24428         local variable with the same name.  Change name of the function
24429         to end in Rel or Rela (uppercase).
24430         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
24431         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
24432         elf_dynamic_do_##reloc function.
24433
24434 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
24435
24436         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
24437         is sufficient, at least on modern CPUs.
24438
24439         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
24440
24441         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
24442         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
24443
24444         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
24445         __expl_finite.
24446         * math/bits/math-finite.h: Add entries for exp.
24447         * math/e_expl.c: Add __*_finite alias.
24448         * sysdeps/i386/fpu/e_exp.S: Likewise.
24449         * sysdeps/i386/fpu/e_expf.S: Likewise.
24450         * sysdeps/i386/fpu/e_expl.c: Likewise.
24451         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24452         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
24453         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
24454         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
24455         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
24456         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
24457         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
24458
24459         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
24460         is sufficient, at least on modern CPUs.
24461
24462         * ctype/ctype-info.c (__ctype_init): Define.
24463         * include/ctype.h (__ctype_init): Declare.
24464         (__ctype_b_loc): The variable is always initialized.
24465         (__ctype_toupper_loc): Likewise.
24466         (__ctype_tolower_loc): Likewise.
24467         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
24468         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
24469
24470 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
24471
24472         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
24473
24474         * configure.in: Also look in $cxxmachine/include for C++ system
24475         headers.
24476
24477 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24478
24479         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
24480         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
24481         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
24482         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
24483         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
24484         (USE_AS_WMEMCMP): New macro.
24485         Fixing indents.
24486         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
24487         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
24488         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
24489         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
24490         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24491         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
24492         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
24493         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
24494         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
24495         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
24496         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
24497         (USE_AS_WMEMCMP): New macro.
24498         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
24499         * sysdeps/string/test-memcmp.c: Update.
24500         Fix simple_wmemcmp.
24501         Add new tests.
24502         * wcsmbs/wmemcmp.c: Update.
24503         (WMEMCMP): New macro.
24504         Fix overflow bug.
24505
24506 2011-10-12  Andreas Jaeger  <aj@suse.de>
24507
24508         [BZ #13268]
24509         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
24510
24511 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
24512
24513         * libio/iofwide.c (do_length): Avoid warning.
24514
24515         * ctype/ctype.h (__isctype_f): Add missing __THROW.
24516
24517 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
24518
24519         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
24520
24521         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
24522         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
24523         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
24524         * sysdeps/i386/i686/fpu/e_log.S: New file.
24525         * sysdeps/i386/i686/fpu/e_logf.S: New file.
24526         * sysdeps/i386/i686/fpu/e_logl.S: New file.
24527
24528         * ctype/ctype.h: Add support for inlined isXXX functions when
24529         compiling C++ code.
24530
24531 2011-10-14  Andreas Schwab  <schwab@redhat.com>
24532
24533         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24534
24535         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
24536
24537 2011-10-13  Roland McGrath  <roland@hack.frob.com>
24538
24539         [BZ #13291]
24540         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
24541
24542 2011-10-13  Andreas Schwab  <schwab@redhat.com>
24543
24544         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
24545         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
24546         feraiseexcept.
24547
24548         * sysdeps/x86_64/memrchr.S: Check for zero size.
24549
24550         * string/stratcliff.c: Add memrchr tests.
24551
24552 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24553
24554         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24555         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
24556         rawmemchr-sse2 rawmemchr-sse2-bsf.
24557         * sysdeps/i386/i686/multiarch/memchr.S: New file.
24558         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
24559         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
24560         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
24561         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
24562         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
24563         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
24564         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
24565         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
24566         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
24567         * string/memrchr.c (MEMRCHR): New macro.
24568
24569 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
24570
24571         Add integration with gcc's -ffinite-math-only and optimize wrapper
24572         functions in libm.
24573         * Versions.def: Define GLIBC_2.15 version for libm.
24574         * math/Makefile (headers): Add bits/math-finite.h.
24575         * math/bits/math-finite.h: New file.
24576         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
24577         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
24578         * math/e_acoshl.c: Add __*_finite alias.
24579         * math/e_acosl.c: Likewise.
24580         * math/e_asinl.c: Likewise.
24581         * math/e_atan2l.c: Likewise.
24582         * math/e_atanhl.c: Likewise.
24583         * math/e_coshl.c: Likewise.
24584         * math/e_exp10.c: Likewise.
24585         * math/e_exp10f.c: Likewise.
24586         * math/e_exp10l.c: Likewise.
24587         * math/e_exp2l.c: Likewise.
24588         * math/e_fmodl.c: Likewise.
24589         * math/e_gammal_r.c: Likewise.
24590         * math/e_hypotl.c: Likewise.
24591         * math/e_j0l.c: Likewise.
24592         * math/e_j1l.c: Likewise.
24593         * math/e_jnl.c: Likewise.
24594         * math/e_lgammal_r.c: Likewise.
24595         * math/e_log10l.c: Likewise.
24596         * math/e_log2l.c: Likewise.
24597         * math/e_logl.c: Likewise.
24598         * math/e_powl.c: Likewise.
24599         * math/e_sinhl.c: Likewise.
24600         * math/e_sqrtl.c: Likewise.
24601         * math/e_scalb.c: Completely rewritten and optimized.
24602         * math/e_scalbf.c: Likewise.
24603         * math/e_scalbl.c: Likewise.
24604         * math/w_acos.c: Likewise.
24605         * math/w_acosf.c: Likewise.
24606         * math/w_acosl.c: Likewise.
24607         * math/w_acosh.c: Likewise.
24608         * math/w_acoshf.c: Likewise.
24609         * math/w_acoshl.c: Likewise.
24610         * math/w_asin.c: Likewise.
24611         * math/w_asinf.c: Likewise.
24612         * math/w_asinl.c: Likewise.
24613         * math/w_atan2.c: Likewise.
24614         * math/w_atan2f.c: Likewise.
24615         * math/w_atan2l.c: Likewise.
24616         * math/w_atanh.c: Likewise.
24617         * math/w_atanhf.c: Likewise.
24618         * math/w_atanhl.c: Likewise.
24619         * math/w_exp10.c: Likewise.
24620         * math/w_exp10f.c: Likewise.
24621         * math/w_exp10l.c: Likewise.
24622         * math/w_fmod.c: Likewise.
24623         * math/w_fmodf.c: Likewise.
24624         * math/w_fmodl.c: Likewise.
24625         * math/w_j0.c: Likewise.
24626         * math/w_j0f.c: Likewise.
24627         * math/w_j0l.c: Likewise.
24628         * math/w_j1.c: Likewise.
24629         * math/w_j1f.c: Likewise.
24630         * math/w_j1l.c: Likewise.
24631         * math/w_jn.c: Likewise.
24632         * math/w_jnf.c: Likewise.
24633         * math/w_log.c: Likewise.
24634         * math/w_logf.c: Likewise.
24635         * math/w_logl.c: Likewise.
24636         * math/w_log10.c: Likewise.
24637         * math/w_log10f.c: Likewise.
24638         * math/w_log10l.c: Likewise.
24639         * math/w_log2.c: Likewise.
24640         * math/w_log2f.c: Likewise.
24641         * math/w_log2l.c: Likewise.
24642         * math/w_pow.c: Likewise.
24643         * math/w_powf.c: Likewise.
24644         * math/w_powl.c: Likewise.
24645         * math/w_remainder.c: Likewise.
24646         * math/w_remainderf.c: Likewise.
24647         * math/w_remainderl.c: Likewise.
24648         * math/w_scalb.c: Likewise.
24649         * math/w_scalbf.c: Likewise.
24650         * math/w_scalbl.c: Likewise.
24651         * math/w_sqrt.c: Likewise.
24652         * math/w_sqrtf.c: Likewise.
24653         * math/w_sqrtl.c: Likewise.
24654         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
24655         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
24656         used.
24657         * math/math_private.h: Declare __kernel_standard_f.
24658         * math/w_cosh.c: Remove cruft and optimize a bit.
24659         * math/w_coshf.c: Likewise.
24660         * math/w_coshl.c: Likewise.
24661         * math/w_exp2.c: Likewise.
24662         * math/w_exp2f.c: Likewise.
24663         * math/w_exp2l.c: Likewise.
24664         * math/w_hypot.c: Likewise.
24665         * math/w_hypotf.c: Likewise.
24666         * math/w_hypotl.c: Likewise.
24667         * math/w_lgamma.c: Likewise.
24668         * math/w_lgamma_r.c: Likewise.
24669         * math/w_lgammaf.c: Likewise.
24670         * math/w_lgammaf_r.c: Likewise.
24671         * math/w_lgammal.c: Likewise.
24672         * math/w_lgammal_r.c: Likewise.
24673         * math/w_sinh.c: Likewise.
24674         * math/w_sinhf.c: Likewise.
24675         * math/w_sinhl.c: Likewise.
24676         * math/w_tgamma.c: Likewise.
24677         * math/w_tgammaf.c: Likewise.
24678         * math/w_tgammal.c: Likewise.
24679         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24680         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24681         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
24682         Minor optimizations.  Pretty printing.  Remove cruft.
24683         * sysdeps/i386/fpu/e_acosf.S: Likewise.
24684         * sysdeps/i386/fpu/e_acosh.S: Likewise.
24685         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
24686         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
24687         * sysdeps/i386/fpu/e_acosl.c: Likewise.
24688         * sysdeps/i386/fpu/e_asin.S: Likewise.
24689         * sysdeps/i386/fpu/e_asinf.S: Likewise.
24690         * sysdeps/i386/fpu/e_atan2.S: Likewise.
24691         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
24692         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
24693         * sysdeps/i386/fpu/e_atanh.S: Likewise.
24694         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
24695         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
24696         * sysdeps/i386/fpu/e_exp10.S: Likewise.
24697         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
24698         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
24699         * sysdeps/i386/fpu/e_exp2.S: Likewise.
24700         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
24701         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
24702         * sysdeps/i386/fpu/e_fmod.S: Likewise.
24703         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
24704         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
24705         * sysdeps/i386/fpu/e_hypot.S: Likewise.
24706         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
24707         * sysdeps/i386/fpu/e_log.S: Likewise.
24708         * sysdeps/i386/fpu/e_log10.S: Likewise.
24709         * sysdeps/i386/fpu/e_log10f.S: Likewise.
24710         * sysdeps/i386/fpu/e_log10l.S: Likewise.
24711         * sysdeps/i386/fpu/e_log2.S: Likewise.
24712         * sysdeps/i386/fpu/e_log2f.S: Likewise.
24713         * sysdeps/i386/fpu/e_log2l.S: Likewise.
24714         * sysdeps/i386/fpu/e_logf.S: Likewise.
24715         * sysdeps/i386/fpu/e_logl.S: Likewise.
24716         * sysdeps/i386/fpu/e_pow.S: Likewise.
24717         * sysdeps/i386/fpu/e_powf.S: Likewise.
24718         * sysdeps/i386/fpu/e_powl.S: Likewise.
24719         * sysdeps/i386/fpu/e_remainder.S: Likewise.
24720         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
24721         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
24722         * sysdeps/i386/fpu/e_scalb.S: Likewise.
24723         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
24724         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
24725         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
24726         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
24727         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
24728         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24729         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24730         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24731         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24732         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
24733         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24734         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
24735         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24736         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24737         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24738         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24739         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24740         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24741         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24742         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24743         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24744         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24745         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24746         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24747         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24748         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24749         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
24750         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24751         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24752         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
24753         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
24754         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
24755         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
24756         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
24757         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
24758         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24759         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24760         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24761         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24762         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24763         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24764         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24765         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24766         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24767         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24768         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24769         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24770         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24771         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24772         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24773         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24774         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24775         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24776         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24777         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
24778         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24779         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24780         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24781         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24782         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24783         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24784         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24785         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24786         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24787         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24788         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24789         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24790         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24791         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24792         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24793         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24794         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24795         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24796         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
24797         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24798         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24799         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24800         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24801         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24802         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24803         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24804         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
24805         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24806         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24807         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24808         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24809         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24810         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
24811         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24812         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24813         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24814         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24815         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24816         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24817         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24818         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24819         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24820         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24821         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
24822         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
24823         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
24824         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
24825         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
24826         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
24827         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
24828         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
24829         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
24830         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
24831         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
24832         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
24833         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
24834         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
24835         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
24836         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
24837         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
24838         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
24839         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
24840         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
24841         (__isnanf): Likewise.
24842         (__isinf_ns): Likewise.
24843         (__isinf_nsf): Likewise.
24844         (__finite): Likewise.
24845         (__finitef): Likewise.
24846         (__ieee754_sqrt): Define as macro.
24847         (__ieee754_sqrtf): Define as macro.
24848         (__ieee754_sqrtl): Define as macro.
24849         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
24850         inlined copy.
24851         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
24852         __FINITE_MATH_ONLY__ consistent.
24853         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
24854
24855 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
24856
24857         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
24858         of rawmemchr.
24859
24860         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
24861
24862 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
24863
24864         * po/ja.po: Update from translation team.
24865
24866 2011-10-08  Roland McGrath  <roland@hack.frob.com>
24867
24868         * locale/programs/locarchive.c (prepare_address_space): New function.
24869         (create_archive, enlarge_archive, open_archive): Use it.
24870
24871         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
24872         inside [SHARED], where it is used.
24873
24874         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
24875
24876         * nss/getent.c (netgroup_keys): Remove unused variable.
24877         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24878
24879 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
24880
24881         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
24882         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
24883         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
24884         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
24885         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
24886         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
24887         * math/Makefile (libm-calls): Add s_isinf_ns.
24888         * math/divtc3.c: Use __isinf_nsl instead of isinf.
24889         * math/multc3.c: Likewise.
24890         * math/s_casin.c: Likewise.
24891         * math/s_casinf.c: Likewise.
24892         * math/s_casinl.c: Likewise.
24893         * math/s_ccos.c: Likewise.
24894         * math/s_ccosf.c: Likewise.
24895         * math/s_ccosl.c: Likewise.
24896         * math/s_ctan.c: Likewise.
24897         * math/s_ctanf.c: Likewise.
24898         * math/s_ctanh.c: Likewise.
24899         * math/s_ctanhf.c: Likewise.
24900         * math/s_ctanhl.c: Likewise.
24901         * math/s_ctanl.c: Likewise.
24902         * math/w_fmod.c: Likewise.
24903         * math/w_fmodf.c: Likewise.
24904         * math/w_fmodl.c: Likewise.
24905         * math/w_remainder.c: Likewise.
24906         * math/w_remainderf.c: Likewise.
24907         * math/w_remainderl.c: Likewise.
24908         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
24909         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
24910         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
24911         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
24912         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
24913         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
24914         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
24915         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
24916
24917         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
24918         of the number.
24919         * stdio-common/printf_fphex.c: Likewise.
24920         * stdio-common/printf_size.c: Likewise.
24921
24922         * math/e_exp10.c: Include math_private.h using <...> not "...".
24923         * math/e_exp10f.c: Likewise.
24924         * math/e_exp10l.c: Likewise.
24925         * math/e_exp2l.c: Likewise.
24926         * math/e_j0l.c: Likewise.
24927         * math/e_j1l.c: Likewise.
24928         * math/e_jnl.c: Likewise.
24929         * math/e_lgammal_r.c: Likewise.
24930         * math/e_rem_pio2l.c: Likewise.
24931         * math/e_scalb.c: Likewise.
24932         * math/e_scalbf.c: Likewise.
24933         * math/e_scalbl.c: Likewise.
24934         * math/k_cosl.c: Likewise.
24935         * math/k_sinl.c: Likewise.
24936         * math/k_tanl.c: Likewise.
24937         * math/s_cacoshf.c: Likewise.
24938         * math/s_catan.c: Likewise.
24939         * math/s_catanf.c: Likewise.
24940         * math/s_catanh.c: Likewise.
24941         * math/s_catanhf.c: Likewise.
24942         * math/s_catanhl.c: Likewise.
24943         * math/s_catanl.c: Likewise.
24944         * math/s_ccosh.c: Likewise.
24945         * math/s_ccoshf.c: Likewise.
24946         * math/s_ccoshl.c: Likewise.
24947         * math/s_cexp.c: Likewise.
24948         * math/s_cexpf.c: Likewise.
24949         * math/s_cexpl.c: Likewise.
24950         * math/s_clog.c: Likewise.
24951         * math/s_clog10.c: Likewise.
24952         * math/s_clog10f.c: Likewise.
24953         * math/s_clog10l.c: Likewise.
24954         * math/s_clogf.c: Likewise.
24955         * math/s_clogl.c: Likewise.
24956         * math/s_csin.c: Likewise.
24957         * math/s_csinf.c: Likewise.
24958         * math/s_csinh.c: Likewise.
24959         * math/s_csinhf.c: Likewise.
24960         * math/s_csinhl.c: Likewise.
24961         * math/s_csinl.c: Likewise.
24962         * math/s_csqrt.c: Likewise.
24963         * math/s_csqrtf.c: Likewise.
24964         * math/s_csqrtl.c: Likewise.
24965         * math/s_ctan.c: Likewise.
24966         * math/s_ctanf.c: Likewise.
24967         * math/s_ctanh.c: Likewise.
24968         * math/s_ctanhf.c: Likewise.
24969         * math/s_ctanhl.c: Likewise.
24970         * math/s_ctanl.c: Likewise.
24971         * math/s_ldexp.c: Likewise.
24972         * math/s_ldexpf.c: Likewise.
24973         * math/s_ldexpl.c: Likewise.
24974         * math/s_significand.c: Likewise.
24975         * math/s_significandf.c: Likewise.
24976         * math/s_significandl.c: Likewise.
24977         * math/w_acos.c: Likewise.
24978         * math/w_acosf.c: Likewise.
24979         * math/w_acosh.c: Likewise.
24980         * math/w_acoshf.c: Likewise.
24981         * math/w_acoshl.c: Likewise.
24982         * math/w_acosl.c: Likewise.
24983         * math/w_asin.c: Likewise.
24984         * math/w_asinf.c: Likewise.
24985         * math/w_asinl.c: Likewise.
24986         * math/w_atan2.c: Likewise.
24987         * math/w_atan2f.c: Likewise.
24988         * math/w_atan2l.c: Likewise.
24989         * math/w_atanh.c: Likewise.
24990         * math/w_atanhf.c: Likewise.
24991         * math/w_atanhl.c: Likewise.
24992         * math/w_cosh.c: Likewise.
24993         * math/w_coshf.c: Likewise.
24994         * math/w_coshl.c: Likewise.
24995         * math/w_dremf.c: Likewise.
24996         * math/w_exp10.c: Likewise.
24997         * math/w_exp10f.c: Likewise.
24998         * math/w_exp10l.c: Likewise.
24999         * math/w_exp2.c: Likewise.
25000         * math/w_exp2f.c: Likewise.
25001         * math/w_fmod.c: Likewise.
25002         * math/w_fmodf.c: Likewise.
25003         * math/w_fmodl.c: Likewise.
25004         * math/w_hypot.c: Likewise.
25005         * math/w_hypotf.c: Likewise.
25006         * math/w_hypotl.c: Likewise.
25007         * math/w_j0.c: Likewise.
25008         * math/w_j0f.c: Likewise.
25009         * math/w_j0l.c: Likewise.
25010         * math/w_j1.c: Likewise.
25011         * math/w_j1f.c: Likewise.
25012         * math/w_j1l.c: Likewise.
25013         * math/w_jn.c: Likewise.
25014         * math/w_jnf.c: Likewise.
25015         * math/w_jnl.c: Likewise.
25016         * math/w_lgamma.c: Likewise.
25017         * math/w_lgamma_r.c: Likewise.
25018         * math/w_lgammaf.c: Likewise.
25019         * math/w_lgammaf_r.c: Likewise.
25020         * math/w_lgammal.c: Likewise.
25021         * math/w_lgammal_r.c: Likewise.
25022         * math/w_log.c: Likewise.
25023         * math/w_log10.c: Likewise.
25024         * math/w_log10f.c: Likewise.
25025         * math/w_log10l.c: Likewise.
25026         * math/w_log2.c: Likewise.
25027         * math/w_log2f.c: Likewise.
25028         * math/w_log2l.c: Likewise.
25029         * math/w_logf.c: Likewise.
25030         * math/w_logl.c: Likewise.
25031         * math/w_pow.c: Likewise.
25032         * math/w_powf.c: Likewise.
25033         * math/w_powl.c: Likewise.
25034         * math/w_remainder.c: Likewise.
25035         * math/w_remainderf.c: Likewise.
25036         * math/w_remainderl.c: Likewise.
25037         * math/w_scalb.c: Likewise.
25038         * math/w_scalbf.c: Likewise.
25039         * math/w_scalbl.c: Likewise.
25040         * math/w_sinh.c: Likewise.
25041         * math/w_sinhf.c: Likewise.
25042         * math/w_sinhl.c: Likewise.
25043         * math/w_sqrt.c: Likewise.
25044         * math/w_sqrtf.c: Likewise.
25045         * math/w_sqrtl.c: Likewise.
25046         * math/w_tgamma.c: Likewise.
25047         * math/w_tgammaf.c: Likewise.
25048         * math/w_tgammal.c: Likewise.
25049
25050         * po/ja.po: Update from translation team.
25051
25052 2011-09-29  Andreas Jaeger  <aj@suse.de>
25053
25054         [BZ #13179]
25055         * sunrpc/netname.c (netname2host): Fix logic.
25056
25057         [BZ #6779]
25058         [BZ #6783]
25059         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
25060         correctly.
25061         * math/w_remainder.c (__remainder): Likewise.
25062         * math/w_remainderf.c (__remainderf): Likewise.
25063         * math/libm-test.inc (remainder_test): Add test cases.
25064
25065 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25066
25067         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
25068         sdiv_qrnnd.
25069
25070 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
25071
25072         * string/test-memcmp.c: Avoid unncessary #defines.
25073         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
25074
25075 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25076
25077         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
25078         Use new sse2 version for core i3 - i7 as it's faster
25079         than sse42 version.
25080         (bit_Prefer_PMINUB_for_stringop): New.
25081         * sysdeps/x86_64/rawmemchr.S: Update.
25082         Replace with faster SSE2 version.
25083         * sysdeps/x86_64/memrchr.S: New file.
25084         * sysdeps/x86_64/memchr.S: Update.
25085         Replace with faster SSE2 version.
25086
25087 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
25088
25089         * elf/dl-load.c (lose): Add cast to avoid warning.
25090
25091 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
25092
25093         * po/ca.po: Update from translation team.
25094
25095         * inet/getnetgrent_r.c: Hook up nscd.
25096         * nscd/Makefile (routines): Add nscd_netgroup.
25097         (nscd-modules): Add netgroupcache.
25098         (CFLAGS-netgroupcache.c): Define.
25099         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
25100         (cache_search): Add const to second parameter.
25101         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
25102         INNETGR.
25103         (dbs): Add netgrdb entry.
25104         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
25105         (verify_persistent_db): Handle netgrdb.
25106         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
25107         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
25108         GETFDNETGR.
25109         (netgroup_response_header): Define.
25110         (innetgroup_response_header): Define.
25111         (datahead): Add netgroup_response_header and innetgroup_response_header
25112         elements.
25113         * nscd/nscd.conf: Add entries for netgroup cache.
25114         * nscd/nscd.h (dbtype): Add netgrdb.
25115         (_PATH_NSCD_NETGROUP_DB): Define.
25116         (netgroup_iov_disabled): Declare.
25117         (xmalloc, xcalloc, xrealloc): Move declarations here.
25118         (cache_search): Adjust prototype.
25119         Add netgroup-related prototypes.
25120         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
25121         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
25122         (__nscd_innetgr): Declare.
25123         * nscd/selinux.c (perms): Use access_vector_t as element type and
25124         add netgroup-related initializers.
25125         * nscd/netgroupcache.c: New file.
25126         * nscd/nscd_netgroup.c: New file.
25127         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
25128         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
25129         For four parameters use innetgr.
25130         * nss/nss_files/files-init.c: Add definition and callback for netgr.
25131         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
25132         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
25133         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
25134
25135         * nscd/connections.c (register_traced_file): Don't register file
25136         for disabled databases.
25137
25138 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
25139
25140         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
25141
25142         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
25143         from tree and freeing node.
25144
25145 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
25146
25147         * nss/nsswitch.c (__nss_database_lookup): Handle
25148         nss_parse_service_list out of memory case.
25149
25150 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
25151
25152         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
25153         out of memory case.
25154
25155 2011-10-04  Andreas Schwab  <schwab@redhat.com>
25156
25157         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
25158         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
25159         pass it down.
25160         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
25161         elf_machine_rela, elf_machine_lazy_rel.
25162         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
25163         (ELF_DYNAMIC_DO_REL): Likewise.
25164         (ELF_DYNAMIC_DO_RELA): Likewise.
25165         (ELF_DYNAMIC_RELOCATE): Likewise.
25166         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
25167         to ELF_DYNAMIC_DO_REL.
25168         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
25169         (dl_main): In trace mode always set __RTLD_NOIFUNC.
25170         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
25171         elf_machine_rela.
25172         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
25173         skip_ifunc, don't call ifunc function if non-zero.
25174         (elf_machine_rela): Likewise.
25175         (elf_machine_lazy_rel): Likewise.
25176         (elf_machine_lazy_rela): Likewise.
25177         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
25178         (elf_machine_lazy_rel): Likewise.
25179         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25180         Likewise.
25181         (elf_machine_lazy_rel): Likewise.
25182         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25183         Likewise.
25184         (elf_machine_lazy_rel): Likewise.
25185         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
25186         (elf_machine_lazy_rel): Likewise.
25187         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
25188         (elf_machine_lazy_rel): Likewise.
25189         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
25190         (elf_machine_lazy_rel): Likewise.
25191         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25192         (elf_machine_lazy_rel): Likewise.
25193         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25194         (elf_machine_lazy_rel): Likewise.
25195         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
25196         (elf_machine_lazy_rel): Likewise.
25197
25198 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
25199
25200         * nss/nss_files/files-init.c (_nss_files_init): Use static
25201         initialization for all the *_traced_file variables.
25202
25203 2011-09-28  Andreas Schwab  <schwab@redhat.com>
25204
25205         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25206
25207 2011-09-27  Roland McGrath  <roland@hack.frob.com>
25208
25209         [BZ #13226]
25210         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
25211
25212 2011-09-27  Andreas Schwab  <schwab@redhat.com>
25213
25214         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
25215         Reread the line before reparsing it.
25216
25217 2011-09-26  Andreas Schwab  <schwab@redhat.com>
25218
25219         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
25220
25221 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
25222             Maxim Kuvyrkov  <maxim@codesourcery.com>
25223             Joseph Myers  <joseph@codesourcery.com>
25224
25225         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
25226         if needed for __stack_chk_guard.
25227
25228 2011-09-19  Roland McGrath  <roland@hack.frob.com>
25229
25230         * sysdeps/posix/spawni.c (script_execute): Always define it.
25231         It will be optimized away if unused.
25232         (maybe_script_execute): New function.
25233         (__spawni): Call it.
25234
25235         * Makerules: Don't include tls.make.
25236         (config-tls): Always set to thread.
25237         * tls.make.c: File removed.
25238
25239 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
25240
25241         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
25242         * config.make.in (CPPFLAGS-config): New substituted variable.
25243
25244 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
25245
25246         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
25247
25248         [BZ #13192]
25249         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
25250         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
25251
25252 2011-09-15  Roland McGrath  <roland@hack.frob.com>
25253
25254         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
25255         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
25256         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
25257         (CALL_FAIL): Likewise.
25258         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
25259         (CALL_FAIL): Macro removed.
25260         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
25261
25262 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
25263
25264         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
25265         for __FINITE_MATH_ONLY__ == 1.
25266
25267 2011-09-15  Andreas Schwab  <schwab@redhat.com>
25268
25269         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
25270         __ieee754_sqrt instead of sqrt.
25271         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
25272         __ieee754_sqrtf instead of sqrtf.
25273         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
25274         __floorf instead of floorf.
25275         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
25276         __floorf, __truncf instead of floorf, truncf.
25277
25278 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
25279
25280         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
25281
25282         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
25283         __extern_always_inline.
25284         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
25285         32-bit.
25286
25287 2011-09-14  Andreas Schwab  <schwab@redhat.com>
25288
25289         * elf/rtld.c (dl_main): Also relocate in dependency order when
25290         doing symbol dependency testing.
25291
25292 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
25293
25294         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25295         Always define `refsym'.
25296
25297 2011-09-13  Andreas Schwab  <schwab@redhat.com>
25298
25299         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
25300         (__FD_ELT): Renamed from __FDELT.
25301         * misc/bits/select2.h (__FD_ELT): Likewise.
25302         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
25303         __FD_MASK instead of __FDELT, __FDMASK.
25304         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
25305         Likewise.
25306         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
25307         Likewise.
25308
25309         * elf/Makefile (gen-ldd): Fix pattern.
25310
25311         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
25312         (init_tls): Likewise.
25313
25314 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
25315
25316         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
25317
25318 2011-09-12  Andreas Schwab  <schwab@redhat.com>
25319
25320         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
25321         `struct cmsghdr *' instead of `void *'.
25322         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
25323         Likewise.
25324
25325 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
25326
25327         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
25328         if non-absolute.
25329         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
25330         ldd_rewrite_script.
25331
25332 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
25333
25334         * configure.in: Remove --with-tls option.
25335         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
25336         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
25337         out in case it is missing.
25338         * sysdeps/ia64/elf/configure.in: Likewise.
25339         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
25340         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
25341         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
25342         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
25343         * sysdeps/sh/elf/configure.in: Likewise.
25344         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
25345         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
25346         * sysdeps/x86_64/elf/configure.in: Likewise.
25347         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
25348         * sysdeps/mach/hurd/tls.h: Likewise.
25349
25350         [BZ #13067]
25351         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
25352
25353         [BZ #13090]
25354         * configure.in: Fix use of AC_INIT.
25355
25356         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
25357
25358 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
25359
25360         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
25361         __set_errno.
25362         * malloc/hooks.c: Likewise.
25363
25364         [BZ #11929]
25365         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
25366         variables statically.
25367         (narenas): Initialize.
25368         (list_lock): Initialize.
25369         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
25370         initializtion of main_arena and list_lock.  Small cleanups.
25371         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
25372         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
25373         Add initializers to main_arena and mp_.
25374         (malloc_state): Remove pagesize member.  Change all users to use
25375         GLRO(dl_pagesize).
25376
25377         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
25378         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
25379         is always initialized.
25380
25381         * malloc/malloc.c: Removed unused configurations and dead code.
25382         * malloc/arena.c: Likewise.
25383         * malloc/hooks.c: Likewise.
25384         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
25385
25386         * include/tls.h: Removed.  USE___THREAD must always be defined.
25387         * bits/libc-tsd.h: Don't handle !USE___THREAD.
25388         * elf/dl-libc.c: Likewise.
25389         * elf/dl-tsd.c: Likewise.
25390         * include/errno.h: Likewise.
25391         * include/netdb.h: Likewise.
25392         * include/resolv.h: Likewise.
25393         * inet/herrno-loc.c: Likewise.
25394         * inet/herrno.c: Likewise.
25395         * malloc/arena.c: Likewise.
25396         * malloc/hooks.c: Likewise.
25397         * malloc/malloc.c: Likewise.
25398         * resolv/res-state.c: Likewise.
25399         * resolv/res_libc.c: Likewise.
25400         * sysdeps/i386/dl-machine.h: Likewise.
25401         * sysdeps/ia64/dl-machine.h: Likewise.
25402         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
25403         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
25404         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
25405         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
25406         * sysdeps/sh/dl-machine.h: Likewise.
25407         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25408         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25409         * sysdeps/unix/i386/sysdep.S: Likewise.
25410         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
25411         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
25412         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
25413         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25414         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
25415         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
25416         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
25417         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25418         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25419         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
25420         * sysdeps/unix/x86_64/sysdep.S: Likewise.
25421         * sysdeps/x86_64/dl-machine.h: Likewise.
25422         * tls.make.c: Likewise.
25423
25424         * configure.in: Remove --with-__thread option.  Make tests for
25425         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
25426         tls_model attribute fail if no support is available.  Remove
25427         USE_IN_LIBIO.
25428         * Makeconfig: Adjust for dropped configure option.  All features are
25429         now mandatory.
25430         * Makerules: Likewise.
25431         * Versions.def: Likewise.
25432         * argp/argp-fmtstream.c: Likewise.
25433         * argp/argp-fmtstream.h: Likewise.
25434         * argp/argp-help.c: Likewise.
25435         * assert/assert.c: Likewise.
25436         * config.h.in: Likewise.
25437         * config.make.in: Likewise.
25438         * configure: Likewise.
25439         * configure.in: Likewise.
25440         * csu/Versions: Likewise.
25441         * csu/init.c: Likewise.
25442         * elf/tst-audit2.c: Likewise.
25443         * elf/tst-tls10.c: Likewise.
25444         * elf/tst-tls10.h: Likewise.
25445         * elf/tst-tls11.c: Likewise.
25446         * elf/tst-tls12.c: Likewise.
25447         * elf/tst-tls14.c: Likewise.
25448         * elf/tst-tlsmod11.c: Likewise.
25449         * elf/tst-tlsmod12.c: Likewise.
25450         * elf/tst-tlsmod13.c: Likewise.
25451         * elf/tst-tlsmod13a.c: Likewise.
25452         * elf/tst-tlsmod14a.c: Likewise.
25453         * elf/tst-tlsmod15b.c: Likewise.
25454         * elf/tst-tlsmod16a.c: Likewise.
25455         * elf/tst-tlsmod16b.c: Likewise.
25456         * elf/tst-tlsmod7.c: Likewise.
25457         * elf/tst-tlsmod8.c: Likewise.
25458         * elf/tst-tlsmod9.c: Likewise.
25459         * gmon/gmon.c: Likewise.
25460         * grp/fgetgrent_r.c: Likewise.
25461         * grp/putgrent.c: Likewise.
25462         * hurd/fopenport.c: Likewise.
25463         * include/libc-symbols.h: Likewise.
25464         * include/tls.h: Likewise.
25465         * intl/gettextP.h: Likewise.
25466         * intl/loadinfo.h: Likewise.
25467         * locale/global-locale.c: Likewise.
25468         * locale/localeinfo.h: Likewise.
25469         * mach/devstream.c: Likewise.
25470         * malloc/arena.c: Likewise.
25471         * malloc/set-freeres.c: Likewise.
25472         * misc/err.c: Likewise.
25473         * misc/getttyent.c: Likewise.
25474         * misc/mntent_r.c: Likewise.
25475         * posix/getopt.c: Likewise.
25476         * posix/wordexp.c: Likewise.
25477         * pwd/fgetpwent_r.c: Likewise.
25478         * resolv/Versions: Likewise.
25479         * resolv/res_hconf.c: Likewise.
25480         * shadow/fgetspent_r.c: Likewise.
25481         * shadow/putspent.c: Likewise.
25482         * stdio-common/printf_fphex.c: Likewise.
25483         * stdio-common/tmpfile.c: Likewise.
25484         * stdlib/abort.c: Likewise.
25485         * stdlib/fmtmsg.c: Likewise.
25486         * sunrpc/auth_unix.c: Likewise.
25487         * sunrpc/clnt_perr.c: Likewise.
25488         * sunrpc/clnt_tcp.c: Likewise.
25489         * sunrpc/clnt_udp.c: Likewise.
25490         * sunrpc/clnt_unix.c: Likewise.
25491         * sunrpc/openchild.c: Likewise.
25492         * sunrpc/svc_simple.c: Likewise.
25493         * sunrpc/svc_tcp.c: Likewise.
25494         * sunrpc/svc_udp.c: Likewise.
25495         * sunrpc/svc_unix.c: Likewise.
25496         * sunrpc/xdr.c: Likewise.
25497         * sunrpc/xdr_array.c: Likewise.
25498         * sunrpc/xdr_rec.c: Likewise.
25499         * sunrpc/xdr_ref.c: Likewise.
25500         * sunrpc/xdr_stdio.c: Likewise.
25501
25502 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25503
25504         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25505
25506 2011-07-03  Andreas Jaeger  <aj@suse.de>
25507
25508         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
25509         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
25510         regenerate with gen-libm-tests.pl.
25511
25512 2010-05-12  Petr Baudis  <pasky@suse.cz>
25513
25514         [BZ #11589]
25515         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
25516         around j0() zero points by switching to j1().
25517         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
25518         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
25519         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
25520         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
25521
25522 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25523
25524         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
25525         instead of 0.
25526         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
25527         instead of 0.
25528         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25529         Patch in part by Pavel Roskin <proski@gnu.org>.
25530
25531         [BZ #13138]
25532         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
25533         realloc.
25534         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
25535         Free memory block if necessary.
25536
25537         [BZ #12847]
25538         * libio/genops.c (INTDEF): For string streams the _lock pointer can
25539         be NULL.  Don't lock in this case.
25540
25541 2011-09-09  Roland McGrath  <roland@hack.frob.com>
25542
25543         * elf/elf.h (ELFOSABI_GNU): New macro.
25544         (ELFOSABI_LINUX): Define to that.
25545
25546 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
25547
25548         * string/strncat.c (strncat): Undef the symbol in case it has been
25549         defined in bits/string.h.
25550
25551 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25552
25553         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
25554
25555         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
25556         link map.
25557
25558 2011-08-17  Andreas Jaeger  <aj@suse.de>
25559
25560         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
25561
25562 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
25563             Ian Lance Taylor  <iant@google.com>
25564
25565         * math/libm-test.inc (lround_test): New testcase.
25566         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
25567
25568 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
25569
25570         * Makefile: Remove support for automatic cvs check-ins.
25571         * Makerules: Likewise.
25572         * config.make.in: Likewise.
25573         * configure.in: Likewise.
25574         * intl/Makefile: Likewise.
25575         * locale/Makefile: Likewise.
25576         * po/Makefile: Likewise.
25577         * posix/Makefile: Likewise.
25578         * sysdeps/gnu/Makefile: Likewise.
25579         * sysdeps/mach/hurd/Makefile: Likewise.
25580         * sysdeps/sparc/sparc32/Makefile: Likewise.
25581
25582         [BZ #13118]
25583         * posix/Makefile (bug-regex32-ENV): Define.
25584         Patch by John Stanley <jpsinthemix@verizon.net>.
25585
25586         * misc/Makefile (headers): Add bits/select2.h.
25587         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
25588         * misc/bits/select2.h: New file.
25589         * include/bits/select2.h: New file.
25590         * debug/Makefile (routines): Add fdelt_chk.
25591         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
25592         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
25593         FD_ISSET.
25594         * debug/fdelt_chk.c: New file.
25595
25596         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
25597         * wcsmbs/test-wmemcmp.c: Likewise.
25598         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
25599         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
25600
25601 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25602
25603         * string/Makefile (strop-tests): Add memcmp.
25604         * string/test-wmemcmp.c: New file.
25605         * string/test-memcmp.c: Add wmemcmp support.
25606
25607 2011-09-08  Roland McGrath  <roland@hack.frob.com>
25608
25609         [BZ #13153]
25610         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
25611         2011-07-19 change.
25612
25613         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
25614         garbage value in a __mach_port_mod_refs call in the cases of the
25615         task-self and thread-self ports.
25616
25617 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25618
25619         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
25620
25621 2011-09-08  Andreas Schwab  <schwab@redhat.com>
25622
25623         * elf/dl-load.c (lose): Check for non-null L.
25624
25625 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
25626
25627         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
25628
25629         * elf/dl-libc.c (dlerror_run): Pass back error code from
25630         dl_catch_error.
25631
25632         [BZ #13123]
25633         * elf/dl-load.c (lose): Free l_origin if it is valid.
25634
25635         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
25636         names.
25637         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
25638         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
25639         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25640         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
25641         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
25642         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
25643
25644 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25645
25646         * sysdeps/powerpc/fpu/e_hypot.c: New file.
25647         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
25648         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
25649         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
25650         * sysdeps/powerpc/fpu/k_cosf.c: New file.
25651         * sysdeps/powerpc/fpu/k_sinf.c: New file.
25652         * sysdeps/powerpc/fpu/s_cosf.c: New file.
25653         * sysdeps/powerpc/fpu/s_sinf.c: New file.
25654         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
25655         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
25656
25657 2011-08-15  Alan Modra  <amodra@gmail.com>
25658
25659         [BZ #13092]
25660         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
25661         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
25662         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
25663         ppc_mcount to static-only-routines.
25664         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
25665         __mcount_internal.
25666         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
25667         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
25668
25669 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
25670
25671         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
25672         for finite and infinity parameters.
25673
25674 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
25675
25676         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
25677         and add nop instructions for throughput optimization.
25678         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
25679
25680 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
25681
25682         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
25683         aligned copy for power7 with vector-scalar instructions.
25684         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
25685
25686 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
25687
25688         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
25689         AVX check.
25690
25691 2011-09-07  Andreas Schwab  <schwab@redhat.com>
25692
25693         [BZ #13144]
25694         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
25695         last change.
25696
25697 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
25698
25699         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25700         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
25701         syscall wrapper around clock_gettime in __vdso_clock_gettime.
25702         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
25703         clock_gettime.
25704
25705 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25706
25707         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
25708         Forgot to demangle the pointer.
25709
25710         * sysdeps/i386/sysdep.h: Define atom_text_section.
25711         * sysdeps/x86_64/sysdep.h: Likewise.
25712         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
25713         section with atom_text_section.
25714         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
25715         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
25716         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
25717         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25718         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
25719
25720         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
25721         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
25722         already be defined.  Change to take two parameters and don't assign
25723         result to variable.  Adjust all users.
25724         Define INTERNAL_GETTIME if not already defined.
25725         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
25726         call.
25727         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
25728         HAVE_CLOCK_GETTIME_VSYSCALL.
25729         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
25730
25731         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
25732         gettimeofday vsyscall, just use time.
25733
25734 2011-09-06  Andreas Schwab  <schwab@redhat.com>
25735
25736         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
25737         <errno.h>.
25738
25739 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25740
25741         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
25742         syscall on x86-64.
25743         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
25744         syscall.
25745         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
25746         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
25747         syscall if possible.
25748
25749 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25750
25751         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
25752         e_ident.  Don't pass to find_mapsXX.
25753         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
25754
25755 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25756
25757         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25758         strchr-sse2-no-bsf strrchr-sse2-no-bsf
25759         * sysdeps/x86_64/multiarch/strchr.S: Update.
25760         Check bit_slow_BSF bit.
25761         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
25762         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
25763         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
25764
25765 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25766
25767         [BZ #13134]
25768         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
25769         before glibc 2.15.
25770         (tryshell): Define.
25771         (__spawni): Change last parameter to be flag.  Test
25772         SPAWN_XFLAGS_USE_PATH flag to use path or not.
25773         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
25774         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
25775         * posix/spawni.c: Likewise.
25776         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
25777         * posix/spawnp.c: Likewise.  Change normal version to use
25778         SPAWN_XFLAGS_USE_PATH.
25779         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
25780         SPAWN_XFLAGS_TRY_SHELL.
25781
25782         [BZ #13150]
25783         * posix/glob.h: Remove gcc 1.x support.
25784
25785         [BZ #13068]
25786         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
25787
25788 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25789
25790         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25791         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
25792         strrchr-sse2-bsf
25793         * sysdeps/i386/i686/multiarch/strchr.S: New file.
25794         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
25795         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
25796         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
25797         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
25798         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
25799
25800 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25801
25802         * sysdeps/x86_64/wcscmp.S: New file.
25803
25804         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
25805         wcscmp-c wcscmp-sse2
25806         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
25807         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
25808         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
25809         * wcsmbs/wcscmp.c: Allow renaming.
25810
25811 2011-09-05  David S. Miller  <davem@davemloft.net>
25812
25813         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
25814         stack slot, rather than the struct return pointer slot.
25815         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
25816         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
25817         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
25818         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
25819
25820 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25821
25822         * po/ja.po: Update from translation team.
25823
25824         [BZ #13144]
25825         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
25826         kernel in 64-bit binaries.
25827
25828 2011-09-01  David S. Miller  <davem@davemloft.net>
25829
25830         * elf/elf.h (HWCAP_SPARC_*): Move to..
25831         * sysdeps/sparc/sysdep.h: this new file and add new values.
25832         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
25833         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
25834         _DL_HWCAP_COUNT to 24.
25835         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
25836         entries.
25837         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
25838         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
25839         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
25840         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
25841         instead of magic constants.
25842         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25843
25844 2011-08-31  David S. Miller  <davem@davemloft.net>
25845
25846         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
25847         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
25848         Reimplement to do errno handling inline.
25849         (SYSCALL_ERROR_HANDLER): New macro.
25850         (__SYSCALL_STRING): Do not do errno handling in asm.
25851         (__CLONE_SYSCALL_STRING): Delete.
25852         (__INTERNAL_SYSCALL_STRING): Delete.
25853         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
25854         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
25855         (PSEUDO): Reimplement to do errno handling inline.
25856         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
25857         (SYSCALL_ERROR_HANDLER): New macro.
25858         (__SYSCALL_STRING): Do not do errno handling in asm.
25859         (__CLONE_SYSCALL_STRING): Delete.
25860         (__INTERNAL_SYSCALL_STRING): Delete.
25861         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
25862         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
25863         i386.
25864         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
25865         (inline_syscall*): Add 'err' argument.
25866         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
25867         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
25868         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
25869         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
25870
25871         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
25872         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25873
25874 2011-08-30  Andreas Schwab  <schwab@redhat.com>
25875
25876         * elf/rtld.c (dl_main): Relocate objects in dependency order.
25877
25878 2011-08-29  Jiri Olsa <jolsa@redhat.com>
25879
25880         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
25881         directive.
25882
25883 2011-08-24  David S. Miller  <davem@davemloft.net>
25884
25885         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
25886
25887 2011-08-24  Andreas Schwab  <schwab@redhat.com>
25888
25889         * elf/Makefile: Add rules to build and run unload8 test.
25890         * elf/unload8.c: New file.
25891         * elf/unload8mod1.c: New file.
25892         * elf/unload8mod1x.c: New file.
25893         * elf/unload8mod2.c: New file.
25894         * elf/unload8mod3.c: New file.
25895
25896         * elf/dl-close.c (_dl_close_worker): Reset private search list if
25897         it wasn't used.
25898
25899 2011-08-23  David S. Miller  <davem@davemloft.net>
25900
25901         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
25902         subtract stack bias.
25903         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
25904         %sp not %fp in calculations.
25905         (_JMPBUF_UNWINDS_ADJ): Likewise.
25906
25907         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
25908         (aio_suspend): Call it to force an exception region around the
25909         AIO_MISC_WAIT() invocation.
25910
25911 2011-08-23  Andreas Schwab  <schwab@redhat.com>
25912
25913         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
25914         backslash.
25915
25916 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
25917
25918         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
25919         protection macro.
25920         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
25921         and <dl-machine.h>.
25922         (Elf64_FuncDesc): Remove.
25923
25924 2011-08-22  David S. Miller  <davem@davemloft.net>
25925
25926         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
25927         sigaltstack check, add missing cfi directives.
25928         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
25929         missing cfi directives, and sigaltstack handling.
25930
25931 2011-08-16  Andreas Schwab  <schwab@redhat.com>
25932
25933         [BZ #11724]
25934         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
25935         object is seen twice.
25936         * elf/dl-fini.c (_dl_sort_fini): Likewise.
25937
25938         * elf/Makefile (distribute): Add tst-initorder2.c.
25939         (tests): Add tst-initorder2.
25940         (modules-names): Add tst-initorder2a tst-initorder2b
25941         tst-initorder2c tst-initorder2d.  Add rules to build them.
25942         ($(objpfx)tst-initorder2.out): New rule.
25943         * elf/tst-initorder2.c: New file.
25944         * elf/tst-initorder2.exp: New file.
25945
25946 2011-08-22  Andreas Schwab  <schwab@redhat.com>
25947
25948         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
25949
25950         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
25951         dependencies back to end of function.
25952
25953         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25954         $(elfobjdir)/ld.so.
25955
25956 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
25957
25958         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
25959         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
25960         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
25961         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
25962         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
25963         of __vdso_gettimeofday.
25964         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
25965         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
25966         attribute_hidden.
25967         (_libc_vdso_platform_setup): Remove initialization of
25968         __vdso_gettimeofday and __vdso_time.
25969
25970 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25971
25972         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
25973         and fgetc_unlocked.
25974         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
25975         getc_unlocked.
25976
25977         * elf/dl-open.c (add_to_global): Report additions to the global scope
25978         for LD_DEBUG=scopes.
25979         (dl_open_worker): Also print scope of newly loaded dependencies.
25980         (_dl_show_scope): Indicate if there is no scope.
25981
25982         [BZ #13114]
25983         * stdio-common/Makefile (tests): Add bug24.
25984         * stdio-common/bug24.c: New file.
25985
25986 2011-08-19  Andreas Jaeger  <aj@suse.de>
25987
25988         [BZ #13114]
25989         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
25990         non-existant file when using close-on-exec mode.
25991
25992 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25993
25994         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
25995         the very first instruction.
25996
25997         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
25998         the CFI state in the end.
25999         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
26000         inclusion of dl-trampoline.h.
26001         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
26002
26003 2011-08-19  Andreas Schwab  <schwab@redhat.com>
26004
26005         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
26006         expectations for long double.
26007
26008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
26009         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
26010
26011 2011-08-14  David S. Miller  <davem@davemloft.net>
26012
26013         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
26014         artificual limit depends upon the system page size.
26015
26016 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
26017
26018         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
26019         * resolv/Makefile: Define CFLAGS-libresolv.
26020
26021 2011-08-17  Andreas Schwab  <schwab@redhat.com>
26022
26023         * nss/makedb.c (compute_tables): Make variables used in nested
26024         function static.
26025
26026 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
26027
26028         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
26029         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
26030         if buffer was too small.
26031
26032         * elf/pldd.c (main): Attach to all threads in the process.
26033         Rewrite /proc handling to use *at functions.
26034
26035 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
26036
26037         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
26038         specifies first scope to show.
26039         (dl_open_worker): Update callers.  Move printing scope of new
26040         object to before the relocation.
26041         * elf/rtld.c (dl_main): Update _dl_show_scope call.
26042         * sysdeps/generic/ldsodefs.h: Update declaration.
26043
26044         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
26045         string for the scope number.
26046
26047 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
26048
26049         * nscd/servicescache.c (cache_addserv): Make sure written is always
26050         initialized.
26051
26052 2011-08-14  Roland McGrath  <roland@hack.frob.com>
26053
26054         * sysdeps/i386/i486/bits/atomic.h
26055         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
26056         statement expression, so as to suppress "set but not used" warning.
26057         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
26058
26059         * string/strncat.c (STRNCAT): Use prototype definition.
26060
26061         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
26062         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
26063         -Iprograms here.
26064         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
26065         (localedef-modules): Add localedef.
26066         (locale-modules): Add locale.
26067
26068         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
26069         * elf/rtld.c (dl_main): Invert order of assignment in last change,
26070         to avoid a warning.
26071
26072 2011-08-14  David S. Miller  <davem@davemloft.net>
26073
26074         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
26075         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
26076
26077 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
26078
26079         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
26080         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
26081         * elf/rtld.c (dl_main): Set l_name of vDSO.
26082         Call _dl_show_scope when DL_DEBUG_SCOPES.
26083         (process_dl_debug): Recognize scopes flag and also set it for all.
26084         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
26085         Declare _dl_show_scope.
26086
26087         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
26088         (do_dlopen): Pass caller_dlopen to dl_open.
26089         (__libc_dlopen_mode): Initialize caller_dlopen.
26090
26091         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
26092         of libc.  Make tolower call locale-independent.  Optimize a bit by
26093         using isdigit instead of isalnum.
26094         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
26095
26096 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
26097
26098         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
26099         was a dependency or dynamically loaded.
26100
26101 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
26102
26103         * intl/l10nflist.c: Allow architecture-specific pop function.
26104         * sysdeps/x86_64/l10nflist.c: New file.
26105
26106         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
26107         classification.
26108
26109 2011-08-10  Andreas Schwab  <schwab@redhat.com>
26110
26111         * include/dirent.h: Add libc_hidden_proto for scandirat and
26112         scandirat64.  Don't declare __scandirat64.
26113         * dirent/scandirat.c: Add libc_hidden_def.
26114         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
26115         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
26116
26117 2011-08-10  David S. Miller  <davem@davemloft.net>
26118
26119         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
26120         enum.
26121         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
26122         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
26123         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
26124
26125 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
26126
26127         * Versions.def [libc]: Add GLIBC_2.15.
26128         * dirent/Makefile (routines): Add scandirat and scandirat64.
26129         * dirent/Versions [libc]: Export scandirat and scandirat64 for
26130         GLIBC_2.15.
26131         * dirent/dirent.h: Declare scandirat and scandirat64.
26132         * dirent/scandirat.c: New file.
26133         * dirent/scandirat64.c: New file.
26134         * sysdeps/wordsize-64/scandirat.c: New file.
26135         * sysdeps/wordsize-64/scandirat64.c: New file.
26136         * dirent/opendir.c: Define opendirat.
26137         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
26138         using scandirat.
26139         * dirent/scandir64.c: Adjust for scandir.c change.
26140         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
26141         __scandirat64, and __scandir_cancel_handler.
26142         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
26143         additional parameter and use openat instead of open (outside of ld.so).
26144         Add new __opendir as wrapper around __opendirat.
26145         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
26146         here without requiring old scandirat implementation.
26147
26148 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
26149
26150         * dirent/scandir.c (cancel_handler): Renamed to
26151         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
26152         defined.  Adjust users.
26153         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
26154         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
26155
26156 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
26157
26158         * string/test-string.h (IMPL): Use __STRING to expand name and then
26159         stringify it.
26160
26161         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
26162         of cleanups.
26163
26164 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26165
26166         * string/Makefile: Update.
26167         (strop-tests): Append strncat.
26168         * string/test-wcscmp.c: New file.
26169         New comprehensive test for wcscmp.
26170         * string/test-strcmp.c: Update.
26171         (WIDE): New define.
26172
26173 2011-07-22  Andreas Schwab  <schwab@redhat.com>
26174
26175         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
26176         line.
26177
26178 2011-07-26  Andreas Schwab  <schwab@redhat.com>
26179
26180         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
26181         encoding to ACE if AI_IDN.
26182
26183 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
26184
26185         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
26186         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
26187
26188 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26189
26190         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
26191         Fix overflow bug in strncat.
26192         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
26193
26194         * string/test-strncat.c: Update.
26195         Add new tests for checking overflow bugs.
26196
26197 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26198
26199         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26200         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
26201         * sysdeps/i386/i686/multiarch/strcat.S: New file.
26202         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
26203         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
26204         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
26205         * sysdeps/i386/i686/multiarch/strncat.S: New file.
26206         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
26207         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
26208
26209         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
26210         (USE_AS_STRCAT): Define.
26211         Add strcat and strncat support.
26212         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
26213
26214 2011-07-25  Andreas Schwab  <schwab@redhat.com>
26215
26216         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
26217         __n bigger than INT_MAX+1.
26218         (__strncmp_g): Likewise.
26219
26220 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
26221
26222         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
26223         * libio/stido.h: Likewise.
26224
26225         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
26226         (AF_NFC): Define.
26227         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
26228         (AF_NFC): Define.
26229
26230         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
26231         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
26232         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
26233         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
26234         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
26235
26236         [BZ #13021]
26237         * scripts/test-installation.pl: Don't expect libnss_test1 to be
26238         installed.
26239
26240         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
26241         typo.
26242         (_dl_x86_64_save_sse): Likewise.
26243
26244 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
26245
26246         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
26247         OSXSAVE.
26248         (_dl_x86_64_save_sse): Likewise.
26249
26250         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
26251
26252         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
26253
26254 2011-07-21  Andreas Schwab  <schwab@redhat.com>
26255
26256         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
26257         change.
26258         (_dl_x86_64_save_sse): Use correct AVX check.
26259
26260 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26261
26262         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
26263         bug in strncpy/strncat.
26264         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
26265
26266 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
26267
26268         * string/tester.c (test_strcat): Add tests for different alignments
26269         of source and destination.
26270         (test_strncat): Likewise.
26271
26272 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
26273
26274         [BZ #12852]
26275         * posix/glob.c (glob): Check passed in values before using them in
26276         expressions to avoid some overflows.
26277         (glob_in_dir): Likewise.
26278
26279         [BZ #13007]
26280         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
26281         check for AVX enablement so that we don't crash with old kernels and
26282         new hardware.
26283         * elf/tst-audit4.c: Add same checks here.
26284         * elf/tst-audit6.c: Likewise.
26285
26286         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
26287
26288 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
26289
26290         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
26291
26292 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
26293
26294         * po/cs.po: Update from translation team.
26295         * po/bg.po: Likewise.
26296
26297 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
26298
26299         * misc/sys/cdefs.h: Add support for const attribute.
26300         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
26301         to gnu_dev_{major,minor,makedev} functions.
26302
26303 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
26304
26305         * intl/dcigettext.c (get_output_charset): Add missing bracket.
26306
26307 2011-07-20  Andreas Schwab  <schwab@redhat.com>
26308
26309         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
26310         strlen results.
26311
26312 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26313
26314         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
26315         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
26316         register in order to avoid conflicts with the soft frame pointer
26317         being held in r11 when necessary.
26318         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26319         (INTERNAL_VSYSCALL_NCS): Likewise.
26320
26321 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
26322
26323         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
26324         * elf/dl-fini.c (_dl_fini): Adjust caller.
26325         * elf/dl-close.c (_dl_close_worker): Likewise.
26326         * sysdeps/generic/ldsodefs.h: Adjust declaration.
26327
26328 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
26329
26330         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
26331         "aux_cache->nlibs < 0".
26332
26333         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
26334         in the reload-count case.
26335
26336 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26337
26338         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26339         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
26340         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
26341         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
26342         * sysdeps/x86_64/multiarch/strcat.S: New file.
26343         * sysdeps/x86_64/multiarch/strncat.S: New file.
26344         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
26345         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
26346         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
26347         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
26348         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
26349         (USE_AS_STRCAT): Define.
26350         Add strcat and strncat support.
26351         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
26352         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
26353         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
26354         * string/strncat.c: Update.
26355         (USE_AS_STRNCAT): Define.
26356         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26357         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
26358         and i7.
26359         * sysdeps/x86_64/multiarch/init-arch.h
26360         (bit_Prefer_PMINUB_for_stringop): New.
26361         (index_Prefer_PMINUB_for_stringop): Likewise.
26362         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
26363         bit_Prefer_PMINUB_for_stringop.
26364
26365 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
26366
26367         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
26368         buffer64.
26369         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
26370         of casting of buffer.
26371         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
26372         buffer32 and buffer64.
26373         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
26374         writes instead of casting of buffer.
26375         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
26376         buffer32.
26377         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
26378         casting of buffer.
26379
26380 2011-07-19  Andreas Schwab  <schwab@redhat.com>
26381
26382         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
26383
26384 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
26385
26386         * nscd/nscd.c (termination_handler): Don't do anything for a database
26387         if it has not yet been initialized.
26388
26389 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
26390
26391         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
26392
26393 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
26394
26395         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
26396
26397 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
26398
26399         * po/nl.po: Update from translation team.
26400         * po/sv.po: Likewise.
26401
26402 2011-07-16  Roland McGrath  <roland@hack.frob.com>
26403
26404         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
26405         now disallowed by GCC.
26406
26407         * configure.in (use-default-link): Default to yes if a test -shared
26408         link meets our qualifications.
26409         * configure: Regenerated.
26410
26411         * config.make.in (output-format): New variable.
26412         * configure.in: Check for ld --print-output-format support.
26413         * configure: Regenerated.
26414         * Makerules ($(common-objpfx)format.lds)
26415         [$(output-format) != unknown]: Just use $(output-format),
26416         instead of the linker-script munging.
26417
26418 2011-07-14  Roland McGrath  <roland@hack.frob.com>
26419
26420         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
26421         of $(common-objpfx)shlib.lds.
26422         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
26423
26424         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
26425         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
26426
26427         * configure.in (-z relro check): Adjust test code to add a large
26428         writable data section after it.
26429         * configure: Regenerated.
26430
26431 2011-07-11  Roland McGrath  <roland@hack.frob.com>
26432
26433         * configure.in (-z relro check): Fix test code to make the variable
26434         truly const.
26435         * configure: Regenerated.
26436
26437 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
26438
26439         * nscd/nscd.h (struct traced_file): Define.
26440         (struct database_dyn): Remove inotify_descr, reset_res, and filename
26441         elements.  Add traced_files.
26442         (inotify_fd): Declare.
26443         (register_traced_file): Declare.
26444         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
26445         (inotify_fd): Export.
26446         (resolv_conf_descr): Remove.
26447         (nscd_init): Move inotify descriptor creation to main.
26448         Don't register files for notification here.
26449         (register_traced_file): New function.
26450         (invalidate_cache): Don't use reset_res to determine whether to call
26451         res_init, go through the list of registered files.
26452         (main_loop_poll): The inotify descriptors are now stored in the
26453         structures for the traced files.
26454         (main_loop_epoll): Likewise
26455         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
26456         to __nss_disable_nscd.
26457         * nscd/cache.c (prune_cache): There is no single inotify descriptor
26458         for a database anymore.  Check the records for all the registered
26459         files instead.
26460         * nss/Makefile (libnss_files-routines): Add files-init.
26461         (libnss_db-routines): Add db-init.
26462         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
26463         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
26464         * nss/nss_db/db-init.c: New file.
26465         * nss/nss_files/files-init.c: New file.
26466         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
26467         __nss_lookup_function.
26468         (__nss_lookup_function): Call nss_load_library.
26469         (nss_load_all_libraries): New function.
26470         (__nss_disable_nscd): Take parameter with callback function for files
26471         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
26472         used for the cached services.
26473         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
26474         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
26475         options for features to all the files in nscd.
26476
26477         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
26478
26479 2011-07-10  Roland McGrath  <roland@hack.frob.com>
26480
26481         * csu/elf-init.c (__libc_csu_init): Comment typo.
26482
26483 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
26484
26485         * po/pl.po: Update from translation team.
26486         * po/ja.po: Likewise.
26487         * po/ru.po: Likewise.
26488         * po/ko.po: Likewise.
26489         * po/fr.po: Likewise.
26490
26491 2011-07-09  Roland McGrath  <roland@hack.frob.com>
26492
26493         * configure.in (.ctors/.dtors header and trailer check):
26494         Use an empirical test on a built program.
26495         * configure: Regenerated.
26496
26497         * configure.in (-z relro check): Use an empirical test on a built DSO.
26498         Detect, but do not require, on ia64.
26499         * configure: Regenerated.
26500
26501         * configure.in (READELF): Find it with AC_CHECK_TOOL.
26502         Update tests that use readelf to use $READELF instead.
26503         * configure: Regenerated.
26504
26505 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
26506
26507         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
26508         if the result is not used.
26509
26510 2011-07-05  Andreas Jaeger  <aj@suse.de>
26511
26512         [BZ#9696]
26513         * stdlib/tst-strtod.c: Add testcase.
26514
26515 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
26516
26517         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
26518         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
26519         The latter has a higher limit.  Take additional parameter to pass to
26520         the new function.
26521         (__pathconf): Pass file to __statfs_link_max.
26522         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
26523         __statfs_link_max.
26524         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
26525         __statfs_link_max.
26526
26527         [BZ #12868]
26528         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
26529         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
26530         Handle Lustre.
26531         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
26532         (__statfs_filesize_max): Likewise.
26533         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
26534
26535 2011-07-05  Andreas Jaeger  <aj@suse.de>
26536
26537         * resolv/res_comp.c (dn_skipname): Remove unused variable.
26538
26539 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
26540
26541         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
26542         `status' variable.
26543         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
26544         Likewise.
26545
26546 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
26547
26548         * Makefile (strop-tests): Add strncat.
26549         * string/test-strncat.c: New file.
26550
26551 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
26552
26553         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
26554
26555 2011-06-21  Andreas Jaeger  <aj@suse.de>
26556
26557         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
26558         Copy rule from iconvdata/Makefile.
26559
26560 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
26561
26562         [BZ #12922]
26563         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
26564         but no long options are defined, just return 'W'.
26565
26566 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
26567
26568         [BZ #9696]
26569         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
26570
26571 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
26572
26573         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
26574         netgroups to read.
26575         (innetgr): Likewise.
26576
26577 2011-07-05  Roland McGrath  <roland@hack.frob.com>
26578
26579         * config.make.in (install_root): Default to $(DESTDIR).
26580
26581 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
26582
26583         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
26584
26585 2011-07-02  Roland McGrath  <roland@hack.frob.com>
26586
26587         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
26588
26589         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
26590         containing directory rather than embedding absolute directory names.
26591
26592         * scripts/check-local-headers.sh: Rewritten using awk.
26593         Match by word, not by line.  Print error messages for matches.
26594         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
26595
26596         * Makerules [shlib-lds-flags empty]:
26597         ($(common-objpfx)libc_pic.opts): New target.
26598         ($(common-objpfx)libc_pic.os.clean): New target.
26599         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
26600
26601         * config.make.in (OBJCOPY): New variable.
26602         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
26603         * configure: Regenerated.
26604
26605         * config.make.in (use-default-link): New variable.
26606         * configure.in (use_default_link): Grok --with-default-link to set it.
26607         * configure: Regenerated.
26608         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
26609         (shlib-lds, shlib-lds-flags): Define to empty.
26610
26611         * Makerules (shlib-lds): New variable.
26612         (shlib-lds-flags): New variable.
26613         (build-shlib, build-moduile, build-module-asneeded): Use it.
26614         ($(common-objpfx)libc.so): Use $(shlib-lds).
26615         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
26616         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
26617
26618         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
26619         DT_FLAGS/DT_FLAGS_1 with zero flags.
26620
26621         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
26622         linker script munging.
26623
26624 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
26625
26626         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
26627         as 128-bit value.
26628         * crypt/sha512.c (sha512_process_block): Perform total addition using
26629         128-bit if possible.
26630         (__sha512_finish_ctx): Likewise.
26631         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
26632         as 64-bit value.
26633         * crypt/sha256.c (SWAP64): Define.
26634         (sha256_process_block): Perform total addition using 64-bit if
26635         possible.
26636         (__sha256_finish_ctx): Likewise.
26637
26638 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
26639
26640         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
26641         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26642         * nscd/hstcache.c (cache_addhst): Likewise.
26643         * nscd/grpcache.c (cache_addgr): Likewise.
26644         * nscd/aicache.c (addhstaiX): Likewise
26645         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
26646
26647 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
26648
26649         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
26650         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26651         * nscd/hstcache.c (cache_addhst): Likewise.
26652         * nscd/grpcache.c (cache_addgr): Likewise.
26653         * nscd/aicache.c (addhstaiX): Likewise
26654
26655 2011-07-01  Andreas Schwab  <schwab@redhat.com>
26656
26657         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
26658         domain only when needed.
26659
26660 2011-06-30  Andreas Schwab  <schwab@redhat.com>
26661
26662         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
26663         is always restored.
26664
26665 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
26666
26667         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
26668         are re-adding the entry.
26669         * nscd/servicescache.c (cache_addserv): Likewise.
26670
26671 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
26672
26673         * sysdeps/generic/dl-irel.h: fix protection against multiple
26674         inclusions.
26675         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
26676
26677 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
26678
26679         [BZ #12935]
26680         * malloc/memusage.sh: Fix quoting in message.
26681         * debug/xtrace.sh: Likewise.
26682
26683         * configure.in: Remove support for --experimental-malloc option, make
26684         it the default.
26685         * config.make.in: Likewise.
26686         * malloc/Makefile: Likewise.
26687
26688 2011-06-27  Andreas Schwab  <schwab@redhat.com>
26689
26690         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
26691         two-byte characters.
26692
26693 2011-06-27  Roland McGrath  <roland@hack.frob.com>
26694
26695         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
26696         AC_CACHE_CHECK invocation.
26697         * configure: Regenerated.
26698
26699         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
26700
26701 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
26702
26703         [BZ #12350]
26704         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
26705         bit from old_res_options.
26706
26707         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
26708
26709         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
26710         value type for setfct.
26711
26712 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
26713
26714         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26715         __gettimeofday instead of gettimeofday.
26716
26717 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
26718
26719         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
26720
26721 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
26722
26723         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
26724
26725         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
26726         info.
26727
26728 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26729
26730         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26731         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26732         strcpy-sse2-unaligned strncpy-sse2-unaligned
26733         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
26734         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
26735         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
26736         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
26737         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
26738         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
26739         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
26740         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
26741         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
26742         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
26743         (STRCPY): Support SSE2 and SSSE3 versions.
26744
26745 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
26746
26747         [BZ #12874]
26748         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
26749         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
26750         kernels which artificially limit size of requests.
26751
26752 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26753
26754         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26755         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26756         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
26757         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
26758         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
26759         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
26760         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
26761         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
26762         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
26763         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
26764         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
26765         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
26766         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
26767         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
26768         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
26769         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26770         Enable unaligned load optimization for Intel Core i3, i5 and i7
26771         processors.
26772         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
26773         Define.
26774         (index_Fast_Unaligned_Load): Define.
26775         (HAS_FAST_UNALIGNED_LOAD): Define.
26776
26777 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
26778
26779         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
26780
26781 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26782
26783         [BZ #12907]
26784         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
26785         until it is clear that the information is realy needed.
26786         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
26787
26788 2011-06-22  Andreas Schwab  <schwab@redhat.com>
26789
26790         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
26791
26792 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26793
26794         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26795         /sys/devices/system/cpu/online if it is usable.
26796
26797         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
26798         reading the information from the /proc filesystem to once a second.
26799
26800 2011-06-21  Andreas Jaeger  <aj@suse.de>
26801
26802         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
26803         NULL after inclusion of kernel headers.
26804
26805 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
26806
26807         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
26808         calls to internal_setent.
26809
26810         [BZ #12885]
26811         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
26812         addresses using gethostbyname4_r ignore IPv4 addresses.
26813
26814         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
26815         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
26816
26817         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
26818
26819 2011-06-20  David S. Miller  <davem@davemloft.net>
26820
26821         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
26822         inclusions.
26823         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
26824
26825         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
26826         (elf_irel): Use it.
26827         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
26828         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
26829         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
26830         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
26831         * sysdeps/x86_64/dl-irel.h: Likewise.
26832
26833         * elf/dl-runtime.c: Use elf_ifunc_invoke.
26834         * elf/dl-sym.c: Likewise.
26835
26836 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26837
26838         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
26839         need to dereference resplen2.
26840
26841 2011-06-14  Andreas Schwab  <schwab@redhat.com>
26842
26843         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
26844
26845 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26846
26847         * Makeconfig: Define vardbdir and inst_vardbdir.
26848         * nss/Makefile: Add rules to install db-Makefile.
26849
26850         * nss/nss_db/db-XXX.c: Cleanup.
26851
26852         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
26853         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
26854         GLIBC_PRIVATE.
26855         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
26856         * nss/makedb.c: Implement -g option to specify that value strings
26857         are generated and should not be added to table iterated over for
26858         get*ent calls.
26859         * nss/nss_db/db-initgroups.c: New file.
26860
26861         * nss/getent.c: Add support for initgroups lookups through getgrouplist
26862         interface.
26863
26864         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
26865         (internal_getgrouplist): Adjust to name change.
26866         Update use_initgroups_entry if this is not the first call.
26867         * nss/databases.def: Add initgroups entry.
26868
26869         * nss/makedb.c (compute_tables): Check result of multiple hash table
26870         sizes to minimize maximum chain length.
26871
26872 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
26873
26874         * Versions.def: Add entry for libnss_db.
26875         * shlib-versions: Likewise.
26876         * nss/Makefile: Add rules to build libnss_db.
26877         * nss/Versions: Add libnss_db information.  Organize libnss_files
26878         entries better.
26879         * nss/db-Makefile: Add gshadow support.  Change rules for the new
26880         makedb progra.  Some minor improvements to generate smaller files.
26881         * nss/nss_db/nss_db.h: Move NSS database header data structures to
26882         here from...
26883         * nss/makedb.c: ...here.
26884         Improve database format to be smaller and require less memory at
26885         runtime.
26886         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
26887         db anymore.
26888         * nss/nss_db/db-netgrp.c: Likewise.
26889         * nss/nss_db/db-open.c: Likewise.
26890         * nss/nss_files/flies-XXX.x: Adjust comments.
26891         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
26892         * nss/nss_files/files-grp.c: Likewise.
26893         * nss/nss_files/files-hosts.c: Likewise.
26894         * nss/nss_files/files-network.c: Likewise.
26895         * nss/nss_files/files-proto.c: Likewise.
26896         * nss/nss_files/files-pwd.c: Likewise.
26897         * nss/nss_files/files-rpc.c: Likewise.
26898         * nss/nss_files/files-service.c: Likewise.
26899         * nss/nss_files/files-sgrp.c: Likewise.
26900         * nss/nss_files/files-spwd.c: Likewise.
26901         * nss/nss_db/db-alias.c: Removed.
26902         * nss/nss_db/dummy-db.h: Removed.
26903
26904 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
26905
26906         * nss/makedb.c: Rewritten to not use database library.
26907         * nss/Makefile: Update to build new makedb program.
26908
26909 2011-06-14  Andreas Jaeger  <aj@suse.de>
26910
26911         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
26912         memset declaration.
26913
26914 2011-06-10  Andreas Schwab  <schwab@redhat.com>
26915
26916         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
26917         tmpbuf.
26918
26919 2011-06-10  Roland McGrath  <roland@hack.frob.com>
26920
26921         * Makerules (shlib.lds): Fail if the linker script comes out empty.
26922         * elf/Makefile ($(objpfx)ld.so): Likewise.
26923
26924         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
26925         Don't list ld.so twice in dependencies.
26926
26927         * posix/bug-regex31.c: Include <stdlib.h>.
26928
26929         * nscd/hstcache.c (cache_addhst): Remove unused variable.
26930
26931         * nis/nss_compat/compat-spwd.c
26932         (getspent_next_nss_netgr): Remove unused variable.
26933         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
26934
26935         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
26936         nonmembers" output to use the right array.
26937
26938         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
26939
26940         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
26941
26942         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
26943         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
26944         * catgets/gencat.c (read_input_file): Likewise.
26945         * locale/programs/locarchive.c (enlarge_archive): Likewise.
26946
26947         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
26948         variable definition inside #if's controlling its use.
26949
26950         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
26951
26952         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
26953
26954         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
26955
26956         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
26957         unreachable code.
26958
26959         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
26960
26961         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
26962         * configure: Regenerated.
26963
26964         * Makerules: Revert last change.
26965         * elf/Makefile: Likewise.
26966
26967 2011-06-09  Roland McGrath  <roland@hack.frob.com>
26968
26969         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
26970         * elf/Makefile ($(objpfx)librtld.os): Likewise.
26971         (reloc-link): Likewise.
26972
26973 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
26974
26975         * elf/Makefile: Add rules to build pldd.
26976         * elf/pldd.c: New file.
26977         * elf/pldd-xx.c: New file.
26978
26979 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
26980
26981         * version.h: Update for 2.15 development version.
26982
26983 2011-06-07  David S. Miller  <davem@davemloft.net>
26984
26985         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
26986         ifuncs.
26987         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
26988         elf_machine_lazy_rel): Likewise.
26989         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
26990         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
26991         elf_machine_lazy_rel): Likewise.
26992         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
26993         dl_hwcap via passed in argument.
26994         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
26995         Likewise.
26996
26997 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26998
26999         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
27000
27001 2011-06-06  Roland McGrath  <roland@hack.frob.com>
27002
27003         [BZ #12849]
27004         * manual/fdl-1.1.texi: New file, verbatim from:
27005         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
27006         * manual/lgpl-2.1.texi: New file, verbatim from:
27007         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
27008         * manual/Makefile (licenses): New variable, list those new file names.
27009         (texis): Use it.
27010         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
27011
27012         * manual/fdl.texi: File removed.
27013         * manual/lesser.texi: File removed.
27014         * manual/libc.texinfo (Copying, Documentation License):
27015         Use new @include file names, put @appendix directive before @include.
27016
27017 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
27018
27019         [BZ #12841]
27020         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
27021         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
27022         (mq_open): Add __NTH.
27023
27024 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
27025
27026         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27027         Assume Intel Core i3/i5/i7 processor if AVX is available.
27028
27029 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
27030
27031         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
27032         typo.
27033
27034 2011-05-31  Andreas Schwab  <schwab@redhat.com>
27035
27036         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
27037         memory.  Use alloca_account.  Fix memory leak when retrying.
27038
27039 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
27040
27041         * version.h (RELEASE): Bump for 2.14 release.
27042         * include/features.h (__GLIBC_MINOR__): Bump to 14.
27043
27044         * config.make.in (RANLIB): Remove entry.
27045
27046 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
27047
27048         * po/Makefile (po-sed-cmd): Add ksh to extensions.
27049         (libc.pot): Work around missing support for .ksh extension in xgettext.
27050
27051         [BZ #12684]
27052         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
27053         if both request failed.
27054         (send_dg): In case of server errors clear resplen or *resplen2.
27055
27056         [BZ #12454]
27057         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
27058         when there are multiple maps.
27059         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
27060         (_dl_fini): Remove test here.
27061
27062         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
27063
27064 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
27065
27066         [BZ #12350]
27067         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
27068         bit from old_res_options.
27069         (gaih_inet): Likewise.
27070
27071         [BZ #11099]
27072         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
27073         as signed.
27074
27075         * resolv/res_init.c (res_setoptions): Make the code more compact.
27076
27077         [BZ #11558]
27078         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
27079         set RES_USEVC.
27080
27081         [BZ #11634]
27082         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
27083
27084         * malloc/malloc.h: Mark malloc hook variables as deprecated.
27085
27086         [BZ #11781]
27087         * malloc/malloc.h: Declare malloc hook variables as volatile.
27088
27089         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
27090         in last patch.
27091
27092         [BZ #11799]
27093         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
27094         raise in the comment.
27095         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
27096         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
27097         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
27098
27099 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
27100
27101         [BZ #12811]
27102         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
27103         grow the buffers more if it already has to be sufficient.
27104         (build_wcs_upper_buffer): Likewise.
27105         * posix/regexec.c (check_matching): Likewise.
27106         (clean_state_log_if_needed): Likewise.
27107         (extend_buffers): Don't enlarge buffers beyond size of the input
27108         buffer.
27109         Patches mostly by Emil Wojak <emil@wojak.eu>.
27110         * posix/bug-regex32.c: New file.
27111         * posix/Makefile (tests): Add bug-regex32.
27112
27113         * locale/findlocale.c (_nl_find_locale): Return right away if
27114         _nl_explode_name failed.
27115         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
27116
27117         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
27118
27119         * debug/xtrace.sh: Unify messages.
27120         * malloc/memusage.sh: Likewise.
27121
27122         [BZ #12813]
27123         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
27124         time symbol from vDSO.  Substitute with vsyscall if not available.
27125         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
27126         __vdso_time.
27127
27128         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
27129         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
27130         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
27131         Add sendmmsg and internal_sendmmsg.
27132         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
27133         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
27134         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
27135
27136         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
27137         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
27138         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
27139
27140 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
27141
27142         [BZ #12813]
27143         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
27144         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
27145         available.
27146         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
27147         __vdso_getcpu.
27148
27149         [BZ #12814]
27150         * iconvdata/Makefile (tests): Add bug-iconv9.
27151         * iconvdata/bug-iconv9.c: New file.
27152
27153 2011-05-27  Andreas Schwab  <schwab@redhat.com>
27154
27155         [BZ #12814]
27156         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
27157
27158 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
27159
27160         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
27161         (struct user_regs_struct): Change intcs field back to cs.
27162
27163 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
27164
27165         * po/ja.po: Update from translation team.
27166
27167 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
27168
27169         [BZ #12795]
27170         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
27171         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
27172
27173 2011-05-20  Andreas Schwab  <schwab@redhat.com>
27174
27175         * stdlib/longlong.h: Update from GCC.
27176
27177 2011-05-23  Andreas Schwab  <schwab@redhat.com>
27178
27179         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
27180         parameter name.
27181         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
27182         Add parameter name.
27183         (__sysconf): Pass it down.
27184
27185 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
27186
27187         [BZ #12671]
27188         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
27189         some situations.
27190         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
27191         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
27192         add in in __libc_use_alloca calls.  Adjust callers.
27193         (glob): Use malloc in some situations.
27194
27195         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
27196         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
27197         pltexit.
27198
27199 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
27200
27201         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
27202         and CLOCK_BOOTTIME_ALARM.
27203
27204         [BZ #12782]
27205         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
27206         is returned.
27207
27208         * string/_strerror.c (__strerror_r): Print negative errors as signed
27209         numbers.
27210
27211         [BZ #12777]
27212         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
27213         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
27214         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
27215
27216         * configure.in: Fix typo in redirection and correct removal of test
27217         files in two cases.
27218
27219         [BZ #12788]
27220         * locale/setlocale.c (new_composite_name): Fix test to check for
27221         identical name of all categories.
27222
27223         [BZ #12792]
27224         * libio/filedoalloc.c (local_isatty): New function.
27225         (_IO_file_doallocate): Use local_isatty.
27226         * stdio-common/perror.c (perror): In case a new stream is used
27227         forward the stream error.
27228         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
27229         error flag.
27230
27231 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
27232
27233         [BZ #11869]
27234         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
27235         alloca.
27236         * include/alloca.h (extend_alloca_account): Define.
27237
27238         [BZ #11857]
27239         * posix/regex.h: Fix comments with documentation of user-accessible
27240         fields after compilation and describe correct free'ing of pattern
27241         after re_compile_pattern.
27242         Patch by Reuben Thomas <rrt@sc3d.org>.
27243
27244 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
27245
27246         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
27247         and -mno-altivec to prevent the compiler from using Altivec and/or
27248         VSX instructions when the corresponding registers are not available.
27249
27250 2011-05-19  Andreas Schwab  <schwab@redhat.com>
27251
27252         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
27253
27254 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
27255
27256         * libio/freopen.c (freopen): Use __dup2, not dup2.
27257         * libio/freopen64.c (freopen64): Likewise.
27258
27259 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
27260
27261         [BZ #12775]
27262         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
27263         * math/Makefile (tests): Add test-powl.
27264         (CFLAGS-test-powl.c): Define.
27265         * math/test-powl.c: New file.
27266
27267 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
27268
27269         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
27270
27271 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
27272
27273         [BZ #11837]
27274         * iconvdata/gb18030.c: Update to GB18020-2005.
27275
27276 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
27277
27278         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
27279         RE_SYNTAX_POSIX_AWK): Update to match recent development.
27280         Patch by Aharon Robbins <arnold@skeeve.com>.
27281
27282         [BZ #11892]
27283         * stdlib/putenv.c (putenv): Don't always create copy of the variable
27284         on the stack.
27285
27286         [BZ #11895]
27287         * misc/pselect.c (__pselect): Handle timeout value errors hidden
27288         through underflows.
27289
27290         [BZ #12766]
27291         * misc/error.c (error_at_line): Ensure file_name and old_file_name
27292         point to strings before performing equality test for error_one_per_line
27293         mode.
27294
27295         [BZ #11697]
27296         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
27297
27298         [BZ #11820]
27299         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
27300         (struct user_fpregs_struct): Avoid __uint*_t types.
27301
27302         [BZ #6420]
27303         * malloc/mtrace.c (tr_where): Add additional parameter to point to
27304         symbol info.  Use it instead of calling _dl_addr locally.
27305         (lock_and_info): New function.
27306         (tr_freehook): Call lock_and_info and pass symbol info as additional
27307         parameter to tr_where.
27308         (tr_mallochook): Likewise.
27309         (tr_reallochook): Likewise.
27310         (tr_memalignhook): Likewise.
27311
27312         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
27313         used and couldn't be at all thread-safe.
27314
27315 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
27316
27317         * libio/freopen.c (freopen): Don't close old file descriptor
27318         before the new one is opened.  Instead dup the new file descriptor
27319         to the old one after the new stream is created.
27320         * libio/freopen64.c (freopen64): Likewise.
27321         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
27322         * libio/fileops.c (_IO_new_file_close_it): Handle new
27323         _IO_FLAGS2_NOCLOSE flag.
27324         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
27325         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
27326         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
27327         _IO_FLAGS2_NOCLOSE flag.
27328         * include/unistd.h: Add hidden_proto for dup3.
27329         Define __have_dup3.
27330         * io/dup3.c: Define hidden symbol.
27331         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
27332
27333         [BZ #7101]
27334         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
27335         when an incomplete long option is used.
27336         * posix/tst-getopt_long1.c: New file.
27337         * posix/Makefile (tests): Add tst-getopt_long1.
27338
27339         [BZ #10138]
27340         * scripts/config.guess: Update from autoconf-2.68.
27341         * scripts/config.sub: Likewise.
27342
27343         [BZ #10157]
27344         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
27345         tests into ...
27346         (has_cpuclock): ...this.  New function.
27347         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
27348         macro here based on has_cpuclock code.
27349
27350         [BZ #10149]
27351         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27352         First byte (not low byte) is now always NUL.
27353         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
27354
27355         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27356         Use non-cancelable interfaces.
27357
27358         [BZ #9809]
27359         * locale/iso-639.def: Add entry for Sorani.
27360
27361         [BZ #11901]
27362         * include/stdlib.h: Move include protection to the right place.
27363         Define abort_msg_s.  Declare __abort_msg with it.
27364         * stdlib/abort.c (__abort_msg): Adjust type.
27365         * assert/assert.c (__assert_fail_base): New function.  Majority
27366         of code from __assert_fail.  Allocate memory for __abort_msg with
27367         mmap.
27368         (__assert_fail): Now call __assert_fail_base.
27369         * assert/assert-perr.c: Remove bulk of implementation.  Use
27370         __assert_fail_base.
27371         * include/assert.hL Declare __assert_fail_base.
27372         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
27373         mmap.
27374         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
27375
27376 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
27377
27378         [BZ #11952]
27379         [BZ #12453]
27380         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
27381         until all modules are registered in the DTV.
27382         * elf/Makefile: Add rules to build and run tst-tls19.
27383         * elf/tst-tls19.c: New file.
27384         * elf/tst-tls19mod1.c: New file.
27385         * elf/tst-tls19mod2.c: New file.
27386         * elf/tst-tls19mod3.c: New file.
27387         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
27388
27389         [BZ #12083]
27390         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
27391         correctly.
27392
27393         [BZ #12601]
27394         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
27395         two-byte sequence errors.
27396         * iconvdata/Makefile (tests): Add bug-iconv8.
27397         * iconvdata/bug-iconv8.c: New file.
27398
27399         [BZ #12626]
27400         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
27401         buf2 definition.
27402
27403         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
27404
27405         [BZ #12432]
27406         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
27407         (dummy_getcfa): New function.
27408         (init): Get _Unwind_GetCFA address, use dummy if not found.
27409         (backtrace_helper): In recursion check, also check whether CFA changes.
27410         (__backtrace): Completely initialize arg.
27411
27412         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
27413         storing incomplete byte sequence in state object.  Avoid testing for
27414         guaranteed too small input if we know there is enough data available.
27415
27416 2011-05-11  Andreas Schwab  <schwab@redhat.com>
27417
27418         * Makeconfig (+link-pie): Indent.
27419         * Rules (binaries-pie): Define if $(have-fpie) and
27420         $(build-shared).
27421         (binaries-shared): Also filter out $(binaries-pie).
27422         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
27423         * nscd/Makefile (others-pie): Add nscd.
27424         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
27425         ($(objpfx)nscd): Remove command override.
27426         * login/Makefile (others-pie): Add pt_chown.
27427         ($(objpfx)pt_chown): Remove command override.
27428         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
27429         remove command overrides.
27430
27431 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
27432
27433         * libio/tst_putwc.c: Fix error messages.
27434
27435         [BZ #12724]
27436         * libio/fileops.c (_IO_new_file_close_it): Always flush when
27437         currently writing and seek to current position when not.
27438         * libio/Makefile (tests): Add bug-fclose1.
27439         * libio/bug-fclose1.c: New file.
27440
27441 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
27442
27443         [BZ #12511]
27444         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
27445         don't set DF_1_NODELETE here.
27446         (do_lookup_x): When entering new entry test for copy relocation
27447         and if necessary set DF_1_NODELETE flag.
27448         * elf/tst-unique4.cc: New file.
27449         * elf/tst-unique4.h: New file.
27450         * elf/tst-unique4lib.cc: New file.
27451         * elf/Makefile: Add rules to build and run tst-unique4.
27452         Patch by Piotr Bury <pbury@goahead.com>.
27453
27454 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
27455
27456         [BZ #12052]
27457         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
27458
27459         [BZ #12625]
27460         * misc/mntent_r.c (addmntent): Flush the stream after the output
27461
27462         [BZ #12393]
27463         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
27464         (is_trusted_path_normalize): Skip initial colon.  Append slash
27465         to empty buffer.  Duplicate is_trusted_path code but allow
27466         constructed patch to be prefix.
27467         (is_dst): Allow $ORIGIN followed by /.
27468         (_dl_dst_substitute): Correct clearing of check_for_trusted.
27469         Correct testing of result of is_trusted_path_normalize
27470         (decompose_rpath): Fix warning.
27471
27472 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
27473
27474         [BZ #11257]
27475         * grp/initgroups.c (internal_getgrouplist): When we found the service
27476         list through the initgroups entry in nsswitch.conf do not always
27477         continue on a successful lookup.  Don't always use the
27478         __nss_group_database value if it is set.
27479         * nss/nsswitch.conf (initgroups): Change action for successful db
27480         lookup to continue for compatibility.
27481
27482 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
27483
27484         [BZ #11532]
27485         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
27486         and CP774 modules.
27487         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
27488         and CP774 modules.
27489         * iconvdata/tst-tables.sh: Likewise.
27490         * iconvdata/cp770.c: New file.
27491         * iconvdata/cp771.c: New file.
27492         * iconvdata/cp772.c: New file.
27493         * iconvdata/cp773.c: New file.
27494         * iconvdata/cp774.c: New file.
27495         * iconvdata/testdata/CP770: New file.
27496         * iconvdata/testdata/CP770..UTF8: New file.
27497         * iconvdata/testdata/CP771: New file.
27498         * iconvdata/testdata/CP771..UTF8: New file.
27499         * iconvdata/testdata/CP772: New file.
27500         * iconvdata/testdata/CP772..UTF8: New file.
27501         * iconvdata/testdata/CP773: New file.
27502         * iconvdata/testdata/CP773..UTF8: New file.
27503         * iconvdata/testdata/CP774: New file.
27504         * iconvdata/testdata/CP774..UTF8: New file.
27505
27506         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
27507         END CHARMAP line.
27508         * iconvdata/gen-8bit-gap.sh: Likewise.
27509         * iconvdata/gen-8bit.sh: Likewise.
27510
27511         * locale/iso-639.def: Add ary entry.
27512
27513         [BZ #11258]
27514         * locale/C-translit.h.in: Add U20A1 transliteration.
27515
27516         [BZ #12178]
27517         * locale/iso-639.def: Add wae entry.
27518         Patch by Kevin Bortis <bortis@translate-wae.ch>.
27519
27520         [BZ #12545]
27521         * locale/programs/localedef.c (construct_output_path): Use ssize_t
27522         for n.
27523
27524         [BZ #12711]
27525         * locale/C-translit.h.in: Add entry for U20B9.
27526         Patch by pravin.d.s@gmail.com.
27527
27528 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
27529
27530         [BZ #12713]
27531         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
27532         ENAMETOOLONG use generic getcwd.
27533         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
27534         in rtld.  Use *stat64.
27535         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
27536         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
27537         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
27538         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
27539         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
27540         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
27541         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
27542         __fstatat64 macros.
27543         * include/dirent.h: Add libc_hidden_proto for rewinddir.
27544         * dirent/rewinddir.c: Add libc_hidden_def.
27545         * sysdeps/mach/hurd/rewinddir.c: Likewise.
27546         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
27547
27548         * include/dirent.h (__alloc_dir): Add flags parameter.
27549         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
27550         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
27551         __alloc_dir.
27552         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
27553         from fdopendir if O_CLOEXEC is already set.
27554
27555 2011-03-15  Alan Modra  <amodra@gmail.com>
27556
27557         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
27558         l_tls_firstbyte_offset non-zero.  Save padding offset in
27559         l_tls_firstbyte_offset for later use.
27560         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
27561         freeing static tls block.
27562
27563 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
27564
27565         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
27566         where #ifdef was intended.  The intent is to prevent ARG_MAX from
27567         being defined by the kernel headers.
27568
27569 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
27570
27571         [BZ #12734]
27572         * resolv/resolv.h: Define RES_NOTLDQUERY.
27573         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
27574         no-tld-query and set RES_NOTLDQUERY.
27575         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
27576         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
27577         modern BIND to search name as TLD unless forbidden.
27578
27579 2011-05-07  Petr Baudis  <pasky@suse.cz>
27580             Ulrich Drepper  <drepper@gmail.com>
27581
27582         [BZ #12393]
27583         * elf/dl-load.c (fillin_rpath): Move trusted path check...
27584         (is_trusted_path): ...to here.
27585         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
27586         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
27587         using is_trusted_path_normalize() in setuid scripts.
27588
27589 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27590
27591         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
27592         __BEGIN/__END_DECLS.
27593
27594 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
27595
27596         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
27597         NSS_STATUS_NOTFOUND if no record was found.
27598
27599 2011-05-05  Andreas Schwab  <schwab@redhat.com>
27600
27601         * sunrpc/Makefile (headers): Add rpc/netdb.h.
27602         (headers-not-in-tirpc): Remove rpc/netdb.h
27603         * resolv/netdb.h: Revert last change.
27604
27605 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27606
27607         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
27608         circular dependency between libgcc.a and libc.a.
27609
27610 2011-05-05  Andreas Schwab  <schwab@redhat.com>
27611
27612         * resolv/netdb.h: Don't include <rpc/netdb.h>.
27613         * nis/Makefile: Don't install rpcsvc/*.
27614         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
27615         instead of <rpc/types.h>.
27616         (MAXHOSTNAMELEN): Define.
27617
27618 2011-05-03  Andreas Schwab  <schwab@redhat.com>
27619
27620         * elf/ldconfig.c (add_dir): Don't crash on empty path.
27621
27622 2011-04-28  Maciej Babinski  <mbabinski@google.com>
27623
27624         [BZ #12714]
27625         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
27626         gethostbyname4_r when IPv6 results are possible.
27627
27628 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
27629
27630         [BZ #12723]
27631         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
27632         _PC_PIPE_BUF handling.
27633
27634 2011-04-30  Bruno Haible  <bruno@clisp.org>
27635
27636         [BZ #12717]
27637         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
27638         * resolv/netdb.h (getnameinfo): Change type of flags parameter
27639         to 'int'.
27640         * inet/getnameinfo.c (getnameinfo): Likewise.
27641
27642 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
27643
27644         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
27645         to groups setting in database lookup.
27646         * nss/nsswitch.conf: Add initgroups entry.
27647
27648 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
27649
27650         [BZ #12685]
27651         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
27652         mode string.
27653         Patch by Eric Blake <eblake@redhat.com>.
27654
27655 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
27656
27657         * sunrpc/Makefile (need-export-routines): Add svc_run.
27658         (routines): Remove svc_run.
27659         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
27660         * sunrpc/clnt_perr.c (clnt_perrno): Export.
27661         * sunrpc/svc_run.c (svc_run): Likewise.
27662         * sunrpc/svc_udp.c (svcudp_create): Likewise.
27663
27664 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
27665
27666         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
27667         problem in reallocation in last patch.
27668
27669 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
27670
27671         * sunrpc/Makefile: Move inclusion of Rules.
27672
27673 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
27674
27675         * nss/nss_files/files-initgroups.c: New file.
27676         * nss/Makefile (libnss_files-routines): Add files-initgroups.
27677         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
27678         _nss_files_initgroups_dyn.
27679
27680 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
27681
27682         * elf/elf.h (R_ARM_IRELATIVE): Define.
27683
27684 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
27685
27686         * po/ru.po: Update from translation team.
27687
27688 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27689
27690         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
27691         dependencies.
27692
27693 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
27694
27695         [BZ #12653]
27696         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
27697         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
27698         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27699         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
27700         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
27701
27702 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
27703
27704         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
27705         differing bytes.
27706         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
27707         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
27708         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
27709
27710 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27711
27712         [BZ #12420]
27713         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
27714         storing it.
27715         * stdlib/bug-getcontext.c: New file.
27716         * stdlib/Makefile: Add rules to build and run bug-getcontext.
27717
27718 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27719
27720         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
27721         instructions into .machine "z9-109".
27722         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
27723         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
27724
27725 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27726
27727         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
27728         between environment variables and auxiliary vector.
27729
27730 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
27731
27732         * Makefile: Add rules to build linkobj/libc.so.
27733         * include/libc-symbols.h: Define libc_hidden_nolink.
27734         * include/rpc/auth.h: Mark functions which are to be hidden.
27735         * include/rpc/auth_des.h: Likewise.
27736         * include/rpc/auth_unix.h: Likewise.
27737         * include/rpc/clnt.h: Likewise.
27738         * include/rpc/des_crypt.h: Likewise.
27739         * include/rpc/key_prot.h: Likewise.
27740         * include/rpc/pmap_clnt.h: Likewise.
27741         * include/rpc/pmap_prot.h: Likewise.
27742         * include/rpc/pmap_rmt.h: Likewise.
27743         * include/rpc/rpc_msg.h: Likewise.
27744         * include/rpc/svc.h: Likewise.
27745         * include/rpc/svc_auth.h: Likewise.
27746         * include/rpc/xdr.h: Likewise.
27747         * nis/Makefile: Link all DSOs against linkobj/libc.so.
27748         * nss/Makefile: Likewise.
27749         * sunrpc/Makefile: Don't install headers.  Build library with normal
27750         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
27751         * sunrpc/auth_des.c: Hide exported symbols by default, export some
27752         for the compat linking library.  Remove use of INTDEF/INTUSE.
27753         * sunrpc/auth_none.c: Likewise.
27754         * sunrpc/auth_unix.c: Likewise.
27755         * sunrpc/authdes_prot.c: Likewise.
27756         * sunrpc/authuxprot.c: Likewise.
27757         * sunrpc/clnt_gen.c: Likewise.
27758         * sunrpc/clnt_perr.c: Likewise.
27759         * sunrpc/clnt_raw.c: Likewise.
27760         * sunrpc/clnt_simp.c: Likewise.
27761         * sunrpc/clnt_tcp.c: Likewise.
27762         * sunrpc/clnt_udp.c: Likewise.
27763         * sunrpc/clnt_unix.c: Likewise.
27764         * sunrpc/des_crypt.c: Likewise.
27765         * sunrpc/des_soft.c: Likewise.
27766         * sunrpc/get_myaddr.c: Likewise.
27767         * sunrpc/key_call.c: Likewise.
27768         * sunrpc/key_prot.c: Likewise.
27769         * sunrpc/netname.c: Likewise.
27770         * sunrpc/pm_getmaps.c: Likewise.
27771         * sunrpc/pm_getport.c: Likewise.
27772         * sunrpc/pmap_clnt.c: Likewise.
27773         * sunrpc/pmap_prot.c: Likewise.
27774         * sunrpc/pmap_prot2.c: Likewise.
27775         * sunrpc/pmap_rmt.c: Likewise.
27776         * sunrpc/publickey.c: Likewise.
27777         * sunrpc/rpc_cmsg.c: Likewise.
27778         * sunrpc/rpc_common.c: Likewise.
27779         * sunrpc/rpc_dtable.c: Likewise.
27780         * sunrpc/rpc_prot.c: Likewise.
27781         * sunrpc/rpc_thread.c: Likewise.
27782         * sunrpc/rtime.c: Likewise.
27783         * sunrpc/svc.c: Likewise.
27784         * sunrpc/svc_auth.c: Likewise.
27785         * sunrpc/svc_authux.c: Likewise.
27786         * sunrpc/svc_raw.c: Likewise.
27787         * sunrpc/svc_run.c: Likewise.
27788         * sunrpc/svc_simple.c: Likewise.
27789         * sunrpc/svc_tcp.c: Likewise.
27790         * sunrpc/svc_udp.c: Likewise.
27791         * sunrpc/svc_unix.c: Likewise.
27792         * sunrpc/svcauth_des.c: Likewise.
27793         * sunrpc/xcrypt.c: Likewise.
27794         * sunrpc/xdr.c: Likewise.
27795         * sunrpc/xdr_array.c: Likewise.
27796         * sunrpc/xdr_float.c: Likewise.
27797         * sunrpc/xdr_intXX_t.c: Likewise.
27798         * sunrpc/xdr_mem.c: Likewise.
27799         * sunrpc/xdr_rec.c: Likewise.
27800         * sunrpc/xdr_ref.c: Likewise.
27801         * sunrpc/xdr_sizeof.c: Likewise.
27802         * sunrpc/xdr_stdio.c: Likewise.
27803
27804 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
27805
27806         [BZ #12650]
27807         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
27808         * sysdeps/ia64/dl-tls.h: Likewise.
27809         * sysdeps/powerpc/dl-tls.h: Likewise.
27810         * sysdeps/s390/dl-tls.h: Likewise.
27811         * sysdeps/sh/dl-tls.h: Likewise.
27812         * sysdeps/sparc/dl-tls.h: Likewise.
27813         * sysdeps/x86_64/dl-tls.h: Likewise.
27814         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
27815
27816 2011-03-14  Andreas Schwab  <schwab@redhat.com>
27817
27818         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
27819         rpath element also skip the following colon.
27820         (expand_dynamic_string_token): Add is_path parameter and pass
27821         down to DL_DST_REQUIRED and _dl_dst_substitute.
27822         (decompose_rpath): Call expand_dynamic_string_token with
27823         non-zero is_path.  Ignore empty rpaths.
27824         (_dl_map_object_from_fd): Call expand_dynamic_string_token
27825         with zero is_path.
27826
27827 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
27828
27829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
27830         Make cancelable.
27831
27832 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
27833
27834         [BZ #12655]
27835         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
27836         Patch by Filipe David Manana <fdmanana@apache.org>.
27837
27838 2011-04-07  Andreas Schwab  <schwab@redhat.com>
27839
27840         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
27841         Maintain aligned stack.
27842         (CHECK_RSP): Remove unused macro.
27843
27844 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
27845
27846         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
27847         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
27848
27849 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
27850
27851         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
27852
27853         * include/features.h: Mention __USE_XOPEN2K8 in comment.
27854
27855 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
27856
27857         [BZ #12518]
27858         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
27859         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
27860         * sysdeps/x86_64/memmove.c: New file.
27861         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
27862         (memcpy): Renamed to ...
27863         (__new_memcpy): This.
27864         (memcpy): Provide GLIBC_2_14 memcpy.
27865         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
27866         (memcpy): Provide GLIBC_2_2_5 memcpy.
27867
27868 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27869
27870         [BZ #12631]
27871         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
27872
27873 2011-03-30  Andreas Schwab  <schwab@redhat.com>
27874
27875         * misc/syncfs.c: New file.
27876         * misc/Makefile (routines): Add syncfs.
27877         * posix/unistd.h: Declare syncfs.
27878         * sysdeps/unix/syscalls.list: Add syncfs.
27879
27880 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27881
27882         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
27883         open_by_handle_at.
27884         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27885         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27886         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27887         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27888         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27889         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
27890         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27891
27892 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27893
27894         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
27895         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27896         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27897         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27898         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27899         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27900         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27901
27902         * io/Makefile: Compile fallocate.c, fallocate64.c, and
27903         sync_file_range.c with -fexceptions.
27904         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
27905         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
27906         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
27907         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
27908         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
27909         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27910         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
27911         sync_file_range as cancellation point
27912         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
27913         now a wrapper around __call_sync_file_range with cancellation handling.
27914         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
27915         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
27916         function name to __call_sync_file_range.
27917         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
27918         Add call_sync_file_range.
27919
27920 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27921
27922         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27923         bits/timex.h.
27924
27925 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27926
27927         * iconv/iconv.h: Fix typo in comment.
27928         * io/fcntl.h: Likewise.
27929         * libio/stdio.h: Likewise.
27930         * posix/spawn.h: Likewise.
27931         * posix/unistd.h: Likewise.
27932         * stdlib/stdlib.h: Likewise.
27933         * time/time.h: Likewise.
27934         * wcsmbs/wchar.h: Likewise.
27935
27936         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
27937         open_by_handle): Add.
27938         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
27939         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
27940         Augment a few comments.
27941         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27942         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27943         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27944         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27945         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27946         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
27947         open_by_handle.
27948
27949         * io/fcntl.h (AT_EMPTY_PATH): Define.
27950
27951 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
27952
27953         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
27954         * sysdeps/unix/sysv/linux/bits/time.h: New file.
27955         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
27956         to...
27957         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
27958         * Versions.def: Add GLIBC_2.14.
27959         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
27960         Export.
27961
27962 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
27963
27964         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
27965         round counter.
27966         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27967
27968 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27969
27970         [BZ #12597]
27971         * string/test-strncmp.c (do_page_test): New function.
27972         (check2): Likewise.
27973         (test_main): Call check2.
27974         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
27975
27976 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
27977
27978         [BZ #12587]
27979         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
27980         Handle cache information in CPU leaf 4.
27981         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27982
27983 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
27984
27985         [BZ #12583]
27986         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
27987         character representation.
27988         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
27989
27990 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
27991
27992         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
27993         END(__isnan) to END(__isnanf) to match function entry point/label
27994         EALIGN(__isnanf,...).
27995
27996 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27997
27998         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
27999
28000 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
28001
28002         [BZ #12510]
28003         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
28004         copy from the symbol referenced in the relocation to initialize the
28005         used variable.
28006         Patch by Piotr Bury <pbury@goahead.com>.
28007         * elf/Makefile: Add rules to build and tst-unique3.
28008         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
28009         * elf/tst-unique3.cc: New file.
28010         * elf/tst-unique3.h: New file.
28011         * elf/tst-unique3lib.cc: New file.
28012         * elf/tst-unique3lib2.cc: New file.
28013
28014         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
28015
28016 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
28017
28018         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
28019         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
28020         to _start.
28021
28022 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
28023
28024         * elf/dl-load.c (_dl_map_object): If we are looking for the first
28025         to-be-loaded object along a path to loader is ld.so.
28026
28027 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
28028             Ulrich Drepper  <drepper@gmail.com>
28029
28030         * sysdeps/x86_64/memset.S: After aligning destination, code
28031         branches to different locations depending on the value of
28032         misalignment, when multiarch is enabled. Fix this.
28033
28034 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
28035
28036         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
28037         Set _x86_64_preferred_memory_instruction for AMD processsors.
28038         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28039         Set bit_Prefer_SSE_for_memop for AMD processors.
28040
28041 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
28042
28043         * libio/fmemopen.c (fmemopen): Optimize a bit.
28044
28045 2011-03-03  Andreas Schwab  <schwab@redhat.com>
28046
28047         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
28048
28049 2011-03-03  Roland McGrath  <roland@redhat.com>
28050
28051         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
28052
28053 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
28054
28055         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
28056         __bzero_ultra1 instead of __memset_ultra1.
28057
28058 2011-02-23  Andreas Schwab  <schwab@redhat.com>
28059             Ulrich Drepper  <drepper@gmail.com>
28060
28061         [BZ #12509]
28062         * include/link.h (struct link_map): Add l_orig_initfini.
28063         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
28064         returning unsuccessfully.
28065         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
28066         close of a file loaded at startup, restore the original l_initfini
28067         list.
28068         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
28069         list, store the pointer.
28070         * elf/Makefile ($(objpfx)noload-mem): New rule.
28071         (noload-ENV): Define.
28072         (tests): Add $(objpfx)noload-mem.
28073         * elf/noload.c: Include <memcheck.h>.
28074         (main): Call mtrace.  Close all opened handles.
28075
28076 2011-02-17  Andreas Schwab  <schwab@redhat.com>
28077
28078         [BZ #12454]
28079         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
28080         dependencies are missing.
28081
28082 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28083
28084         Fix __if_freereq crash: Unlike the generic version which uses free,
28085         Hurd needs munmap.
28086         * sysdeps/mach/hurd/ifreq.h: New file.
28087
28088 2011-01-27  Petr Baudis  <pasky@suse.cz>
28089             Ulrich Drepper  <drepper@gmail.com>
28090
28091         [BZ 12445]#
28092         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
28093         to extend_alloca().
28094         * stdio-common/bug23.c: New file.
28095         * stdio-common/Makefile (tests): Add bug23.
28096
28097 2010-09-28  Andreas Schwab  <schwab@redhat.com>
28098             Ulrich Drepper  <drepper@gmail.com>
28099
28100         [BZ #12489]
28101         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
28102         before performing relro protection.  At old place add assertion
28103         to make sure nothing changed.
28104
28105 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
28106             Glauber de Oliveira Costa  <glommer@gmail.com>
28107
28108         * elf/elf.h: Add new ARM TLS relocs.
28109
28110 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
28111
28112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
28113         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
28114         cast from r3.
28115         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
28116         'tests' variable.
28117         * sysdeps/wordsize-64/tst-writev.c: New file.
28118
28119 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
28120
28121         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
28122         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
28123         insns in _dl_start to prevent a TOC reference before relocs are
28124         resolved.
28125
28126 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
28127
28128         [BZ #12469]
28129         * Makeconfig: Remove RANLIB definition.
28130         * Makerules: Don't use RANLIB.
28131         * aclocal.m4: Remove ranlib test.
28132         * configure.in: No need to check for ranlib.
28133         * elf/rtld-Rules: Don't use RANLIB.
28134
28135 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28136
28137         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
28138         protection macro.
28139         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
28140         inclusion protection macro.
28141
28142         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
28143         SIGRTMIN and SIGRTMAX and print information in that case only when
28144         SIGRTMIN is defined.
28145
28146 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
28147
28148         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
28149         arginfo fn returning -1.
28150
28151         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
28152         and thousands string is zero terminated.
28153
28154 2011-02-03  Andreas Schwab  <schwab@redhat.com>
28155
28156         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
28157         sysdeps/unix/sysv/linux/bits/socket.h.
28158
28159 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28160
28161         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
28162         (__CPU_COUNT): Remove old macros.
28163         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
28164         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
28165         (__CPU_ALLOC, __CPU_FREE): Add macros.
28166         (__sched_cpualloc, __sched_cpufree): Add declarations.
28167
28168 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
28169
28170         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
28171         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
28172         * nscd/aicache.c (addhstaiX): Return timeout of added value.
28173         (readdhstai): Return value of addhstaiX call.
28174         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
28175         (addgrbyX): Return value returned by cache_addgr.
28176         (readdgrbyname): Return value returned by addgrbyX.
28177         (readdgrbygid): Likewise.
28178         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
28179         (addpwbyX): Return value returned by cache_addpw.
28180         (readdpwbyname): Return value returned by addhstbyX.
28181         (readdpwbyuid): Likewise.
28182         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
28183         (addservbyX): Return value returned by cache_addserv.
28184         (readdservbyname): Return value returned by addservbyX:
28185         (readdservbyport): Likewise.
28186         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
28187         (addhstbyX): Return value returned by cache_addhst.
28188         (readdhstbyname): Return value returned by addhstbyX.
28189         (readdhstbyaddr): Likewise.
28190         (readdhstbynamev6): Likewise.
28191         (readdhstbyaddrv6): Likewise.
28192         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
28193         (readdinitgroups): Return value returned by addinitgroupsX.
28194         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
28195         (prune_cache): Keep track of timeout value of re-added entries.
28196         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
28197         * nscd/nscd.h: Adjust prototypes of readd* functions.
28198
28199 2011-02-04  Roland McGrath  <roland@redhat.com>
28200
28201         * nis/nis_server.c (nis_servstate): Use the right name for 0.
28202         (nis_stats): Likewise.
28203         * nis/nis_modify.c (nis_modify): Likewise.
28204         * nis/nis_remove.c (nis_remove): Likewise.
28205         * nis/nis_add.c (nis_add): Likewise.
28206
28207         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
28208
28209         * posix/fnmatch_loop.c: Add some consts.
28210
28211         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
28212
28213 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
28214
28215         [BZ #12460]
28216         * config.make.in (config-cflags-novzeroupper): Define.
28217         * configure.in: Substitute libc_cv_cc_novzeroupper.
28218         * elf/Makefile (AVX-CFLAGS): Define.
28219         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
28220         (CFLAGS-tst-auditmod4a.c): Likewise.
28221         (CFLAGS-tst-auditmod4b.c): Likewise.
28222         (CFLAGS-tst-auditmod6b.c): Likewise.
28223         (CFLAGS-tst-auditmod6c.c): Likewise.
28224         (CFLAGS-tst-auditmod7b.c): Likewise.
28225         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
28226
28227 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
28228
28229         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
28230         function to the callback.
28231         Patch partly by Jiri Olsa <jolsa@redhat.com>.
28232
28233 2011-02-02  Andreas Schwab  <schwab@redhat.com>
28234
28235         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
28236         of errno.
28237
28238 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
28239
28240         [BZ #11724]
28241         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
28242         of constructors.
28243         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
28244         of destructors.
28245         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
28246
28247         [BZ #11724]
28248         * elf/Makefile: Add rules to build and run new test.
28249         * elf/tst-initorder.c: New file.
28250         * elf/tst-initorder.exp: New file.
28251         * elf/tst-initordera1.c: New file.
28252         * elf/tst-initordera2.c: New file.
28253         * elf/tst-initordera3.c: New file.
28254         * elf/tst-initordera4.c: New file.
28255         * elf/tst-initorderb1.c: New file.
28256         * elf/tst-initorderb2.c: New file.
28257         * elf/tst-order-a1.c: New file.
28258         * elf/tst-order-a2.c: New file.
28259         * elf/tst-order-a3.c: New file.
28260         * elf/tst-order-a4.c: New file.
28261         * elf/tst-order-b1.c: New file.
28262         * elf/tst-order-b2.c: New file.
28263         * elf/tst-order-main.c: New file.
28264         New test case by George Gensure <werkt0@gmail.com>.
28265
28266 2010-10-01  Andreas Schwab  <schwab@redhat.com>
28267
28268         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
28269         decoding ACE if AI_CANONIDN.
28270
28271 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
28272
28273         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
28274
28275 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
28276
28277         * version.h (RELEASE): Bump for 2.13 release.
28278         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
28279
28280         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
28281
28282         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
28283         MADV_NOHUGEPAGE.
28284         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
28285         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
28286         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
28287         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
28288         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
28289         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
28290
28291         * posix/getconf.c: Update copyright year.
28292         * catgets/gencat.c: Likewise.
28293         * csu/version.c: Likewise.
28294         * debug/catchsegv.sh: Likewise.
28295         * debug/xtrace.sh: Likewise.
28296         * elf/ldconfig.c: Likewise.
28297         * elf/ldd.bash.in: Likewise.
28298         * elf/sprof.c (print_version): Likewise.
28299         * iconv/iconv_prog.c: Likewise.
28300         * iconv/iconvconfig.c: Likewise.
28301         * locale/programs/locale.c: Likewise.
28302         * locale/programs/localedef.c: Likewise.
28303         * malloc/memusage.sh: Likewise.
28304         * malloc/mtrace.pl: Likewise.
28305         * nscd/nscd.c (print_version): Likewise.
28306         * nss/getent.c: Likewise.
28307
28308         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
28309         PF_CAIF, and PF_ALG.
28310         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
28311
28312 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
28313
28314         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
28315         (modules-names): Use them.
28316         (ifunc-test-modules, ifunc-pie-tests): Define.
28317         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
28318         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
28319         (test-extras): Likewise.
28320         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
28321         $(compile-command.c).
28322         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
28323         (all-built-dso): Define.
28324         (check-textrel.out, check-execstack.out): Depend on it.
28325
28326         * configure.in: Don't override --enable-multi-arch.
28327
28328 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
28329
28330         [BZ #6812]
28331         * nscd/hstcache.c (tryagain): Define.
28332         (cache_addhst): Return tryagain not notfound for temporary errors.
28333         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
28334         failed.
28335
28336 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
28337
28338         [BZ #10563]
28339         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
28340         to make the syscall.
28341         * sysdeps/unix/sysv/linux/setgroups.c: New file.
28342
28343         [BZ #12378]
28344         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
28345         and fall back to matching as normal character if the string ends before
28346         the matching ']' is found.  This is what POSIX requires.
28347         * posix/testfnm.c: Adjust test result.
28348         * posix/globtest.sh: Adjust test result.  Add new test.
28349         * posix/tst-fnmatch.input: Likewise.
28350         * posix/tst-fnmatch2.c: Add new test.
28351
28352 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
28353
28354         * elf/Makefile (check-execstack): Revert last change.  Depend on
28355         check-execstack.h.
28356         (check-execstack.h): New target.
28357         (generated): Add check-execstack.h.
28358         * elf/check-execstack.c: Include "check-execstack.h".
28359         (main): Revert last change.
28360         (handle_file): Return zero if GNU_STACK is absent and
28361         DEFAULT_STACK_PERMS doesn't include PF_X.
28362
28363 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
28364
28365         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
28366         in child fails because the descriptor is already closed.
28367         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
28368         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
28369         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
28370
28371         [BZ #12397]
28372         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
28373         syscall.
28374
28375         [BZ #10484]
28376         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
28377         temporary buffer used to handle multi lookups locally.
28378         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
28379
28380 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
28381
28382         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
28383         loader is ld.so.
28384
28385 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
28386
28387         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
28388         alignment for SSE2.
28389
28390 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
28391
28392         [BZ #12394]
28393         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
28394         characters.  When rounding increased number of integer digits recompute
28395         number of groups.
28396         * stdio-common/tst-grouping.c: New file.
28397         * stdio-common/Makefile: Add rules to build and run tst-grouping.
28398
28399 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
28400
28401         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
28402         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
28403
28404         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
28405         void.
28406         * bits/select.h: Likewise.
28407
28408 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
28409
28410         * po/ja.po: Update from translation team.
28411
28412 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
28413
28414         [BZ #11155]
28415         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
28416         implementation just like for lxstat, fxstatat, et al.
28417
28418 2010-12-27  Jim Meyering  <meyering@redhat.com>
28419
28420         [BZ #12348]
28421         * posix/regexec.c (build_trtable): Return failure indication upon
28422         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28423
28424 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
28425
28426         [BZ #12201]
28427         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
28428         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
28429         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
28430         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
28431
28432         [BZ #12207]
28433         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
28434
28435         [BZ #12204]
28436         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
28437         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
28438
28439 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
28440
28441         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
28442         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
28443         script has SORT_BY_INIT_PRIORITY.
28444         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
28445         NO_CTORS_DTORS_SECTIONS is defined.
28446         * elf/soinit.c: Likewise.
28447         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
28448         NO_CTORS_DTORS_SECTIONS is defined.
28449         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
28450         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
28451         * sysdeps/sh/init-first.c: Likewise.
28452         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
28453
28454 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
28455
28456         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
28457         always use the slow path.
28458
28459 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
28460
28461         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
28462         similar rule which adds the sysdep directories to the header search in
28463         order to pick up the correct platform stackinfo.h.
28464         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
28465         perform test if it is, otherwise return successfully without testing.
28466         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
28467         DEFAULT_STACK_PERMS define in stackinfo.h.
28468         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
28469         defined in stackinfo.h.
28470         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
28471         DEFAULT_STACK_PERMS defined in stackinfo.h.
28472         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
28473         * sysdeps/ia64/stackinfo.h: Likewise.
28474         * sysdeps/s390/stackinfo.h: Likewise.
28475         * sysdeps/sh/stackinfo.h: Likewise.
28476         * sysdeps/sparc/stackinfo.h: Likewise.
28477         * sysdeps/x86_64/stackinfo.h: Likewise.
28478         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
28479         PF_X for powerpc64.  Retain PF_X for powerpc32.
28480
28481 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
28482
28483         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
28484         accurately.
28485         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
28486         GETDENTS_64BIT_ALIGNED.
28487
28488 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
28489
28490         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
28491
28492 2010-12-10  Andreas Schwab  <schwab@redhat.com>
28493
28494         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
28495         _GNU_SOURCE.
28496
28497         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
28498         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
28499         Remove __restrict.
28500         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
28501         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
28502
28503 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
28504
28505         [BZ #11655]
28506         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
28507         are initialized.
28508
28509 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
28510
28511         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
28512
28513 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
28514
28515         * po/it.po: Update from translation team.
28516
28517 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
28518
28519         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
28520         unused codes.
28521
28522 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
28523
28524         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
28525
28526 2010-11-24  Andreas Schwab  <schwab@redhat.com>
28527
28528         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
28529         specially.
28530         (gaih_getanswer_slice): Likewise.
28531
28532 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
28533
28534         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
28535
28536 2010-05-31  Petr Baudis  <pasky@suse.cz>
28537
28538         [BZ #11149]
28539         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
28540         silently even in the chroot mode.
28541
28542 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
28543
28544         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
28545         last patch a bit.  Pretty printing
28546
28547 2010-05-31  Petr Baudis <pasky@suse.cz>
28548
28549         [BZ #10085]
28550         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
28551         initialization of skip_initgroups_dyn.
28552
28553 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
28554
28555         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
28556         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
28557
28558 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
28559
28560         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
28561
28562 2010-11-11  Andreas Schwab  <schwab@redhat.com>
28563
28564         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
28565         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
28566         (tst-fnmatch-ENV): Set MALLOC_TRACE.
28567         ($(objpfx)tst-fnmatch-mem): New rule.
28568         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
28569         * posix/tst-fnmatch.c (main): Call mtrace.
28570
28571 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
28572
28573         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28574         Support Intel processor model 6 and model 0x2c.
28575
28576 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
28577
28578         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
28579           signed comparison.
28580
28581 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
28582
28583         [BZ #12205]
28584         * string/test-strncasecmp.c (check_result): New function.
28585         (do_one_test): Use it.
28586         (check1): New function.
28587         (test_main): Use it.
28588         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
28589         Support strcasecmp and strncasecmp.
28590
28591 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
28592
28593         [BZ #12194]
28594         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
28595         * sysdeps/x86_64/bits/byteswap.h: Likewise.
28596
28597 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
28598
28599         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
28600         IFUNC support.
28601         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28602         memset-x86-64.
28603         * sysdeps/x86_64/multiarch/bzero.S: New file.
28604         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
28605         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
28606         * sysdeps/x86_64/multiarch/memset.S: New file.
28607         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
28608         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28609         Set bit_Prefer_SSE_for_memop for Intel processors.
28610         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
28611         Define.
28612         (index_Prefer_SSE_for_memop): Define.
28613         (HAS_PREFER_SSE_FOR_MEMOP): Define.
28614
28615 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
28616
28617         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
28618         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
28619
28620 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
28621
28622         [BZ #12191]
28623         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
28624         (__x86_64_raw_data_cache_size_half): Likewise.
28625         (__x86_64_raw_shared_cache_size): Likewise.
28626         (__x86_64_raw_shared_cache_size_half): Likewise.
28627
28628         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
28629         (__x86_64_raw_data_cache_size_half): Likewise.
28630         (__x86_64_raw_shared_cache_size): Likewise.
28631         (__x86_64_raw_shared_cache_size_half): Likewise.
28632         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
28633         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
28634         and __x86_64_raw_shared_cache_size_half.  Round
28635         __x86_64_data_cache_size_half, __x86_64_data_cache_size
28636         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
28637         to multiple of 256 bytes.
28638
28639 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
28640
28641         [BZ #12167]
28642         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
28643         of inacessible symlinks.  Verify result of symlink before returning it.
28644         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
28645         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
28646
28647 2010-10-28  Erich Ritz  <erichritz@gmail.com>
28648
28649         * math/math.h (isinf): Fix typo in comment.
28650
28651 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
28652
28653         * po/da.po: Update from translation team.
28654
28655 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
28656
28657         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
28658         is added to the list.
28659
28660 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28661             Ulrich Drepper  <drepper@gmail.com>
28662
28663         * elf/dl-object.c (_dl_new_object): Don't append the new object to
28664         the global list here.  Move code to...
28665         (_dl_add_to_namespace_list): ...here.  New function.
28666         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
28667         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
28668         * elf/dl-load.c (lose): Don't remove the element from the list.
28669         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
28670         (_dl_map_object): Likewise.
28671
28672 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
28673
28674         [BZ #12159]
28675         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
28676         into all bytes of SSE register.
28677         Patch by Richard Li <richardpku@gmail.com>.
28678
28679 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
28680
28681         [BZ #12140]
28682         * malloc/malloc.c (_int_free): Fill correct number of bytes when
28683         perturbing.
28684
28685 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
28686
28687         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
28688         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
28689         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
28690         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
28691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
28692         submachine.
28693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
28694
28695 2010-10-22  Andreas Schwab  <schwab@redhat.com>
28696
28697         * include/dlfcn.h (__RTLD_SECURE): Define.
28698         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
28699         mode & __RTLD_SECURE instead.
28700         (open_path): Rename preloaded parameter to secure.
28701         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
28702         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
28703         * elf/dl-deps.c (openaux): Likewise.
28704         * elf/rtld.c (struct map_args): Remove is_preloaded.
28705         (map_doit): Don't use it.
28706         (dl_main): Likewise.
28707         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
28708         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
28709
28710 2010-09-09  Andreas Schwab  <schwab@redhat.com>
28711
28712         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
28713         (sysd-rules-targets): Remove duplicates.
28714         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
28715         rtld-%.$o dependency.
28716
28717 2010-10-18  Andreas Schwab  <schwab@redhat.com>
28718
28719         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
28720         _dl_map_object do it.
28721
28722 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
28723
28724         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
28725         fast fma builtins, define the macros in the C99 standard.
28726         (FP_FAST_FMAF): Likewise.
28727         (FP_FAST_FMAL): Likewise.
28728         * sysdeps/x86_64/bits/mathdef.h: Likewise.
28729
28730         * bits/mathdef.h: Update copyright year.
28731         * sysdeps/powerpc/bits/mathdef.h: Likewise.
28732
28733 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
28734
28735         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
28736         builtins, define the macros in the C99 standard.
28737         (FP_FAST_FMAF): Likewise.
28738         (FP_FAST_FMAL): Likewise.
28739         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
28740         multiply/add.
28741         (FP_FAST_FMAF): Likewise.
28742
28743 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
28744
28745         [BZ #3268]
28746         * math/libm-test.inc (fma_test): Some new testcases.
28747         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
28748         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
28749         y and infinite z.  Do multiplication by C already in long double.
28750         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
28751         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
28752         y and infinite z.  Do bitwise or of inexact bit into u.d.
28753         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
28754         * sysdeps/i386/fpu/s_fmaf.S: Removed.
28755         * sysdeps/i386/fpu/s_fma.S: Removed.
28756         * sysdeps/i386/fpu/s_fmal.S: Removed.
28757
28758 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
28759
28760         [BZ #3268]
28761         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
28762         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
28763         computation is not scheduled after fetestexcept.  Fix value
28764         of minimum denormal long double.
28765
28766 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
28767
28768         [BZ #3268]
28769         * math/libm-test.inc (fma_test): Add some more tests.
28770         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
28771         correctly.
28772
28773 2010-10-15  Andreas Schwab  <schwab@redhat.com>
28774
28775         * scripts/data/localplt-s390-linux-gnu.data: New file.
28776         * scripts/data/localplt-s390x-linux-gnu.data: New file.
28777
28778 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
28779
28780         [BZ #3268]
28781         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
28782         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
28783         instead of dbl-64.
28784         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
28785         inlines.
28786         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
28787         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
28788         if one of x and y is very large and the other is subnormal.
28789         * sysdeps/s390/fpu/s_fmaf.c: New file.
28790         * sysdeps/s390/fpu/s_fma.c: New file.
28791         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
28792         * sysdeps/powerpc/fpu/s_fma.S: New file.
28793         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
28794         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
28795         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
28796
28797 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
28798
28799         [BZ #3268]
28800         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
28801         fma tests.
28802         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
28803         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
28804         * sysdeps/i386/i686/multiarch/s_fma.c: Include
28805         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
28806         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
28807         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
28808         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
28809
28810 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
28811
28812         [BZ #12078]
28813         * posix/regcomp.c (parse_branch): One more memory leak plugged.
28814         * posix/bug-regex31.input: Add test case.
28815
28816 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28817
28818         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
28819         * posix/bug-regex31.input: New file.
28820
28821         [BZ #12078]
28822         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
28823         (parse_sub_exp): Fix last change, use postorder.
28824
28825         * posix/bug-regex31.c: New file.
28826         * posix/Makefile: Add rules to build and run bug-regex31.
28827
28828         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
28829
28830         [BZ #12078]
28831         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
28832
28833         [BZ #12108]
28834         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
28835         to have entries in sys_siglist.
28836
28837         [BZ #12093]
28838         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
28839         be NULL.
28840
28841 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
28842
28843         [BZ #3268]
28844         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
28845         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
28846         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
28847         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
28848         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28849         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
28850         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
28851         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
28852         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
28853         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
28854         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
28855         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
28856         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28857         * math/ftestexcept.c (fetestexcept): Likewise.
28858         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
28859         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
28860         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
28861         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
28862         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
28863         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
28864         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28865
28866 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28867
28868         [BZ #12107]
28869         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
28870         newline.
28871
28872 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
28873
28874         * string/bug-strstr1.c: New file.
28875         * string/Makefile: Add rules to build and run bug-strstr1.
28876
28877 2010-10-05  Eric Blake  <eblake@redhat.com>
28878
28879         [BZ #12092]
28880         * string/str-two-way.h (two_way_long_needle): Always clear memory
28881         when skipping input due to the shift table.
28882
28883 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
28884
28885         [BZ #12005]
28886         * malloc/mcheck.c: Handle large requests.
28887
28888         [BZ #12077]
28889         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
28890         for strncmp and strncasecmp.
28891         * string/stratcliff.c: Add tests for strcmp and strncmp.
28892         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
28893
28894 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28895
28896         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
28897         __set_fpscr.
28898
28899 2010-09-30  Andreas Jaeger  <aj@suse.de>
28900
28901         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
28902         (CGROUP_SUPER_MAGIC): Define.
28903         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28904         Handle btrfs and cgroup file systems.
28905         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
28906         Likewise.
28907
28908 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
28909
28910         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
28911         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
28912
28913 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28914
28915         [BZ #12067]
28916         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
28917         trying to locate the ELF header.
28918
28919 2010-09-27  Andreas Schwab  <schwab@redhat.com>
28920
28921         [BZ #11611]
28922         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
28923         Mask out sign-bit copies when constructing f_fsid.
28924
28925 2010-09-24  Petr Baudis <pasky@suse.cz>
28926
28927         * debug/stack_chk_fail_local.c: Add missing licence exception.
28928         * debug/warning-nop.c: Likewise.
28929
28930 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
28931
28932         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
28933         implementing getdents64 using getdents syscall, set d_type if
28934         __ASSUME_GETDENTS32_D_TYPE.
28935
28936 2010-09-16  Andreas Schwab  <schwab@redhat.com>
28937
28938         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
28939         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
28940
28941 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
28942
28943         [BZ #12037]
28944         * posix/unistd.h: Undo change of feature selection for ftruncate from
28945         2010-01-11.
28946
28947 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
28948
28949         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
28950         detection.
28951
28952 2010-09-20  Andreas Schwab  <schwab@redhat.com>
28953
28954         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
28955         fanotify_mark.
28956         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28957
28958 2010-09-14  Andreas Schwab  <schwab@redhat.com>
28959
28960         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
28961         variables after CHECK_SP call.
28962         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
28963
28964 2010-09-13  Andreas Schwab  <schwab@redhat.com>
28965             Ulrich Drepper  <drepper@redhat.com>
28966
28967         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
28968         re-relocationg ld.so.
28969         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
28970         _dl_init_paths call.
28971         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
28972         here anymore.
28973
28974 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
28975
28976         * resolv/res_init.c (__res_vinit): Count the default server we added.
28977
28978 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
28979             Ulrich Drepper  <drepper@redhat.com>
28980
28981         [BZ #11968]
28982         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28983         (____longjmp_chk): Use %ebx for saving value across system call.
28984         Add unwind info.
28985
28986 2010-09-06  Andreas Schwab  <schwab@redhat.com>
28987
28988         * manual/Makefile: Don't mix pattern rules with normal rules.
28989
28990 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28991
28992         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
28993         operation.
28994         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
28995         * libio/iofopncook.c (_IO_cookie_init): Likewise.
28996         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
28997         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
28998         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28999         Likewise.
29000
29001 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
29002
29003         [BZ #11979]
29004         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
29005         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
29006
29007 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
29008
29009         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
29010         * sysdeps/x86_64/addmul_1.S: Likewise.
29011         * sysdeps/x86_64/lshift.S: Likewise.
29012         * sysdeps/x86_64/mul_1.S: Likewise.
29013         * sysdeps/x86_64/rshift.S: Likewise.
29014         * sysdeps/x86_64/sub_n.S: Likewise.
29015         * sysdeps/x86_64/submul_1.S: Likewise.
29016
29017 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29018
29019         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
29020         Define __sched_param instead of SCHED_* and sched_param when
29021         <bits/sched.h> is included with __need_schedparam defined.
29022         * bits/sched.h [__need_schedparam]
29023         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
29024         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
29025         (__defined_schedparam): Define to 1.
29026         (__sched_param): New structure, identical to sched_param.
29027         (__need_schedparam): Undefine.
29028
29029 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
29030
29031         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
29032         (epoll_create1): Declare.
29033
29034         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
29035
29036 2010-08-31  Andreas Schwab  <schwab@redhat.com>
29037
29038         [BZ #7066]
29039         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
29040         shifting retval into place.
29041
29042 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
29043
29044         * nis/rpcsvc/nis.h: Update copyright notice.
29045         * nis/rpcsvc/nis.x: Likewise.
29046         * nis/rpcsvc/nis_callback.h: Likewise.
29047         * nis/rpcsvc/nis_callback.x: Likewise.
29048         * nis/rpcsvc/nis_object.x: Likewise.
29049         * nis/rpcsvc/nis_tags.h: Likewise.
29050         * nis/rpcsvc/yp.h: Likewise.
29051         * nis/rpcsvc/yp.x: Likewise.
29052         * nis/rpcsvc/ypupd.h: Likewise.
29053         * nis/yp_xdr.c: Likewise.
29054         * nis/ypupdate_xdr.c: Likewise.
29055
29056         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
29057         mainly the body of pmap_getport.  Add parameters to specify timeouts.
29058         (pmap_getport): Use __libc_rpc_getport.
29059         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
29060         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
29061         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
29062
29063 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
29064
29065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
29066         fanotify_mark.
29067
29068 2010-08-27  Roland McGrath  <roland@redhat.com>
29069
29070         * sysdeps/i386/i686/multiarch/Makefile
29071         (CFLAGS-varshift.c): New variable.
29072
29073 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
29074
29075         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
29076         * sysdeps/i386/i686/multiarch/varshift.c: New file.
29077
29078         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
29079
29080         * sysdeps/x86_64/strlen.S: Minimal code improvement.
29081
29082 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
29083
29084         * sysdeps/x86_64/strlen.S: Unroll the loop.
29085         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29086         strlen-sse2 strlen-sse2-bsf.
29087         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
29088         __strlen_no_bsf if bit_Slow_BSF is set.
29089         (__strlen_sse42): Removed.
29090         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
29091         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
29092
29093 2010-08-25  Roland McGrath  <roland@redhat.com>
29094
29095         * sysdeps/x86_64/multiarch/varshift.S: File removed.
29096         * sysdeps/x86_64/multiarch/varshift.c: New file.
29097         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
29098         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
29099         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
29100         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
29101
29102 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
29103
29104         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29105         strlen-sse2 strlen-sse2-bsf.
29106         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
29107         __strlen_sse2_bsf if bit_Slow_BSF is unset.
29108         (__strlen_sse2): Removed.
29109         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
29110         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
29111         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
29112         bit_Slow_BSF for Atom.
29113         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
29114         (index_Slow_BSF): Define.
29115         (HAS_SLOW_BSF): Define.
29116
29117 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
29118
29119         [BZ #10851]
29120         * resolv/res_init.c (__res_vinit): When no server address at all
29121         is given default to loopback.
29122
29123 2010-08-24  Roland McGrath  <roland@redhat.com>
29124
29125         * configure.in: Remove config-name.h generation.
29126         * configure: Regenerated.
29127         * config-name.in: File removed.
29128         * scripts/config-uname.sh: New file.
29129         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
29130         ($(objdir)config-name.h): New target.
29131
29132         * sunrpc/rpc_parse.h: Avoid nested comment.
29133
29134 2010-08-24  Richard Henderson  <rth@redhat.com>
29135             Ulrich Drepper  <drepper@redhat.com>
29136             H.J. Lu  <hongjiu.lu@intel.com>
29137
29138         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
29139         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
29140         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
29141         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
29142         _mm_alignr_epi8 with _mm_loadu_si128.
29143         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
29144         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
29145         (__m128i_shift_right): Removed.
29146         * sysdeps/i386/i686/multiarch/varshift.h: New file.
29147         * sysdeps/i386/i686/multiarch/varshift.S: New file.
29148         * sysdeps/x86_64/multiarch/varshift.h: New file.
29149         * sysdeps/x86_64/multiarch/varshift.S: New file.
29150
29151 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
29152
29153         * configure.in: Move assembler checks to before sysdep dir checking.
29154
29155 2010-08-20  Petr Baudis  <pasky@suse.cz>
29156
29157         * LICENSES: Sync the sunrpc license.
29158
29159 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
29160
29161         * sunrpc/auth_des.c: Update copyright notice once again.
29162         * sunrpc/auth_none.c: Likewise.
29163         * sunrpc/auth_unix.c: Likewise.
29164         * sunrpc/authdes_prot.c: Likewise.
29165         * sunrpc/authuxprot.c: Likewise.
29166         * sunrpc/bindrsvprt.c: Likewise.
29167         * sunrpc/clnt_gen.c: Likewise.
29168         * sunrpc/clnt_perr.c: Likewise.
29169         * sunrpc/clnt_raw.c: Likewise.
29170         * sunrpc/clnt_simp.c: Likewise.
29171         * sunrpc/clnt_tcp.c: Likewise.
29172         * sunrpc/clnt_udp.c: Likewise.
29173         * sunrpc/clnt_unix.c: Likewise.
29174         * sunrpc/des_crypt.c: Likewise.
29175         * sunrpc/des_soft.c: Likewise.
29176         * sunrpc/get_myaddr.c: Likewise.
29177         * sunrpc/getrpcport.c: Likewise.
29178         * sunrpc/key_call.c: Likewise.
29179         * sunrpc/key_prot.c: Likewise.
29180         * sunrpc/openchild.c: Likewise.
29181         * sunrpc/pm_getmaps.c: Likewise.
29182         * sunrpc/pm_getport.c: Likewise.
29183         * sunrpc/pmap_clnt.c: Likewise.
29184         * sunrpc/pmap_prot.c: Likewise.
29185         * sunrpc/pmap_prot2.c: Likewise.
29186         * sunrpc/pmap_rmt.c: Likewise.
29187         * sunrpc/rpc/auth.h: Likewise.
29188         * sunrpc/rpc/auth_unix.h: Likewise.
29189         * sunrpc/rpc/clnt.h: Likewise.
29190         * sunrpc/rpc/des_crypt.h: Likewise.
29191         * sunrpc/rpc/key_prot.h: Likewise.
29192         * sunrpc/rpc/netdb.h: Likewise.
29193         * sunrpc/rpc/pmap_clnt.h: Likewise.
29194         * sunrpc/rpc/pmap_prot.h: Likewise.
29195         * sunrpc/rpc/pmap_rmt.h: Likewise.
29196         * sunrpc/rpc/rpc.h: Likewise.
29197         * sunrpc/rpc/rpc_des.h: Likewise.
29198         * sunrpc/rpc/rpc_msg.h: Likewise.
29199         * sunrpc/rpc/svc.h: Likewise.
29200         * sunrpc/rpc/svc_auth.h: Likewise.
29201         * sunrpc/rpc/types.h: Likewise.
29202         * sunrpc/rpc/xdr.h: Likewise.
29203         * sunrpc/rpc_clntout.c: Likewise.
29204         * sunrpc/rpc_cmsg.c: Likewise.
29205         * sunrpc/rpc_common.c: Likewise.
29206         * sunrpc/rpc_cout.c: Likewise.
29207         * sunrpc/rpc_dtable.c: Likewise.
29208         * sunrpc/rpc_hout.c: Likewise.
29209         * sunrpc/rpc_main.c: Likewise.
29210         * sunrpc/rpc_parse.c: Likewise.
29211         * sunrpc/rpc_parse.h: Likewise.
29212         * sunrpc/rpc_prot.c: Likewise.
29213         * sunrpc/rpc_sample.c: Likewise.
29214         * sunrpc/rpc_scan.c: Likewise.
29215         * sunrpc/rpc_scan.h: Likewise.
29216         * sunrpc/rpc_svcout.c: Likewise.
29217         * sunrpc/rpc_tblout.c: Likewise.
29218         * sunrpc/rpc_util.c: Likewise.
29219         * sunrpc/rpc_util.h: Likewise.
29220         * sunrpc/rpcinfo.c: Likewise.
29221         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
29222         * sunrpc/rpcsvc/key_prot.x: Likewise.
29223         * sunrpc/rpcsvc/klm_prot.x: Likewise.
29224         * sunrpc/rpcsvc/mount.x: Likewise.
29225         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
29226         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
29227         * sunrpc/rpcsvc/rex.x: Likewise.
29228         * sunrpc/rpcsvc/rstat.x: Likewise.
29229         * sunrpc/rpcsvc/rusers.x: Likewise.
29230         * sunrpc/rpcsvc/sm_inter.x: Likewise.
29231         * sunrpc/rpcsvc/spray.x: Likewise.
29232         * sunrpc/rpcsvc/yppasswd.x: Likewise.
29233         * sunrpc/rtime.c: Likewise.
29234         * sunrpc/svc.c: Likewise.
29235         * sunrpc/svc_auth.c: Likewise.
29236         * sunrpc/svc_authux.c: Likewise.
29237         * sunrpc/svc_raw.c: Likewise.
29238         * sunrpc/svc_run.c: Likewise.
29239         * sunrpc/svc_simple.c: Likewise.
29240         * sunrpc/svc_tcp.c: Likewise.
29241         * sunrpc/svc_udp.c: Likewise.
29242         * sunrpc/svc_unix.c: Likewise.
29243         * sunrpc/svcauth_des.c: Likewise.
29244         * sunrpc/xcrypt.c: Likewise.
29245         * sunrpc/xdr.c: Likewise.
29246         * sunrpc/xdr_array.c: Likewise.
29247         * sunrpc/xdr_float.c: Likewise.
29248         * sunrpc/xdr_mem.c: Likewise.
29249         * sunrpc/xdr_rec.c: Likewise.
29250         * sunrpc/xdr_ref.c: Likewise.
29251         * sunrpc/xdr_sizeof.c: Likewise.
29252         * sunrpc/xdr_stdio.c: Likewise.
29253
29254         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
29255         handling.
29256
29257 2010-08-19  Andreas Schwab  <schwab@redhat.com>
29258
29259         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
29260
29261 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
29262
29263         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
29264         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
29265         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
29266         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
29267         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
29268         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
29269         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
29270         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
29271         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
29272         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
29273         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
29274         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
29275         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
29276         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
29277
29278 2010-07-26  Anton Blanchard  <anton@samba.org>
29279
29280         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
29281         * malloc/arena.c (heap_trim): Likewise.
29282
29283 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
29284
29285         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
29286         here.  Not...
29287         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
29288         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
29289
29290 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
29291
29292         * sysdeps/i386/elf/Makefile: New file.
29293
29294 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
29295
29296         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
29297         from fanotify_init.
29298         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
29299         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
29300
29301 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
29302
29303         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
29304         of strncasecmp_l.
29305         * sysdeps/multiarch/strcmp.S: Likewise.
29306
29307 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
29308
29309         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
29310         strncase_l-nonascii.
29311         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
29312         Add strncase_l-ssse3.
29313         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
29314         * sysdeps/x86_64/strcmp.S: Likewise.
29315         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
29316         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
29317         * sysdeps/x86_64/strncase.S: New file.
29318         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
29319         * sysdeps/x86_64/strncase_l.S: New file.
29320         * string/Makefile (strop-tests): Add strncasecmp.
29321         * string/test-strncasecmp.c: New file.
29322
29323         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
29324         warning.
29325
29326         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
29327         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
29328
29329 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
29330
29331         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
29332
29333 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
29334
29335         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
29336         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
29337         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
29338
29339 2010-05-01  Alan Modra  <amodra@gmail.com>
29340
29341         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
29342         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
29343         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
29344         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
29345         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
29346         tidying.  Don't tail-call __sigjmp_save for static lib.
29347         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
29348         save location.
29349         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
29350         (CALL_MCOUNT): Add eh info, and nop after bl.
29351         (TAIL_CALL_SYSCALL_ERROR): New macro.
29352         (PSEUDO_RET): Use it.
29353         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
29354         Correct save location of integer regs and cr.
29355         (_dl_profile_resolve): Correct cr save location.  Delete nops
29356         after bl when SHARED.  Reduce cfi size a little by better
29357         placement of cfi directives.
29358         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
29359         make a stack frame.  Instead use parm save area as a temp.
29360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
29361         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
29362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
29363         Don't make a stack frame for parent, use parm save area.
29364         Increase child stack frame to 112 bytes.  Don't save unused reg,
29365         and adjust reg usage.  Set up cfi on error recovery and
29366         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
29367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29368         (__makecontext): Add dummy nop after jump to exit.
29369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
29370         Use correct parm save area and cr save, reduce stack frame.
29371         Correct cfi for possible PSEUDO_RET frame setup.
29372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
29373         Branch to local label emitted by PSEUDO_RET rather than
29374         __syscall_error.
29375
29376 2010-08-12  Andreas Schwab  <schwab@redhat.com>
29377
29378         [BZ #11904]
29379         * locale/programs/locale.c (print_assignment): New function.
29380         (show_locale_vars): Use it.
29381
29382 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
29383
29384         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
29385         field.
29386         (struct statfs64): Likewise.
29387         (_STATFS_F_FLAGS): Define.
29388         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
29389         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
29390         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
29391         (ST_VALID): Define locally.
29392         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
29393         __statvfs_getflags, use the provided value.
29394         * sysdeps/unix/sysv/linux/kernel-features.h: Define
29395         __ASSUME_STATFS_F_FLAGS.
29396
29397         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
29398
29399         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
29400         Add sys/fanotify.h.
29401         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
29402         fanotify_mask for GLIBC_2.13.
29403         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
29404         fanotify_init and fanotify_mark.
29405         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
29406         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
29407
29408         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
29409         Add prlimit.
29410         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
29411         prlimit64 for GLIBC_2.13.
29412         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
29413         prlimit64.
29414         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
29415         syscall.
29416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
29417         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
29418         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
29419         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
29420         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
29421         add prlimit alias.
29422         * sysdeps/unix/sysv/linux/prlimit.c: New file.
29423
29424         [BZ #11903]
29425         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
29426         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
29427
29428         * nss/Makefile: Add rules to build and run tst-nss-test1.
29429         * shlib-versions: Add entry for libnss_test1.
29430         * nss/nss_test1.c: New file.
29431         * nss/tst-nss-test1.c: New file.
29432
29433         * nss/nsswitch.c (__nss_database_custom): Define new variable.
29434         (__nss_configure_lookup): Set appropriate entry in
29435         __nss_configure_lookup to true.
29436         * nss/nsswitch.h: Define enum with indeces of databases in
29437         databases and __nss_database_custom arrays.  Declare
29438         __nss_database_custom.
29439         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
29440         to avoid using nscd when custom rules are installed.
29441         * nss/getXXbyYY_r.c: Likewise.
29442         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
29443
29444         * nss/nss_files/files-parse.c: Whitespace fixes.
29445
29446 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
29447
29448         [BZ #11883]
29449         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
29450         * posix/fnmatch_loop.c: Likewise.
29451
29452 2010-07-17  Andi Kleen  <ak@linux.intel.com>
29453
29454         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
29455         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
29456         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
29457         * Versions.def [GLIBC_2.13]: Add.
29458
29459 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
29460
29461         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
29462         Also fail if tpwd after pwuid call is NULL.
29463
29464 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29465
29466         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
29467         when converting to ms.
29468
29469 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29470
29471         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
29472         EOPNOTSUPP errors with ENOTTY.
29473         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
29474         EOPNOTSUPP errors with ENOTTY.
29475
29476 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
29477
29478         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
29479         Add strcasecmp_l-ssse3.
29480         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
29481         strcasecmp.
29482         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
29483         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
29484         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
29485
29486 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
29487
29488         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
29489
29490         * string/Makefile (strop-tests): Add strcasecmp.
29491         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
29492         strcasecmp_l-nonascii.
29493         (gen-as-const-headers): Add locale-defines.sym.
29494         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
29495         * sysdeps/x86_64/strcasecmp.S: New file.
29496         * sysdeps/x86_64/strcasecmp_l.S: New file.
29497         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
29498         * sysdeps/x86_64/locale-defines.sym: New file.
29499         * string/test-strcasecmp.c: New file.
29500
29501         * string/test-strcasestr.c: Test both ends of the range of characters.
29502         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
29503
29504 2010-07-29  Roland McGrath  <roland@redhat.com>
29505
29506         [BZ #11856]
29507         * manual/locale.texi (Yes-or-No Questions): Fix example code.
29508
29509 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
29510
29511         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
29512         for ld.so.
29513
29514 2010-07-27  Andreas Schwab  <schwab@redhat.com>
29515
29516         * manual/memory.texi (Malloc Tunable Parameters): Document
29517         M_PERTURB.
29518
29519 2010-07-26  Roland McGrath  <roland@redhat.com>
29520
29521         [BZ #11840]
29522         * configure.in (-fgnu89-inline check): Set and substitute
29523         gnu89_inline, not libc_cv_gnu89_inline.
29524         * configure: Regenerated.
29525         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
29526
29527 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
29528
29529         * string/test-strnlen.c: New file.
29530         * string/Makefile (strop-tests): Add strnlen.
29531         * string/tester.c (test_strnlen): Add a few more test cases.
29532         * string/tst-strlen.c: Better error reporting.
29533
29534         * sysdeps/x86_64/strnlen.S: New file.
29535
29536 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
29537
29538         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
29539         lower-latency instructions.
29540
29541 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
29542
29543         * string/test-strcasestr.c: New file.
29544         * string/test-strstr.c: New file.
29545         * string/Makefile (strop-tests): Add strstr and strcasestr.
29546         * string/str-two-way.h: Don't undefine MAX.
29547         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
29548
29549 2010-07-21  Andreas Schwab  <schwab@redhat.com>
29550
29551         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29552         strcasestr-nonascii.
29553         (CFLAGS-strcasestr-nonascii.c): Define.
29554         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
29555         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
29556         Remove unused attribute.
29557
29558 2010-07-20  Roland McGrath  <roland@redhat.com>
29559
29560         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
29561         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
29562         ld.so.cache was broken.  With it, there is no way to disable dsocaps
29563         like LD_HWCAP_MASK can disable hwcaps.
29564
29565 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
29566
29567         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
29568
29569 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
29570
29571         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
29572         call in strcasestr.
29573         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
29574         __strcasestr_sse42_nonascii.
29575         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
29576         strcasestr-nonascii.c.
29577         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
29578
29579 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
29580
29581         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
29582         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
29583         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
29584         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
29585
29586 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
29587
29588         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
29589         fcntl.
29590
29591 2010-07-06  Andreas Schwab  <schwab@redhat.com>
29592
29593         [BZ #11577]
29594         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
29595         dl_signal_cerror.
29596
29597 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
29598
29599         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
29600         _PC_PIPE_BUF using F_GETPIPE_SZ.
29601
29602 2010-07-05  Roland McGrath  <roland@redhat.com>
29603
29604         * manual/arith.texi (Rounding Functions): Fix rint description
29605         implicit in round description.
29606
29607 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
29608
29609         * elf/Makefile: Fix linking for a few tests to make recent linker
29610         happy.
29611
29612 2010-06-30  Andreas Schwab  <schwab@redhat.com>
29613
29614         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
29615         $(common-objpfx)libc_nonshared.a.
29616
29617 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
29618
29619         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
29620         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
29621         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
29622         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
29623         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
29624         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
29625         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
29626         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
29627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
29628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
29629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
29630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
29631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
29632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
29633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
29634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
29635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
29636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
29637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
29638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
29639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
29640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
29641         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
29642         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
29643         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
29644         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
29645         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
29646         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
29647         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
29648         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
29649         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
29650         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
29651         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
29652         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
29653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
29654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
29655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
29656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
29657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
29658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
29659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
29660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
29661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
29662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
29663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
29664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
29665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
29666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
29667
29668 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
29669
29670         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
29671         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
29672         * string/memmove.c (memmove): Renamed to ...
29673         (MEMMOVE): ...this.  Default to memmove.
29674         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
29675         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
29676         (END_CHK): Define.
29677         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29678         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
29679         mempcpy-ssse3-back memmove-ssse3-back.
29680         * sysdeps/x86_64/multiarch/bcopy.S: New file .
29681         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
29682         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
29683         * sysdeps/x86_64/multiarch/memcpy.S: New file.
29684         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
29685         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
29686         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
29687         * sysdeps/x86_64/multiarch/memmove.c: New file.
29688         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
29689         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
29690         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
29691         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
29692         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
29693         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
29694         Define.
29695         (index_Fast_Copy_Backward): Define.
29696         (HAS_ARCH_FEATURE): Define.
29697         (HAS_FAST_REP_STRING): Define.
29698         (HAS_FAST_COPY_BACKWARD): Define.
29699
29700 2010-06-21  Andreas Schwab  <schwab@redhat.com>
29701
29702         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
29703         Restore proper fallback handling.
29704
29705 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
29706
29707         [BZ #11701]
29708         * posix/group_member.c (__group_member): Correct checking loop.
29709
29710         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
29711         OOM in getpwuid_r correctly.  Return error number when the caller
29712         should return, otherwise -1.
29713         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
29714         call returning > 0 value.
29715         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
29716
29717 2010-06-07  Andreas Schwab  <schwab@redhat.com>
29718
29719         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
29720         libc_nonshared.a from targets in modules-names.
29721
29722 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
29723
29724         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
29725         requires it.
29726
29727 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
29728
29729         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
29730         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
29731         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
29732         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
29733
29734 2010-06-02  Andreas Schwab  <schwab@redhat.com>
29735
29736         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
29737
29738 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
29739
29740         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
29741         and F_GETPIPE_SZ.
29742         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
29743         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
29744         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
29745         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
29746         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
29747         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
29748
29749 2010-06-14  Roland McGrath  <roland@redhat.com>
29750
29751         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
29752
29753 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
29754
29755         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
29756         __REDIRECT followed by __THROW.
29757         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
29758         * posix/getopt.h (getopt): Likewise.
29759
29760 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
29761
29762         * hurd/lookup-at.c (__file_name_lookup_at): Accept
29763         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
29764         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
29765         in AT_FLAGS.
29766         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
29767         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
29768
29769 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
29770
29771         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
29772
29773 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
29774
29775         [BZ #11640]
29776         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29777         Properly check family and model.
29778
29779 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
29780
29781         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
29782
29783 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
29784
29785         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
29786
29787 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
29788
29789         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
29790         symbol reference.
29791
29792 2010-05-19  Andreas Schwab  <schwab@redhat.com>
29793
29794         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
29795         symbol reference.
29796
29797 2010-05-21  Andreas Schwab  <schwab@redhat.com>
29798
29799         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
29800         and internal_recvmmsg.
29801         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
29802         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
29803         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
29804         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
29805
29806         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
29807         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
29808         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
29809
29810 2010-05-20  Andreas Schwab  <schwab@redhat.com>
29811
29812         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
29813
29814 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
29815
29816         POWER7 optimizations.
29817         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
29818         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
29819
29820 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
29821
29822         * version.h: Update for 2.13 development version.
29823
29824 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
29825
29826         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
29827         exceptions.  Return 0.
29828
29829 2010-05-07  Roland McGrath  <roland@redhat.com>
29830
29831         * elf/ldconfig.c (main): Add a const.
29832
29833 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
29834
29835         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
29836         (args_options): Add no-idn option.
29837         (ahosts_keys_int): Add idn_flags to ai_flags.
29838         (parse_option): Handle 'i' option to clear idn_flags.
29839
29840         * malloc/malloc.c (_int_free): Possible race in the most recently
29841         added check.  Only act on the data if no current modification
29842         happened.
29843
29844 See ChangeLog.17 for earlier changes.