Fix parsing of numeric hosts in gethostbyname_r
[jlayton/glibc.git] / ChangeLog
1 2013-05-21  Andreas Schwab  <schwab@suse.de>
2
3         [BZ #15014]
4         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
5         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
6         successful.
7         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8         redundant variable declarations and reallocation of buffer when
9         parsing as IPv6 address.  Always set NSS status when called from
10         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
11         buffer too small.  Correct computation of needed size.
12         * nss/Makefile (tests): Add test-digits-dots.
13         * nss/test-digits-dots.c: New test.
14
15 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16
17         * benchtests/Makefile: Remove instructions for adding
18         benchmark tests.
19         * benchtests/README: New file to explain how to execute and
20         enhance the benchmark tests.
21
22 2013-05-21  Andreas Schwab  <schwab@suse.de>
23
24         [BZ #15493]
25         * setjmp/Makefile (tests): Add tst-sigsetjmp.
26         * setjmp/tst-sigsetjmp.c: New test.
27
28 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
29
30         * sysdeps/x86_64/memset.S (memset): New implementation.
31         (__bzero): Likewise.
32         (__memset_tail): New function.
33
34 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
35
36         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
37         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
38         __memcpy_sse2_unaligned ifunc selection.
39         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
40         Add memcpy-sse2-unaligned.S.
41         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
42         Add: __memcpy_sse2_unaligned.
43
44 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
45
46         [BZ #15490]
47         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
48         math_force_eval before restoring floating-point envrionment.
49         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
50         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
51         Likewise.
52         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
53         <math_private.h>.
54         (__nearbyintl): Use math_force_eval before restoring
55         floating-point environment.
56         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
57
58         * math/gen-libm-test.pl (special_functions): Remove.
59         (parse_args): Don't handle TEST_extra.  Handle functions with no
60         return value.
61         * math/libm-test.inc (struct test_sincos_data): Replace with
62         struct test_fFF_11_data.
63         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
64         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
65         (sincos_test_data): Change element type to struct
66         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
67         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
68         RUN_TEST_LOOP_sincos.
69         * math/README.libm-test: Don't mention special handling of
70         individual functions.
71         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
72         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
73         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
74         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
75         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
76         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77
78         * math/gen-libm-test.pl (get_variable): Remove function.
79         (parse_args): Don't show pointer parameters to call in test
80         names.  Use "extra output N" in test names for extra outputs
81         rather than naming variables.
82
83 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
84
85         [BZ #15488]
86         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
87         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
88         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
89         double tests.
90         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
91         disable.
92         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
93         check_long_double.
94
95         * math/gen-libm-test.pl (@tests): Remove variable.
96         ($count): Likewise.
97         (new_test): Remove function.
98         (show_exceptions): New function.
99         (special_functions): Use show_exceptions instead of new_test.
100         (parse_args): Likewise.
101         (generate_testfile): Pass only function name in generated call to
102         print_max_error or print_complex_max_error.
103         (get_ulps): Do not handle complex tests specially.
104         (output_test): Rename to ...
105         (get_all_ulps_for_test): ... this.  Return a string rather than
106         printing to a file.  Require ulps to be present.
107         (output_ulps): Generate arrays rather than #defines.
108         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
109         (struct ulp_data): New type.
110         (BUILD_COMPLEX_ULP): Remove macro.
111         (compare_ulp_data): New function.
112         (find_ulps): Likewise.
113         (find_test_ulps): Likewise.
114         (find_function_ulps): Likewise.
115         (find_complex_function_ulps): Likewise.
116         (print_max_error): Determine allowed ulps using
117         find_function_ulps.
118         (print_complex_max_error): Determine allowed ulps using
119         find_complex_function_ulps.
120         (check_float_internal): Determine max ulps using find_test_ulps.
121         (check_float): Do not take max_ulp parameter.  Update call to
122         check_float_internal.
123         (check_complex): Likewise.
124         (check_int): Do not take max_ulp parameter.
125         (check_long): Likewise.
126         (check_bool): Likewise.
127         (check_longlong): Likewise.
128         (struct test_f_f_data): Remove max_ulp field.
129         (struct test_ff_f_data): Likewise.
130         (struct test_ff_f_data_nexttoward): Likewise.
131         (struct test_fi_f_data): Likewise.
132         (struct test_fl_f_data): Likewise.
133         (struct test_if_f_data): Likewise.
134         (struct test_fff_f_data): Likewise.
135         (struct test_c_f_data): Likewise.
136         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
137         (struct test_fF_f1_data): Likewise.
138         (struct test_ffI_f1_data): Likewise.
139         (struct test_c_c_data): Remove max_ulp field.
140         (struct test_cc_c_data): Likewise.
141         (struct test_f_i_data): Likewise.
142         (struct test_ff_i_data): Likewise.
143         (struct test_f_l_data): Likewise.
144         (struct test_f_L_data): Likewise.
145         (struct test_sincos_data): Likewise.
146         (RUN_TEST_f_f): Do not handle ulps.
147         (RUN_TEST_LOOP_f_f): Likewise.
148         (RUN_TEST_2_f): Likewise.
149         (RUN_TEST_LOOP_2_f): Likewise.
150         (RUN_TEST_fff_f): Likewise.
151         (RUN_TEST_LOOP_fff_f): Likewise.
152         (RUN_TEST_c_f): Likewise.
153         (RUN_TEST_LOOP_c_f): Likewise.
154         (RUN_TEST_f_f1): Likewise.
155         (RUN_TEST_LOOP_f_f1): Likewise.
156         (RUN_TEST_fF_f1): Likewise.
157         (RUN_TEST_LOOP_fF_f1): Likewise.
158         (RUN_TEST_fI_f1): Likewise.
159         (RUN_TEST_LOOP_fI_f1): Likewise.
160         (RUN_TEST_ffI_f1): Likewise.
161         (RUN_TEST_LOOP_ffI_f1): Likewise.
162         (RUN_TEST_c_c): Likewise.
163         (RUN_TEST_LOOP_c_c): Likewise.
164         (RUN_TEST_cc_c): Likewise.
165         (RUN_TEST_LOOP_cc_c): Likewise.
166         (RUN_TEST_f_i): Likewise.
167         (RUN_TEST_LOOP_f_i): Likewise.
168         (RUN_TEST_f_i_tg): Likewise.
169         (RUN_TEST_LOOP_f_i_tg): Likewise.
170         (RUN_TEST_ff_i_tg): Likewise.
171         (RUN_TEST_LOOP_ff_i_tg): Likewise.
172         (RUN_TEST_f_b): Likewise.
173         (RUN_TEST_LOOP_f_b): Likewise.
174         (RUN_TEST_f_b_tg): Likewise.
175         (RUN_TEST_LOOP_f_b_tg): Likewise.
176         (RUN_TEST_f_l): Likewise.
177         (RUN_TEST_LOOP_f_l): Likewise.
178         (RUN_TEST_f_L): Likewise.
179         (RUN_TEST_LOOP_f_L): Likewise.
180         (RUN_TEST_sincos): Likewise.
181         (RUN_TEST_LOOP_sincos): Likewise.
182
183 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
184
185         [BZ #15480]
186         [BZ #15485]
187         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
188         main case of finite arguments, set rounding mode to FE_TONEAREST
189         and discard exceptions.
190         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
191         exceptions.
192         (remainder_tonearest_test_data): New variable.
193         (remainder_test_tonearest): New function.
194         (remainder_towardzero_test_data): New variable.
195         (remainder_test_towardzero): New function.
196         (remainder_downward_test_data): New variable.
197         (remainder_test_downward): New function.
198         (remainder_upward_test_data): New variable.
199         (remainder_test_upward): New function.
200         (main): Call the new test functions.
201
202         * math/libm-test.inc (struct test_f_f1_data): Remove field
203         extra_init.
204         (struct test_fF_f1_data): Likewise.
205         (struct test_ffI_f1_data): Likewise.
206         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
207         based on value of EXTRA_EXPECTED.
208         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
209         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
210         EXTRA_VAR based on value of EXTRA_EXPECTED.
211         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
212         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
213         EXTRA_VAR based on value of EXTRA_EXPECTED.
214         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
215         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
216         EXTRA_VAR based on value of EXTRA_EXPECTED.
217         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
218         * math/gen-libm-test.pl (parse_args): Don't output initializers
219         for extra output values.
220
221         * math/libm-test.inc (check_int): Expect result to be exactly
222         equal to expected value and do not handle ulps.
223         (check_long): Likewise.
224         (check_longlong): Likewise.
225
226         * math/libm-test.inc (ceil_test_data): Test for "inexact"
227         exceptions.
228         (cimag_test_data): Likewise.
229         (conj_test_data): Likewise.
230         (copysign_test_data): Likewise.
231         (cproj_test_data): Likewise.
232         (creal_test_data): Likewise.
233         (fabs_test_data): Likewise.
234         (fdim_test_data): Likewise.
235         (finite_test_data): Likewise.
236         (floor_test_data): Likewise.
237         (fmax_test_data): Likewise.
238         (fmin_test_data): Likewise.
239         (fmod_test_data): Likewise.
240         (fpclassify_test_data): Likewise.
241         (frexp_test_data): Likewise.
242         (ilogb_test_data): Likewise.
243         (isfinite_test_data): Likewise.
244         (isgreater_test_data): Likewise.
245         (isgreaterequal_test_data): Likewise.
246         (isinf_test_data): Likewise.
247         (isless_test_data): Likewise.
248         (islessequal_test_data): Likewise.
249         (islessgreater_test_data): Likewise.
250         (isnan_test_data): Likewise.
251         (isnormal_test_data): Likewise.
252         (issignaling_test_data): Likewise.
253         (isunordered_test_data): Likewise.
254         (ldexp_test_data): Likewise.
255         (lrint_test_data): Likewise.
256         (lrint_test_data) [TEST_FLOAT]: Disable one test.
257         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
258         (lrint_tonearest_test_data): Test for "inexact" exceptions.
259         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
260         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
261         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
262         test input.
263         (lrint_towardzero_test_data): Test for "inexact" exceptions.
264         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
265         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
266         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
267         that test input.
268         (lrint_downward_test_data): Test for "inexact" exceptions.
269         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
270         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
271         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
272         test input.
273         (lrint_upward_test_data): Test for "inexact" exceptions.
274         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
275         test input.
276         (llrint_test_data): Test for "inexact" exceptions.
277         (llrint_test_data) [TEST_FLOAT]: Disable one test.
278         (llrint_tonearest_test_data): Test for "inexact" exceptions.
279         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
280         (llrint_towardzero_test_data): Test for "inexact" exceptions.
281         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
282         (llrint_downward_test_data): Test for "inexact" exceptions.
283         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
284         (llrint_upward_test_data): Test for "inexact" exceptions.
285         (logb_test_data): Likewise.
286         (logb_downward_test_data): Likewise.
287         (nextafter_test_data): Likewise.
288         (nexttoward_test_data): Likewise.
289         (remainder_test_data): Likewise.
290         (remquo_test_data): Likewise.
291         (scalbn_test_data): Likewise.
292         (scalbln_test_data): Likewise.
293         (signbit_test_data): Likewise.
294         (sqrt_test_data): Likewise.
295         (significand_test_data): Likewise.
296
297 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
298
299         [BZ #15424]
300         * benchtests/bench-modf.c (struct args): Mark arg0 as
301         volatile.
302         * scripts/bench.pl: Mark members of struct args as volatile.
303
304 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
305
306         [BZ # 15497]
307         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
308         negative infinity on POWER6 or lower.
309         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
310
311 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
312
313         [BZ #15442]
314         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
315         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
316         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
317         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
318         (_FP_SETQNAN): New macro.
319         (_FP_SETQNAN_SEMIRAW): Likewise.
320         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
321         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
322         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
323         (FP_EXTEND): Use _FP_FRAC_SNANP.
324         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
325         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
326         into account.
327         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
328         New macro.
329         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
330         Likewise.
331
332 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
333
334         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
335         with DIVIDE_BY_ZERO_EXCEPTION.
336         (gamma_test_data): Likewise.
337         (lgamma_test_data): Likewise.
338         (log_test_data): Likewise.
339         (log10_test_data): Likewise.
340         (log2_test_data): Likewise.
341         (tgamma_test_data): Likewise.
342
343         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
344         (acos_test_tonearest): Likewise.
345         (acos_test_towardzero): Likewise.
346         (acos_test_downward): Likewise.
347         (acos_test_upward): Likewise.
348         (acosh_test): Likewise.
349         (asin_test): Likewise.
350         (asin_test_tonearest): Likewise.
351         (asin_test_towardzero): Likewise.
352         (asin_test_downward): Likewise.
353         (asin_test_upward): Likewise.
354         (asinh_test): Likewise.
355         (atan_test): Likewise.
356         (atanh_test): Likewise.
357         (atan2_test): Likewise.
358         (cabs_test): Likewise.
359         (cacos_test): Likewise.
360         (cacosh_test): Likewise.
361         (casin_test): Likewise.
362         (casinh_test): Likewise.
363         (catan_test): Likewise.
364         (catanh_test): Likewise.
365         (cbrt_test): Likewise.
366         (ccos_test): Likewise.
367         (ccosh_test): Likewise.
368         (cexp_test): Likewise.
369         (clog_test): Likewise.
370         (clog10_test): Likewise.
371         (cos_test): Likewise.
372         (cos_test_tonearest): Likewise.
373         (cos_test_towardzero): Likewise.
374         (cos_test_downward): Likewise.
375         (cos_test_upward): Likewise.
376         (cosh_test): Likewise.
377         (cosh_test_tonearest): Likewise.
378         (cosh_test_towardzero): Likewise.
379         (cosh_test_downward): Likewise.
380         (cosh_test_upward): Likewise.
381         (cpow_test): Likewise.
382         (csin_test): Likewise.
383         (csinh_test): Likewise.
384         (csqrt_test): Likewise.
385         (ctan_test): Likewise.
386         (ctan_test_tonearest): Likewise.
387         (ctan_test_towardzero): Likewise.
388         (ctan_test_downward): Likewise.
389         (ctan_test_upward): Likewise.
390         (ctanh_test): Likewise.
391         (ctanh_test_tonearest): Likewise.
392         (ctanh_test_towardzero): Likewise.
393         (ctanh_test_downward): Likewise.
394         (ctanh_test_upward): Likewise.
395         (erf_test): Likewise.
396         (erfc_test): Likewise.
397         (exp_test): Likewise.
398         (exp_test_tonearest): Likewise.
399         (exp_test_towardzero): Likewise.
400         (exp_test_downward): Likewise.
401         (exp_test_upward): Likewise.
402         (exp10_test): Likewise.
403         (exp2_test): Likewise.
404         (expm1_test): Likewise.
405         (fmod_test): Likewise.
406         (gamma_test): Likewise.
407         (hypot_test): Likewise.
408         (j0_test): Likewise.
409         (j1_test): Likewise.
410         (jn_test): Likewise.
411         (lgamma_test): Likewise.
412         (log_test): Likewise.
413         (log10_test): Likewise.
414         (log1p_test): Likewise.
415         (log2_test): Likewise.
416         (logb_test_downward): Likewise.
417         (pow_test): Likewise.
418         (pow_test_tonearest): Likewise.
419         (pow_test_towardzero): Likewise.
420         (pow_test_downward): Likewise.
421         (pow_test_upward): Likewise.
422         (remainder_test): Likewise.
423         (remquo_test): Likewise.
424         (sin_test): Likewise.
425         (sin_test_tonearest): Likewise.
426         (sin_test_towardzero): Likewise.
427         (sin_test_downward): Likewise.
428         (sin_test_upward): Likewise.
429         (sincos_test): Likewise.
430         (sinh_test): Likewise.
431         (sinh_test_tonearest): Likewise.
432         (sinh_test_towardzero): Likewise.
433         (sinh_test_downward): Likewise.
434         (sinh_test_upward): Likewise.
435         (sqrt_test): Likewise.
436         (tan_test): Likewise.
437         (tan_test_tonearest): Likewise.
438         (tan_test_towardzero): Likewise.
439         (tan_test_downward): Likewise.
440         (tan_test_upward): Likewise.
441         (tanh_test): Likewise.
442         (tgamma_test): Likewise.
443         (y0_test): Likewise.
444         (y1_test): Likewise.
445         (yn_test): Likewise.
446
447         * math/gen-libm-test.pl (adjust_arg): Remove function.
448         (special_function): Remove argument $in_func.  Only handle
449         generating output for tables of tests, not inside functions.
450         (parse_args): Likewise.
451         (generate_testfile): Remove variable $in_func.  Update call to
452         parse_args.
453         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
454         (MINUS_ZERO_INIT): Rename macro to minus_zero.
455         (PLUS_INFTY_INIT): Rename macro to plus_infty.
456         (MINUS_INFTY_INIT): Rename macro to minus_infty.
457         (QNAN_VALUE_INIT): Rename macro to qnan_value.
458         (MAX_VALUE_INIT): Rename macro to max_value.
459         (MIN_VALUE_INIT): Rename macro to min_value.
460         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
461         (plus_zero): Remove variable.
462         (minus_zero): Likewise.
463         (plus_infty): Likewise.
464         (minus_infty): Likewise.
465         (qnan_value): Likewise.
466         (max_value): Likewise.
467         (min_value): Likewise.
468         (min_subnorm_value): Likewise.
469
470 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
471
472         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
473         uint64_t or uint32_t usage.
474         * crypt/sha256-block.c: Likewise.
475         * crypt/sha256-crypt.c: Likewise.
476         * crypt/sha256.c: Likewise.
477         * crypt/sha512-block.c: Likewise.
478         * crypt/sha512-crypt.c: Likewise.
479         * crypt/sha512.c: Likewise.
480         * debug/backtrace-tst.c: Likewise.
481         * debug/pcprofiledump.c: Likewise.
482         * elf/cache.c: Likewise.
483         * elf/dl-cache.c: Likewise.
484         * elf/dl-misc.c: Likewise.
485         * elf/dl-profile.c: Likewise.
486         * elf/dl-support.c: Likewise.
487         * elf/ldconfig.c: Likewise.
488         * elf/sprof.c: Likewise.
489         * iconv/dummy-repertoire.c: Likewise.
490         * iconv/iconv_charmap.c: Likewise.
491         * iconv/skeleton.c: Likewise.
492         * iconvdata/8bit-generic.c: Likewise.
493         * iconvdata/cp737.h: Likewise.
494         * iconvdata/cp775.h: Likewise.
495         * iconvdata/ibm1008.h: Likewise.
496         * iconvdata/ibm1025.h: Likewise.
497         * iconvdata/ibm1046.h: Likewise.
498         * iconvdata/ibm1097.h: Likewise.
499         * iconvdata/ibm1112.h: Likewise.
500         * iconvdata/ibm1122.h: Likewise.
501         * iconvdata/ibm1123.h: Likewise.
502         * iconvdata/ibm1124.h: Likewise.
503         * iconvdata/ibm1129.h: Likewise.
504         * iconvdata/ibm1130.h: Likewise.
505         * iconvdata/ibm1132.h: Likewise.
506         * iconvdata/ibm1133.h: Likewise.
507         * iconvdata/ibm1137.h: Likewise.
508         * iconvdata/ibm1140.h: Likewise.
509         * iconvdata/ibm1141.h: Likewise.
510         * iconvdata/ibm1142.h: Likewise.
511         * iconvdata/ibm1143.h: Likewise.
512         * iconvdata/ibm1144.h: Likewise.
513         * iconvdata/ibm1145.h: Likewise.
514         * iconvdata/ibm1146.h: Likewise.
515         * iconvdata/ibm1147.h: Likewise.
516         * iconvdata/ibm1148.h: Likewise.
517         * iconvdata/ibm1149.h: Likewise.
518         * iconvdata/ibm1153.h: Likewise.
519         * iconvdata/ibm1154.h: Likewise.
520         * iconvdata/ibm1155.h: Likewise.
521         * iconvdata/ibm1156.h: Likewise.
522         * iconvdata/ibm1157.h: Likewise.
523         * iconvdata/ibm1158.h: Likewise.
524         * iconvdata/ibm1160.h: Likewise.
525         * iconvdata/ibm1161.h: Likewise.
526         * iconvdata/ibm1162.h: Likewise.
527         * iconvdata/ibm1163.h: Likewise.
528         * iconvdata/ibm1164.h: Likewise.
529         * iconvdata/ibm1166.h: Likewise.
530         * iconvdata/ibm1167.h: Likewise.
531         * iconvdata/ibm12712.h: Likewise.
532         * iconvdata/ibm1390.h: Likewise.
533         * iconvdata/ibm1399.h: Likewise.
534         * iconvdata/ibm16804.h: Likewise.
535         * iconvdata/ibm4517.h: Likewise.
536         * iconvdata/ibm4899.h: Likewise.
537         * iconvdata/ibm4909.h: Likewise.
538         * iconvdata/ibm4971.h: Likewise.
539         * iconvdata/ibm5347.h: Likewise.
540         * iconvdata/ibm803.h: Likewise.
541         * iconvdata/ibm856.h: Likewise.
542         * iconvdata/ibm901.h: Likewise.
543         * iconvdata/ibm902.h: Likewise.
544         * iconvdata/ibm9030.h: Likewise.
545         * iconvdata/ibm9066.h: Likewise.
546         * iconvdata/ibm921.h: Likewise.
547         * iconvdata/ibm922.h: Likewise.
548         * iconvdata/ibm9448.h: Likewise.
549         * iconvdata/isiri-3342.h: Likewise.
550         * iconvdata/jis0201.h: Likewise.
551         * include/link.h: Likewise.
552         * include/netdb.h: Likewise.
553         * inet/check_native.c: Likewise.
554         * inet/check_pf.c: Likewise.
555         * inet/getipv4sourcefilter.c: Likewise.
556         * inet/getnameinfo.c: Likewise.
557         * inet/getsourcefilter.c: Likewise.
558         * inet/htonl.c: Likewise.
559         * inet/setipv4sourcefilter.c: Likewise.
560         * inet/setsourcefilter.c: Likewise.
561         * inet/test-inet6_opt.c: Likewise.
562         * inet/tst-network.c: Likewise.
563         * locale/C-collate.c: Likewise.
564         * locale/C-ctype.c: Likewise.
565         * locale/C-time.c: Likewise.
566         * locale/C-translit.h: Likewise.
567         * locale/loadarchive.c: Likewise.
568         * locale/programs/3level.h: Likewise.
569         * locale/programs/charmap.c: Likewise.
570         * locale/programs/charmap.h: Likewise.
571         * locale/programs/ld-address.c: Likewise.
572         * locale/programs/ld-collate.c: Likewise.
573         * locale/programs/ld-ctype.c: Likewise.
574         * locale/programs/ld-identification.c: Likewise.
575         * locale/programs/ld-measurement.c: Likewise.
576         * locale/programs/ld-messages.c: Likewise.
577         * locale/programs/ld-monetary.c: Likewise.
578         * locale/programs/ld-name.c: Likewise.
579         * locale/programs/ld-numeric.c: Likewise.
580         * locale/programs/ld-paper.c: Likewise.
581         * locale/programs/ld-telephone.c: Likewise.
582         * locale/programs/ld-time.c: Likewise.
583         * locale/programs/linereader.c: Likewise.
584         * locale/programs/locale.c: Likewise.
585         * locale/programs/locarchive.c: Likewise.
586         * locale/programs/locfile.h: Likewise.
587         * locale/programs/repertoire.c: Likewise.
588         * locale/programs/simple-hash.c: Likewise.
589         * locale/programs/simple-hash.h: Likewise.
590         * malloc/memusage.c: Likewise.
591         * malloc/memusagestat.c: Likewise.
592         * nis/nis_defaults.c: Likewise.
593         * nis/nis_hash.c: Likewise.
594         * nis/nis_print.c: Likewise.
595         * nis/nis_xdr.c: Likewise.
596         * nscd/connections.c: Likewise.
597         * nscd/hstcache.c: Likewise.
598         * nscd/nscd_gethst_r.c: Likewise.
599         * nscd/nscd_getserv_r.c: Likewise.
600         * nscd/nscd_helper.c: Likewise.
601         * nscd/servicescache.c: Likewise.
602         * nss/makedb.c: Likewise.
603         * nss/nss_db/db-XXX.c: Likewise.
604         * nss/nss_db/db-initgroups.c: Likewise.
605         * nss/nss_db/db-netgrp.c: Likewise.
606         * nss/nss_files/files-network.c: Likewise.
607         * nss/nss_files/files-parse.c: Likewise.
608         * posix/bug-regex5.c: Likewise.
609         * posix/fnmatch_loop.c: Likewise.
610         * posix/regcomp.c: Likewise.
611         * posix/regexec.c: Likewise.
612         * posix/tst-rfc3484-2.c: Likewise.
613         * posix/tst-rfc3484-3.c: Likewise.
614         * posix/tst-rfc3484.c: Likewise.
615         * resolv/nss_dns/dns-canon.c: Likewise.
616         * resolv/nss_dns/dns-network.c: Likewise.
617         * resolv/res_init.c: Likewise.
618         * resolv/res_mkquery.c: Likewise.
619         * resolv/tst-aton.c: Likewise.
620         * stdlib/cxa_atexit.c: Likewise.
621         * stdlib/cxa_finalize.c: Likewise.
622         * stdlib/gen-fpioconst.c: Likewise.
623         * stdlib/strtol_l.c: Likewise.
624         * string/tst-endian.c: Likewise.
625         * sunrpc/auth_des.c: Likewise.
626         * sunrpc/clnt_udp.c: Likewise.
627         * sunrpc/rtime.c: Likewise.
628         * sunrpc/svcauth_des.c: Likewise.
629         * sunrpc/xdr.c: Likewise.
630         * sunrpc/xdr_intXX_t.c: Likewise.
631         * sunrpc/xdr_rec.c: Likewise.
632         * sysdeps/generic/ldconfig.h: Likewise.
633         * sysdeps/generic/ldsodefs.h: Likewise.
634         * sysdeps/generic/memusage.h: Likewise.
635         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
636         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
637         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
638         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
639         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
640         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
641         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
642         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
643         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
644         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
645         * sysdeps/posix/getaddrinfo.c: Likewise.
646         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
647         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
648         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
649         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
650         * sysdeps/powerpc/test-gettimebase.c: Likewise.
651         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
652         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
653         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
654         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
655         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
656         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
657         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
658         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
659         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
660         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
661         * sysdeps/x86_64/dl-tls.h: Likewise.
662         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
663         * time/alt_digit.c: Likewise.
664         * time/era.c: Likewise.
665         * wcsmbs/tst-c16c32-1.c: Likewise.
666
667 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
668
669         * math/libm-test.inc (struct test_sincos_data): New type.
670         (RUN_TEST_LOOP_sincos): New macro.
671         (sincos_test_data): New variable.
672         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
673
674 2013-05-16  Richard Henderson  <rth@redhat.com>
675
676         * math/atest-exp2.c (LIMB64): New macro.
677         (CONSTSZ): New macro.
678         (mp_exp1, mp_exp_m1, mp_log2): New variables.
679         (hexdig): Move ...
680         (print_mpn_fp): ... to function scope.
681         (read_mpn_hex): Remove.
682         (get_log2): Remove.
683         (exp2_mpn): Use mp_log2.
684         (main): Use mp_exp1.
685
686 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
687
688         * math/libm-test.inc: Remove comment about not testing "inexact"
689         exceptions.
690         (INEXACT_EXCEPTION): New macro.
691         (NO_INEXACT_EXCEPTION): Likewise.
692         (INVALID_EXCEPTION_OK): Update value.
693         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
694         (OVERFLOW_EXCEPTION_OK): Likewise.
695         (UNDERFLOW_EXCEPTION_OK): Likewise.
696         (IGNORE_ZERO_INF_SIGN): Likewise.
697         (ERRNO_UNCHANGED): Likewise.
698         (ERRNO_EDOM): Likewise.
699         (ERRNO_ERANGE): Likewise.
700         (test_exceptions): Handle testing "inexact" exceptions.
701         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
702         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
703         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
704         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
705         INEXACT_EXCEPTION.
706         (rint_towardzero_test_data): Likewise.
707         (rint_downward_test_data): Likewise.
708         (rint_upward_test_data): Likewise.
709
710         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
711         with OVERFLOW_EXCEPTION.
712         (exp10_test_data): Likewise.
713         (exp2_test_data): Likewise.
714         (expm1_test_data): Likewise.
715         (lgamma_test_data): Likewise.
716         (pow_test_data): Likewise.
717         (tgamma_test_data): Likewise.
718         (yn_test_data): Remove duplicate test of overflow.
719
720         * math/libm-test.inc (struct test_cc_c_data): New type.
721         (RUN_TEST_LOOP_cc_c): New macro.
722         (cpow_test_data): New variable.
723         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
724
725         * math/libm-test.inc (struct test_f_L_data): New type.
726         (RUN_TEST_LOOP_f_L): New macro.
727         (llrint_test_data): New variable.
728         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
729         (llrint_tonearest_test_data): New variable.
730         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
731         (llrint_towardzero_test_data): New variable.
732         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
733         (llrint_downward_test_data): New variable.
734         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
735         (llrint_upward_test_data): New variable.
736         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
737         (llround_test_data): New variable.
738         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
739
740 2013-05-13  Peter Collingbourne  <pcc@google.com>
741
742         * math/atest-exp2.c (get_log2): Remove const attribute.
743
744 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
745
746         * math/libm-test.inc (struct test_f_l_data): New type.
747         (RUN_TEST_LOOP_f_l): New macro.
748         (lrint_test_data): New variable.
749         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
750         (lrint_tonearest_test_data): New variable.
751         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
752         (lrint_towardzero_test_data): New variable.
753         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
754         (lrint_downward_test_data): New variable.
755         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
756         (lrint_upward_test_data): New variable.
757         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
758         (lround_test_data): New variable.
759         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
760
761 2013-05-15  Peter Collingbourne  <pcc@google.com>
762
763         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
764         (EXTRACT_WORDS64) Use where appropriate.
765         (INSERT_WORDS64) Likewise.
766
767         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
768         constraints with x constraints.
769         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
770
771         * malloc/obstack.c (_obstack_compat): Add initializer.
772
773 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
774
775         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
776         si_trapno and add si_addr_lsb to _sifields.sigfault.
777         (si_trapno): Remove macro.
778         (si_addr_lsb): Define new macro.
779         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
780
781 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
782
783         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
784         instead of TEST_f_l.
785         (llrint_test_tonearest): Likewise.
786         (llrint_test_towardzero): Likewise.
787         (llrint_test_downward): Likewise.
788         (llrint_test_upward): Likewise.
789         (llround_test): Likewise.
790
791         * math/libm-test.inc (struct test_f_i_data): Add comment.
792         (RUN_TEST_LOOP_f_b): New macro.
793         (RUN_TEST_LOOP_f_b_tg): Likewise.
794         (finite_test_data): New variable.
795         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
796         (isfinite_test_data): New variable.
797         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
798         (isinf_test_data): New variable.
799         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
800         (isnan_test_data): New variable.
801         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
802         (isnormal_test_data): New variable.
803         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
804         (issignaling_test_data): New variable.
805         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
806         (signbit_test_data): New variable.
807         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
808
809         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
810         with INVALID_EXCEPTION.
811         (acosh_test_data): Likewise.
812         (asin_test_data): Likewise.
813         (atanh_test_data): Likewise.
814         (fmod_test_data): Likewise.
815         (log_test_data): Likewise.
816         (log10_test_data): Likewise.
817         (log2_test_data): Likewise.
818         (pow_test_data): Likewise.
819         (sqrt_test_data): Likewise.
820         (y0_test_data): Likewise.
821         (y1_test_data): Likewise.
822         (yn_test_data): Likewise.
823
824         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
825         function contents.
826
827         * math/libm-test.inc (struct test_ff_i_data): New type.
828         (RUN_TEST_LOOP_ff_i_tg): New macro.
829         (isgreater_test_data): New variable.
830         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
831         (isgreaterequal_test_data): New variable.
832         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
833         (isless_test_data): New variable.
834         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
835         (islessequal_test_data): New variable.
836         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
837         (islessgreater_test_data): New variable.
838         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
839         (isunordered_test_data): New variable.
840         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
841
842 2013-05-14  David S. Miller  <davem@davemloft.net>
843
844         * sysdeps/sparc/fpu/libm-test-ulps: Update.
845
846 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
847
848         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
849
850         * math/libm-test.inc (struct test_fF_f1_data): Change type of
851         extra_test to int.
852         (struct test_f_i_data): Change type of max_ulp to int.
853
854         * math/libm-test.inc (test_ffI_f1_data): New type.
855         (RUN_TEST_LOOP_ffI_f1): New macro.
856         (remquo_test_data): New variable.
857         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
858
859         * setjmp/tst-setjmp-fp.c: New file.
860         * setjmp/Makefile (tests): Add tst-setjmp-fp.
861         (link-libm): New variable.
862         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
863
864         * math/libm-test.inc (struct test_f_i_data): New type.
865         (RUN_TEST_LOOP_f_i): New macro.
866         (RUN_TEST_LOOP_f_i_tg): Likewise.
867         (fpclassify_test_data): New variable.
868         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
869         (ilogb_test_data): New variable.
870         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
871
872         * math/libm-test.inc (scalbln_test): Correct function name in END
873         call.
874
875         * math/libm-test.inc (struct test_f_f1_data): Add comment.
876         (RUN_TEST_LOOP_fI_f1): New macro.
877         (frexp_test_data): New variable.
878         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
879
880         * math/libm-test.inc (struct test_fF_f1_data): New type.
881         (RUN_TEST_LOOP_fF_f1): New macro.
882         (modf_test_data): New variable.
883         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
884
885         * math/libm-test.inc (struct test_f_f1_data): New type.
886         (RUN_TEST_LOOP_f_f1): New macro.
887         (gamma_test_data): New variable.
888         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
889         (lgamma_test_data): New variable.
890         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
891
892 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
893
894         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
895         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
896         (main): Comment "tls" pseudo-hwcap.
897
898 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
899
900         * math/libm-test.inc (struct test_fl_f_data): New type.
901         (RUN_TEST_LOOP_fl_f): New variable.
902         (scalbln_test_data): New variable.
903         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
904
905         * math/libm-test.inc (struct test_fi_f_data): New type.
906         (RUN_TEST_LOOP_fi_f): New macro.
907         (ldexp_test_data): New variable.
908         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
909         (scalbn_test_data): New variable.
910         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
911
912         * math/libm-test.inc (struct test_c_f_data): New type.
913         (RUN_TEST_LOOP_c_f): New macro.
914         (cabs_test_data): New variable.
915         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
916         (carg_test_data): New variable.
917         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
918         (cimag_test_data): New variable.
919         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
920         (creal_test_data): New variable.
921         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
922
923         * math/libm-test.inc (struct test_if_f_data): New type.
924         (RUN_TEST_LOOP_if_f): New macro.
925         (jn_test_data): New variable.
926         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
927         (yn_test_data): New variable.
928         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
929
930         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
931
932 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
933
934         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
935         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
936
937 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
938
939         * benchtests/Makefile (CPPFLAGS-nonlib): Add
940         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
941         (bench-deps): Add bench-timing.h.
942         * benchtests-bench-skeleton.c: Include bench-timing.h.
943         (main): Use TIMING_* macros instead of clock_gettime.
944         * benchtests/bench-timing.h: New file.
945
946         [BZ #14582]
947         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
948         Renamed from _LIB_VERSION.
949         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
950
951 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
952
953         * math/libm-test.inc (struct test_fff_f_data): New type.
954         (RUN_TEST_LOOP_fff_f): New macro.
955         (fma_test_data): New variable.
956         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
957         (fma_towardzero_test_data): New variable.
958         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
959         (fma_downward_test_data): New variable.
960         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
961         (fma_upward_test_data): New variable.
962         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
963
964         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
965         (struct test_c_c_data): New type.
966         (RUN_TEST_LOOP_c_c): New macro.
967         (cacos_test_data): New variable.
968         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
969         (cacosh_test_data): New variable.
970         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
971         (casin_test_data): New variable.
972         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
973         (casinh_test_data): New variable.
974         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
975         (catan_test_data): New variable.
976         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
977         (catanh_test_data): New variable.
978         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
979         (ccos_test_data): New variable.
980         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
981         (ccosh_test_data): New variable.
982         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
983         (cexp_test_data): New variable.
984         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
985         (clog_test_data): New variable.
986         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
987         (clog10_test_data): New variable.
988         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
989         (conj_test_data): New variable.
990         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
991         (cproj_test_data): New variable.
992         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
993         (csin_test_data): New variable.
994         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
995         (csinh_test_data): New variable.
996         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
997         (csqrt_test_data): New variable.
998         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
999         (ctan_test_data): New variable.
1000         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
1001         (ctan_tonearest_test_data): New variable.
1002         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
1003         (ctan_towardzero_test_data): New variable.
1004         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
1005         (ctan_downward_test_data): New variable.
1006         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
1007         (ctan_upward_test_data): New variable.
1008         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
1009         (ctanh_test_data): New variable.
1010         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
1011         (ctanh_tonearest_test_data): New variable.
1012         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
1013         (ctanh_towardzero_test_data): New variable.
1014         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
1015         (ctanh_downward_test_data): New variable.
1016         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
1017         (ctanh_upward_test_data): New variable.
1018         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
1019         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
1020         of BUILD_COMPLEX.
1021
1022         * math/libm-test.inc (struct test_ff_f_data): New type.
1023         (struct test_ff_f_data_nexttoward): Likewise.
1024         (RUN_TEST_LOOP_2_f): New macro.
1025         (RUN_TEST_LOOP_ff_f): Likewise.
1026         (atan2_test_data): New variable.
1027         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
1028         (copysign_test_data): New variable.
1029         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
1030         (fdim_test_data): New variable.
1031         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
1032         (fmax_test_data): New variable.
1033         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
1034         (fmin_test_data): New variable.
1035         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
1036         (fmod_test_data): New variable.
1037         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
1038         (hypot_test_data): New variable.
1039         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
1040         (nextafter_test_data): New variable.
1041         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
1042         (nexttoward_test_data): New variable.
1043         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
1044         (pow_test_data): New variable.
1045         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
1046         (pow_tonearest_test_data): New variable.
1047         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
1048         (pow_towardzero_test_data): New variable.
1049         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
1050         (pow_downward_test_data): New variable.
1051         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
1052         (pow_upward_test_data): New variable.
1053         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
1054         (remainder_test_data): New variable.
1055         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
1056         (scalb_test_data): New variable.
1057         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
1058         * sysdeps/i386/fpu/libm-test-ulps: Update.
1059
1060 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
1061
1062         * math/libm-test.inc (fma_test): Use max_value instead of local
1063         variable fltmax.
1064         (nextafter_test): Likewise.
1065
1066         * math/libm-test.inc (acos_towardzero_test_data): New variable.
1067         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1068         (acos_downward_test_data): New variable.
1069         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1070         (acos_upward_test_data): New variable.
1071         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1072         (acosh_test_data): New variable.
1073         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
1074         (asin_test_data): New variable.
1075         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
1076         (asin_tonearest_test_data): New variable.
1077         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1078         (asin_towardzero_test_data): New variable.
1079         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1080         (asin_downward_test_data): New variable.
1081         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1082         (asin_upward_test_data): New variable.
1083         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1084         (asinh_test_data): New variable.
1085         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
1086         (atan_test_data): New variable.
1087         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
1088         (atanh_test_data): New variable.
1089         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
1090         (cbrt_test_data): New variable.
1091         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
1092         (ceil_test_data): New variable.
1093         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
1094         (cos_test_data): New variable.
1095         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
1096         (cos_tonearest_test_data): New variable.
1097         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1098         (cos_towardzero_test_data): New variable.
1099         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1100         (cos_downward_test_data): New variable.
1101         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1102         (cos_upward_test_data): New variable.
1103         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1104         (cosh_test_data): New variable.
1105         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
1106         (cosh_tonearest_test_data): New variable.
1107         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1108         (cosh_towardzero_test_data): New variable.
1109         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1110         (cosh_downward_test_data): New variable.
1111         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1112         (cosh_upward_test_data): New variable.
1113         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1114         (erf_test_data): New variable.
1115         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
1116         (erfc_test_data): New variable.
1117         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
1118         (exp_test_data): New variable.
1119         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
1120         (exp_tonearest_test_data): New variable.
1121         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1122         (exp_towardzero_test_data): New variable.
1123         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1124         (exp_downward_test_data): New variable.
1125         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1126         (exp_upward_test_data): New variable.
1127         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1128         (exp10_test_data): New variable.
1129         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
1130         (exp2_test_data): New variable.
1131         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
1132         (expm1_test_data): New variable.
1133         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
1134         (fabs_test_data): New variable.
1135         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
1136         (floor_test_data): New variable.
1137         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
1138         (j0_test_data): New variable.
1139         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
1140         (j1_test_data): New variable.
1141         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
1142         (log_test_data): New variable.
1143         (log_test): Run tests with RUN_TEST_LOOP_f_f.
1144         (log10_test_data): New variable.
1145         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
1146         (log1p_test_data): New variable.
1147         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
1148         (log2_test_data): New variable.
1149         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
1150         (logb_test_data): New variable.
1151         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
1152         (logb_downward_test_data): New variable.
1153         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1154         (nearbyint_test_data): New variable.
1155         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
1156         (rint_test_data): New variable.
1157         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
1158         (rint_tonearest_test_data): New variable.
1159         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1160         (rint_towardzero_test_data): New variable.
1161         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1162         (rint_downward_test_data): New variable.
1163         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1164         (rint_upward_test_data): New variable.
1165         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1166         (round_test_data): New variable.
1167         (round_test): Run tests with RUN_TEST_LOOP_f_f.
1168         (sin_test_data): New variable.
1169         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
1170         (sin_tonearest_test_data): New variable.
1171         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1172         (sin_towardzero_test_data): New variable.
1173         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1174         (sin_downward_test_data): New variable.
1175         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1176         (sin_upward_test_data): New variable.
1177         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1178         (sinh_test_data): New variable.
1179         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
1180         (sinh_tonearest_test_data): New variable.
1181         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1182         (sinh_towardzero_test_data): New variable.
1183         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1184         (sinh_downward_test_data): New variable.
1185         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1186         (sinh_upward_test_data): New variable.
1187         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1188         (sqrt_test_data): New variable.
1189         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
1190         (tan_test_data): New variable.
1191         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
1192         (tan_tonearest_test_data): New variable.
1193         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1194         (tan_towardzero_test_data): New variable.
1195         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
1196         (tan_downward_test_data): New variable.
1197         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
1198         (tan_upward_test_data): New variable.
1199         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
1200         (tanh_test_data): New variable.
1201         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
1202         (tgamma_test_data): New variable.
1203         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
1204         (trunc_test_data): New variable.
1205         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
1206         (y0_test_data): New variable.
1207         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
1208         (y1_test_data): New variable.
1209         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
1210         (significand_test_data): New variable.
1211         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
1212
1213 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
1214
1215         [BZ #12387]
1216         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
1217
1218 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1219
1220         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
1221
1222 2013-05-10  Andreas Jaeger  <aj@suse.de>
1223
1224         [BZ #15448]
1225         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
1226         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
1227
1228 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
1229
1230         * math/gen-libm-test.pl (adjust_arg): New function.
1231         (special_functions): Handle generating output in both functions
1232         and arrays.
1233         (parse_args): Likewise.
1234         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
1235         $in_func argument to parse_args.
1236         * math/libm-test.inc (struct test_f_f_data): New type.
1237         (IF_ROUND_INIT_): New macro.
1238         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
1239         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
1240         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
1241         (IF_ROUND_INIT_FE_UPWARD): Likewise.
1242         (ROUND_RESTORE_): Likewise.
1243         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
1244         (ROUND_RESTORE_FE_TONEAREST): Likewise.
1245         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
1246         (ROUND_RESTORE_FE_UPWARD): Likewise.
1247         (RUN_TEST_LOOP_f_f): New macro.
1248         (acos_test_data): New variable.
1249         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
1250         (acos_tonearest_test_data): New variable.
1251         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1252
1253 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1254
1255         * benchtests/bench-skeleton.c (startup): Fix coding style.
1256
1257 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
1258
1259         [BZ #6809]
1260         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
1261         negative infinity argument.
1262         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
1263         negative infinity argument.
1264         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
1265         negative infinity argument.
1266         * math/libm-test.inc (tgamma_test): Expect errno to be set for
1267         domain errors.
1268
1269 2013-05-10  Florian Weimer  <fweimer@redhat.com>
1270
1271         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
1272         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
1273         * iconv/iconv_prog.c (main): Likewise.
1274         * locale/programs/charmap-dir.c (charmap_readdir)
1275         (fopen_uncompressed): Likewise.
1276         * locale/programs/locfile.c (siblings_uncached)
1277         (write_locale_data): Use lstat64 instead of lstat.
1278         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
1279         stat.
1280
1281 2013-05-10  Andreas Jaeger  <aj@suse.de>
1282
1283         [BZ #15395]
1284         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
1285         localization.
1286         Include <locale.h>.
1287
1288 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
1289
1290         * elf/dl-close.c (_dl_close_worker): Add comments.
1291
1292 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
1293
1294         [BZ #15359]
1295         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
1296         high part of pi/2.
1297         (__ieee754_rem_pio2l): Update comments.
1298
1299         [BZ #15429]
1300         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
1301         high part of pi/2.
1302         (__ieee754_rem_pio2l): Update comments.
1303
1304         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
1305         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
1306
1307         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
1308         M_PI_4l.
1309
1310         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
1311         (M_PI_34_LOG10El): Likewise.
1312         (M_PI2_LOG10El): Likewise.
1313         (M_PI4_LOG10El): Likewise.
1314         (M_PI_LOG10El): Likewise.
1315
1316 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1317
1318         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1319
1320 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
1321
1322         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
1323         (MINUS_ZERO_INIT): Likewise.
1324         (PLUS_INFTY_INIT): Likewise.
1325         (MINUS_INFTY_INIT): Likewise.
1326         (QNAN_VALUE_INIT): Likewise.
1327         (MAX_VALUE_INIT): Likewise.
1328         (MIN_VALUE_INIT): Likewise.
1329         (MIN_SUBNORM_VALUE_INIT): Likewise.
1330         (plus_zero): Initialize with PLUS_ZERO_INIT.
1331         (minus_zero): Initialize with MINUS_ZERO_INIT.
1332         (plus_infty): Initialize with PLUS_INFTY_INIT.
1333         (minus_infty): Initialize with MINUS_INFTY_INIT.
1334         (qnan_value): Initialize with QNAN_VALUE_INIT.
1335         (max_value): Initialize with MAX_VALUE_INIT.
1336         (min_value): Initialize with MIN_VALUE_INIT.
1337         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
1338
1339         * math/libm-test.inc (RUN_TEST_if_f): New macro.
1340         (jn_test): Use TEST_if_f instead of TEST_ff_f.
1341         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
1342         (yn_test): Use TEST_if_f instead of TEST_ff_f.
1343
1344         * math/libm-test.inc (RUN_TEST_f_f): New macro.
1345         (RUN_TEST_2_f): Likewise.
1346         (RUN_TEST_ff_f): Likewise.
1347         (RUN_TEST_fi_f): Likewise.
1348         (RUN_TEST_fl_f): Likewise.
1349         (RUN_TEST_fff_f): Likewise.
1350         (RUN_TEST_c_f): Likewise.
1351         (RUN_TEST_f_f1): Likewise.
1352         (RUN_TEST_fF_f1): Likewise.
1353         (RUN_TEST_fI_f1): Likewise.
1354         (RUN_TEST_ffI_f1): Likewise.
1355         (RUN_TEST_c_c): Likewise.
1356         (RUN_TEST_cc_c): Likewise.
1357         (RUN_TEST_f_i): Likewise.
1358         (RUN_TEST_f_i_tg): Likewise.
1359         (RUN_TEST_ff_i_tg): Likewise.
1360         (RUN_TEST_f_b): Likewise.
1361         (RUN_TEST_f_b_tg): Likewise.
1362         (RUN_TEST_f_l): Likewise.
1363         (RUN_TEST_f_L): Likewise.
1364         (RUN_TEST_sincos): Likewise.
1365         * math/gen-libm-test.pl (new_test): Take new argument to indicate
1366         whether to show exceptions.  Do not include ");\n" in return
1367         value.
1368         (special_functions): Output call to RUN_TEST_sincos instead of
1369         check_float calls.  Update calls to new_test.
1370         (parse_args): Output call to single RUN_TEST_* macro instead of
1371         check_* calls and other assignments.  Update calls to new_test.
1372
1373         [BZ #2546]
1374         [BZ #2560]
1375         [BZ #5159]
1376         [BZ #15426]
1377         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
1378         input to result for tgamma overflow.
1379         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
1380         (gamma_coeff): New variable.
1381         (NCOEFF): New macro.
1382         (gamma_positive): New function.
1383         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
1384         underflow here.  Use gamma_positive instead of exp (lgamma) for
1385         other arguments.
1386         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
1387         (gamma_coeff): New variable.
1388         (NCOEFF): New macro.
1389         (gammaf_positive): New function.
1390         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
1391         underflow here.  Use gamma_positive instead of exp (lgamma) for
1392         other arguments.
1393         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
1394         (gamma_coeff): New variable.
1395         (NCOEFF): New macro.
1396         (gammal_positive): New function.
1397         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
1398         underflow here.  Use gamma_positive instead of exp (lgamma) for
1399         other arguments.
1400         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
1401         (gamma_coeff): New variable.
1402         (NCOEFF): New macro.
1403         (gammal_positive): New function.
1404         (__ieee754_gammal_r): Handle positive infinity, overflow and
1405         underflow here.  Handle NaN the same as positive infinity.  Remove
1406         check x < 0xffffffff for negative integers.  Use gamma_positive
1407         instead of exp (lgamma) for other arguments.
1408         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
1409         (gamma_coeff): New variable.
1410         (NCOEFF): New macro.
1411         (gammal_positive): New function.
1412         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
1413         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
1414         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
1415         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
1416         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
1417         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
1418         * sysdeps/generic/math_private.h (__gamma_productf): New
1419         prototype.
1420         (__gamma_product): Likewise.
1421         (__gamma_productl): Likewise.
1422         * math/Makefile (libm-calls): Add gamma_product.
1423         * math/libm-test.inc (tgamma_test): Add more tests.
1424         * sysdeps/i386/fpu/libm-test-ulps: Update.
1425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1426
1427 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
1428
1429         * benchtests/bench-skeleton.c (main): Preheat CPU.
1430
1431 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
1432
1433         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
1434
1435 2013-05-07  Roland McGrath  <roland@hack.frob.com>
1436
1437         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
1438         and _dl_skip_args_internal.
1439
1440 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
1441
1442         * manual/message.texi (Message Translation): Talk about users.
1443         Message to key mapping impacts design.
1444
1445 2013-05-06  Roland McGrath  <roland@hack.frob.com>
1446
1447         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
1448
1449         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
1450
1451         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
1452         * sysdeps/wordsize-64/glob64.c: ... here.
1453
1454         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
1455         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
1456         New macros.
1457
1458         * debug/getlogin_r_chk.c: Moved to ...
1459         * login/getlogin_r_chk.c: ... here.
1460         * debug/Makefile (routines): Move getlogin_r_chk to ...
1461         * login/Makefile (routines): ... here.
1462         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
1463         * login/Versions (libc: GLIBC_2.4): ... here.
1464
1465         * io/poll.c (__poll): Renamed from poll.
1466         Add libc_hidden_def.
1467         (poll): Define as weak alias.
1468
1469         * debug/ptsname_r_chk.c: Moved to ...
1470         * login/ptsname_r_chk.c: ... here.
1471         * debug/Makefile (routines): Move ptsname_r_chk to ...
1472         * login/Makefile (routines): ... here.
1473         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
1474         * login/Versions (libc: GLIBC_2.4): ... here.
1475
1476         * posix/getlogin.c: Moved to ...
1477         * login/getlogin.c: ... here.
1478         * posix/getlogin_r.c: Moved to ...
1479         * login/getlogin_r.c: ... here.
1480         * posix/getlogin_r.c: Moved to ...
1481         * login/getlogin_r.c: ... here.
1482         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
1483         * login/Makefile (routines): ... here.
1484         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
1485         * login/Versions (libc: GLIBC_2.0): ... here.
1486
1487         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
1488         (setrlimit): Define as weak alias.
1489
1490         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
1491         Call __ names for open, ftruncate, and close.
1492         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
1493         (truncate): Define as weak alias.
1494
1495 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
1496
1497         * math/gen-libm-test.pl (parse_args): Initialize x before each
1498         test of frexp, modf and remquo.
1499
1500         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
1501         test signgam value.
1502
1503 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1504
1505         [BZ #15418]
1506         [BZ #15419]
1507         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
1508         internal tests.
1509         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
1510
1511 2013-05-06  Roland McGrath  <roland@hack.frob.com>
1512
1513         * elf/dl-writev.h: New file.
1514         * elf/dl-misc.c: Include it.
1515         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
1516         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
1517
1518 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
1519
1520         * math/libm-test.inc (noXFails): Remove variable.
1521         (noXPasses): Likewise.
1522         (BUILD_COMPLEX_INT): Remove macro.
1523         (print_screen): Remove xfail argument.
1524         (print_screen_max_error): Likewise.
1525         (update_stats): Likewise.
1526         (print_max_error): Likewise.  Update calls to other affected
1527         functions.
1528         (print_complex_max_error): Likewise.
1529         (test_single_exception): Update calls to print_screen.
1530         (test_single_errno): Likewise.
1531         (check_float_internal): Remove xfail argument.  Update calls to
1532         other affected functions.
1533         (check_float): Likewise.
1534         (check_complex): Likewise.
1535         (check_int): Likewise.
1536         (check_long): Likewise.
1537         (check_bool): Likewise.
1538         (check_longlong): Likewise.
1539         (main): Don't print noXFails and noXPasses.
1540         * math/gen-libm-test.pl (top level): Don't mention expected
1541         failure handling in comment.
1542         (new_test): Don't handle expected failures.
1543         (parse_args): Don't mention expected failure handling in comment.
1544         (generate_testfile): Don't handle expected failures.
1545         (parse_ulps): Likewise.
1546         (print_ulps_file): Likewise.
1547         (get_failure): Remove function.
1548         (output_test): Don't handle expected failures.
1549         * make/README.libm-test: Don't mention expected failure handling.
1550
1551         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
1552         (minus_zero): Likewise.
1553         (plus_infty): Likewise.
1554         (minus_infty): Likewise.
1555         (qnan_value): Likewise.
1556         (max_value): Likewise.
1557         (min_value): Likewise.
1558         (min_subnorm_value): Likewise.
1559         (initialize): Do not initialize those variables dynamically.
1560
1561 2013-05-03  Roland McGrath  <roland@hack.frob.com>
1562
1563         * io/open.c (__open_2): Moved to ...
1564         * io/open_2.c: ... this new file.
1565         * io/open64.c (__open64_2): Moved to ...
1566         * io/open64_2.c: ... this new file.
1567         * io/openat.c (__openat_2): Moved to ...
1568         * io/openat_2.c: ... this new file.
1569         * io/openat64.c (__openat64_2): Moved to ...
1570         * io/openat64_2.c: ... this new file.
1571         * io/Makefile (routines): Add them.
1572         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
1573         * sysdeps/unix/sysv/linux/open_2.c: File removed.
1574         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
1575         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
1576         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
1577         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
1578         (__openat64): Add hidden_ver.
1579         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
1580         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
1581
1582         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1583         Separately conditionalize setting of GLRO(dl_sysinfo) so
1584         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
1585         as well, but the actual setting is only under [NEED_DL_SYSINFO].
1586
1587 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1588
1589         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
1590         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
1591         definition.
1592         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
1593         * sysdeps/unix/sysv/linux/powerpc/init-first.c
1594         (_libc_vdso_platform_setup): Add __vdso_time initialization.
1595         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
1596         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
1597
1598 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
1599
1600         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
1601         test signgam value.
1602
1603         * math/libm-test.inc (hypot_test): Do not use
1604         IGNORE_ZERO_INF_SIGN.
1605
1606 2013-05-03  Andreas Jaeger  <aj@suse.de>
1607
1608         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
1609         Linux 3.9.
1610         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
1611         (PF_MAX): Adjust for VSOCK change.
1612
1613 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1614
1615         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1616
1617 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
1618
1619         [BZ #15264]
1620         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
1621         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
1622         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
1623
1624 2013-05-02  David S. Miller  <davem@davemloft.net>
1625
1626         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1627
1628 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
1629
1630         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
1631
1632 2013-05-01  Roland McGrath  <roland@hack.frob.com>
1633
1634         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
1635
1636 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
1637
1638         [BZ #14952]
1639         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
1640         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
1641         Use __attribute__ ((__gnu_inline__)).
1642         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
1643         Don't use __attribute__ ((__gnu_inline__)).
1644
1645 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
1646
1647         [BZ #15423]
1648         * math/s_catan.c (__catan): Handle small real or imaginary part of
1649         input specially to avoid spurious underflow.
1650         * math/s_catanf.c (__catanf): Likewise.
1651         * math/s_catanh.c (__catanh): Likewise.
1652         * math/s_catanhf.c (__catanhf): Likewise.
1653         * math/s_catanhl.c (__catanhl): Likewise.
1654         * math/s_catanl.c (__catanl): Likewise.
1655         * math/libm-test.inc (catan_test): Add more tests.
1656         (catanh_test): Likewise.
1657         * sysdeps/i386/fpu/libm-test-ulps: Update.
1658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1659
1660 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1661
1662         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1663
1664 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
1665
1666         [BZ #15416]
1667         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
1668         accurately for denominator in atan2.
1669         * math/s_catanf.c (__catanf): Likewise.
1670         * math/s_catanh.c (__catanh): Likewise.
1671         * math/s_catanhf.c (__catanhf): Likewise.
1672         * math/s_catanhl.c (__catanhl): Likewise.
1673         * math/s_catanl.c (__catanl): Likewise.
1674         * math/libm-test.inc (catan_test): Add more tests.
1675         (catanh_test): Likewise.
1676         * sysdeps/i386/fpu/libm-test-ulps: Update.
1677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1678
1679 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1680
1681         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
1682
1683         * benchtests/Makefile (bench): Remove slow benchmarks.
1684         * benchtests/atan-inputs: Add slow benchmark inputs.
1685         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
1686         (BENCH_FUNC): Accept variant offset.
1687         (VARIANT): Define.
1688         * benchtests/bench-skeleton.c (main): Run benchmark for each
1689         variant.
1690         * benchtests/cos-inputs: Add slow benchmark inputs.
1691         * benchtests/exp-inputs: Likewise.
1692         * benchtests/pow-inputs: Likewise.
1693         * benchtests/sin-inputs: Likewise.
1694         * benchtests/slowatan-inputs: Remove.
1695         * benchtests/slowatan.c: Remove.
1696         * benchtests/slowcos-inputs: Remove.
1697         * benchtests/slowcos.c: Remove.
1698         * benchtests/slowexp-inputs: Remove.
1699         * benchtests/slowexp.c: Remove.
1700         * benchtests/slowpow-inputs: Remove.
1701         * benchtests/slowpow.c: Remove.
1702         * benchtests/slowsin-inputs: Remove.
1703         * benchtests/slowsin.c: Remove.
1704         * benchtests/slowtan-inputs: Remove.
1705         * benchtests/slowtan.c: Remove.
1706         * benchtests/tan-inputs: Add slow benchmark inputs.
1707         * scripts/bench.pl: Parse comments and directives.
1708
1709         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
1710         in CPPFLAGS.
1711         ($(objpfx)bench-%.c): Remove *-ITER.
1712         * benchtests/bench-modf.c: Remove definition of ITER.
1713         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
1714         (main): Loop for DURATION seconds instead of fixed number of
1715         iterations.
1716         * scripts/bench.pl: Don't expect iterations in parameters.
1717
1718 2013-04-29  Roland McGrath  <roland@hack.frob.com>
1719
1720         * io/fchdir.c (__fchdir): Renamed from fchdir.
1721         (fchdir): Define as weak alias.
1722
1723 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
1724
1725         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
1726         (ERRNO_EDOM): Likewise.
1727         (ERRNO_ERANGE): Likewise.
1728         (noErrnoTests): New variable.
1729         (init_max_error): Set errno to 0.
1730         (test_single_errno): New function.
1731         (test_errno): Likewise.
1732         (check_float_internal): Call test_errno.  Set errno to 0.
1733         (check_complex): Refer to errno tests in comment.
1734         (check_int): Call test_errno.  Set errno to 0.
1735         (check_long): Likewise.
1736         (check_bool): Likewise.
1737         (check_longlong): Likewise.
1738         (cos_test): Use ERRNO_* flags for errno tests instead of
1739         check_int.
1740         (expm1_test): Likewise.
1741         (fmod_test): Likewise.
1742         (ilogb_test): Likewise.
1743         (lgamma_test): Likewise.
1744         (pow_test): Likewise.
1745         (remainder_test): Likewise.
1746         (sin_test): Likewise.
1747         (tan_test): Likewise.
1748         (yn_test): Likewise.
1749         (initialize): Set errno to 0.
1750         (main): Print number of errno tests.
1751         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
1752
1753 2013-04-29  Andreas Jaeger  <aj@suse.de>
1754
1755         [BZ #15084]
1756         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
1757         and RES_USEVC.
1758
1759         [BZ #15085]
1760         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
1761         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
1762         unimplemented.
1763
1764         [BZ #15380]
1765         * stdlib/random.c (__initstate): Return NULL if
1766         __initstate fails.
1767
1768         [BZ #15086]
1769         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
1770         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
1771         RES_SNGLKUPREOP.
1772
1773 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1774
1775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1776
1777 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
1778
1779         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
1780         of individual tests.
1781         (casin_test): Likewise.
1782         (casinh_test): Likewise.
1783
1784 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
1785
1786         [BZ #15409]
1787         * math/s_catan.c (__catan): Handle arguments with large real or
1788         imaginary part separately without squaring.
1789         * math/s_catanf.c (__catanf): Likewise.
1790         * math/s_catanh.c (__catanh): Likewise.
1791         * math/s_catanhf.c (__catanhf): Likewise.
1792         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1793         and redefine.
1794         (__catanhl): Handle arguments with large real or imaginary part
1795         separately without squaring.
1796         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1797         and redefine.
1798         (__catanl): Handle arguments with large real or imaginary part
1799         separately without squaring.
1800         * math/libm-test.inc (catan_test): Add more tests.
1801         (catanh_test): Likewise.
1802         * sysdeps/i386/fpu/libm-test-ulps: Update.
1803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1804
1805 2013-04-27  Andreas Jaeger  <aj@suse.de>
1806
1807         [BZ #15007]
1808         * stdlib/stdlib.h: Update guards for qecvt.
1809         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
1810         <stdlib.h>.
1811
1812 2013-04-27  Allan McRae  <allan@archlinux.org>
1813
1814         * sysdeps/i386/fpu/libm-test-ulps: Update.
1815
1816 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
1817
1818         [BZ #15406]
1819         * math/s_catan.c: Include <float.h>.
1820         (__catan): Ensure underflow exception occurs for underflowed
1821         result.
1822         * math/s_catanf.c: Include <float.h>.
1823         (__catanf): Ensure underflow exception occurs for underflowed
1824         result.
1825         * math/s_catanh.c: Include <float.h>.
1826         (__catanh): Ensure underflow exception occurs for underflowed
1827         result.
1828         * math/s_catanhf.c: Include <float.h>.
1829         (__catanhf): Ensure underflow exception occurs for underflowed
1830         result.
1831         * math/s_catanhl.c: Include <float.h>.
1832         (__catanhl): Ensure underflow exception occurs for underflowed
1833         result.
1834         * math/s_catanl.c: Include <float.h>.
1835         (__catanl): Ensure underflow exception occurs for underflowed
1836         result.
1837         * math/libm-test.inc (catan_test): Add more tests.
1838         (catanh_test): Likewise.
1839
1840         [BZ #15405]
1841         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
1842         underflowed result.
1843         * math/s_ccoshf.c (__ccoshf): Likewise.
1844         * math/s_ccoshl.c (__ccoshl): Likewise.
1845         * math/s_csin.c (__csin): Likewise.
1846         * math/s_csinf.c (__csinf): Likewise.
1847         * math/s_csinh.c (__csinh): Likewise.
1848         * math/s_csinhf.c (__csinhf): Likewise.
1849         * math/s_csinhl.c (__csinhl): Likewise.
1850         * math/s_csinl.c (__csinl): Likewise.
1851         * math/libm-test.inc (ccos_test): Add more tests.
1852         (ccosh_test): Likewise.
1853         (csin_test): Likewise.
1854         (csinh_test): Likewise.
1855
1856 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1857
1858         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
1859         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
1860         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
1861         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
1862         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
1863         powerpc/power5+/fpu folders.
1864         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
1865
1866
1867 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1868
1869         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1870
1871 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
1872
1873         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
1874         additions to variable.
1875         [$(config-machine) = x86_64] (modules-names): Likewise.
1876         ($(objpfx)tst-audit3): Remove dependency.
1877         ($(objpfx)tst-audit3.out): Likewise.
1878         ($(objpfx)tst-audit4): Likewise.
1879         ($(objpfx)tst-audit4.out): Likewise.
1880         ($(objpfx)tst-audit5): Likewise.
1881         ($(objpfx)tst-audit5.out): Likewise.
1882         ($(objpfx)tst-audit6): Likewise.
1883         ($(objpfx)tst-audit6.out): Likewise.
1884         ($(objpfx)tst-audit7): Likewise.
1885         ($(objpfx)tst-audit7.out): Likewise.
1886         (tst-audit3-ENV): Remove variable.
1887         (tst-audit4-ENV): Likewise.
1888         (tst-audit5-ENV): Likewise.
1889         (tst-audit6-ENV): Likewise.
1890         (tst-audit7-ENV): Likewise.
1891         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
1892         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
1893         addition to variable.
1894         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
1895         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
1896         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
1897         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
1898         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
1899         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
1900         tst-audit3, tst-audit4 and tst-audit5.
1901         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
1902         tst-audit6 and tst-audit7.
1903         [$(subdir) = elf] (modules-names): Add audit modules for those
1904         tests.
1905         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
1906         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
1907         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
1908         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
1909         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
1910         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
1911         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
1912         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
1913         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
1914         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
1915         [$(subdir) = elf] (tst-audit3-ENV): New variable.
1916         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
1917         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
1918         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
1919         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
1920         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
1921         Likewise.
1922         [$(subdir) = elf && $(config-cflags-avx) = yes]
1923         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
1924         [$(subdir) = elf && $(config-cflags-avx) = yes]
1925         (CFLAGS-tst-auditmod4a.c): Likewise.
1926         [$(subdir) = elf && $(config-cflags-avx) = yes]
1927         (CFLAGS-tst-auditmod4b.c): Likewise.
1928         [$(subdir) = elf && $(config-cflags-avx) = yes]
1929         (CFLAGS-tst-auditmod6b.c): Likewise.
1930         [$(subdir) = elf && $(config-cflags-avx) = yes]
1931         (CFLAGS-tst-auditmod6c.c): Likewise.
1932         [$(subdir) = elf && $(config-cflags-avx) = yes]
1933         (CFLAGS-tst-auditmod7b.c): Likewise.
1934         * elf/tst-audit3.c: Move to ...
1935         * sysdeps/x86_64/tst-audit3.c: ... here.
1936         * elf/tst-audit4.c: Move to ...
1937         * sysdeps/x86_64/tst-audit4.c: ... here.
1938         * elf/tst-audit5.c: Move to ...
1939         * sysdeps/x86_64/tst-audit5.c: ... here.
1940         * elf/tst-audit6.c: Move to ...
1941         * sysdeps/x86_64/tst-audit6.c: ... here.
1942         * elf/tst-audit7.c: Move to ...
1943         * sysdeps/x86_64/tst-audit7.c: ... here.
1944         * elf/tst-auditmod3a.c: Move to ...
1945         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
1946         * elf/tst-auditmod3b.c: Move to ...
1947         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
1948         * elf/tst-auditmod4a.c: Move to ...
1949         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
1950         * elf/tst-auditmod4b.c: Move to ...
1951         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
1952         * elf/tst-auditmod5a.c: Move to ...
1953         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
1954         * elf/tst-auditmod5b.c: Move to ...
1955         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
1956         * elf/tst-auditmod6a.c: Move to ...
1957         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
1958         * elf/tst-auditmod6b.c: Move to ...
1959         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
1960         * elf/tst-auditmod6c.c: Move to ...
1961         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
1962         * elf/tst-auditmod7a.c: Move to ...
1963         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
1964         * elf/tst-auditmod7b.c: Move to ...
1965         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
1966
1967 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1968
1969         [BZ #15366]
1970         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
1971         define unconditionally.
1972         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
1973         define unconditionally.
1974         (INT8_C, INT16_C, etc.): Likewise.
1975
1976 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
1977
1978         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
1979         __ehdr_start with hidden visibility.
1980
1981         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
1982
1983 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
1984
1985         * math/libm-test.inc (cos_test): Use accurate hex constants.
1986         (sincost_test): Likewise.
1987
1988 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
1989
1990         * math/libm-test.inc (catan_test): Add more tests.
1991         (catanh_test): Likewise.
1992
1993         * math/s_catanf.c (__catanf): Use suffixed floating-point
1994         constants.
1995         * math/s_catanhf.c (__catanhf): Likewise.
1996         * math/s_catanhl.c (__catanhl): Likewise.
1997         * math/s_catanl.c (__catanl): Likewise.
1998
1999         [BZ #15394]
2000         * math/s_catan.c (__catan): Calculate imaginary part of result
2001         with log1p not log unless computing log of number close to 0.
2002         * math/s_catanf.c (__catanf): Likewise.
2003         * math/s_catanl.c (__catanl): Likewise.
2004         * math/s_catanh.c (__catanh): Calculate real part of result with
2005         log1p not log unless computing log of number close to 0.
2006         * math/s_catanhf.c (__catanhf): Likewise.
2007         * math/s_catanhl.c (__catanhl): Likewise.
2008         * math/libm-test.inc (catan_test): Add more tests.
2009         (catanh_test): Likewise.
2010         * sysdeps/i386/fpu/libm-test-ulps: Update.
2011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2012
2013 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2014
2015         * benchtests/Makefile: Mention files in which fast and slow
2016         paths of math functions are implemented.
2017
2018 2013-04-23  Roland McGrath  <roland@hack.frob.com>
2019
2020         * sysdeps/posix/timespec_get.c: New file.
2021
2022 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2023
2024         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
2025         POWER.
2026         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
2027         for POWER.
2028         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
2029         powerpc/power5/fpu folders.
2030         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
2031         * benchtests/Makefile: Add modf testcase.
2032         * benchtests/bench-modf.c: New file: Benchmark test for mo
2033
2034 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2035
2036         [BZ #14888]
2037         * time/Makefile (tests): Add tst-strptime-whitespace.
2038         * time/strptime_l.c (get_number): Use ISSPACE.
2039         (__strptime_internal): Likewise.
2040         * time/tst-strptime-whitespace.c: New test case.
2041
2042 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
2043
2044         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
2045         member.
2046         (_nss_files_init): Set it here.
2047
2048 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
2049
2050         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
2051         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
2052         unsigned.
2053
2054 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
2055
2056         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
2057
2058 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2059
2060         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
2061         size just once.
2062
2063 2013-04-21  David S. Miller  <davem@davemloft.net>
2064
2065         * po/ru.po: Update Russion translation from translation project.
2066
2067 2013-04-17  Adam Conrad  <adconrad@0c3.net>
2068
2069         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
2070         and setfsgid.
2071
2072 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
2073
2074         * configure.in: Remove i386 configure warning. Remove i386 case.
2075         * configure: Regenerate.
2076         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
2077         Add example to error message.
2078         * sysdeps/i386/configure: Regenerate.
2079
2080 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2081
2082         * benchtests/Makefile (bench): Add cos, tan, slowcos and
2083         slowtan.
2084         * benchtests/cos-inputs: New file.
2085         * benchtests/slowcos-inputs: New file.
2086         * benchtests/slowcos.c: New file.
2087         * benchtests/slowtan-inputs: New file.
2088         * benchtests/slowtan.c: New file.
2089         * benchtests/tan-inputs: New file.
2090
2091 2013-04-16  Roland McGrath  <roland@hack.frob.com>
2092
2093         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
2094         considered kosher.
2095
2096 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
2097
2098         * benchtests/Makefile: Include cppflags-iterator.mk to add
2099         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
2100
2101         * Makefile.in (bench-clean): New target.
2102         * benchtests/Makefile (bench-clean): Likewise.
2103
2104 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
2105
2106         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
2107
2108 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
2109
2110         * stdio-common/tstdiomisc.c: Fix coding-style violation.
2111
2112 2013-04-15  Andreas Schwab  <schwab@suse.de>
2113
2114         * nscd/grpcache.c (cache_addgr): Properly check for short write.
2115         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2116         * nscd/pwdcache.c (cache_addpw): Likewise.
2117         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
2118         more than recsize.
2119
2120 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2121
2122         * benchtests/Makefile (bench): Write all output to
2123         bench-out.tmp together.
2124
2125 2013-04-15  Andreas Schwab  <schwab@suse.de>
2126
2127         * nscd/nscd.c (main): Don't fork again after closing files.
2128
2129 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2130
2131         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
2132
2133         * benchtests/Rules (bench-deps): Collect dependencies into a
2134         single variable.  Add Makefile to dependencies.
2135         ($(objpfx)bench-%.c): Depend on bench-deps.
2136
2137 2013-04-12  Roland McGrath  <roland@hack.frob.com>
2138             Xavier Roche  <roche+kml2@exalead.com>
2139
2140         [BZ #15361]
2141         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
2142         just that it's a file descriptor.
2143         * manual/llio.texi (Synchronizing AIO Operations): Update description
2144         for EBADF error from aio_fsync.
2145
2146 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
2147
2148         * Rules (bench): Move target definition...
2149         * benchtests/Makefile: ... here.
2150
2151 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
2152
2153         * math/libm-test.inc (cos_test): Fix PI/2 test.
2154         (sincos_test): Likewise.
2155         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
2156         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
2157
2158 2013-04-11  Andreas Schwab  <schwab@suse.de>
2159
2160         [BZ #13988]
2161         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
2162         accept exponent character only when digits were seen.
2163         * stdio-common/Makefile (tests): Add bug26.
2164         * stdio-common/bug26.c: New file.
2165
2166         [BZ #14293]
2167         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
2168         non-freeable.
2169
2170 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2171
2172         * Makeconfig (rtld-prefix): Define built linker prefix.
2173         * Rules (run-bench): Use it.
2174         * math/Makefile (run-regen-ulps): Likewise.
2175
2176         * Rules (bench): Remove eval.
2177
2178 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2179             Roland McGrath  <roland@hack.frob.com>
2180             Ondrej Bilka  <neleai@seznam.cz>
2181
2182         [BZ #15346]
2183         * time/getdate.c: Include ctype.h and alloca.h.
2184         (__getdate_r): Trim leading and trailing spaces of input.
2185         * time/tst-getdate.c (tests): Add tests with leading and
2186         trailing spaces.
2187
2188 2013-04-08  Roland McGrath  <roland@hack.frob.com>
2189
2190         [BZ #14280]
2191         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
2192         when computing value.
2193
2194 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2195
2196         * math/README.libm-test (How can I generate "libm-test-ulps"?):
2197         Use testrun.sh to run libm tests.
2198
2199         [BZ #15309]
2200         * elf/dl-open.c (dl_open_worker): memset all of seen array.
2201
2202 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
2203
2204         [BZ #15264]
2205         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
2206
2207 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2208
2209         * Makefile.in (regen-ulps): New target.
2210         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
2211         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
2212         [ifneq (no,$(PERL)] (regen-ulps): New target.
2213         [ifeq (no,$(PERL)] (regen-ulps): New target.
2214         * math/libm-test.inc (ulps_file_name): Define.
2215         (output_dir): New variable.
2216         (options): Add "output-dir" option.
2217         (parse_opt): Handle 'o' case.
2218         (main): If output_dir is non-NULL use it as a prefix
2219         otherwise use "".
2220         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
2221
2222 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2223
2224         [BZ #10060, #10062]
2225         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
2226         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
2227         fail configure if __sync_val_compare_and_swap is not inlined.
2228         * sysdeps/i386/configure: Regenerate.
2229         * configure.in: Build for i686 when configured for i386.
2230         * configure: Regenerate.
2231         * README: Remove i386 reference.
2232
2233 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2234
2235         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
2236         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2237
2238 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
2239
2240         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
2241         (lmsnanval): New variables.
2242         (F): Add conversion tests.
2243         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
2244         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
2245
2246         * stdio-common/tstdiomisc.c (F): Properly collect individual
2247         tests' results.
2248
2249         [BZ #14686, #15336]
2250         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
2251         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
2252         Instead, use input NaN values or generate a qNaN by arithmetic
2253         operation.  Also fix bugs to comply with the standard.
2254         * math/libm-test.inc (remainder_test): Add more tests.
2255
2256         [BZ #15335, #15342]
2257         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
2258         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
2259         input NaN values or generate a qNaN by arithmetic operation.
2260
2261         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
2262         unreachable code.
2263
2264         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
2265         definitions.
2266
2267 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
2268
2269         [BZ #14478]
2270         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
2271         underflowed result.
2272         * math/s_cexpf.c (__cexpf): Likewise.
2273         * math/s_cexpl.c (__cexpl): Likewise.
2274         * math/libm-test.inc (cexp_test): Add more tests.
2275
2276 2013-04-03  Andreas Schwab  <schwab@suse.de>
2277
2278         [BZ #15330]
2279         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
2280         order arrays from heap if bigger than alloca cutoff.
2281
2282 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
2283
2284         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
2285         (SNAN_TESTS_double): Refer to GCC PR56831.
2286         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
2287         GCC PR56828.
2288
2289 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2290
2291         * Rules (bench): Move bench.out after the run is complete.
2292
2293         * Rules (bench): Echo currently running benchmark.
2294
2295         * benchtests/Makefile (bench): Add atan and slowatan.
2296         * benchtests/atan-inputs: New file.
2297         * benchtests/slowatan-inputs: New file.
2298         * benchtests/slowatan.c: New file.
2299
2300         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
2301         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
2302         its value.
2303
2304         [BZ #15305]
2305         * sysdeps/unix/sysv/linux/kernel-features.h
2306         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
2307         __ASSUME_XFS_RESTRICTED_CHOWN.
2308         * sysdeps/unix/sysv/linux/pathconf.c
2309         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
2310         Save and restore errno.
2311
2312 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
2313
2314         [BZ #15327]
2315         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
2316         arguments using __kernel_casinh.
2317         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
2318         arguments using __kernel_casinhf.
2319         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
2320         arguments using __kernel_casinhl.
2321         * math/libm-test.inc (cacosh_test): Add more tests.
2322         * sysdeps/i386/fpu/libm-test-ulps: Update.
2323         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2324
2325 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2326
2327         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
2328         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
2329
2330         * bench/Makefile (bench): Add sin and slowsin.
2331         * benchtests/sin-inputs: New file.
2332         * benchtests/slowsin-inputs: New file.
2333         * benchtests/slowsin.c: New file.
2334
2335         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
2336         (bench): Add slowexp and slowpow.
2337         (exp-ITER): Increase iterations.
2338         (pow-ITER): Likewise.
2339         * benchtests/exp-inputs: Change input.
2340         * benchtests/pow-inputs: Likewise.
2341         * benchtests/slowexp-inputs: New file.
2342         * benchtests/slowexp.c: New file.
2343         * benchtests/slowpow-inputs: New file.
2344         * benchtests/slowpow.c: New file.
2345
2346 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2347
2348         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
2349         instructions.
2350         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
2351         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
2352         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
2353         * benchtests/Makefile: Add rint benchtest.
2354         * benchtests/rint-inputs: Input for rint benchtest.
2355
2356 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
2357
2358         * Versions.def (libm): Add GLIBC_2.18.
2359         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
2360         hidden libm prototypes.
2361         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
2362         * math/Makefile (libm-calls): Add s_issignaling.
2363         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
2364         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
2365         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
2366         declaration.
2367         * math/math.h [__USE_GNU] (issignaling): New macro.
2368         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
2369         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
2370         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
2371         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
2372         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
2373         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
2374         * manual/arith.texi (issignaling): New section.
2375         * manual/libm-err-tab.pl (@all_functions): Update comment.
2376         * math/gen-libm-test.pl (parse_args): Apply special handling for
2377         issignaling.
2378         * math/libm-test.inc (print_float, issignaling_test): New
2379         functions.
2380         (check_float_internal): Add issignaling checks.
2381         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
2382         default definition.
2383         * sysdeps/powerpc/math-tests.h: New file.
2384         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
2385         tests.
2386         * math/test-snan.c (TEST_FUNC): Likewise.
2387
2388 2013-03-30  David S. Miller  <davem@davemloft.net>
2389
2390         * po/de.po: Update from translation team.
2391
2392 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
2393
2394         [BZ #10357]
2395         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2396         imaginary part less than 1.0 and real part less than 0.5
2397         specially.
2398         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2399         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2400         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
2401         (cacos_test): Add more tests.
2402         (casin_test): Likewise.
2403         (casinh_test): Likewise.
2404         * sysdeps/i386/fpu/libm-test-ulps: Update.
2405         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2406
2407 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2408
2409         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
2410         ONE with its value.
2411
2412         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
2413         (__pow_mp): Replace ONE and MONE with their values.
2414         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2415         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
2416         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2417         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
2418         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2419         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2420
2421         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
2422
2423         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
2424         (__pow_mp): Replace ZERO and MZERO with their values.
2425         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
2426         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2427         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2428         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
2429         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2430         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
2431         (__sqr): Likewise.
2432
2433         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
2434
2435         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
2436
2437 2013-03-28  Roland McGrath  <roland@hack.frob.com>
2438
2439         * include/stdlib.h [!SHARED] (__call_tls_dtors):
2440         Declare with __attribute__ ((weak)).
2441         * stdlib/exit.c (__libc_atexit) [!SHARED]:
2442         Call __call_tls_dtors only if it's not NULL.
2443
2444 2013-03-28  Roland McGrath  <roland@hack.frob.com>
2445
2446         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
2447         didn't do it already, then set _dl_phdr and _dl_phnum based on the
2448         magic __ehdr_start linker symbol if it's defined.
2449         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
2450         them up here if it was already done.
2451
2452         * elf/dl-support.c (_dl_phdr): Make pointer to const.
2453         (_dl_aux_init): Use const in cast when setting it.
2454         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
2455         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
2456         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
2457
2458         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
2459         Declare them here.
2460         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
2461         * csu/libc-tls.c: Nor here.
2462         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
2463
2464         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
2465         (__libc_message): Never call vsyslog.
2466
2467 2013-03-28  Alan Modra  <amodra@gmail.com>
2468
2469         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
2470         Define as empty.
2471         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
2472         Likewise.
2473
2474 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2475
2476         [BZ #15214]
2477         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
2478         underflow.
2479         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2480
2481 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2482
2483         [BZ #15304]
2484         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
2485         Don't add gid passed as argument.
2486
2487         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
2488
2489 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
2490
2491         [BZ #15307]
2492         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2493         imaginary part between 1.0 and 1.5 and real part less than 0.5
2494         specially.
2495         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2496         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2497         * math/libm-test.inc (cacos_test): Add more tests.
2498         (casin_test): Likewise.
2499         (casinh_test): Likewise.
2500         * sysdeps/i386/fpu/libm-test-ulps: Update.
2501         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2502
2503 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2504
2505         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
2506         constants.
2507         (norm): Likewise.
2508         (denorm): Likewise.
2509         (__dbl_mp): Likewise.
2510         (add_magnitudes): Likewise.
2511         (sub_magnitudes): Likewise.
2512         (__add): Likewise.
2513         (__sub): Likewise.
2514         (__mul): Likewise.
2515         (__sqr): Likewise.
2516         (__inv): Likewise.
2517         (__dvd): Likewise.
2518
2519         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
2520         commented code.
2521         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
2522         (__dubcos): Likewise.
2523         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
2524         (__ieee754_acos): Likewise.
2525         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
2526         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
2527         (__exp1): Likewise.
2528         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2529         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
2530         (log1): Likewise.
2531         (my_log2): Likewise.
2532         (checkint): Likewise.
2533         * sysdeps/ieee754/dbl-64/e_remainder.c
2534         (__ieee754_remainder): Likewise.
2535         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2536         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
2537         (bsloww): Likewise.
2538         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2539
2540         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2541         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
2542         MANTISSA_STORE_T to store computations on mantissa.  Use
2543         macros for rounding and division.
2544         (denorm): Likewise.
2545         (__dbl_mp): Likewise.
2546         (add_magnitudes): Likewise.
2547         (sub_magnitudes): Likewise.
2548         (__mul): Likewise.
2549         (__sqr): Likewise.
2550         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2551         powers of two in terms of TWOPOW macro.
2552         (mp_no): Make type of mantissa as MANTISSA_T.
2553         [!RADIXI]: Define RADIXI.
2554         [!TWO52]: Define TWO52.
2555         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2556
2557 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2558
2559         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
2560         llroundl symbol when building for PPC32.
2561
2562 2013-03-24  Mark H Weaver  <mhw@netris.org>
2563
2564         * manual/arith.texi (Normalization Functions): Fix prototypes for
2565         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
2566
2567 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2568
2569         [BZ #13889]
2570         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
2571         high value to check if expl overflow.
2572         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
2573         to check for underflow and overflow.
2574         * math/libm-test.inc: Add exp test.
2575
2576 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
2577
2578         [BZ #11120]
2579         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
2580         with NOT_IN_libc.
2581
2582 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2583
2584         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
2585         symbol.
2586
2587 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2588
2589         * math/gen-libm-test.pl (parse_args, special_functions): Properly
2590         wrap blocks consisting of several statements.
2591
2592         * sysdeps/generic/math-tests.h: New file.
2593         * sysdeps/i386/fpu/math-tests.h: Likewise.
2594         * math/test-snan.c: Include it.
2595         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
2596
2597 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
2598
2599         [BZ #15285]
2600         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
2601         (__ieee754_j0l): Do not improve calculations using cos of twice
2602         input for inputs above LDBL_MAX / 2.0L.
2603         (__ieee754_y0l): Likewise.
2604         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
2605         (__ieee754_j1l): Do not improve calculations using cos of twice
2606         input for inputs above LDBL_MAX / 2.0L.
2607         (__ieee754_y1l): Likewise.
2608         * math/libm-test.inc (j0_test): Add another test.
2609         (j1_test): Likewise.
2610         (y0_test): Likewise.
2611         (y1_test): Likewise.
2612         * sysdeps/i386/fpu/libm-test-ulps: Update.
2613
2614 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2615
2616         * Rules ($(objpfx)bench-%.c): Include code from a C source
2617         file.
2618
2619 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
2620
2621         [BZ #15287]
2622         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2623         imaginary part 1.0 and real part less than 0.5 specially.
2624         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2625         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2626         * math/libm-test.inc (cacos_test): Add more tests.
2627         (casin_test): Likewise.
2628         (casinh_test): Likewise.
2629         * sysdeps/i386/fpu/libm-test-ulps: Update.
2630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2631
2632 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2633
2634         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
2635         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
2636
2637 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
2638
2639         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
2640         * config.make.in (config-cflags-sse4): Remove variable.
2641         (config-cflags-avx): Likewise.
2642         (config-cflags-sse2avx): Likewise.
2643         (config-cflags-novzeroupper): Likewise.
2644         (config-asflags-i686): Likewise.
2645         (have-mfma4): Likewise.
2646         (have-as-vis3): Likewise.
2647         (MIG): Likewise.
2648         * configure.in (MIG): Do not AC_SUBST.
2649         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
2650         (libc_cv_cc_sse4): Do not AC_SUBST.
2651         (libc_cv_cc_avx): Likewise.
2652         (libc_cv_cc_sse2avx): Likewise.
2653         (libc_cv_cc_novzeroupper): Likewise.
2654         (libc_cv_cc_fma4): Likewise.
2655         (libc_cv_as_i686): Likewise.
2656         (libc_cv_sparc_as_vis3): Likewise.
2657         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
2658         LIBC_CONFIG_VAR.
2659         (config-asflags-i686): Likewise.
2660         (config-cflags-avx): Likewise.
2661         (config-cflags-sse2avx): Likewise.
2662         (have-mfma4): Likewise.
2663         (config-cflags-novzeroupper): Likewise.
2664         * sysdeps/mach/configure.in (MIG): Likewise.
2665         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
2666         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
2667         LIBC_CONFIG_VAR.
2668         (config-cflags-avx): Likewise.
2669         (config-cflags-sse2avx): Likewise.
2670         (have-mfma4): Likewise.
2671         (config-cflags-novzeroupper): Likewise.
2672         * configure: Regenerated.
2673         * sysdeps/i386/configure: Likewise.
2674         * sysdeps/mach/configure: Likewise.
2675         * sysdeps/sparc/configure: Likewise.
2676         * sysdeps/x86_64/configure: Likewise.
2677
2678 2013-03-20  Roland McGrath  <roland@hack.frob.com>
2679
2680         [BZ #14812]
2681         * locale/programs/localedef.c (options): Put N_ translation marker
2682         on argument names, not just descriptions.
2683
2684 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2685
2686         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
2687
2688 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
2689
2690         [BZ #14176]
2691         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
2692
2693 2013-03-19  Roland McGrath  <roland@hack.frob.com>
2694
2695         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
2696         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
2697         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
2698         [!BEFORE_ABORT] (before_abort): New function.
2699         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
2700         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
2701         (writev_for_fatal): New function.
2702         (WRITEV_FOR_FATAL): New macro; call that.
2703         (backtrace_and_maps): New function.
2704         (BEFORE_ABORT): New macro; call that.
2705         (struct str_list): Type removed.
2706         (__libc_message, __libc_fatal): Functions removed.
2707         Include <sysdeps/posix/libc_fatal.c> instead.
2708
2709 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
2710
2711         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
2712         constants.
2713         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
2714         double constants.
2715
2716 2013-03-19  Andreas Schwab  <schwab@suse.de>
2717
2718         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
2719         * sysdeps/gnu/configure: Regenerate.
2720
2721         * configure.in: Substitute libc_cv_rtlddir.
2722         * configure: Regenerate.
2723         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
2724         * Makeconfig (rtlddir, inst_rtlddir): New variables.
2725         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
2726         * elf/Makefile (install-others, CFLAGS-interp.c)
2727         (ldso_install, common-ldd-rewrite): Likewise.
2728         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
2729         $(inst_slibdir)/$(rtld-installed-name).
2730         * scripts/rellns-sh: Add -p option.
2731         * Makerules (make-shlib-link): Use rellns-sh to get relative name
2732         for source.
2733
2734 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2735
2736         * manual/nptl.texi: Renamed to ...
2737         * manual/threads.texi: ... this.
2738         * manual/Makefile (chapters): Update.
2739
2740 2013-03-18  Roland McGrath  <roland@hack.frob.com>
2741
2742         [BZ #14812]
2743         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
2744         on argument names, not just descriptions.
2745         * malloc/memusagestat.c (options): Likewise.
2746         * nss/getent.c (options): Likewise.
2747
2748 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
2749
2750         [BZ #14812]
2751         * iconv/iconv_prog.c (options): Put N_ translation marker
2752         on argument names, not just descriptions.
2753         * iconv/iconvconfig.c (options): Likewise.
2754
2755 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
2756
2757         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
2758         implementation which is faster on all x86_64 architectures.
2759         Tested on AMD, Intel Nehalem, SNB, IVB.
2760         * sysdeps/x86_64/strnlen.S: Likewise.
2761
2762         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2763         Remove all multiarch strlen and strnlen versions.
2764         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
2765         Remove strlen and strnlen related parts.
2766
2767         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
2768         Inline strlen part.
2769         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
2770
2771         * sysdeps/x86_64/multiarch/strlen.S: Remove.
2772         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
2773         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
2774         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
2775         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2776         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
2777
2778 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
2779
2780         * manual/memory.texi (Malloc Tunable Parameters):
2781         Sort parameters alphabetically. Add comments for missing entries.
2782
2783 2013-03-17  David S. Miller  <davem@davemloft.net>
2784
2785         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2786
2787 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
2788
2789         [BZ #15283]
2790         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
2791         for arguments at most half maximum finite value.
2792         * math/libm-test.inc (j0_test): Add more tests.
2793         (j1_test): Likewise.
2794         (y0_test): Likewise.
2795         (y1_test): Likewise.
2796         * sysdeps/i386/fpu/libm-test-ulps: Update.
2797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2798
2799         [BZ #14155]
2800         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
2801         1 / x and functions P and Q for arguments above 0x1p256L.
2802         (__ieee754_y0l): Likewise.
2803         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2804         (__ieee754_y1l): Likewise.
2805         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
2806         (j1_test): Likewise.
2807         (y0_test): Likewise.
2808         (y1_test): Likewise.
2809
2810 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
2811
2812         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
2813         variable.
2814
2815 2013-03-15  Roland McGrath  <roland@hack.frob.com>
2816
2817         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
2818         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
2819         zero since it's initialized to EXEC_PAGESIZE.
2820
2821         * sysdeps/unix/sysv/linux/ldsodefs.h
2822         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
2823         * sysdeps/generic/ldsodefs.h: ... here.
2824
2825 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
2826
2827         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
2828
2829         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
2830         math/test-snan.c.
2831         * math/test-snan.c: Renamed from
2832         sysdeps/powerpc/fpu/test-powerpc-snan.c.
2833         * math/Makefile (tests): Add test-snan.
2834         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
2835         test-powerpc-snan.
2836
2837         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
2838         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
2839         functions.
2840         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
2841         __builtin_nan family of functions.
2842         * math/libm-test.inc (initialize): Initialize qnan_value with
2843         __builtin_nan family of functions.
2844         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
2845         Remove variables.
2846         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
2847         Remove functions.
2848         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
2849         storage class.  Initialize qNaN_var and sNaN_var with
2850         __builtin_nan and __builtin_nans families of functions,
2851         respectively.
2852
2853         * math/libm-test.inc (acosh_test): Also test with qNaN input.
2854         (sqrt_test): Remove duplicate test with qNaN input.
2855         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
2856         (round_test, signbit_test, significand_test): Note missing +/-Inf
2857         as well as qNaN tests.
2858
2859         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
2860         qNaN_var.  Fix a few strings, too.
2861         * math/libm-test.inc (nan_value): Rename to qnan_value.
2862         * math/gen-libm-test.pl (%beautify): Adjust to that.
2863         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
2864         * math/test-misc.c (main): Likewise.
2865         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
2866         to __qnan_bytes, and __qnan_union, respectively.
2867         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
2868         Likewise.
2869         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
2870         and lqnanval, respectively.
2871         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
2872         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
2873         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
2874         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
2875
2876         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
2877         * math/test-misc.c (main) [__x86_64__]: Enable test for long
2878         doubles.
2879
2880         * math/test-misc.c (main): Fix copy'n'pastos.
2881         * misc/tst-efgcvt.c (special): Likewise.
2882
2883         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
2884         Remove declarations.
2885
2886 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2887
2888         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
2889         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
2890         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
2891         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
2892
2893 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2894
2895         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
2896         macro to return vdso values correctly in IFUNC implementations.
2897         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2898         Optimization by using IFUNC.
2899
2900 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2901             Richard Henderson  <rth@redhat.com>
2902             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2903
2904         * Makefile.in (bench): New target.
2905         * NEWS: Mention the benchmark framework.
2906         * Rules (bench): Likewise.
2907         (binaries-bench): Generate binaries for functions to
2908         benchmark.
2909         * benchtests/Makefile: New makefile for benchmark tests.
2910         * benchtests/bench-skeleton.c: New skeleton file for benchmark
2911         programs.
2912         * benchtests/exp-inputs: New input file for EXP function.
2913         * benchtests/pow-inputs: New input file for POW function.
2914         * scripts/bench.pl: New script to generate source files for
2915         benchmark programs.
2916
2917 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2918
2919         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2920         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
2921         computations on mantissa.  Use macros for rounding and
2922         division.
2923         (denorm): Likewise.
2924         (__dbl_mp): Likewise.
2925         (add_magnitudes): Likewise.
2926         (sub_magnitudes): Likewise.
2927         (__mul): Likewise.
2928         (__sqr): Likewise.
2929         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2930         powers of two in terms of TWOPOW macro.
2931         (mp_no): Make type of mantissa as MANTISSA_T.
2932         [!RADIXI]: Define RADIXI.
2933         [!TWO52]: Define TWO52.
2934         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2935
2936         * manual/nptl.texi (cindex): Modify threads to pthreads.
2937
2938 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
2939
2940         * sysdeps/x86_64/preconfigure: Regenerated.
2941
2942 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
2943
2944         [BZ #14155]
2945         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
2946         0x1p28 and above.
2947         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
2948         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
2949         0x1p28 and above.
2950         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
2951         * math/libm-test.inc (j0_test): Do not allow one spurious
2952         underflow exception.
2953         (y1_test): Likewise.
2954
2955 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2956
2957         * manual/Makefile (chapters): Add nptl.
2958         * manual/debug.texi (Debugging Support): Add link to Threads
2959         chapter.
2960         * manual/nptl.texi: New file.
2961
2962         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
2963
2964 2013-03-14  Petr Baudis  <pasky@ucw.cz>
2965
2966         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
2967         for non-NULL pointer before the memory validity test. Pointed
2968         out by Holger Brunck <holger.brunck@keymile.com>.
2969
2970 2013-03-13  Andreas Schwab  <schwab@suse.de>
2971
2972         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
2973         instead of .os.
2974
2975 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
2976
2977         * timezone/zic.c: Update from tzcode 2013b.
2978
2979 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
2980
2981         * manual/install.texi (Configuring and compiling):
2982         Mention i686 and i586.
2983         * INSTALL: Regenerate.
2984
2985 2013-03-12  Roland McGrath  <roland@hack.frob.com>
2986
2987         * sysdeps/init_array/elf-init.c: New file.
2988         * csu/elf-init.c
2989         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
2990         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
2991
2992         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
2993         __gmon_start__ as global, but as static with a .preinit_array pointer.
2994         * sysdeps/init_array/gmon-start.c: New file.  Use that.
2995         * sysdeps/init_array/crti.S: New file, empty except for comments.
2996         * sysdeps/init_array/crtn.S: Likewise.
2997
2998 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
2999
3000         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
3001         definining bcopy.
3002         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3003         Remove Prefer_SSE_for_memop.
3004         * sysdeps/x86_64/multiarch/init-arch.h: Remove
3005         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
3006         HAS_PREFER_SSE_FOR_MEMOP.
3007         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3008         memset-x86-64.
3009         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
3010         Remove bzero, memset ifunc support.
3011         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
3012         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
3013         * sysdeps/x86_64/multiarch/memset.S: Likewise.
3014         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
3015
3016 2013-03-11  Andreas Schwab  <schwab@suse.de>
3017
3018         [BZ #15234]
3019         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
3020         by SHLIB_COMPAT.
3021         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
3022         (GLIBC_2.16): Remove pthread_atfork.
3023
3024 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
3025
3026         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
3027         (ptestcases.h): Likewise.
3028
3029 2013-03-08  Roland McGrath  <roland@hack.frob.com>
3030
3031         * Makeconfig ($(common-objpfx)config.status): Depend on
3032         sysdeps/*/preconfigure{,.in} too.
3033
3034 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
3035
3036         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
3037         (__free_hook): Use void * instead of __malloc_ptr_t.
3038         (__malloc_hook): Likewise.
3039         (__realloc_hook): Likewise.
3040         (__memalign_hook): Likewise.
3041         (__after_morecore_hook): Likewise.
3042         * malloc/arena.c (save_malloc_hook): Likewise.
3043         (save_free_hook): Likewise.
3044         * malloc/hooks.c (malloc_hook_ini): Likewise.
3045         (realloc_hook_ini): Likewise.
3046         (memalign_hook_ini): Likewise.
3047         * malloc/malloc.c (malloc_hook_ini): Likewise.
3048         (realloc_hook_ini): Likewise.
3049         (memalign_hook_ini): Likewise.
3050         (__free_hook): Likewise.
3051         (__malloc_hook): Likewise.
3052         (__realloc_hook): Likewise.
3053         (__memalign_hook): Likewise.
3054         (__libc_malloc): Likewise.
3055         (__libc_free): Likewise.
3056         (__libc_realloc): Likewise.
3057         (__libc_memalign): Likewise.
3058         (__libc_valloc): Likewise.
3059         (__libc_pvalloc): Likewise.
3060         (__libc_calloc): Likewise.
3061         (__posix_memalign): Likewise.
3062         * malloc/morecore.c (__sbrk): Likewise.
3063         (__default_morecore): Likewise.
3064
3065         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
3066
3067         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
3068         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
3069         __malloc_ptrdiff_t.
3070
3071         * malloc/malloc.h (__malloc_size_t): Remove macro.
3072         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
3073         __malloc_size_t.
3074         (old_memalign_hook): Likewise.
3075         (old_realloc_hook): Likewise.
3076         (struct hdr): Likewise.
3077         (flood): Likewise.
3078         (mallochook): Likewise.
3079         (memalignhook): Likewise.
3080         (reallochook): Likewise.
3081         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
3082         (tr_old_realloc_hook): Likewise.
3083         (tr_old_memalign_hook): Likewise.
3084         (tr_mallochook): Likewise.
3085         (tr_reallochook): Likewise.
3086         (tr_memalignhook): Likewise.
3087
3088 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3089
3090         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
3091         default_ldbl_pack and using as default implementation.
3092         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
3093         implementation.
3094         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
3095         redundant definition.
3096         (ldbl_insert_mantissa): Likewise.
3097         (ldbl_canonicalize): Likewise.
3098         (ldbl_nearbyint): Likewise.
3099         (ldbl_pack): Rename to ldbl_pack_ppc.
3100         (ldbl_unpack): Rename to ldbl_unpack_ppc.
3101         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
3102         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
3103
3104 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
3105
3106         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
3107         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
3108         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
3109         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
3110         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
3111         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
3112         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
3113         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
3114
3115 2013-03-07  Andreas Jaeger  <aj@suse.de>
3116
3117         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3118         bits/mman-linux.h.
3119
3120 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3121
3122         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
3123         Include mpa.h and declare __MPEXP.
3124         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
3125         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
3126         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
3127         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
3128         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
3129         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
3130         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
3131
3132         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
3133         (__slowpow): Use long double EXPL and LOGL functions to
3134         compute POW.
3135         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
3136         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
3137         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
3138         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
3139         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
3140         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
3141
3142         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
3143         intermediate variable to calculate exponent.
3144         (__sqr): Likewise.
3145         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3146         Likewise.
3147         (__sqr): Likewise.
3148
3149         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
3150         [!NO__SQR]: Define __sqr.
3151         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
3152         and NO__SQR.  Remove all code except __mul and __sqr.  Include
3153         sysdeps/ieee754/dbl-64/mpa.c.
3154         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3155
3156         [BZ #12723]
3157         * posix/Makefile (tests): Add tst-pathconf.
3158         * posix/tst-pathconf.c: New test case.
3159         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
3160         _PC_PIPE_BUF.
3161         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3162
3163 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
3164
3165         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
3166
3167 2013-03-06  Andreas Jaeger  <aj@suse.de>
3168
3169         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
3170         definition via __MAP_ANONYMOUS.
3171
3172         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
3173         it's not part of Linux headers.
3174
3175         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
3176         (MAP_HUGE_MASK): Define.
3177
3178         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
3179         Define.
3180         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3181         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
3182         Define.
3183         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3184         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
3185         Define.
3186         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3187         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
3188         Define.
3189         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
3190
3191         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
3192         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
3193         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
3194         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
3195         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
3196         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
3197
3198         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3199         Handle f2fs.
3200
3201         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3202         Handle f2fs and efivarfs.
3203
3204         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
3205         f2fs.
3206
3207         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
3208         (EFIVARFS_MAGIC): Add.
3209         (F2FS_LINK_MAX): Add.
3210
3211 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3212
3213         * stdio-common/vfprintf.c: Replace __builtin_expect with
3214         __glibc_unlikely.
3215
3216 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
3217
3218         [BZ #13550]
3219         * sysdeps/generic/bp-sym.h: Remove file.
3220         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
3221         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
3222         <bp-sym.h> and <bp-asm.h>.
3223         (__longjmp): Don't use BP_SYM.
3224         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
3225         and <bp-asm.h>.
3226         (memcpy): Don't use BP_SYM.
3227         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
3228         <bp-sym.h> and <bp-asm.h>.
3229         (memcpy): Don't use BP_SYM.
3230         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
3231         <bp-asm.h>.
3232         (memcpy): Don't use BP_SYM.
3233         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
3234         <bp-asm.h>.
3235         (memset): Don't use BP_SYM.
3236         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3237         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3238         (__bzero): Don't use BP_SYM.
3239         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3240         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3241         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
3242         <bp-sym.h> and <bp-asm.h>.
3243         (memcmp): Don't use BP_SYM.  Remove comment about bounded
3244         pointers.
3245         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
3246         <bp-sym.h> and <bp-asm.h>.
3247         (memcpy): Don't use BP_SYM.
3248         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
3249         <bp-sym.h> and <bp-asm.h>.
3250         (memset): Don't use BP_SYM.
3251         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3252         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3253         (__bzero): Don't use BP_SYM.
3254         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3255         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3256         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
3257         <bp-sym.h> and <bp-asm.h>.
3258         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3259         pointers.
3260         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
3261         <bp-sym.h> and <bp-asm.h>.
3262         (memcpy): Don't use BP_SYM.
3263         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
3264         <bp-sym.h> and <bp-asm.h>.
3265         (memset): Don't use BP_SYM.
3266         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3267         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3268         (__bzero): Don't use BP_SYM.
3269         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3270         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3271         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
3272         <bp-sym.h> and <bp-asm.h>.
3273         (__memchr): Don't use BP_SYM.
3274         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
3275         <bp-sym.h> and <bp-asm.h>.
3276         (memcmp): Don't use BP_SYM.  Remove comment about bounded
3277         pointers.
3278         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
3279         <bp-sym.h> and <bp-asm.h>.
3280         (memcpy): Don't use BP_SYM.
3281         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
3282         <bp-sym.h> and <bp-asm.h>.
3283         (__mempcpy): Don't use BP_SYM.
3284         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
3285         <bp-sym.h> and <bp-asm.h>.
3286         (__memrchr): Don't use BP_SYM.
3287         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
3288         <bp-sym.h> and <bp-asm.h>.
3289         (memset): Don't use BP_SYM.
3290         (__bzero): Likewise.
3291         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
3292         <bp-sym.h> and <bp-asm.h>.
3293         (__rawmemchr): Don't use BP_SYM.
3294         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
3295         <bp-sym.h> and <bp-asm.h>.
3296         (__STRCMP): Don't use BP_SYM.
3297         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
3298         <bp-sym.h> and <bp-asm.h>.
3299         (strchr): Don't use BP_SYM.
3300         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
3301         <bp-sym.h> and <bp-asm.h>.
3302         (__strchrnul): Don't use BP_SYM.
3303         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
3304         <bp-sym.h> and <bp-asm.h>.
3305         (strlen): Don't use BP_SYM.
3306         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
3307         <bp-sym.h> and <bp-asm.h>.
3308         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3309         pointers.
3310         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
3311         <bp-sym.h> and <bp-asm.h>.
3312         (__strnlen): Don't use BP_SYM.
3313         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
3314         <bp-sym.h> and <bp-asm.h>.
3315         (__GI__setjmp): Don't use BP_SYM.
3316         (_setjmp): Likewise.
3317         (__sigsetjmp): Likewise.
3318         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
3319         (L(start_addresses)): Don't use BP_SYM.
3320         (_start): Likewise.
3321         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
3322         <bp-asm.h>.
3323         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
3324         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
3325         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3326         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3327         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
3328         <bp-asm.h>.
3329         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
3330         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
3331         about bounded pointers.
3332         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3333         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3334         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
3335         <bp-asm.h>.
3336         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
3337         about bounded pointers.  Remove GKM FIXME comments.
3338         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3339         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
3340         <bp-asm.h>.
3341         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
3342         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
3343         Remove GKM FIXME comments.
3344         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3345         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3346         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
3347         <bp-asm.h>.
3348         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
3349         about bounded pointers.  Remove GKM FIXME comment.
3350         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
3351         and <bp-asm.h>.
3352         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3353         pointers.
3354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
3355         <bp-sym.h> and <bp-asm.h>.
3356         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
3357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
3358         <bp-sym.h> and <bp-asm.h>.
3359         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
3360         comment.
3361
3362 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3363
3364         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
3365         call free(NULL).
3366
3367 2013-03-05  David S. Miller  <davem@davemloft.net>
3368
3369         * po/es.po: Update from translation team.
3370
3371 2013-03-05  Andreas Jaeger  <aj@suse.de>
3372
3373         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
3374         <bits/mman-linux.h>.
3375         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3376         is fine.
3377         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
3378         <bits/mman-linux.h> to end of file.
3379         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3380         is fine.
3381         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
3382         <bits/mman-linux.h> to end of file.
3383         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3384         is fine.
3385         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
3386         <bits/mman-linux.h> to end of file.
3387
3388         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
3389         (MCL_CURRENT, MCL_FUTURE): Define here.
3390
3391 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3392
3393         [BZ #15232]
3394         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
3395         attribute_hidden.
3396         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3397
3398 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3399
3400         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
3401         fourth parameter needed for rt_sigprocmask syscall.
3402         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
3403         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
3404         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
3405         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
3406         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3407         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
3408
3409 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
3410
3411         [BZ #13550]
3412         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
3413         comment about bounded pointers.
3414         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
3415         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
3416
3417 2013-03-04  Andreas Jaeger  <aj@suse.de>
3418
3419         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
3420         common definitions.
3421
3422         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
3423         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
3424         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
3425         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3426         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
3427         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3428
3429 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3430
3431         [BZ #15055]
3432         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
3433         __ieee754_sqrl instead of __sqrl.
3434
3435 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
3436
3437         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
3438         * sysdeps/powerpc/fpu_control.h: ... here.
3439         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
3440         * sysdeps/powerpc/bits/fenvinline.h: ... here.
3441         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
3442         * sysdeps/powerpc/bits/mathinline.h: ... here.
3443
3444 2013-03-01  Roland McGrath  <roland@hack.frob.com>
3445
3446         * elf/dl-hwcaps.c (_dl_important_hwcaps):
3447         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
3448         to just [NEED_DL_SYSINFO_DSO].
3449         * elf/dl-support.c: Likewise.
3450         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
3451         * elf/rtld.c (dl_main): Likewise.
3452         * elf/setup-vdso.h (setup_vdso): Likewise.
3453         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
3454         * sysdeps/unix/sysv/linux/dl-sysdep.c
3455         (_dl_discover_osversion): Likewise.
3456
3457 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
3458
3459         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
3460         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
3461
3462 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
3463
3464         * NEWS: Mention libm performance improvements and non-x86 PI
3465         futex support.
3466
3467         * csu/libc-start.c (__pthread_initialize_minimal): Change
3468         function arguments.
3469         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
3470
3471 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
3472
3473         [BZ #13550]
3474         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
3475         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
3476         <bp-sym.h> and <bp-asm.h>.
3477         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3478         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
3479         and <bp-asm.h>.
3480         (memcpy): Don't use BP_SYM.
3481         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
3482         <bp-asm.h>.
3483         (__mpn_add_n): Don't use BP_SYM.
3484         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
3485         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
3486         and <bp-asm.h>.
3487         (__mpn_addmul_1): Don't use BP_SYM.
3488         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3489         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
3490         <bp-sym.h>.
3491         (_setjmp): Don't use BP_SYM.
3492         (__novmx_setjmp): Likewise.
3493         (__GI__setjmp): Likewise.
3494         (__vmx_setjmp): Likewise.
3495         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
3496         <bp-sym.h>.
3497         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
3498         (__bzero): Don't use BP_SYM.
3499         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3500         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3501         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
3502         <bp-sym.h> and <bp-asm.h>.
3503         (memcpy): Don't use BP_SYM.
3504         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
3505         <bp-sym.h> and <bp-asm.h>.
3506         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3507         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
3508         <bp-sym.h> and <bp-asm.h>.
3509         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3510         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
3511         <bp-asm.h>.
3512         (__mpn_lshift): Don't use BP_SYM.
3513         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3514         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
3515         <bp-asm.h>.
3516         (memset): Don't use BP_SYM.
3517         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3518         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3519         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
3520         <bp-asm.h>.
3521         (__mpn_mul_1): Don't use BP_SYM.
3522         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3523         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
3524         <bp-sym.h> and <bp-asm.h>.
3525         (memcmp): Don't use BP_SYM.
3526         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
3527         <bp-sym.h> and <bp-asm.h>.
3528         (memcpy): Don't use BP_SYM.
3529         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
3530         <bp-sym.h> and <bp-asm.h>.
3531         (memset): Don't use BP_SYM.
3532         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
3533         <bp-sym.h> and <bp-asm.h>.
3534         (strncmp): Don't use BP_SYM.
3535         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
3536         <bp-sym.h> and <bp-asm.h>.
3537         (memcpy): Don't use BP_SYM.
3538         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
3539         <bp-sym.h> and <bp-asm.h>.
3540         (memset): Don't use BP_SYM.
3541         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
3542         <bp-sym.h> and <bp-asm.h>.
3543         (__memchr): Don't use BP_SYM.
3544         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
3545         <bp-sym.h> and <bp-asm.h>.
3546         (memcmp): Don't use BP_SYM.
3547         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
3548         <bp-sym.h> and <bp-asm.h>.
3549         (memcpy): Don't use BP_SYM.
3550         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
3551         <bp-sym.h> and <bp-asm.h>.
3552         (__mempcpy): Don't use BP_SYM.
3553         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
3554         <bp-sym.h> and <bp-asm.h>.
3555         (__memrchr): Don't use BP_SYM.
3556         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
3557         <bp-sym.h> and <bp-asm.h>.
3558         (memset): Don't use BP_SYM.
3559         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
3560         <bp-sym.h> and <bp-asm.h>.
3561         (__rawmemchr): Don't use BP_SYM.
3562         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
3563         <bp-sym.h> and <bp-asm.h>.
3564         (__STRCMP): Don't use BP_SYM.
3565         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
3566         <bp-sym.h> and <bp-asm.h>.
3567         (strchr): Don't use BP_SYM.
3568         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
3569         <bp-sym.h> and <bp-asm.h>.
3570         (__strchrnul): Don't use BP_SYM.
3571         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
3572         <bp-sym.h> and <bp-asm.h>.
3573         (strlen): Don't use BP_SYM.
3574         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
3575         <bp-sym.h> and <bp-asm.h>.
3576         (strncmp): Don't use BP_SYM.
3577         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
3578         <bp-sym.h> and <bp-asm.h>.
3579         (__strnlen): Don't use BP_SYM.
3580         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
3581         <bp-asm.h>.
3582         (__mpn_rshift): Don't use BP_SYM.
3583         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3584         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
3585         <bp-sym.h> and <bp-asm.h>.
3586         (__sigsetjmp): Don't use BP_SYM.
3587         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
3588         (L(start_addresses)): Don't use BP_SYM.
3589         (_start): Likewise.
3590         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
3591         <bp-asm.h>.
3592         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
3593         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3594         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3595         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
3596         <bp-asm.h>.
3597         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
3598         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3599         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3600         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
3601         <bp-asm.h>.
3602         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
3603         comments.
3604         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3605         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
3606         <bp-asm.h>.
3607         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
3608         FIXME comments.
3609         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3610         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3611         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
3612         <bp-asm.h>.
3613         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
3614         comment.
3615         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
3616         and <bp-asm.h>.
3617         (strncmp): Don't use BP_SYM,
3618         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
3619         <bp-asm.h>.
3620         (__mpn_sub_n): Don't use BP_SYM.
3621         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3622         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
3623         and <bp-asm.h>.
3624         (__mpn_submul_1): Don't use BP_SYM.
3625         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
3627         <bp-sym.h> and <bp-asm.h>.
3628         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
3629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
3630         <bp-sym.h> and <bp-asm.h>.
3631         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
3632         comment.
3633
3634 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3635
3636         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
3637         Use ZK to minimize writes to Z.
3638         (sub_magnitudes): Simplify code a bit.
3639         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
3640         Use ZK to minimize writes to Z.
3641         (sub_magnitudes): Simplify code a bit.
3642
3643 2013-02-27  Roland McGrath  <roland@hack.frob.com>
3644
3645         * csu/gmon-start.c: Add special exception to license text.
3646
3647 2013-02-27  Richard Henderson  <rth@redhat.com>
3648
3649         * scripts/config.guess: Update from config.git.
3650         * scripts/config.sub: Likewise.
3651
3652 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3653
3654         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
3655
3656         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
3657
3658         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
3659
3660         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
3661
3662         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
3663
3664 2013-02-26  Roland McGrath  <roland@hack.frob.com>
3665
3666         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
3667         [$(build-shared = yes].
3668
3669 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3670
3671         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
3672         (__mul): Reduce iterations for calculating mantissa.
3673
3674         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
3675         MPTWO.
3676         (__mpranred): Likewise.
3677
3678         [BZ #15160]
3679         * malloc/memusagestat.c (main): Draw graphs for heap and stack
3680         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
3681
3682 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3683
3684         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
3685         Define __attribute__.
3686
3687 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3688
3689         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
3690         unused.
3691         * posix/regex_internal.h (__attribute): Remove.
3692         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
3693         (re_string_context_at): Likewise.
3694         (bitset_not): Use __attribute__ and mark function as possibly
3695         unused.
3696         (bitset_merge): Likewise.
3697         (bitset_mask): Likewise.
3698         (re_string_char_size_at): Likewise.
3699         (re_string_wchar_at): Likewise.
3700         (re_string_elem_size_at): Likewise.
3701
3702 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3703
3704         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
3705         code.
3706         (cc32): Likewise.
3707
3708         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
3709         (__acr): Likewise.
3710         (__cpy): Likewise.
3711         (norm): Likewise.
3712         (denorm): Likewise.
3713         (__dbl_mp): Likewise.
3714         (add_magnitudes): Likewise.
3715         (sub_magnitudes): Likewise.
3716         (__mul): Likewise.
3717         (__inv): Likewise.
3718
3719         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
3720         style.
3721
3722         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
3723         style.
3724
3725         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
3726         code.
3727
3728         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
3729         up changes with default code.
3730         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
3731         Likewise.
3732
3733 2013-02-24  Allan McRae  <allan@archlinux.org>
3734
3735         * manual/socket.texi (The Internet Namespace): Order menu items
3736         to match that in the file.
3737
3738         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
3739         node listing of the info page menu.
3740
3741 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
3742
3743         [BZ #13550]
3744         * sysdeps/i386/bp-asm.h: Remove file.
3745         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3746         (PARMS): Do not use macros from bp-asm.h.
3747         (S1): Likewise.
3748         (S2): Likewise.
3749         (SIZE): Likewise.
3750         (__mpn_add_n): Do not use BP_SYM
3751         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
3752         "bp-asm.h".
3753         (PARMS): Do not use macros from bp-asm.h.
3754         (S1): Likewise.
3755         (SIZE): Likewise.
3756         (__mpn_addmul_1): Do not use BP_SYM
3757         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
3758         "bp-asm.h".
3759         (PARMS): Do not use macros from bp-asm.h.
3760         (SIGMSK): Likewise.
3761         (_setjmp): Likewise.  Do not use BP_SYM.
3762         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
3763         "bp-asm.h".
3764         (PARMS): Do not use macros from bp-asm.h.
3765         (SIGMSK): Likewise.
3766         (setjmp): Likewise.  Do not use BP_SYM.
3767         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
3768         "bp-asm.h".
3769         (PARMS): Do not use macros from bp-asm.h.
3770         (__frexp): Do not use BP_SYM.
3771         (frexp): Likewise.
3772         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
3773         "bp-asm.h".
3774         (PARMS): Do not use macros from bp-asm.h.
3775         (__frexpf): Do not use BP_SYM.
3776         (frexpf): Likewise.
3777         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
3778         "bp-asm.h".
3779         (PARMS): Do not use macros from bp-asm.h.
3780         (__frexpl): Do not use BP_SYM.
3781         (frexpl): Likewise.
3782         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
3783         "bp-asm.h".
3784         (PARMS): Do not use macros from bp-asm.h.
3785         (__remquo): Do not use BP_SYM.
3786         (remquo): Likewise.
3787         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
3788         "bp-asm.h".
3789         (PARMS): Do not use macros from bp-asm.h.
3790         (__remquof): Do not use BP_SYM.
3791         (remquof): Likewise.
3792         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
3793         "bp-asm.h".
3794         (PARMS): Do not use macros from bp-asm.h.
3795         (__remquol): Do not use BP_SYM.
3796         (remquol): Likewise.
3797         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
3798         "bp-asm.h".
3799         (PARMS): Do not use macros from bp-asm.h.
3800         (DEST): Likewise.
3801         (SRC): Likewise.
3802         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
3803         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
3804         "bp-asm.h".
3805         (PARMS): Do not use macros from bp-asm.h.
3806         (strlen): Do not use BP_SYM.
3807         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
3808         "bp-asm.h".
3809         (PARMS): Do not use macros from bp-asm.h.
3810         (S1): Likewise.
3811         (S2): Likewise.
3812         (SIZE): Likewise.
3813         (__mpn_add_n): Do not use BP_SYM.
3814         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
3815         "bp-asm.h".
3816         (PARMS): Do not use macros from bp-asm.h.
3817         (S1): Likewise.
3818         (SIZE): Likewise.
3819         (__mpn_addmul_1): Do not use BP_SYM.
3820         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
3821         weak_alias.
3822         (bzero): Likewise.
3823         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
3824         "bp-asm.h".
3825         (PARMS): Do not use macros from bp-asm.h.
3826         (S): Likewise.
3827         (SIZE): Likewise.
3828         (__mpn_lshift): Do not use BP_SYM.
3829         * sysdeps/i386/i586/memcpy.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         (memcpy): Likewise.  Do not use BP_SYM.
3836         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
3837         libc_hidden_def and weak_alias.
3838         (mempcpy): Do not use BP_SYM in weak_alias.
3839         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
3840         "bp-asm.h".
3841         (PARMS): Do not use macros from bp-asm.h.
3842         (DEST): Likewise.
3843         (LEN): Likewise.
3844         [!BZERO_P] (CHR): Likewise.
3845         (memset): Likewise.  Do not use BP_SYM.
3846         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
3847         "bp-asm.h".
3848         (PARMS): Do not use macros from bp-asm.h.
3849         (S1): Likewise.
3850         (SIZE): Likewise.
3851         (__mpn_mul_1): Do not use BP_SYM.
3852         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
3853         "bp-asm.h".
3854         (PARMS): Do not use macros from bp-asm.h.
3855         (S): Likewise.
3856         (SIZE): Likewise.
3857         (__mpn_rshift): Do not use BP_SYM.
3858         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
3859         "bp-asm.h".
3860         (PARMS): Do not use macros from bp-asm.h.
3861         (STR): Likewise.
3862         (CHR): Likewise.
3863         (strchr): Likewise.  Do not use BP_SYM.
3864         (index): Do not use BP_SYM in weak_alias.
3865         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
3866         "bp-asm.h".
3867         (PARMS): Do not use macros from bp-asm.h.
3868         (DEST): Likewise.
3869         (SRC): Likewise.
3870         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
3871         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
3872         "bp-asm.h".
3873         (PARMS): Do not use macros from bp-asm.h.
3874         (strlen): Do not use BP_SYM.
3875         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
3876         "bp-asm.h".
3877         (PARMS): Do not use macros from bp-asm.h.
3878         (S1): Likewise.
3879         (S2): Likewise.
3880         (SIZE): Likewise.
3881         (__mpn_sub_n): Do not use BP_SYM.
3882         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
3883         "bp-asm.h".
3884         (PARMS): Do not use macros from bp-asm.h.
3885         (S1): Likewise.
3886         (SIZE): Likewise.
3887         (__mpn_submul_1): Do not use BP_SYM.
3888         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
3889         "bp-asm.h".
3890         (PARMS): Do not use macros from bp-asm.h.
3891         (S1): Likewise.
3892         (S2): Likewise.
3893         (SIZE): Likewise.
3894         (__mpn_add_n): Do not use BP_SYM.
3895         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
3896         weak_alias.
3897         (bzero): Likewise.
3898         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
3899         "bp-asm.h".
3900         (PARMS): Do not use macros from bp-asm.h.
3901         (BLK2): Likewise.
3902         (LEN): Likewise.
3903         (memcmp): Do not use BP_SYM.
3904         (bcmp): Do not use BP_SYM in weak_alias.
3905         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
3906         "bp-asm.h".
3907         (PARMS): Do not use macros from bp-asm.h.
3908         (DEST): Likewise.
3909         (SRC): Likewise.
3910         (LEN): Likewise.
3911         (memcpy): Likewise.  Do not use BP_SYM.
3912         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
3913         "bp-asm.h".
3914         (PARMS): Do not use macros from bp-asm.h.
3915         (DEST): Likewise.
3916         (SRC): Likewise.
3917         (LEN): Likewise.
3918         (memmove): Likewise.  Do not use BP_SYM.
3919         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
3920         "bp-asm.h".
3921         (PARMS): Do not use macros from bp-asm.h.
3922         (DEST): Likewise.
3923         (SRC): Likewise.
3924         (LEN): Likewise.
3925         (__mempcpy): Likewise.  Do not use BP_SYM.
3926         (mempcpy): Do not use BP_SYM in weak_alias.
3927         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
3928         "bp-asm.h".
3929         (PARMS): Do not use macros from bp-asm.h.
3930         (DEST): Likewise.
3931         (LEN): Likewise.
3932         [!BZERO_P] (CHR): Likewise.
3933         (memset): Likewise.  Do not use BP_SYM.
3934         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
3935         "bp-asm.h".
3936         (PARMS): Do not use macros from bp-asm.h.
3937         (STR2): Likewise.
3938         (strcmp): Do not use BP_SYM.
3939         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
3940         "bp-asm.h".
3941         (PARMS): Do not use macros from bp-asm.h.
3942         (STR): Likewise.
3943         (DELIM): Likewise.
3944         [USE_AS_STRTOK_R] (SAVE): Likewise.
3945         (FUNCTION): Likewise.  Do not use BP_SYM.
3946         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
3947         aliases.
3948         (strtok_r): Likewise.
3949         (__GI___strtok_r): Likewise.
3950         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3951         (PARMS): Do not use macros from bp-asm.h.
3952         (S): Likewise.
3953         (SIZE): Likewise.
3954         (__mpn_lshift): Do not use BP_SYM.
3955         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3956         (PARMS): Do not use macros from bp-asm.h.
3957         (STR): Likewise.
3958         (CHR): Likewise.
3959         (__memchr): Do not use BP_SYM.
3960         (memchr): Do not use BP_SYM in weak_alias.
3961         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3962         (PARMS): Do not use macros from bp-asm.h.
3963         (BLK2): Likewise.
3964         (LEN): Likewise.
3965         (memcmp): Do not use BP_SYM.
3966         (bcmp): Do not use BP_SYM in weak_alias.
3967         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
3968         (PARMS): Do not use macros from bp-asm.h.
3969         (S1): Likewise.
3970         (SIZE): Likewise.
3971         (__mpn_mul_1): Do not use BP_SYM.
3972         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
3973         "bp-asm.h".
3974         (PARMS): Do not use macros from bp-asm.h.
3975         (STR): Likewise.
3976         (CHR): Likewise.
3977         (__rawmemchr): Do not use BP_SYM.
3978         (rawmemchr): Do not use BP_SYM in weak_alias.
3979         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3980         (PARMS): Do not use macros from bp-asm.h.
3981         (S): Likewise.
3982         (SIZE): Likewise.
3983         (__mpn_rshift): Do not use BP_SYM.
3984         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3985         (PARMS): Do not use macros from bp-asm.h.
3986         (SIGMSK): Likewise.
3987         (__sigsetjmp): Likewise.  Do not use BP_SYM.
3988         * sysdeps/i386/start.S: Do not include "bp-sym.h".
3989         (_start): Do not use BP_SYM.
3990         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
3991         (PARMS): Do not use macros from bp-asm.h.
3992         (DEST): Likewise.
3993         (SRC): Likewise.
3994         (__stpcpy): Likewise.  Do not use BP_SYM.
3995         (stpcpy): Do not use BP_SYM in weak_alias.
3996         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
3997         "bp-asm.h".
3998         (PARMS): Do not use macros from bp-asm.h.
3999         (DEST): Likewise.
4000         (SRC): Likewise.
4001         (LEN): Likewise.
4002         (__stpncpy): Likewise.  Do not use BP_SYM.
4003         (stpncpy): Do not use BP_SYM in weak_alias.
4004         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
4005         (PARMS): Do not use macros from bp-asm.h.
4006         (STR): Likewise.
4007         (CHR): Likewise.
4008         (strchr): Likewise.  Do not use BP_SYM.
4009         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
4010         "bp-asm.h".
4011         (PARMS): Do not use macros from bp-asm.h.
4012         (STR): Likewise.
4013         (CHR): Likewise.
4014         (__strchrnul): Likewise.  Do not use BP_SYM.
4015         (strchrnul): Do not use BP_SYM in weak_alias.
4016         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
4017         "bp-asm.h".
4018         (PARMS): Do not use macros from bp-asm.h.
4019         (STOP): Likewise.
4020         (strcspn): Do not use BP_SYM.
4021         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
4022         "bp-asm.h".
4023         (PARMS): Do not use macros from bp-asm.h.
4024         (STR): Likewise.
4025         (STOP): Likewise.
4026         (strpbrk): Likewise.  Do not use BP_SYM.
4027         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
4028         "bp-asm.h".
4029         (PARMS): Do not use macros from bp-asm.h.
4030         (STR): Likewise.
4031         (CHR): Likewise.
4032         (strrchr): Likewise.  Do not use BP_SYM.
4033         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
4034         (PARMS): Do not use macros from bp-asm.h.
4035         (SKIP): Likewise.
4036         (strspn): Do not use BP_SYM.
4037         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
4038         (PARMS): Do not use macros from bp-asm.h.
4039         (STR): Likewise.
4040         (DELIM): Likewise.
4041         (SAVE): Likewise.
4042         (FUNCTION): Likewise.  Do not use BP_SYM.
4043         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
4044         aliases.
4045         (strtok_r): Likewise.
4046         (__GI___strtok_r): Likewise.
4047         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
4048         (PARMS): Do not use macros from bp-asm.h.
4049         (S1): Likewise.
4050         (S2): Likewise.
4051         (SIZE): Likewise.
4052         (__mpn_sub_n): Do not use BP_SYM.
4053         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
4054         "bp-asm.h".
4055         (PARMS): Do not use macros from bp-asm.h.
4056         (S1): Likewise.
4057         (SIZE): Likewise.
4058         (__mpn_submul_1): Do not use BP_SYM.
4059         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
4060         <bp-sym.h>.
4061         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
4062         and <bp-asm.h>.
4063         (PARMS): Do not use macros from bp-asm.h.
4064         (FLAGS): Likewise.
4065         (PTID): Likewise.
4066         (TLS): Likewise.
4067         (CTID): Likewise.
4068         (__clone): Do not use BP_SYM.
4069         (clone): Do not use BP_SYM in weak_alias.
4070         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
4071         and <bp-asm.h>.
4072         (PARMS): Do not use macros from bp-asm.h.
4073         (LEN): Likewise.
4074         (__mmap64): Do not use BP_SYM.
4075         (mmap64): Do not use BP_SYM in weak_alias.
4076         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
4077         <bp-sym.h> and <bp-asm.h>.
4078         (PARMS): Do not use macros from bp-asm.h.
4079         (__posix_fadvise64_l64): Do not use BP_SYM.
4080         * sysdeps/unix/sysv/linux/i386/semtimedop.S
4081         (PARMS): Do not use macros from bp-asm.h.
4082         (NSOPS): Likewise.
4083         (semtimedop): Do not use BP_SYM.
4084         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
4085         and <bp-asm.h>.
4086
4087 2013-02-21  Allan McRae  <allan@archlinux.org>
4088
4089         * manual/message.texi (Charset conversion in gettext):
4090         Move @end statement to beginning of line.
4091
4092 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4093
4094         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
4095         static.
4096         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4097         Likewise.
4098
4099         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
4100         (denorm): Likewise.
4101         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
4102         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
4103
4104 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4105
4106         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
4107         tail-call to the resolved function if pltexit isn't needed.
4108
4109 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4110
4111         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
4112         or Y being zero as being unlikely.
4113         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
4114         Likewise.
4115
4116 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
4117
4118         * manual/nss.texi (System Databases and Name Service Switch):
4119         Remove frobnicate @pxref.
4120
4121 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
4122
4123         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
4124         __attribute__ ((unused)) to __attribute__ ((__unused__)).
4125
4126 2013-02-20  Petr Machata  <pmachata@redhat.com>
4127
4128         * elf/elf.h (R_ARM_TARGET1): New macro.
4129         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
4130         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
4131         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
4132         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
4133         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
4134         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
4135         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
4136         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
4137         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
4138         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
4139         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
4140         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
4141         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
4142         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
4143         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
4144         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
4145         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
4146         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
4147         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
4148         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
4149         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
4150         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
4151         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
4152         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
4153         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
4154         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
4155         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
4156         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
4157         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
4158         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
4159         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
4160         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
4161         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
4162         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
4163         (R_ARM_THM_GOT_BREL12): Likewise.
4164         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
4165         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
4166         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
4167         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
4168         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
4169         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
4170         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
4171         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
4172         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
4173
4174 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
4175
4176         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
4177         __attribute_used__ to __attribute__ ((unused)).
4178
4179 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
4180
4181         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
4182         powerpc mpa.c.
4183         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
4184         comment formatting.
4185         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
4186
4187 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
4188
4189         [BZ #13550]
4190         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
4191         Remove macro.
4192         (ENTER): Remove both macro definitions.
4193         (LEAVE): Likewise.
4194         (CHECK_BOUNDS_LOW): Likewise.
4195         (CHECK_BOUNDS_HIGH): Likewise.
4196         (CHECK_BOUNDS_BOTH): Likewise.
4197         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
4198         (RETURN_BOUNDED_POINTER): Likewise.
4199         (RETURN_NULL_BOUNDED_POINTER): Likewise.
4200         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
4201         (POP_ERRNO_LOCATION_RETURN): Likewise.
4202         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
4203         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4204         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
4205         macros.
4206         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4207         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
4208         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
4209         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
4210         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
4211         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
4212         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
4213         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
4214         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
4215         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
4216         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
4217         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
4218         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4219         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
4220         removed macros.
4221         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4222         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
4223         macros.
4224         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4225         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
4226         * sysdeps/i386/i586/memset.S (memset): Likewise.
4227         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
4228         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4229         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
4230         macros.
4231         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4232         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
4233         Change uses of L(2) to L(out).
4234         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
4235         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
4236         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
4237         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4238         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
4239         removed macros.
4240         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4241         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
4242         macros.
4243         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4244         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
4245         (RETURN): Do not use macro LEAVE.
4246         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
4247         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
4248         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
4249         * sysdeps/i386/i686/memset.S (memset): Likewise.
4250         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
4251         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
4252         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
4253         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
4254         Likewise.
4255         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
4256         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
4257         L(1_2) and L(1_3) into L(1).
4258         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
4259         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
4260         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4261         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
4262         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
4263         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
4264         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
4265         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4266         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
4267         macros.
4268         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
4269         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4270         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
4271         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
4272         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4273         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
4274         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
4275         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
4276         * sysdeps/i386/strcspn.S (strcspn): Likewise.
4277         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
4278         * sysdeps/i386/strrchr.S (strrchr): Likewise.
4279         * sysdeps/i386/strspn.S (strspn): Likewise.
4280         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
4281         conditional code.
4282         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
4283         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
4284         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
4285         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
4286         L(1_3) into L(1_1).
4287         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
4288         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4289         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
4290         macros.
4291         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4292
4293 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
4294
4295         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
4296         macro.
4297
4298 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4299
4300         * math/atest-exp.c (exp_mpn): Remove ROUND.
4301         * math/atest-exp2.c (exp_mpn): Likewise.
4302         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
4303
4304         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
4305         * stdlib/tst-tls-atexit-lib.c: Likewise.
4306         * stdlib/tst-tls-atexit.c: Likewise.
4307
4308 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4309
4310         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
4311         and __attribute_alloc_size__.
4312
4313 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4314
4315         * include/programs/xmalloc.h: Change __attribute_alloc_size to
4316         __attribute_alloc_size__.
4317         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
4318         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
4319
4320 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4321
4322         * include/programs/xmalloc.h: New file.
4323         * catgets/gencat.c: Include it.
4324         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
4325         * elf/pldd.c: Likewise.
4326         * iconv/iconv_charmap.c: Likewise.
4327         * iconv/iconvconfig.c: Likewise.
4328         * iconv/strtab.c: Likewise.
4329         * locale/programs/locale.c: Likewise.
4330         * locale/programs/localedef.h: Likewise.
4331         * locale/programs/simple-hash.c: Likewise.
4332         * nscd/nscd.h: Likewise.
4333         * nss/makedb.c: Likewise.
4334         * sysdeps/generic/ldconfig.h: Likewise.
4335
4336 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4337
4338         * Versions.def: Add GLIBC_2.18.
4339         * include/link.h (struct link_map): New member l_tls_dtor_count.
4340         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
4341         (__call_tls_dtors): Likewise.
4342         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
4343         __cxa_thread_atexit_impl.
4344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4345         Likewise.
4346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4347         Likewise.
4348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
4349         Likewise.
4350         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
4351         Likewise.
4352         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4353         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
4354         Likewise.
4355         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
4356         Likewise.
4357         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4358         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4359         Likewise.
4360         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
4361         (tests): Add test case tst-tls-atexit.
4362         (modules-names): Add shared library for tst-tls-atexit.
4363         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
4364         (GLIBC_PRIVATE): Add __call_tls_dtors.
4365         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
4366         for libstdc++.
4367         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
4368         * stdlib/tst-tls-atexit.c: New test case.
4369         * stdlib/tst-tls-atexit-lib.c: New test case.
4370
4371         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
4372
4373         * elf/Versions (ld): Add _dl_find_dso_for_object.
4374         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
4375         * elf/dl-open.c (_dl_find_dso_for_object): New function.
4376         (dl_open_worker): Use _dl_find_dso_for_object.
4377         * elf/dl-sym.c (do_sym): Likewise.
4378         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
4379
4380 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4381
4382         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
4383         Syntactic changes only.
4384         (_dl_runtime_profile): Do a tail-call to the resolved function.
4385
4386 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
4387
4388         [BZ #13550]
4389         * sysdeps/x86_64/bp-asm.h: Remove file.
4390         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
4391         <bp-sym.h> and <bp-asm.h>.
4392         (__clone): Do not use BP_SYM.
4393         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
4394         <bp-sym.h> and <bp-asm.h>.
4395         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4396         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
4397         "bp-asm.h".
4398         (_setjmp): Do not use BP_SYM.
4399         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
4400         "bp-asm.h".
4401         (setjmp): Do not use BP_SYM.
4402         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
4403         libc_hidden_def.
4404         (mempcpy): Do not use BP_SYM in weak_alias.
4405         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
4406         "bp-asm.h".
4407         (strchr): Do not use BP_SYM.
4408         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
4409         "bp-asm.h".
4410         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
4411         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
4412         (_start): Do not use BP_SYM.
4413         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
4414         "bp-asm.h".
4415         (strcat): Do not use BP_SYM.
4416         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
4417         "bp-asm.h".
4418         (STRCMP): Do not use BP_SYM.
4419         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
4420         "bp-asm.h".
4421         (STRCPY): Do not use BP_SYM.
4422         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
4423         "bp-asm.h".
4424         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
4425         "bp-asm.h".
4426         (FUNCTION): Do not use BP_SYM.
4427         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
4428         weak_alias.
4429         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
4430
4431 2013-02-17  Andreas Jaeger  <aj@suse.de>
4432
4433         * time/Versions: Sort entries.
4434         * string/Versions: Likewise.
4435         * resolv/Versions: Likewise.
4436         * posix/Versions: Likewise.
4437         * iconv/Versions: Likewise.
4438         * elf/Versions: Likewise.
4439         * wcsmbs/Versions: Likewise.
4440
4441 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4442
4443         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
4444         loop termination condition.
4445
4446         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
4447         variable to calculate EZ.
4448         (__sqr): Likewise.
4449
4450         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
4451         the lower precision input.
4452
4453 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
4454
4455         [BZ #13550]
4456         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
4457         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
4458         (run-via-rtld-prefix): Do not handle %-bp tests.
4459         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
4460         (all-object-suffixes): Remove .ob.
4461         (bppfx): Remove variable.
4462         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
4463         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
4464         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
4465         [$(build-bounded) = yes] (libtype.ob): Likewise.
4466         * Makerules (elide-routines.ob): Remove variable.
4467         (do-tests-clean): Do not handle *-bp.out.
4468         (common-mostlyclean): Do not handle *-bp and *-bp.out.
4469         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
4470         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
4471         (tests): Do not include $(tests-bp.out).
4472         (xtests): Do not include $(xtests-bp.out).
4473         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
4474         [$(build-bounded) = yes] ($(addprefix
4475         $(objpfx),$(binaries-bounded))): Remove rule.
4476         ($(objpfx)%-bp.out): Remove rule.
4477         * config.make.in (build-bounded): Remove variable.
4478         * crypt/Makefile [$(build-bounded) = yes]
4479         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
4480         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
4481         append to variable.
4482         [$(build-bounded) = yes] (install-lib): Likewise.
4483         [$(build-bounded) = yes] (generated): Likewise.
4484         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
4485         Remove rule.
4486         * intl/Makefile [$(build-bounded) = yes]
4487         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
4488         * math/Makefile [$(build-bounded) = yes]
4489         ($(tests:%=$(objpfx)%-bp): Likewise.
4490         * misc/Makefile [$(build-bounded) = yes]
4491         ($(objpfx)tst-tsearch-bp): Likewise.
4492         * nptl/Makeconfig (bounded-thread-library): Remove variable.
4493         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
4494         Remove dependency.
4495         * string/Makefile (o-objects.ob): Remove variable.
4496         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
4497         (CFLAGS-.ob): Remove variable.
4498         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
4499         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
4500         both definitions of variable.
4501         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
4502         (ASFLAGS-.ob): Remove variable.
4503
4504 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
4505
4506         [BZ #13550]
4507         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
4508         Remove __BOUNDED_POINTERS__ from condition.
4509         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
4510         * string/bits/string2.h [!__NO_STRING_INLINES &&
4511         !__BOUNDED_POINTERS__]: Likewise.
4512         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
4513         Likewise.
4514         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
4515         Remove conditional code.
4516         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
4517         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
4518         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
4519         condition.
4520
4521         [BZ #13550]
4522         * csu/libc-start.c: Do not include <bp-sym.h>.
4523         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
4524         * elf/dl-open.c: Do not include <bp-sym.h>.
4525         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
4526         * math/fegetenv.c: Do not include <bp-sym.h>.
4527         (fegetenv): Do not use BP_SYM in versioned symbols.
4528         * nptl/sysdeps/pthread/bits/libc-lockP.h
4529         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
4530         <bp-sym.h>.
4531         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4532         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
4533         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4534         (__pthread_mutex_destroy): Likewise.
4535         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4536         (__pthread_mutex_lock): Likewise.
4537         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4538         (__pthread_mutex_trylock): Likewise.
4539         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4540         (__pthread_mutex_unlock): Likewise.
4541         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4542         (__pthread_mutexattr_init): Likewise.
4543         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4544         (__pthread_mutexattr_destroy): Likewise.
4545         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4546         (__pthread_mutexattr_settype): Likewise.
4547         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4548         (__pthread_rwlock_init): Likewise.
4549         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4550         (__pthread_rwlock_destroy): Likewise.
4551         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4552         (__pthread_rwlock_rdlock): Likewise.
4553         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4554         (__pthread_rwlock_tryrdlock): Likewise.
4555         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4556         (__pthread_rwlock_wrlock): Likewise.
4557         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4558         (__pthread_rwlock_trywrlock): Likewise.
4559         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4560         (__pthread_rwlock_unlock): Likewise.
4561         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4562         (__pthread_key_create): Likewise.
4563         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4564         (__pthread_setspecific): Likewise.
4565         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4566         (__pthread_getspecific): Likewise.
4567         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
4568         Likewise.
4569         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4570         (_pthread_cleanup_push_defer): Likewise.
4571         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4572         (_pthread_cleanup_pop_restore): Likewise.
4573         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4574         (pthread_setcancelstate): Likewise.
4575         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
4576         <bp-sym.h>.
4577         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
4578         (memchr): Do not use BP_SYM in weak_alias.
4579         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
4580         (fegetenv): Do not use BP_SYM in versioned symbols.
4581         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
4582         (fesetenv): Do not use BP_SYM in versioned symbols.
4583         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
4584         (feupdateenv): Do not use BP_SYM in versioned symbols.
4585         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
4586         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
4587         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
4588         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
4589         (open64): Do not use BP_SYM in weak_alias.
4590         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
4591         (fegetenv): Do not use BP_SYM in versioned symbols.
4592         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
4593         (fesetenv): Do not use BP_SYM in versioned symbols.
4594         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
4595         (feupdateenv): Do not use BP_SYM in versioned symbols.
4596         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
4597         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
4598         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
4599         (feraiseexcept): Do not use BP_SYM in versioned symbols.
4600         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
4601         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
4602         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
4603         <bp-sym.h>.
4604         (__libc_start_main): Do not use BP_SYM.
4605
4606 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4607
4608         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
4609         redundant return line.
4610         (norm): Likewise.
4611         (denorm): Likewise.
4612         (dbl_mp): Likewise.
4613         (sub_magnitudes): Likewise.
4614         (__add): Likewise.
4615         (__sub): Likewise.
4616         (__mul): Likewise.
4617         (__inv): Likewise.
4618         (__dvd): Likewise.
4619         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
4620         (norm): Likewise.
4621         (denorm): Likewise.
4622         (dbl_mp): Likewise.
4623         (sub_magnitudes): Likewise.
4624         (__add): Likewise.
4625         (__sub): Likewise.
4626         (__mul): Likewise.
4627         (__inv): Likewise.
4628         (__dvd): Likewise.
4629
4630         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
4631         instead of __mul.
4632         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
4633         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
4634         (cc32): Likewise.
4635
4636         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
4637         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
4638         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
4639         of __mul for squares.
4640         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
4641         function
4642         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
4643         Likewise.
4644         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
4645         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
4646
4647 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
4648
4649         [BZ #13550]
4650         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
4651         code.
4652         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
4653         prototype or function definition.  Rename ubp_* variables and
4654         parameters.  Remove argv definitions conditional on
4655         [__BOUNDED_POINTERS__].
4656         * debug/backtrace.c (__backtrace): Do not use __unbounded.
4657         * elf/dl-runtime.c (_dl_fixup): Likewise.
4658         * include/set-hooks.h (RUN_HOOK): Likewise.
4659         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
4660         definition.
4661         * string/strcpy.c (strcpy): Do not use __unbounded.
4662         * sysdeps/generic/frame.h (struct layout): Likewise.
4663         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
4664         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
4665         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
4666         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
4667         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
4668         (__backtrace): Likewise.
4669         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
4670         use __ptrvalue.
4671         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
4672         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
4673         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
4674         Likewise.
4675         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
4676         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
4677         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
4678         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4679         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
4680         Do not use __unbounded.
4681         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
4682         Rename __unboundedrlimits parameter to rlimits in prototype.
4683         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
4684         Do not use __unbounded.
4685         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
4686         not use __ptrvalue.
4687         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4688         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
4689         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4690         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
4691         __ptrvalue or __unbounded.
4692         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
4693         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
4694         use __unbounded.
4695         (__new_msgctl): Do not use __ptrvalue.
4696         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
4697         __unbounded.
4698         (__libc_msgrcv): Do not use __ptrvalue.
4699         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
4700         startup_info): Do not use __unbounded.
4701         (__libc_start_main): Likewise.  Rename ubp_* variables and
4702         parameters.  Remove argv definitions conditional on
4703         [__BOUNDED_POINTERS__].
4704         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
4705         __ptrvalue.
4706         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
4707         use __unbounded.
4708         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
4709         or __ptrvalue.
4710         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
4711         use __unbounded.
4712         (__new_shmctl): Do not use __ptrvalue.
4713         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
4714         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
4715         Likewise.
4716         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
4717         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
4718         (__libc_sigaction): Likewise.
4719         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4720         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
4721         Likewise.
4722         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4723
4724 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
4725
4726         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
4727
4728         * string/mempcpy.c: Implement by calling memcpy.
4729
4730 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
4731
4732         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
4733
4734         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
4735         evaluation.
4736
4737         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
4738         values in the mantissa.
4739
4740         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
4741         minimize writes to Z.
4742         (sub_magnitudes): Simplify code a bit.
4743
4744 2013-02-12  Roland McGrath  <roland@hack.frob.com>
4745
4746         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
4747         from the message.  The linker prefixes all warnings with that already.
4748
4749 2013-02-12  Andreas Schwab  <schwab@suse.de>
4750
4751         [BZ #15078]
4752         * posix/regexec.c (extend_buffers): Add parameter min_len.
4753         (check_matching): Pass minimum needed length.
4754         (clean_state_log_if_needed): Likewise.
4755         (get_subexp): Likewise.
4756         * posix/Makefile (tests): Add bug-regex34.
4757         (bug-regex34-ENV): Define.
4758         * posix/bug-regex34.c: New file.
4759
4760         [BZ #11561]
4761         * posix/regcomp.c (parse_bracket_exp): When looking up collating
4762         elements compare against the byte sequence of it, not its name.
4763         * posix/Makefile (tests): Add bug-regex35.
4764         (bug-regex35-ENV): Define.
4765         * posix/bug-regex35.c: New file.
4766
4767 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4768
4769         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
4770         comment.
4771         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
4772         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
4773         (CHECK_EOL): Add undef.
4774
4775 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
4776
4777         * bits/stdlib-bsearch.h: New file.
4778         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
4779         * stdlib/stdlib.h: Likewise.
4780
4781 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4782
4783         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
4784         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
4785         declaration.
4786         * manual/search.texi (Array Search Function): Add missing const in
4787         lfind prototype.
4788         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
4789         declaration to use rlim_t.
4790         (Basic Scheduling Functions): Remove erroneous const from
4791         sched_getparam prototype.  Remove erroneous * from
4792         sched_get_priority_max and sched_get_priority_min prototypes.
4793         (Resource Usage): Fix summary @comment on vtimes to refer to
4794         sys/vtimes.h rather than vtimes.h.
4795         Add missing *s in vtimes prototype.
4796         (Limits on Resources): Fix ulimit prototype to return long int.
4797         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
4798         prototypes to use long int rather than double.
4799         (BSD Random): Fix initstate and setstate to use char *, not void *.
4800         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
4801         prototype to make second argument 'struct aiocb64 *const[]'.
4802         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
4803         (Status of AIO Operations): Remove erroneous const in aio_return and
4804         aio_return64 prototypes.
4805         (Synchronizing I/O): Fix sync prototype to return void.
4806         * manual/startup.texi (Suboptions): Remove an erroneous const in
4807         getsubopt prototype.
4808         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
4809         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
4810         use size_t rather than int.
4811         (Scanning All Users): Likewise for getpwent_r.
4812         (Setting Groups): Add missing const to setgroups prototype.
4813         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
4814         * manual/socket.texi (Host Names): Fix gethostbyaddr and
4815         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
4816         'const void *' rather than 'const char *'.
4817         (Host Address Functions): Likewise for inet_ntop.
4818         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
4819         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
4820         ssize_t for return value.
4821         (Sending Data): Likewise for send, sendto, sendmsg.
4822         (Socket Option Functions): Add a missing const in setsockopt prototype.
4823         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
4824         use wchar_t for the argument.
4825         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
4826         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
4827         take no arguments.
4828         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
4829         double/float/long double for second argument.
4830         Fix return types of significand, significandf, significandl.
4831         * manual/filesys.texi (Setting Permissions): Use mode_t for second
4832         argument in fchmod prototype.
4833         (File Owner): Use uid_t and gid_t in fchown prototype.
4834         (File Times): Add const to utimes, futimes, and lutimes prototypes.
4835         (Making Special Files): Use mode_t and dev_t in mknod prototype.
4836         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
4837         use 'const struct dirent **' as argument types to CMP function pointer
4838         argument.
4839         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
4840         (File Times): Fix summary magic @comment for struct utimbuf and utime
4841         to refer to utime.h, not time.h.
4842         * manual/string.texi (Argz Functions): Add missing const in
4843         argz_extract and argz_next prototypes.
4844         (Finding Tokens in a String): Likewise for basename.
4845         (String/Array Comparison): Fix typo in wcscasecmp prototype.
4846         (Copying and Concatenation): Fix typo in wmemmove prototype.
4847         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
4848         (Signal Stack): Remove erroneous const in sigstack prototype.
4849         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
4850         prototype.
4851         (Simple Calendar Time): Likewise for stime.
4852         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
4853         prototype.
4854         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
4855         say sys/sysctl.h instead.
4856         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
4857         and vsyslog prototypes.
4858
4859 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4860
4861         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
4862         Remove.
4863
4864 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4865
4866         * misc/sys/mman.h: Fix typo in mremap comment.
4867
4868 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4869
4870         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
4871         the '\0' terminator.
4872
4873 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4874
4875         [BZ #13550]
4876         * debug/segfault.c: Don't include <bp-checks.h>.
4877         * sysdeps/generic/bp-checks.h: Remove file.
4878         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
4879         (__GETDENTS): Don't use CHECK_N.
4880         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
4881         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4882         (__getgroups): Don't use CHECK_N.
4883         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4884         (setgroups): Don't use CHECK_N.
4885         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
4886         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4887         (__libc_msgrcv): Don't use CHECK_N.
4888         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
4889         (__libc_msgsnd): Don't use CHECK_N.
4890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
4891         <bp-checks.h>.
4892         (__libc_pread): Don't use CHECK_N.
4893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
4894         include <bp-checks.h>.
4895         (__libc_pread64): Don't use CHECK_N.
4896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
4897         include <bp-checks.h>.
4898         (__libc_pwrite): Don't use CHECK_N.
4899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
4900         include <bp-checks.h>.
4901         (__libc_pwrite64): Don't use CHECK_N.
4902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
4903         <bp-checks.h>.
4904         (__libc_pread): Don't use CHECK_N.
4905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
4906         include <bp-checks.h>.
4907         (__libc_pread64): Don't use CHECK_N.
4908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
4909         include <bp-checks.h>.
4910         (__libc_pwrite): Don't use CHECK_N.
4911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
4912         include <bp-checks.h>.
4913         (__libc_pwrite64): Don't use CHECK_N.
4914         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
4915         (do_pread): Don't use CHECK_N.
4916         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
4917         (do_pread64): Don't use CHECK_N.
4918         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
4919         (do_pwrite): Don't use CHECK_N.
4920         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
4921         (do_pwrite64): Don't use CHECK_N.
4922         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
4923         (__libc_readv): Don't use CHECK_N.
4924         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
4925         (semop): Don't use CHECK_N.
4926         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
4927         <bp-checks.h>.
4928         (semtimedop): Don't use CHECK_N.
4929         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
4930         (__libc_pread): Don't use CHECK_N.
4931         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
4932         <bp-checks.h>.
4933         (__libc_pread64): Don't use CHECK_N.
4934         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
4935         <bp-checks.h>.
4936         (__libc_pwrite): Don't use CHECK_N.
4937         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
4938         <bp-checks.h>.
4939         (__libc_pwrite64): Don't use CHECK_N.
4940         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
4941         <bp-checks.h>.
4942         (__libc_msgrcv): Don't use CHECK_N.
4943         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
4944         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
4945         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
4946         (__libc_writev): Don't use CHECK_N.
4947
4948 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4949
4950         * string/strcpy.c: Removed unused variable.
4951
4952         * Makeconfig (+sysdep-includes): Define with := rather than =.
4953         Use an existing include/ subdir of each sysdeps dir before it.
4954
4955 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4956
4957         * nscd/connection.c (register_traced_file): Comment function.
4958         [HAVE_INOTIFY] (union __inev): Define.
4959         [HAVE_INOTIFY] (inotify_check_files): New function.
4960         [HAVE_INOTIFY] (clear_db_cache): Likewise.
4961         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
4962         clear_db_cache.
4963         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
4964
4965 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4966
4967         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
4968         loaded if not already and that a failure is permanent.
4969
4970 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4971
4972         [BZ #15006]
4973         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
4974         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
4975
4976 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4977
4978         [BZ #13550]
4979         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
4980         (CHECK_1_NULL_OK): Likewise.
4981         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
4982         (__fxstat): Do not use CHECK_1.
4983         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4984         <bp-checks.h>.
4985         (___fxstat64): Do not use CHECK_1.
4986         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
4987         <bp-checks.h>.
4988         (__fxstatat): Do not use CHECK_1.
4989         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
4990         <bp-checks.h>.
4991         (__fxstatat64): Do not use CHECK_1.
4992         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
4993         <bp-checks.h>.
4994         (__fxstat): Do not use CHECK_1.
4995         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
4996         <bp-checks.h>.
4997         (__fxstatat): Do not use CHECK_1.
4998         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4999         <bp-checks.h>.
5000         (__getresgid): Do not use CHECK_1.
5001         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5002         <bp-checks.h>.
5003         (__getresuid): Do not use CHECK_1.
5004         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
5005         <bp-checks.h>.
5006         (__lxstat): Do not use CHECK_1.
5007         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5008         <bp-checks.h>.
5009         (__old_msgctl): Do not use CHECK_1.
5010         (__new_msgctl): Likewise.
5011         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
5012         <bp-checks.h>.
5013         (__new_setrlimit): Do not use CHECK_1.
5014         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5015         <bp-checks.h>.
5016         (__old_shmctl): Do not use CHECK_1.
5017         (__new_shmctl): Likewise.
5018         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
5019         <bp-checks.h>.
5020         (__xstat): Do not use CHECK_1.
5021         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
5022         (__lxstat): Do not use CHECK_1.
5023         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5024         <bp-checks.h>.
5025         (___lxstat64): Do not use CHECK_1.
5026         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
5027         (__old_msgctl): Do not use CHECK_1.
5028         (__new_msgctl): Likewise.
5029         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
5030         <bp-checks.h>.
5031         (__gettimeofday): Do not use CHECK_1.
5032         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
5033         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
5034         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
5035         <bp-checks.h>.
5036         (__gettimeofday): Do not use CHECK_1.
5037         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
5038         (__old_shmctl): Do not use CHECK_1_NULL_OK.
5039         (__new_shmctl): Do not use CHECK_1.
5040         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
5041         <bp-checks.h>.
5042         (do_sigtimedwait): Do not use CHECK_1.
5043         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
5044         <bp-checks.h>.
5045         (do_sigwaitinfo): Do not use CHECK_1.
5046         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
5047         <bp-checks.h>.
5048         (msgctl): Do not use CHECK_1.
5049         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
5050         <bp-checks.h>.
5051         (shmctl): Do not use CHECK_1.
5052         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
5053         (ustat): Do not use CHECK_1.
5054         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
5055         <bp-checks.h>.
5056         (__fxstat): Do not use CHECK_1.
5057         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
5058         <bp-checks.h>.
5059         (__fxstatat): Do not use CHECK_1.
5060         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
5061         <bp-checks.h>.
5062         (__lxstat): Do not use CHECK_1.
5063         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
5064         <bp-checks.h>.
5065         (__xstat): Do not use CHECK_1.
5066         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
5067         (__xstat): Do not use CHECK_1.
5068         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
5069         (___xstat64): Do not use CHECK_1.
5070
5071         [BZ #13550]
5072         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
5073         definitions.
5074         (CHECK_BOUNDS_HIGH): Likewise.
5075         * string/strcpy.c: Do not include <bp-checks.h>.
5076         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
5077
5078 2013-02-07  Roland McGrath  <roland@hack.frob.com>
5079
5080         * nscd/nscd-client.h (__nscd_drop_map_ref):
5081         Add __attribute__ ((unused)).
5082         * nis/nss-nisplus.h (niserr2nss): Likewise.
5083
5084         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
5085         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
5086
5087         * csu/libc-tls.c (init_static_tls, init_slotinfo):
5088         Remove inline keyword.
5089         * include/rounding-mode.h (round_away): Likewise.
5090         * libio/wfileops.c (adjust_wide_data): Likewise.
5091         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
5092         (__m128i_strloadu_tolower): Likewise.
5093         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
5094         (__m128i_strloadu_tolower): Likewise.
5095         * time/mktime.c (ydhms_diff): Likewise.
5096         * locale/elem-hash.h (elem_hash): Likewise.
5097         * locale/setlocale.c (setdata): Likewise.
5098         * posix/regex_internal.h (re_string_char_size_at): Likewise.
5099         (re_string_wchar_at): Likewise.
5100         (bitset_not, bitset_merge, bitset_mask): Likewise.
5101         [!(__GNUC__ > 3)] (inline): Remove macro.
5102         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
5103         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
5104         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
5105         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
5106         * string/memcmp.c (memcmp_bytes): Likewise.
5107         * locale/programs/locarchive.c (compute_hashval): Likewise.
5108         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
5109         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
5110         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
5111         * nss/getent.c (print_rpc, print_protocols): Likewise.
5112         (print_passwd, print_group, print_aliases): Likewise.
5113         * nis/nss-nisplus.h (niserr2nss): Likewise.
5114         * nscd/connections.c (restart_p): Likewise.
5115         Change return type to bool.
5116
5117 2013-02-05  Roland McGrath  <roland@hack.frob.com>
5118
5119         * Makeconfig (all-Depend-files): Add existing
5120         $(sorted-subdirs:=/Depend) files.
5121         (all-subdirs): Remove nss.
5122         * sysdeps/unix/inet/Subdirs: Add it here instead.
5123         * hesiod/Depend: New file.
5124
5125         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
5126         instead of calling alloca.
5127
5128         * io/lseek.c (__lseek): Rename to __libc_lseek.
5129         Define __lseek as an alias.
5130
5131         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
5132
5133 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
5134
5135         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
5136         else clause and remove check for non-standard endianness.
5137
5138 2013-02-04  David S. Miller  <davem@davemloft.net>
5139
5140         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5141
5142 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
5143
5144         [BZ #13550]
5145         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
5146         (__ubp_memchr): Remove prototype.
5147         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
5148         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
5149         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
5150         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
5151         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
5152         Remove alias.
5153         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
5154         (__ubp_memchr): Likewise.
5155         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
5156         (__ubp_memchr): Likewise.
5157         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
5158         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
5159         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
5160         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
5161         CHECK_STRING.
5162         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
5163         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
5164         (__getcwd): Do not use CHECK_STRING.
5165         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5166         <bp-checks.h>.
5167         (__real_chown): Do not use CHECK_STRING.
5168         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
5169         <bp-checks.h>.
5170         (fchownat): Do not use CHECK_STRING.
5171         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
5172         CHECK_STRING.
5173         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5174         <bp-checks.h>.
5175         (__lchown): Do not use CHECK_STRING.
5176         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
5177         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
5178         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
5179         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5181         include <bp-checks.h>.
5182         (truncate64): Do not use CHECK_STRING.
5183         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5184         <bp-checks.h>.
5185         (__real_chown): Do not use CHECK_STRING.
5186         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5187         <bp-checks.h>.
5188         (__lchown): Do not use CHECK_STRING.
5189         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5190         <bp-checks.h>.
5191         (__chown): Do not use CHECK_STRING.
5192         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
5193         <bp-checks.h>.
5194         (truncate64): Do not use CHECK_STRING.
5195         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
5196         Likewise.
5197         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
5198         (__xmknod): Do not use CHECK_STRING.
5199         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
5200         <bp-checks.h>.
5201         (__xmknodat): Do not use CHECK_STRING.
5202         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
5203         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5204
5205 2013-02-04  Andreas Schwab  <schwab@suse.de>
5206
5207         [BZ #14142]
5208         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
5209         * include/netdb.h: Likewise for h_errno.
5210         * elf/tst-stackguard1.c: Include <tls.h>.
5211
5212 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5213
5214         * elf/link.h (struct link_map): Extend the l_addr comment.
5215         * include/link.h (struct link_map): Likewise.
5216
5217 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
5218
5219         [BZ #13550]
5220         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
5221         (BOUNDED_1): Remove macro.
5222         * debug/backtrace.c: Don't include <bp-checks.h>.
5223         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
5224         (__backtrace): Likewise.
5225         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
5226         <bp-checks.h>.
5227         (__backtrace): Don't use BOUNDED_1.
5228         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
5229         <bp-checks.h>.
5230         (__backtrace): Don't use BOUNDED_1.
5231         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
5232         (__backtrace): Don't use BOUNDED_1.
5233         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
5234         (shmat): Don't use BOUNDED_N.
5235
5236 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
5237
5238         [BZ #13550]
5239         * sysdeps/generic/bp-start.h: Remove file.
5240         * csu/libc-start.c: Don't include <bp-start.h>.
5241         (LIBC_START_MAIN): Set up __environ directly instead of using
5242         INIT_ARGV_and_ENVIRON.
5243         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
5244         <bp-start.h>.
5245
5246         [BZ #13550]
5247         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
5248         definitions.
5249         (CHECK_FCNTL): Likewise.
5250         (CHECK_N_PAGES): Likewise.
5251
5252         [BZ #13550]
5253         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
5254         definitions.
5255         (CHECK_SIGSET_NULL_OK): Likewise.
5256         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
5257         <bp-checks.h>.
5258         (sigpending): Don't use CHECK_SIGSET.
5259         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
5260         <bp-checks.h>.
5261         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5262         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
5263         <bp-checks.h>.
5264         (do_sigsuspend): Don't use CHECK_SIGSET.
5265         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
5266         use CHECK_SIGSET.
5267         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
5268         (do_sigwait): Don't use CHECK_SIGSET.
5269         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
5270         use CHECK_SIGSET.
5271         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
5272         include <bp-checks.h>.
5273         (sigpending): Don't use CHECK_SIGSET.
5274         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
5275         include <bp-checks.h>.
5276         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5277         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
5278         <bp-checks.h>.
5279         (sigpending): Don't use CHECK_SIGSET.
5280         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
5281         <bp-checks.h>.
5282         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5283
5284         [BZ #13550]
5285         * sysdeps/generic/bp-semctl.h: Remove file.
5286         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
5287         <bp-checks.h> and <bp-semctl.h>.
5288         (__old_semctl): Don't use CHECK_SEMCTL.
5289         (__new_semctl): Likewise.
5290         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
5291         and <bp-semctl.h>.
5292         (__old_semctl): Don't use CHECK_SEMCTL.
5293         (__new_semctl): Likewise.
5294         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
5295         <bp-checks.h> and <bp-semctl.h>.
5296         (__old_semctl): Don't use CHECK_SEMCTL.
5297         (__new_semctl): Likewise.
5298         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
5299         <bp-checks.h> and <bp-semctl.h>.
5300         (semctl): Don't use CHECK_SEMCTL.
5301
5302         [BZ #13550]
5303         * Makerules (elide-bp-thunks): Remove variable.
5304         (elide-routines.oS): Don't use $(elide-bp-thunks).
5305         (elide-routines.os): Likewise.
5306         (elide-routines.o): Likewise.
5307         (elide-routines.op): Likewise.
5308         (elide-routines.og): Likewise.
5309         (objects): Don't use $(bp-thunks).
5310         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
5311         include.
5312         (common-generated): Do not add s-proto-bp.d.
5313         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
5314         (int): Likewise.
5315         (typ): Likewise.
5316         Do not generate makefile rules for bounded-pointer thunks.
5317         * sysdeps/generic/bp-thunks.h: Remove file.
5318         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
5319         * sysdeps/unix/s-proto-bp.S: Likewise.
5320
5321         [BZ #15062]
5322         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
5323         parts of result separately when argument is not close to line from
5324         -i to i and one part of argument is small.
5325         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5326         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5327         * math/libm-test.inc (cacos_test): Add more tests.
5328         (casin_test): Likewise.
5329         (casinh_test): Likewise.
5330         * sysdeps/i386/fpu/libm-test-ulps: Update.
5331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5332
5333 2013-01-31  David S. Miller  <davem@davemloft.net>
5334
5335         * po/de.po: Update from translation team.
5336
5337 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
5338
5339         * time/tzfile.c: Include stdint.h for SIZE_MAX.
5340
5341 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
5342
5343         * configure.in (_AC_PROG_CC_C89): New definition.
5344         * configure: Regenerate.
5345
5346         * configure.in (AC_PROG_CPP): New definition.
5347         * configure: Regenerate.
5348
5349 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
5350
5351         * debug/tst-backtrace.h: New file.
5352         * debug/tst-backtrace2.c: Include tst-backtrace.h.
5353         (ret): Remove variable.
5354         (x): Likewise.
5355         (FAIL): Remove macro.
5356         (NO_INLINE): Likewise.
5357         (fn1): Use match function instead of strstr.
5358         * debug/tst-backtrace3.c: Include tst-backtrace.h.
5359         (ret): Remove variable.
5360         (x): Likewise.
5361         (FAIL): Remove macro.
5362         (NO_INLINE): Likewise.
5363         (fn): Use match function instead of strstr.
5364         * debug/tst-backtrace4.c: Include tst-backtrace.h.
5365         (ret): Remove variable.
5366         (x): Likewise.
5367         (FAIL): Remove macro.
5368         (NO_INLINE): Likewise.
5369         (handle_signal): Use match function instead of strstr.
5370         * debug/tst-backtrace5.c: Include tst-backtrace.h.
5371         (ret): Remove variable.
5372         (x): Likewise.
5373         (FAIL): Remove macro.
5374         (NO_INLINE): Likewise.
5375         (handle_signal): Use match function instead of strstr.
5376
5377 2013-01-23  Roland McGrath  <roland@hack.frob.com>
5378
5379         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
5380
5381 2013-01-23  David S. Miller  <davem@davemloft.net>
5382
5383         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5384         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
5385         argument of CAS if possible.
5386         * sysdeps/sparc/sparc64/bits/atomic.h
5387         (__arch_compare_and_exchange_val_32_acq): Likewise.
5388         (__arch_compare_and_exchange_val_64_acq): Likewise.
5389
5390 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
5391
5392         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
5393         * sysdeps/posix/ulimit.c: ... this.
5394         Include <limits.h>.
5395         * sysdeps/unix/bsd/ulimit.c: Remove file.
5396
5397 2013-01-23  Adam Conrad  <adconrad@0c3.net>
5398
5399         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
5400         (LDFLAGS-tst-array5): Likewise.
5401
5402 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
5403
5404         [BZ #15036]
5405         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
5406         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
5407         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
5408         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
5409
5410 2013-01-21  David S. Miller  <davem@davemloft.net>
5411
5412         * sysdeps/sparc/backtrace.c: New file.
5413         * sysdeps/sparc/sparc32/backtrace.h: New file.
5414         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
5415         * sysdeps/sparc/sparc64/backtrace.h: New file.
5416         * sysdeps/sparc/sparc64/backtrace.c: Delete.
5417         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
5418         -funwind-tables.
5419
5420 2013-01-21  Andreas Schwab  <schwab@suse.de>
5421
5422         [BZ #15020]
5423         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
5424         closed its stdout.
5425
5426 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
5427
5428         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
5429         "mpa2.h".
5430         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5431
5432 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
5433             Mark Mitchell  <mark@codesourcery.com>
5434             Tom de Vries  <tom@codesourcery.com>
5435             Paul Pluzhnikov  <ppluzhnikov@google.com>
5436
5437         * debug/tst-backtrace2.c: New file.
5438         * debug/tst-backtrace3.c: Likewise.
5439         * debug/tst-backtrace4.c: Likewise.
5440         * debug/tst-backtrace5.c: Likewise.
5441         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
5442         (CFLAGS-tst-backtrace3.c): Likewise.
5443         (CFLAGS-tst-backtrace4.c): Likewise.
5444         (CFLAGS-tst-backtrace5.c): Likewise.
5445         (LDFLAGS-tst-backtrace2): Likewise.
5446         (LDFLAGS-tst-backtrace3): Likewise.
5447         (LDFLAGS-tst-backtrace4): Likewise.
5448         (LDFLAGS-tst-backtrace5): Likewise.
5449         (tests): Add new tests tst-backtrace2, tst-backtrace3,
5450         tst-backtrace4 and tst-backtrace5.
5451
5452 2013-01-18  Anton Blanchard  <anton@samba.org>
5453             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5454
5455         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
5456         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
5457         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
5458         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
5459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5460         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
5461         "+r" and remove output regs list as redundant.  Add explicit inline
5462         asm to specify register of return val to work around compiler codegen
5463         bug.  Remove (int) cast on return value.  Add return type parameter to
5464         use in macro so that this macro does not truncate return value for
5465         64-bit values.
5466         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
5467         pass to INTERNAL_VSYSCALL_NCS.
5468         (INLINE_VSYSCALL): Add 'long int' as return type to
5469         INTERNAL_VSYSCALL_NCS macro invocation.
5470         (INTERNAL_VSYSCALL): Add 'long int' as return type to
5471         INTERNAL_VSYSCALL_NCS macro invocation.
5472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5473
5474 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5475
5476         [BZ #14496]
5477         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
5478         Fix application of SIMD FP exception mask.
5479
5480         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
5481         mp_no from a power of two.
5482         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
5483         __mpexp_twomm1.  Use __pow_mp.
5484
5485         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
5486         multiplication.
5487
5488 2013-01-17  David S. Miller  <davem@davemloft.net>
5489
5490         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5491
5492 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
5493
5494         [BZ #15023]
5495         * include/complex.h: Condition contents on [!_COMPLEX_H].
5496         (__kernel_casinhf): New prototype.
5497         (__kernel_casinh): Likewise.
5498         (__kernel_casinhl): Likewise.
5499         * math/Makefile (libm_calls): Add k_casinh.
5500         * math/k_casinh.c: New file.
5501         * math/k_casinhf.c: Likewise.
5502         * math/k_casinhl.c: Likewise.
5503         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
5504         finite nonzero arguments.
5505         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
5506         finite nonzero arguments.
5507         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
5508         finite nonzero arguments.
5509         * math/s_casinh.c: Do not include <float.h>.
5510         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
5511         * math/s_casinhf.c: Do not include <float.h>.
5512         (__casinhf): Move code for finite nonzero arguments to
5513         k_casinhf.c.
5514         * math/s_casinhl.c: Do not include <float.h>.
5515         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
5516         redefine.
5517         (__casinhl): Move code for finite nonzero arguments to
5518         k_casinhl.c.
5519         * math/libm-test.inc (cacos_test): Add more tests.
5520         * sysdeps/i386/fpu/libm-test-ulps: Update.
5521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5522
5523 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
5524
5525         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
5526         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
5527         [!HAVE_MREMAP]: Remove [defined linux] case.
5528         * malloc/arena.c: Do not include <malloc-sysdep.h>.
5529
5530 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5531
5532         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
5533
5534 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
5535
5536         * elf/elf.h (R_386_SIZE32): New relocation.
5537         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
5538         R_386_SIZE32.
5539         (elf_machine_rela): Likewise.
5540         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5541         R_X86_64_SIZE64 and R_X86_64_SIZE32.
5542
5543 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
5544
5545         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
5546         (FP_FAST_FMA): Do not define.
5547         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
5548         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
5549         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
5550         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
5551         !_SOFT_FLOAT]: Likewise.
5552         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
5553         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
5554         value.
5555         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
5556         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
5557         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
5558         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
5559         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
5560         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
5561         file.
5562
5563 2013-01-16  Andreas Schwab  <schwab@suse.de>
5564
5565         [BZ #14327]
5566         * include/stdlib.h (__mktemp): Add declaration.
5567         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
5568         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
5569
5570 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5571
5572         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
5573         definitions.
5574         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5575         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
5576         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
5577         definitions here.
5578         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
5579         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
5580         definitions.
5581         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
5582         and ONE.
5583         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
5584         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
5585         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
5586         definitions.
5587         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
5588         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
5589         definitions.
5590         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5591
5592         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
5593
5594 2013-01-15  David S. Miller  <davem@davemloft.net>
5595
5596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5597         trunc{,f} to libm-sysdep_routes.
5598         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
5600         file.
5601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
5602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
5603         file.
5604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
5605         file.
5606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
5607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
5608         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
5609         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
5610         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
5611         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
5612         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
5613         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
5614
5615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5616         nearbyint{,f} to libm-sysdep_routes.
5617         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
5619         New file.
5620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
5621         file.
5622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
5623         New file.
5624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
5625         file.
5626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
5627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
5628         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
5629         file.
5630         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
5631         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
5632         file.
5633         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
5634         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
5635         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
5636
5637         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5638         libc_feholdexcept and libc_fesetenv.
5639
5640 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
5641
5642         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
5643
5644 2013-01-14  David S. Miller  <davem@davemloft.net>
5645
5646         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
5647         (SPARC_ASM_VIS2_IFUNC): Likewise.
5648         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
5649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
5650         use of 'siam' instruction.
5651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
5652         Likewise.
5653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
5654         Likewise.
5655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
5656         Likewise.
5657         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
5658         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5659         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
5660         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
5661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
5662         file.
5663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
5664         file.
5665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
5666         file.
5667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
5668         file.
5669         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
5670         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
5671         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
5672         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
5673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
5674         new VIS2 routines.
5675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
5678         Likewise.
5679         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5680         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5681         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5682         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
5684         routines to libm-sysdep_routines.
5685         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5686
5687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5688         fdim/fdimf to libm-sysdep_routines.
5689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
5690         file.
5691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
5692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
5693         file.
5694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
5695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
5696         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
5697         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
5698         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
5699         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
5700         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
5701
5702 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
5703
5704         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
5705         to optimize copies.
5706
5707         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
5708         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5709         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5710
5711         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
5712         local variable MPTWO.
5713         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
5714         Likewise.
5715
5716 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5717
5718         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
5719         GLOB_NOESCAPE.
5720
5721 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5722
5723         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
5724
5725 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5726
5727         * manual/pattern.texi (glob_t): Document gl_flags.
5728         (glob64_t): Likewise.
5729
5730 2013-01-11  David S. Miller  <davem@davemloft.net>
5731
5732         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
5733         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
5734         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
5735         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
5736         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
5737         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
5738         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
5739         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
5740         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
5741         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
5742         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
5743         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
5744         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
5745
5746         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5747         sparc V9 rather than using V8 code.
5748         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5749         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5750
5751         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5752         Move to...
5753         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
5754         Here.
5755
5756 2013-01-11  Roland McGrath  <roland@hack.frob.com>
5757
5758         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
5759         not in the main loop.
5760         * configure: Regenerated.
5761
5762 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
5763
5764         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
5765         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
5766         to just #else.
5767         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
5768         [!__GLIBC_HAVE_LONG_LONG] case.
5769         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
5770         condition to just #else.
5771         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
5772         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
5773         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
5774         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
5775         unconditional.
5776         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
5777         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5778         #elif condition to just #else.
5779         * sysdeps/unix/sysv/linux/sys/sysmacros.h
5780         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
5781         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5782         #elif condition to just #else.
5783
5784 2013-01-11  Steve Ellcey  <sellcey@mips.com>
5785
5786         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
5787         (EF_MIPS_ARCH_64): Fix value.
5788         (EF_MIPS_ARCH_32R2): New.
5789         (EF_MIPS_ARCH_64R2): New.
5790
5791 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5792
5793         * Makeconfig (+link-pie-before-libc): New.
5794         (+link-pie-after-libc): Likewise.
5795         (+link-pie-tests): Likewise.
5796         (+link-pie): Rewritten.
5797         (link-before-libc): Remove $(config-LDFLAGS).
5798         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
5799         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
5800         (config-LDFLAGS): Renamed to ...
5801         (rtld-LDFLAGS): This.
5802         (rtld-tests-LDFLAGS): New macro.
5803         (link-libc-rpath-link): Likewise.
5804         (link-libc-tests-rpath-link): Likewise.
5805         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
5806         (link-libc): Prepand $(link-libc-rpath-link).
5807         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
5808         (test-program-prefix): New macro.
5809         (test-via-rtld-prefix): Likewise.
5810         (test-program-cmd): Likewise.
5811         (host-test-program-cmd): Likewise.
5812         * Makefile ($(common-objpfx)testrun.sh): Replace
5813         $(run-program-prefix) with $(test-program-prefix).
5814         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
5815         $(rtld-LDFLAGS).
5816         ($(common-objpfx)shlib.lds): Likewise.
5817         (build-module-helper): Likewise.
5818         ($(common-objpfx)format.lds): Likewise.
5819         * Rules (binaries-pie-tests): New.
5820         (binaries-pie-notests): Likewise.
5821         (binaries-pie): Rewritten.
5822         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
5823         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
5824         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
5825         (make-test-out): Replace $(host-built-program-cmd) with
5826         $(host-test-program-cmd).
5827         * config.make.in (build-hardcoded-path-in-tests): New variable.
5828         * configure.in (--enable-hardcoded-path-in-tests): New configure
5829         option.
5830         (hardcoded_path_in_tests): New AC_SUBST.
5831         * configure: Regenerated.
5832         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
5833         $(built-program-cmd) with $(test-program-cmd).
5834         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
5835         (test_program_cmd): This.
5836         * elf/Makefile ($(objpfx)order.out): Run test with
5837         $(test-program-prefix).
5838         ($(objpfx)order2.out): Likewise.
5839         ($(objpfx)tst-initorder.out): Likewise.
5840         ($(objpfx)tst-initorder2.out): Likewise.
5841         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
5842         $(test-program-cmd).
5843         ($(objpfx)tst-array1-static.out): Likewise.
5844         ($(objpfx)tst-array2.out): Likewise.
5845         ($(objpfx)tst-array3.out): Likewise.
5846         ($(objpfx)tst-array4.out): Likewise.
5847         ($(objpfx)tst-array5.out): Likewise.
5848         ($(objpfx)tst-array5-static.out): Likewise.
5849         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
5850         $(test-program-cmd).
5851         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
5852         $(run-program-prefix) with $(test-program-prefix).
5853         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
5854         (test_program_prefix): This.
5855         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
5856         $(run-program-prefix) with $(test-program-prefix).
5857         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
5858         (test_program_prefix): This.
5859         * iconvdata/tst-tables.sh: Likewise.
5860         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
5861         $(run-program-prefix) with $(test-program-prefix).
5862         ($(objpfx)tst-translit.out): Likewise.
5863         ($(objpfx)tst-gettext2.out): Likewise.
5864         ($(objpfx)tst-gettext4.out): Likewise.
5865         ($(objpfx)tst-gettext6.out): Likewise.
5866         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
5867         (test_program_prefix): This.
5868         * intl/tst-gettext2.sh: Likewise.
5869         * intl/tst-gettext4.sh  Likewise.
5870         * intl/tst-gettext6.sh: Likewise.
5871         * intl/tst-translit.sh: Likewise.
5872         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
5873         with $(test-program-cmd).
5874         * libio/Makefile ($(objpfx)test-freopen.out): Replace
5875         $(run-program-prefix) with $(test-program-prefix).
5876         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
5877         (test_program_prefix): This.
5878         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
5879         $(run-program-prefix) with $(test-program-prefix).
5880         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
5881         (test_program_prefix): This.
5882         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
5883         * posix/Makefile ($(objpfx)globtest.out): Replace
5884         $(run-via-rtld-prefix) and $(test-wrapper) with
5885         $(test-program-prefix) and $(test-via-rtld-prefix).
5886         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
5887         $(test-program-prefix).
5888         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
5889         $(host-test-program-cmd).
5890         (tst-spawn-ARGS): Likewise.
5891         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
5892         $(test-program-prefix).
5893         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
5894         (test_via_rtld_prefix): This.
5895         (test_wrapper): Renamed to ...
5896         (test_program_prefix): This.
5897         (run_program_prefix): Replaced by test_program_prefix.
5898         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
5899         (test_program_prefix): This.
5900         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
5901         with $(host-test-program-cmd).
5902         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
5903         $(run-program-prefix) with $(test-program-prefix).
5904         ($(objpfx)tst-printf.out): Likewise.
5905         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
5906         $(test-program-cmd).
5907         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
5908         (test_program_prefix): This.
5909         * stdio-common/tst-unbputc.sh: Likewise.
5910         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
5911         $(run-program-prefix) with $(test-program-prefix).
5912         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
5913         (test_program_prefix): This.
5914         * string/Makefile ($(objpfx)tst-svc.out):  Replace
5915         $(built-program-cmd) with $(test-program-cmd).
5916
5917 2013-01-11  Andreas Jaeger  <aj@suse.de>
5918
5919         [BZ #15003]
5920         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
5921         value. Sync with Linux 3.7.
5922
5923 2013-01-10  David S. Miller  <davem@davemloft.net>
5924
5925         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
5926         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5927         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5928
5929 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5930
5931         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
5932         never set.
5933         * configure: Regenerated.
5934
5935 2013-01-10  David S. Miller  <davem@davemloft.net>
5936
5937         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5938         sparc V9 rather than using V8 code.
5939         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5940         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5941
5942 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5943
5944         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
5945         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
5946         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
5947         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
5948         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
5949         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
5950         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
5951         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
5952         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
5953         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
5954         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
5955         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
5956         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
5957         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
5958         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
5959         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
5960         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
5961         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
5962         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
5963         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
5964         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
5965         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
5966         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
5967         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
5968         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
5969         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
5970         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
5971
5972 2013-01-10  David S. Miller  <davem@davemloft.net>
5973
5974         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5975
5976 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5977
5978         * posix/Makefile (tests-static): New variable.
5979         (tests): Add $(tests-static).
5980         (tst-exec-static-ARGS): New variable.
5981         (tst-spawn-static-ARGS): Likewise.
5982         * posix/tst-exec-static.c: New file.
5983         * posix/tst-spawn-static.c: Likewise.
5984         * posix/tst-exec.c: Support run directly.
5985         * posix/tst-spawn.c: Likewise.
5986
5987 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
5988
5989         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
5990         long.
5991         * math/bits/mathcalls.h (llrint): Likewise.
5992         (llround): Likewise.
5993         * stdlib/stdlib.h (struct drand48_data): Likewise.
5994         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
5995         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
5996         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
5997         Likewise.
5998         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
5999         Likewise.
6000         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
6001         (elf_greg_t): Likewise.
6002         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
6003         (__jmp_buf): Likewise.
6004         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
6005         definitions.
6006         (llrint): Likewise, for all definitions.
6007         (llrintl): Likewise.
6008
6009         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
6010         Remove [__GNUC__] condition.
6011         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
6012         condition to just [__USE_ISOC99].
6013         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
6014
6015 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
6016
6017         [BZ #14200]
6018         * sysdeps/unix/sysv/linux/x86/bits/environments.h
6019         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
6020         defined.
6021         (_POSIX_V6_ILP32_OFF32): Likewise.
6022         (_XBS5_ILP32_OFF32): Likewise.
6023         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
6024         (__ILP32_OFFBIG_LDFLAGS): Likewise.
6025
6026 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6027
6028         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
6029
6030         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
6031         doubles __mpexp_twomm1.  Adjust usage.
6032         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
6033         Remove.
6034
6035 2013-01-10  Andreas Schwab  <schwab@suse.de>
6036
6037         [BZ #14964]
6038         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
6039         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
6040
6041 2013-01-09  David S. Miller  <davem@davemloft.net>
6042
6043         [BZ #15003]
6044         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
6045         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
6046         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
6047         TCP_FASTOPEN): Define.
6048         (tcp_repair_opt): New structure.
6049         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
6050         enum values.
6051         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
6052         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
6053         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
6054         (tcp_cookie_transactions): New structure.
6055
6056 2013-01-09  Anton Blanchard  <anton@samba.org>
6057
6058         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
6059         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
6060         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
6061         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
6062
6063 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
6064
6065         * include/features.h (__USE_ANSI): Remove.
6066
6067 2013-01-09  Roland McGrath  <roland@hack.frob.com>
6068
6069         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
6070
6071         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
6072
6073 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
6074
6075         * sysdeps/s390/fpu/libm-test-ulps: Update.
6076
6077         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6078
6079         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
6080         (__acr): Likewise.
6081         (__cpy): Likewise.
6082         (norm): Likewise.
6083         (denorm): Likewise.
6084         (__mp_dbl): Likewise.
6085         (__dbl_mp): Likewise.
6086         (add_magnitudes): Likewise.
6087         (sub_magnitudes): Likewise.
6088         (__add): Likewise.
6089         (__sub): Likewise.
6090         (__mul): Likewise.
6091         (__inv): Likewise.
6092         (__dvd): Likewise.
6093         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
6094         (__acr): Likewise.
6095         (__cpy): Likewise.
6096         (norm): Likewise.
6097         (denorm): Likewise.
6098         (__mp_dbl): Likewise.
6099         (__dbl_mp): Likewise.
6100         (add_magnitudes): Likewise.
6101         (sub_magnitudes): Likewise.
6102         (__add): Likewise.
6103         (__sub): Likewise.
6104         (__mul): Likewise.
6105         (__inv): Likewise.
6106         (__dvd): Likewise.
6107         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
6108         (__acr): Likewise.
6109         (__cpy): Likewise.
6110         (norm): Likewise.
6111         (denorm): Likewise.
6112         (__mp_dbl): Likewise.
6113         (__dbl_mp): Likewise.
6114         (add_magnitudes): Likewise.
6115         (sub_magnitudes): Likewise.
6116         (__add): Likewise.
6117         (__sub): Likewise.
6118         (__mul): Likewise.
6119         (__inv): Likewise.
6120         (__dvd): Likewise.
6121
6122 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
6123
6124         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
6125         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
6126         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
6127         2 && __USE_EXTERN_INLINES]: Likewise.
6128
6129 2013-01-08  Andreas Jaeger  <aj@suse.de>
6130
6131         [BZ# 14985]
6132         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
6133         Remove.
6134         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
6135         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
6136
6137 2013-01-07  Anton Blanchard  <anton@samba.org>
6138
6139         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
6140         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
6141         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
6142         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
6143         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6144         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
6145         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
6146         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
6147         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6148         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
6149         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6150         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6151         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
6152         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6153         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
6154         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6155         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6156         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6157         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
6158         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6159         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
6160         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
6161         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
6162         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
6163         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
6164         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6165         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
6166         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
6167         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
6168         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
6169         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
6170         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6171         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
6172         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6173         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6174         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
6175         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6176         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
6177         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
6178         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
6179         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
6180         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
6181         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
6182
6183 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
6184
6185         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
6186         (__MALLOC_PMT): Likewise.
6187         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
6188         [__GNUC__], only on [_LIBC].
6189         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
6190         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
6191         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
6192         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
6193         forward declaration.
6194         (realloc_hook_ini): Likewise.
6195         (memalign_hook_ini): Likewise.
6196         (__libc_memalign): Do not use __MALLOC_PMT in variable
6197         declaration.
6198         (__libc_valloc): Likewise.
6199         (__libc_pvalloc): Likewise.
6200         (__libc_calloc): Likewise.
6201         (__posix_memalign): Likewise.
6202
6203         [BZ #14996]
6204         * math/s_casinh.c: Include <float.h>.
6205         (__casinh): Do not do computation with squaring and square root
6206         for large arguments.
6207         * math/s_casinhf.c: Include <float.h>.
6208         (__casinhf): Do not do computation with squaring and square root
6209         for large arguments.
6210         * math/s_casinhl.c: Include <float.h>.
6211         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
6212         (__casinhl): Do not do computation with squaring and square root
6213         for large arguments.
6214         * math/libm-test.inc (casin_test): Add more tests.
6215         (casinh_test): Likewise.
6216         * sysdeps/i386/fpu/libm-test-ulps: Update.
6217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6218
6219 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
6220
6221         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
6222         (__x86_64_raw_data_cache_size): Likewise.
6223         (__x86_64_data_cache_size_half): Likewise.
6224         (__x86_64_raw_data_cache_size_half): Likewise.
6225         (__x86_64_shared_cache_size): Likewise.
6226         (__x86_64_raw_shared_cache_size): Likewise.
6227         (__x86_64_shared_cache_size_half): Likewise.
6228         (__x86_64_raw_shared_cache_size_half): Likewise.
6229         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
6230         to ...
6231         (__x86_data_cache_size): This.
6232         (__x86_64_raw_data_cache_size): Renamed to ...
6233         (__x86_raw_data_cache_size): This.
6234         (__x86_64_data_cache_size_half): Renamed to ...
6235         (__x86_data_cache_size_half): This.
6236         (__x86_64_raw_data_cache_size_half): Renamed to ...
6237         (__x86_raw_data_cache_size_half): This.
6238         (__x86_64_shared_cache_size): Renamed to ...
6239         (__x86_shared_cache_size): This.
6240         (__x86_64_raw_shared_cache_size): Renamed to ...
6241         (__x86_raw_shared_cache_size): This.
6242         (__x86_64_shared_cache_size_half): Renamed to ...
6243         (__x86_shared_cache_size_half): This.
6244         (__x86_64_raw_shared_cache_size_half): Renamed to ...
6245         (__x86_raw_shared_cache_size_half): This.
6246         * sysdeps/x86_64/memcpy.S: Updated.
6247         * sysdeps/x86_64/memset.S: Likewise.
6248         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6249         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
6250         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6251
6252 2013-01-04  David S. Miller  <davem@davemloft.net>
6253
6254         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6255
6256 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
6257
6258         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
6259         1 to avoid redefinition warning.
6260         (__USE_GNU): Don't define.
6261         (init_signaling_nan): Protoize.
6262
6263         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6264
6265 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6266
6267         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
6268         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
6269         (__cpymn): Likewise.
6270         (norm): Remove commented code.
6271         (denorm): Likewise.
6272         (__mp_dbl): Likewise.
6273         (__inv): Likewise.
6274         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
6275         (__cpymn): Likewise.
6276         (norm): Remove commented code.
6277         (denorm): Likewise.
6278         (__mp_dbl): Likewise.
6279         (__inv): Likewise.
6280
6281         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
6282         mp_no value for 1.0 and 2.0.
6283         (norm): Use RADIXI instead of radixi.d.
6284         (denorm): Likewise.
6285         (__mul): Use 0.0 instead of zero.d.
6286         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
6287         mp_no value for 1.0 and 2.0.
6288         (norm): Use RADIXI instead of radixi.d.
6289         (denorm): Likewise.
6290         (__mul): Use 0.0 instead of zero.d.
6291
6292 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
6293
6294         [BZ #14994]
6295         * math/s_casinh.c (__casinh): Reduce finite argument to first
6296         quadrant then set signs of results at the end.
6297         * math/s_casinhf.c (__casinhf): Likewise.
6298         * math/s_casinhl.c (__casinhl): Likewise.
6299         * math/libm-test.inc (casin_test): Add more tests.
6300         (casinh_test): Likewise.
6301         * sysdeps/i386/fpu/libm-test-ulps: Update.
6302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6303
6304 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6305
6306         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
6307
6308         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
6309
6310         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
6311         declarations.
6312         (denorm): Likewise.
6313         (__mp_dbl): Likewise.
6314         (__inv): Likewise.
6315
6316         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
6317         and adjust the header comment.
6318
6319         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
6320         variable name from declaration.
6321
6322 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
6323
6324         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6325         Initialize COMMON_CPUID_INDEX_7 element.
6326         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
6327         (CPUID_RTM): Likewise.
6328         (HAS_RTM): Likewise.
6329         (COMMON_CPUID_INDEX_7): New enum.
6330
6331 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
6332
6333         [BZ #14981]
6334         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
6335         size is zero, record memory as freed.
6336
6337 2013-01-03  Andreas Jaeger  <aj@suse.de>
6338
6339         * po/ia.po: Add new Interlingua translation.
6340
6341 2012-01-03  Allan McRae  <allan@archlinux.org>
6342
6343         * locale/programs/localedef.c: Fix description of '--posix' flag.
6344
6345 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
6346
6347         * NEWS: Update dates in second copyright notice.
6348         * README: Update copyright dates in example.
6349         * manual/libc.texinfo: Update copyright dates.
6350         * scripts/test-installation.pl: Update copyright date in --version
6351         output.
6352
6353         * hurd/ctty-input.c: Fix copyright notice formatting.
6354         * hurd/ctty-output.c: Likewise.
6355         * hurd/dtable.c: Likewise.
6356         * hurd/hurd-raise.c: Likewise.
6357         * hurd/hurdprio.c: Likewise.
6358         * hurd/msgportdemux.c: Likewise.
6359         * misc/sys/file.h: Likewise.
6360         * misc/sys/ioctl.h: Likewise.
6361         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
6362         * sysdeps/mach/hurd/chdir.c: Likewise.
6363         * sysdeps/mach/hurd/fchdir.c: Likewise.
6364         * sysdeps/mach/hurd/rename.c: Likewise.
6365         * sysdeps/mach/hurd/rmdir.c: Likewise.
6366         * sysdeps/mach/hurd/seekdir.c: Likewise.
6367         * sysdeps/mach/hurd/setsid.c: Likewise.
6368         * sysdeps/posix/wait3.c: Likewise.
6369
6370         * All files with FSF copyright notices: Update copyright dates
6371         using scripts/update-copyrights.
6372         * intl/plural.c: Regenerated.
6373         * locale/programs/charmap-kw.h: Likewise.
6374         * locale/programs/locfile-kw.h: Likewise.
6375
6376 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6377
6378         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
6379         four values.
6380
6381         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
6382         calculation loop and add branch prediction.
6383
6384         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
6385         check access beyond bounds of m1np.
6386
6387         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
6388         MPTWO.
6389         (__inv): Remove local variable MPTWO to use the global
6390         constant.
6391         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
6392         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
6393         variable MPTWO.
6394         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
6395         MP3HALFS static const.
6396
6397 2013-01-01  David S. Miller  <davem@davemloft.net>
6398
6399         * po/ca.po: Update from translation team.
6400
6401 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
6402
6403         * scripts/update-copyrights: New file.
6404         * Makeconfig: Reformat copyright notice.
6405         * ctype/ctype.h: Likewise.
6406         * debug/swprintf_chk.c: Likewise.
6407         * elf/dl-cache.c: Likewise.
6408         * elf/dl-debug.c: Likewise.
6409         * elf/dl-object.c: Likewise.
6410         * grp/initgroups.c: Likewise.
6411         * hurd/Makefile: Likewise.
6412         * hurd/hurd/signal.h: Likewise.
6413         * hurd/hurdfault.c: Likewise.
6414         * hurd/hurdioctl.c: Likewise.
6415         * hurd/hurdlookup.c: Likewise.
6416         * hurd/intr-msg.c: Likewise.
6417         * iconv/gconv_open.c: Likewise.
6418         * libio/swprintf.c: Likewise.
6419         * locale/lc-ctype.c: Likewise.
6420         * locale/nl_langinfo.c: Likewise.
6421         * mach/Machrules: Likewise.
6422         * mach/Makefile: Likewise.
6423         * malloc/obstack.h: Likewise.
6424         * manual/Makefile: Likewise.
6425         * manual/tsort.awk: Likewise.
6426         * misc/bits/stab.def: Likewise.
6427         * nis/nis_print_group_entry.c: Likewise.
6428         * nis/nis_table.c: Likewise.
6429         * nis/nss_compat/compat-pwd.c: Likewise.
6430         * nis/nss_compat/compat-spwd.c: Likewise.
6431         * po/Makefile: Likewise.
6432         * posix/fnmatch.c: Likewise.
6433         * posix/regex.h: Likewise.
6434         * resolv/Makefile: Likewise.
6435         * resolv/nss_dns/dns-network.c: Likewise.
6436         * resolv/res_hconf.c: Likewise.
6437         * scripts/gen-sorted.awk: Likewise.
6438         * soft-fp/soft-fp.h: Likewise.
6439         * stdio-common/printf.h: Likewise.
6440         * stdlib/monetary.h: Likewise.
6441         * stdlib/random.c: Likewise.
6442         * stdlib/random_r.c: Likewise.
6443         * sysdeps/generic/Makefile: Likewise.
6444         * sysdeps/gnu/Makefile: Likewise.
6445         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6446         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6447         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6448         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6449         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6450         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6451         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6452         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6453         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6454         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6455         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6456         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6457         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6458         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6459         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
6460         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6461         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6462         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6463         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6464         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6465         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6466         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6467         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6468         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
6469         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
6470         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6471         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
6472         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
6473         * sysdeps/mach/hurd/errnos.awk: Likewise.
6474         * sysdeps/mach/hurd/fork.c: Likewise.
6475         * sysdeps/mach/hurd/getcwd.c: Likewise.
6476         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
6477         * sysdeps/mach/hurd/mmap.c: Likewise.
6478         * sysdeps/mach/hurd/utimes.c: Likewise.
6479         * sysdeps/mach/hurd/xmknod.c: Likewise.
6480         * sysdeps/posix/profil.c: Likewise.
6481         * sysdeps/posix/readdir_r.c: Likewise.
6482         * sysdeps/powerpc/bits/mathdef.h: Likewise.
6483         * sysdeps/powerpc/bits/setjmp.h: Likewise.
6484         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
6485         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
6486         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6487         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
6488         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
6489         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6490         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6491         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
6492         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
6493         * sysdeps/pthread/lio_listio.c: Likewise.
6494         * sysdeps/sparc/dl-procinfo.h: Likewise.
6495         * sysdeps/unix/i386/sysdep.S: Likewise.
6496         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
6497         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
6498         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
6499         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
6500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
6501         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
6502         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6503         * sysdeps/unix/sysv/linux/speed.c: Likewise.
6504         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
6505         * sysdeps/wordsize-32/divdi3.c: Likewise.
6506         * time/sys/time.h: Likewise.
6507         * wcsmbs/Makefile: Likewise.
6508
6509 2013-01-01  David S. Miller  <davem@davemloft.net>
6510
6511         * po/fr.po: Update from translation team.
6512
6513         * catgets/gencat.c: Update copyright year.
6514         * csu/version.c: Likewise.
6515         * debug/catchsegv.sh: Likewise.
6516         * debug/pcprofiledump.c: Likewise.
6517         * debug/xtrace.sh: Likewise.
6518         * elf/ldconfig.c: Likewise.
6519         * elf/ldd.bash.in: Likewise.
6520         * elf/pldd.c: Likewise.
6521         * elf/sotruss.ksh: Likewise.
6522         * elf/sprof.c: Likewise.
6523         * iconv/iconv_prog.c: Likewise.
6524         * iconv/iconvconfig.c: Likewise.
6525         * locale/programs/locale.c: Likewise.
6526         * locale/programs/localedef.c: Likewise.
6527         * login/programs/pt_chown.c: Likewise.
6528         * malloc/memusage.sh: Likewise.
6529         * malloc/memusagestat.c: Likewise.
6530         * malloc/mtrace.pl: Likewise.
6531         * nscd/nscd.c: Likewise.
6532         * nss/getent.c: Likewise.
6533         * nss/makedb.c: Likewise.
6534         * posix/getconf.c: Likewise.
6535
6536 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
6537
6538         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
6539         numbers.
6540
6541 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
6542
6543         * math/bits/mathcalls.h (modf): Use __nonnull.
6544
6545 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6546
6547         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
6548         (split): Use macro CN instead of the bare value.
6549         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
6550         could be used.
6551         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
6552         instead of the bare value.
6553         (power1): Likewise.
6554
6555 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6556
6557         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
6558         __ATAN_TWOM.
6559         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6560
6561         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
6562         their values.
6563         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
6564         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6565         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
6566         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
6567
6568 2012-12-28  Andreas Jaeger  <aj@suse.de>
6569
6570         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
6571         values are from Linux 3.7.
6572
6573         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
6574         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
6575
6576 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6577
6578         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
6579         TRUE case.
6580
6581         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
6582         (norm): Likewise.
6583         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
6584         variables with preprocessor constants.
6585         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6586         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6587         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6588
6589 2012-12-27  Bruno Haible  <bruno@clisp.org>
6590
6591         [BZ #14317]
6592         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
6593         only if needed.
6594
6595 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6596
6597         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
6598         and use variable directly.
6599         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
6600
6601         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
6602         MPONE.
6603         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
6604         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
6605         variable MPONE.
6606         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6607         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
6608         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
6609         include directive.  Remove local variable MPONE.
6610         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
6611         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
6612         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6613
6614 2012-12-25  David S. Miller  <davem@davemloft.net>
6615
6616         * version.h (RELEASE): Set to "development".
6617         (VERSION): Set to "2.17.90".
6618         * NEWS: Add 2.18 section.
6619
6620 2012-12-21  David S. Miller  <davem@davemloft.net>
6621
6622         * po/hr.po: Update from translation team.
6623
6624 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6625
6626         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
6627
6628 2012-12-19  Steve Ellcey  <sellcey@mips.com>
6629
6630         * NEWS:  Mention new memcpy for MIPS.
6631
6632 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6633
6634         * manual/contrib.texi (Contributors): Spelling correction.
6635
6636 2012-12-15  David S. Miller  <davem@davemloft.net>
6637
6638         * po/ru.po: Update from translation team.
6639
6640 2012-12-13  David S. Miller  <davem@davemloft.net>
6641
6642         * NEWS: Mention IFUNC testsuite enhancements.
6643
6644         * po/pl.po: Update from translation team.
6645         * po/bg.po: Likewise.
6646
6647         * manual/contrib.texi (Contributors): Update entries for Hongjiu
6648         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
6649
6650 2012-12-11  David S. Miller  <davem@davemloft.net>
6651
6652         * po/sv.po: Update from translation team.
6653
6654         * po/vi.po: Update from translation team.
6655
6656         * po/cs.po: Update from translation team.
6657
6658         * po/de.po: Update from translation team.
6659         * po/eo.po: Likewise.
6660         * po/nl.po: Likewise.
6661
6662 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6663
6664         [BZ #14246]
6665         * manual/argp.texi (Argp Helper Functions): Move node to follow
6666         Argp Parsing State.
6667
6668         [BZ #14872]
6669         * manual/conf.texi (Limits on File System Capacity): Mention if
6670         terminating null is included in the max size.
6671
6672 2012-12-10  Andreas Jaeger  <aj@suse.de>
6673
6674         * po/cs.po: Update from translation team.
6675
6676 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
6677
6678         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
6679         void pointer and cast to uintptr_t.
6680         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
6681         path.
6682         * sysdeps/s390/s390-64/memcpy.S: Likewise.
6683         * sysdeps/s390/s390-64/memset.S: Likewise.
6684
6685 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
6686
6687         [BZ #14833]
6688         * menual/message.texi (Message Translation): Fix typos.
6689         (Helper programs for gettext): Likewise.
6690
6691 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
6692
6693         [BZ #14898]
6694         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
6695         Change to -1.
6696
6697 2012-12-07  David S. Miller  <davem@davemloft.net>
6698
6699         * po/libc.pot: Update.
6700
6701 2012-12-07  Richard Henderson  <rth@redhat.com>
6702
6703         [BZ #10114]
6704         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
6705         normal/normal case to before the switch.
6706         (_FP_DIV): Likewise.
6707
6708 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
6709             Mike Frysinger  <vapier@gentoo.org>
6710
6711         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
6712         check for __NR_fadvise64_64.
6713
6714 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
6715
6716         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
6717         0, not just to plain "0" as a statement.
6718         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
6719         with cw.
6720
6721 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
6722
6723         * NEWS: Use sourceware.org in Bugzilla URL.
6724
6725 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6726
6727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6728         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6729
6730         * stdio-common/tst-put-error.c (do_test): Add newline to the
6731         padded test to ensure flush.
6732
6733 2012-12-05  Jeff Law  <law@redhat.com>
6734
6735         * sunrpc/etc.rpc (fedfs_admin): Add entry.
6736
6737 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
6738
6739         * README: Don't refer to ports add-on as distributed separately.
6740         Mention AArch64 in list of systems supported in the ports add-on.
6741
6742         * LICENSES: Add more non-FSF copyright and license notices.
6743
6744         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
6745         ((unused)).
6746
6747         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
6748
6749         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
6750         10000 as width of padded output.
6751
6752 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
6753
6754         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
6755
6756         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
6757         variable LX with __attribute__ ((unused)).
6758         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
6759         Likewise.
6760         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
6761         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6762         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
6763         with __attribute__ ((unused)).
6764
6765 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
6766
6767         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
6768
6769 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
6770
6771         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
6772         (CFLAGS-nldbl-acos.c): New variable.
6773         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
6774         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
6775         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
6776         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
6777         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
6778         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
6779         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
6780         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
6781         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
6782         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
6783         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
6784         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
6785         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
6786         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
6787         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
6788         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
6789         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
6790         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
6791         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
6792         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
6793         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
6794         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
6795         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
6796         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
6797         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
6798         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
6799         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
6800         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
6801         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
6802         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
6803         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
6804         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
6805         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
6806         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
6807         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
6808         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
6809         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
6810         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
6811         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
6812         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
6813         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
6814         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
6815         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
6816         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
6817         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
6818         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
6819         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
6820         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
6821         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
6822         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
6823         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
6824         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
6825         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
6826         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
6827         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
6828         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
6829         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
6830         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
6831         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
6832         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
6833         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
6834         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
6835         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
6836         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
6837         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
6838         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
6839         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
6840         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
6841         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
6842         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
6843         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
6844         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
6845         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
6846         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
6847         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
6848         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
6849         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
6850         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
6851         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
6852         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
6853         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
6854         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
6855         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
6856         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
6857         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
6858         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
6859         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
6860         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
6861         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
6862         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
6863         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
6864         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
6865         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
6866         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
6867         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
6868         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
6869         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
6870
6871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6872         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6873
6874         [BZ #14914]
6875         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
6876         whole low double instead of just low 47 bits when splitting values
6877         into two parts.
6878
6879 2012-12-03  Allan McRae  <allan@archlinux.org>
6880
6881         * manual/stdio.texi (Predefined Printf Handlers): Remove
6882         @hsep and @vsep usage.
6883
6884 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
6885
6886         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
6887         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
6888
6889 2012-12-03  Jeff Law  <law@redhat.com>
6890
6891         * time/sys/time.h (settimeofday): Do not mark TV argument
6892         as __nonnull.
6893
6894 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
6895
6896         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
6897         when currently writing and seek to current position when not.
6898         * libio/Makefile (tests): Remove bug-fclose1.
6899         * libio/bug-fclose1.c: Delete.
6900
6901 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
6902
6903         * manual/arith.texi (feenableexcept): Fix typo.
6904         (fedisableexcept): Likewise.
6905
6906 2012-11-30  Roland McGrath  <roland@hack.frob.com>
6907
6908         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
6909         second, differently-typed declaration, rather than a cast.
6910
6911 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6912
6913         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
6914         * include/rpc/svc.h: ... here.
6915
6916 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
6917
6918         [BZ #13013]
6919         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
6920         depending n and resplen2 to catch cases where answer
6921         equals answerp2.
6922
6923 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
6924
6925         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
6926         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
6927
6928 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
6929
6930         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
6931
6932 2012-11-29  Roland McGrath  <roland@hack.frob.com>
6933
6934         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
6935
6936 2012-11-28  Jeff Law  <law@redhat.com>
6937
6938         [BZ #13761]
6939         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
6940         dataset_temporary.  Track alloca usage into alloca_used.
6941         If dataset is large allocate and release it via malloc/free.
6942
6943 2012-06-04  Florian Weimer  <fweimer@redhat.com>
6944
6945         [BZ #14197]
6946         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
6947
6948 2012-11-28  David S. Miller  <davem@davemloft.net>
6949
6950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6951
6952 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6953
6954         [BZ #14803]
6955         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
6956         of pi/2 rounded to nearest to 64 bits.
6957         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
6958         nearest to 64 bits.
6959         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
6960         bits.
6961
6962 2012-11-28  Jeff Law <law@redhat.com>
6963             Martin Osvald <mosvald@redhat.com>
6964
6965         [BZ #14889]
6966         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
6967         * sunrpc/svc.c: Include time.h.
6968         (__svc_accept_failed): New function.
6969         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
6970         any reason other than EINTR, call __svc_accept_failed.
6971         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
6972         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
6973
6974 2012-11-28  Andreas Schwab  <schwab@suse.de>
6975
6976         * scripts/abilist.awk: Also handle indirect functions in .opd
6977         section.
6978
6979 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6980
6981         [BZ #13881]
6982         * sysdeps/x86/fpu/powl_helper.c: New file.
6983         * sysdeps/x86/fpu/Makefile: Likewise.
6984         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
6985         (p3): New object.
6986         (__ieee754_powl): Use __powl_helper for finite arguments except
6987         integer exponents below 8.
6988         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
6989         (p3): New object.
6990         (__ieee754_powl): Use __powl_helper for finite arguments except
6991         integer exponents below 8.
6992         * math/libm-test.inc (pow_test): Add more tests and enable some
6993         previously disabled tests.
6994         * sysdeps/i386/fpu/libm-test-ulps: Update.
6995         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6996
6997 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6998             Carlos O'Donell  <carlos_odonell@mentor.com>
6999
7000         * nss/makedb.c (is_prime): Assert that input is odd and greater
7001         than 4.  Note that fact in a comment too.
7002         (next_prime): Add 4 to input.
7003
7004 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7005
7006         [BZ #11741]
7007         * libio/Makefile (tests): Add test case tst-fwrite-error.
7008         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
7009         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7010         * libio/tst-fwrite-error.c: New test case.
7011
7012 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
7013
7014         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
7015         before casting to void *.
7016         * include/libc-internal.h (__pointer_type): New macro.
7017         (__integer_if_pointer_type_sub): Likewise.
7018         (__integer_if_pointer_type): Likewise.
7019         (cast_to_integer): Likewise.
7020         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
7021         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
7022         before casting to atomic64_t.
7023         (atomic_exchange_acq): Likewise.
7024         (__arch_exchange_and_add_body): Likewise.
7025         (__arch_add_body): Likewise.
7026         (atomic_add_negative): Likewise.
7027         (atomic_add_zero): Likewise.
7028
7029 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
7030
7031         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
7032         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
7033         (add_fdes): Likewise.
7034         (linear_search_fdes): Likewise.
7035         (binary_search_unencoded_fdes): Likewise.
7036
7037 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
7038
7039         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
7040
7041 2012-11-24  Adam Conrad  <adconrad@0c3.net>
7042
7043         * configure.in: Autodetect C++ header directories.
7044         * configure: Regenerated.
7045
7046 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
7047
7048         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
7049
7050 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
7051
7052         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7053
7054 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
7055
7056         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
7057         LDBL_MANT_DIG == 106]: Disable some tests.
7058         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
7059         Likewise.
7060         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
7061         Likewise.
7062
7063         [BZ #14871]
7064         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
7065         input for small inputs.  Return +/- pi/2 for large inputs.
7066         * math/libm-test.inc (atan_test): Add more tests.
7067
7068         * sysdeps/generic/unwind-dw2-fde-glibc.c
7069         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
7070         __attribute__ ((unused)).
7071
7072         [BZ #14645]
7073         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
7074         x * y if x and y are nonzero and z is zero.
7075
7076         [BZ #14811]
7077         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
7078         nonzero exponents with absolute value below 0x1p-117 to +/-
7079         0x1p-117.
7080
7081         [BZ #14869]
7082         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
7083         up arguments below 2**-450, not just those below 2**-500.
7084         * math/libm-test.inc (hypot_test): Add another test.
7085
7086         [BZ #14868]
7087         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
7088         Return a+b for ratio over 2**120, not 2**60.
7089         * math/libm-test.inc (hypot_test): Add another test.
7090
7091         * math/libm-test.inc (clog_test): Use
7092         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
7093         (clog10_test): Likewise.
7094
7095         [BZ #6778]
7096         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
7097
7098 2012-11-22  Andreas Schwab  <schwab@suse.de>
7099
7100         * sysdeps/i386/fpu/libm-test-ulps: Update.
7101
7102 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
7103
7104         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
7105         printf output with newline.
7106
7107 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
7108
7109         [BZ #14865]
7110         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
7111         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
7112         -z nodlopen, -z initfirst and -z execstack support.
7113         * configure: Regenerated.
7114
7115         * elf/elf.h (DF_1_NODIRECT): New macro.
7116         (DF_1_IGNMULDEF): Likewise.
7117         (DF_1_NOKSYMS): Likewise.
7118         (DF_1_NOHDR): Likewise.
7119         (DF_1_EDITED): Likewise.
7120         (DF_1_NORELOC): Likewise.
7121         (DF_1_SYMINTPOSE): Likewise.
7122         (DF_1_GLOBAUDIT): Likewise.
7123         (DF_1_SINGLETON): Likewise.
7124         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
7125         DT_1_SUPPORTED_MASK bits.
7126         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
7127
7128 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
7129
7130         * sysdeps/unix/make-syscalls.sh: Document prefixes.
7131
7132 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
7133
7134         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
7135         macro.
7136
7137         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
7138         (sendmmsg): Move declarations...
7139         * socket/sys/socket.h: ... here.
7140         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
7141         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
7142         include it from...
7143         * socket/recvmmsg.c: ... this new file.
7144         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
7145         (sendmmsg): Rename to __sendmmsg, create weak alias and make
7146         definition of __sendmmsg hidden.
7147         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
7148         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
7149         Move ENOSYS stub into and include it from...
7150         * socket/sendmmsg.c: ... this new file.
7151         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
7152         (sysdep_routines): Move recvmmsg and sendmmsg...
7153         * socket/Makefile (routines): ... here.
7154         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
7155         (GLIBC_PRIVATE): Add __sendmmsg.
7156         * include/sys/socket.h (__sendmmsg): Add declarations.
7157         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
7158         sendmmsg.
7159
7160 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
7161
7162         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
7163         variable I1 with __attribute__ ((unused)).
7164         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
7165
7166 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
7167
7168         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
7169         DUMMY variables with __attribute__ ((unused)).
7170
7171         * bits/byteswap.h: Include <bits/types.h>.
7172         (__bswap_64): Use __uint64_t instead of unsigned long long int.
7173
7174 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
7175
7176         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
7177         string_t.  Do not manually set errno.
7178         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
7179         length with __strnlen.  Make sure to both set errno and return it on
7180         failure.
7181
7182 2012-11-19  David S. Miller  <davem@davemloft.net>
7183
7184         With help from Joseph Myers.
7185         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
7186         very large arguments properly.
7187         * math/libm-test.inc (atan_test): New tests.
7188         (atan2_test): New tests.
7189         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7190         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7191
7192 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
7193
7194         [BZ #14856]
7195         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
7196         Define to 3.
7197
7198         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
7199         [POSIX] (EADDRNOTAVAIL): Likewise.
7200         [POSIX] (EAFNOSUPPORT): Likewise.
7201         [POSIX] (EALREADY): Likewise.
7202         [POSIX] (ECONNABORTED): Likewise.
7203         [POSIX] (ECONNREFUSED): Likewise.
7204         [POSIX] (ECONNRESET): Likewise.
7205         [POSIX] (EDESTADDRREQ): Likewise.
7206         [POSIX] (EDQUOT): Likewise.
7207         [POSIX] (EHOSTUNREACH): Likewise.
7208         [POSIX] (EIDRM): Likewise.
7209         [POSIX] (EISCONN): Likewise.
7210         [POSIX] (ELOOP): Likewise.
7211         [POSIX] (EMULTIHOP): Likewise.
7212         [POSIX] (ENETDOWN): Likewise.
7213         [POSIX] (ENETUNREACH): Likewise.
7214         [POSIX] (ENOBUFS): Likewise.
7215         [POSIX] (ENODATA): Likewise.
7216         [POSIX] (ENOLINK): Likewise.
7217         [POSIX] (ENOMSG): Likewise.
7218         [POSIX] (ENOPROTOOPT): Likewise.
7219         [POSIX] (ENOSR): Likewise.
7220         [POSIX] (ENOSTR): Likewise.
7221         [POSIX] (ENOTCONN): Likewise.
7222         [POSIX] (ENOTSOCK): Likewise.
7223         [POSIX] (EOPNOTSUPP): Likewise.
7224         [POSIX] (EOVERFLOW): Likewise.
7225         [POSIX] (EPROTO): Likewise.
7226         [POSIX] (EPROTONOSUPPORT): Likewise.
7227         [POSIX] (EPROTOTYPE): Likewise.
7228         [POSIX] (ESTALE): Likewise.
7229         [POSIX] (ETIME): Likewise.
7230         [POSIX] (ETXTBSY): Likewise.
7231         [POSIX] (EWOULDBLOCK): Likewise.
7232         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
7233         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
7234         [POSIX] (SEEK_CUR): Likewise.
7235         [POSIX] (SEEK_END): Likewise.
7236         [POSIX || UNIX98] (mode_t): Do not require.
7237         [POSIX] (off_t): Likewise.
7238         [POSIX] (pid_t): Likewise.
7239         [POSIX] (sys/stat.h): Do not allow header.
7240         [POSIX] (unistd.h): Likewise.
7241         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
7242         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
7243         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
7244         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
7245         require.
7246         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
7247         sigevent): Specify elements.
7248         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
7249         entry.
7250         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
7251         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
7252
7253         * conform/data/cpio.h-data [POSIX]: Disable whole file.
7254         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
7255         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
7256         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
7257         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
7258         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
7259         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
7260         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
7261         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
7262         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
7263         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
7264         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
7265         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
7266         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
7267         Likewise.
7268         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
7269         Likewise.
7270         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
7271         Likewise.
7272         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
7273         Likewise.
7274         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
7275         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
7276         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
7277         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
7278         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
7279         Specify lower bound on value.
7280         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
7281         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
7282         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
7283         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
7284         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
7285         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
7286         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
7287         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
7288         value.
7289         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
7290         as optional.
7291         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
7292         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
7293         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
7294         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
7295         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
7296         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
7297         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
7298         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
7299         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
7300         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
7301         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
7302         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
7303         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
7304         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
7305         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
7306         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
7307         entry.
7308         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
7309         optional.
7310         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
7311         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
7312         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
7313         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
7314         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
7315         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
7316         Likewise.
7317         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
7318         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
7319         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
7320         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
7321         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
7322         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
7323         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
7324         as optional.
7325         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
7326         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
7327         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
7328         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
7329         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
7330         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
7331         specify as optional.
7332         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
7333         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
7334         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
7335         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
7336         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
7337         [XPG3] (NL_LANGMAX): Likewise.
7338         [POSIX || XPG3] (NL_MSGMAX): Likewise.
7339         [POSIX || XPG3] (NL_NMAX): Likewise.
7340         [POSIX || XPG3] (NL_SETMAX): Likewise.
7341         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
7342         [XPG3] (NZERO): Likewise.
7343         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
7344         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
7345         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
7346         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
7347         (REG_ERANGE): Expect.
7348         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
7349         optional-constant.
7350         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
7351         Use (void) in prototype.
7352         [POSIX] (*_t): Allow.
7353         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
7354         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
7355         (WRDE_BADVAL): Expect.
7356
7357         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
7358         expect.
7359         [XPG3 || XPG4] (O_RSYNC): Likewise.
7360         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
7361         Likewise.
7362         [XPG3 || XPG4] (pthread_sigmask): Likewise.
7363         [XPG3 || XPG4] (sigqueue): Likewise.
7364         [XPG3 || XPG4] (sigtimedwait): Likewise.
7365         [XPG3 || XPG4] (sigwaitinfo): Likewise.
7366         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
7367         [XPG3 || XPG4] (vsnprintf): Likewise.
7368         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
7369         Likewise.
7370         [XPG3 || XPG4] (blksize_t): Likewise.
7371         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
7372         Likewise.
7373         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
7374         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
7375         [XPG3 || XPG4] (struct itimerspec): Likewise.
7376         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
7377         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
7378         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
7379         [XPG3 || XPG4] (clockid_t): Likewise.
7380         [XPG3 || XPG4] (timer_t): Likewise.
7381         [XPG3 || XPG4] (clock_getres): Likewise.
7382         [XPG3 || XPG4] (clock_gettime): Likewise.
7383         [XPG3 || XPG4] (clock_settime): Likewise.
7384         [XPG3 || XPG4] (nanosleep): Likewise.
7385         [XPG3 || XPG4] (timer_create): Likewise.
7386         [XPG3 || XPG4] (timer_delete): Likewise.
7387         [XPG3 || XPG4] (timer_gettime): Likewise.
7388         [XPG3 || XPG4] (timer_getoverrun): Likewise.
7389         [XPG3 || XPG4] (timer_settime): Likewise.
7390         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
7391         [XPG3 || XPG4] (getlogin_r): Likewise.
7392         [XPG3 || XPG4] (pread): Likewise.
7393         [XPG3 || XPG4] (pthread_atfork): Likewise.
7394         [XPG3 || XPG4] (pwrite): Likewise.
7395
7396         [BZ #14835]
7397         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
7398         <bits/siginfo.h>.
7399
7400 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
7401
7402         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
7403         finalizing MALLSTREAM.
7404
7405         * sysdeps/mach/hurd/syncfs.c: New file.
7406
7407 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7408
7409         [BZ #14719]
7410         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
7411         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
7412         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
7413         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
7414         (_nss_dns_gethostbyname4_r): Likewise.
7415         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
7416         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
7417
7418 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
7419
7420         [BZ #13763]
7421         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
7422
7423 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
7424
7425         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
7426         * elf/cache.c (print_entry): Print ",AArch64" for
7427         FLAG_AARCH64_LIB64
7428
7429         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
7430         * elf/cache.c (print_entry): Print ",hard-float" for
7431         FLAG_ARM_LIBHF.
7432
7433 2012-11-18  David S. Miller  <davem@davemloft.net>
7434
7435         With help from Joseph Myers.
7436         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
7437         cutoff to 2**-13.
7438         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
7439         cutoff to 2**-25.
7440         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
7441         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
7442         small.
7443         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
7444         * math/libm-test.inc (y0_test): New tests.
7445         (y1_test): New tests.
7446         * sysdeps/i386/fpu/libm-test-ulps: Update.
7447         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7448         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7449
7450 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
7451
7452         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
7453         64-bit targets.
7454         * configure: Regenerated.
7455
7456 2012-11-17  David S. Miller  <davem@davemloft.net>
7457
7458         [BZ #14811]
7459         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
7460         nonzero exponents with absolute value below 0x1p-128 to +/-
7461         0x1p-128.
7462
7463 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
7464
7465         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
7466
7467         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
7468
7469         * posix/getconf-speclist.c: New file.
7470         * posix/posix-envs.def: Likewise.
7471         * posix/confstr.c (START_ENV_GROUP): New macro.
7472         (END_ENV_GROUP): Likewise.
7473         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
7474         (KNOWN_PRESENT_ENV_STRING): Likewise.
7475         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
7476         (UNKNOWN_ENVIRONMENT): Likewise.
7477         (confstr): Include posix-envs.def instead of handling
7478         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
7479         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
7480         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
7481         (END_ENV_GROUP): Likewise.
7482         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
7483         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
7484         (UNKNOWN_ENVIRONMENT): Likewise.
7485         (__sysconf): Include posix-envs.def instead of handling associated
7486         cases directly here.
7487         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
7488         preprocessing getconf-speclist.c rather than running getconf or
7489         generating empty file.
7490
7491 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
7492
7493         * scripts/check-local-headers.sh: Ignore 'mach' headers.
7494
7495 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
7496
7497         [BZ #14672]
7498         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
7499
7500 2012-11-16  David S. Miller  <davem@davemloft.net>
7501
7502         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
7503         smaller than LDBL_EPSILON/2.0L, just return xm1.
7504
7505 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
7506
7507         * elf/tst-array1.c (init): Set constructor priority to 1000.
7508         (fini): Set destructor priority to 1000.
7509         * elf/tst-array2dep.c: Likewise.
7510
7511 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7512
7513         [BZ #11741]
7514         * libio/fileops.c (_IO_new_file_write): Correctly return error.
7515         (_IO_new_file_xsputn): Also return EOF if none of the input
7516         data was written when overflow failed.
7517         * libio/iopadn.c (_IO_padn): Likewise.
7518         * libio/iowpadn.c (_IO_wpadn): Likewise.
7519         * stdio-common/tst-put-error.c: Add copyright notice.
7520         (do_test): Add case for printing padded string.
7521         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
7522         _IO_padn returned error.
7523         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
7524         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
7525         return EOF.
7526
7527 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7528
7529         * libio/libioP.h: Add comment note that the references to C++
7530         bits are now obsolete.
7531
7532 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7533
7534         * math/libm-test.inc (check_complex): Use asprintf.
7535
7536 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
7537
7538         * debug/pcprofiledump.c (print_version): Update copyright year.
7539         * malloc/memusagestat.c (print_version): Likewise.
7540
7541 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7542
7543         [BZ #14831]
7544         * elf/Makefile (tests): Add tst-audit8.
7545         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
7546         ($(objpfx)tst-audit8.out): New target.
7547         (tst-audit8-ENV): New variable.
7548         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
7549         audit if l_reloc_result is NULL.
7550         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
7551         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
7552         * elf/tst-audit8.c: New file.
7553
7554 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7555
7556         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
7557         * misc/Makefile (CFLAGS-select.c): Define.
7558         * posix/Makefile (CFLAGS-pause.c): Define.
7559
7560 2012-11-13  David S. Miller  <davem@davemloft.net>
7561
7562         * crypt/Makefile: Move test targets after toplevel Rules
7563         inclusion.  Grab any necessary sysdep routines when linking.
7564         * crypt/md5.c (md5_process_block): Remove define, we will always
7565         name it __md5_process_block.
7566         (md5_finish_ctx): Update md5_process_block call.
7567         (md5_stream): Likewise.
7568         (md5_process_bytes): Likewise.
7569         (md5_process_block): Rename to __md5_process_block and move to ...
7570         * crypt/md5-block.c: ... here.
7571         * crypt/sha256.c (sha256_process_block): Move to ...
7572         * crypt/sha256-block.c: ... here.
7573         * crypt/sha512.c (sha512_process_block): Move to ...
7574         * crypt/sha512-block.c: ... here.
7575         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
7576         path.
7577         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
7578         * sysdeps/sparc/sparc64/multiarch/Makefile
7579         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
7580         crypt subdir.
7581         (localedef-aux): Add md5 crypto assembler when in locale subdir.
7582         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
7583         multiarch changes.
7584         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
7585         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
7586         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
7587         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
7588         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
7589         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
7590         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
7591         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
7592         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
7593         file.
7594         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
7595         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
7596         file.
7597         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
7598
7599 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
7600
7601         * timezone/tzselect.ksh: Update from tzcode git revision
7602         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
7603         * timezone/zdump.c: Likewise.
7604         * timezone/zic.c: Likewise.
7605         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
7606         in TZVERSION setting, not $(PKGVERSION).
7607         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
7608         REPORT_BUGS_TO settings.
7609
7610         [BZ #14838]
7611         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
7612         macro.
7613
7614 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7615
7616         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
7617         detection to immediately after _FP_ROUND().
7618         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
7619         bits are 0.
7620
7621 2012-11-11  David S. Miller  <davem@davemloft.net>
7622
7623         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
7624         inttypes.h
7625         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
7626         __close rather than their public counterparts.
7627
7628 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
7629
7630         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
7631         file.
7632         [UNIX98] (sem_timedwait): Do not expect.
7633         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
7634         [XPG4 || UNIX98] (sockatmark): Do not expect.
7635         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
7636         (clock_getcpuclockid): Do not expect.
7637         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
7638         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
7639         Do not expect.
7640         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
7641         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
7642         [UNIX98] (vwscanf): Likewise.
7643         [UNIX98] (vswscanf): Likewise.
7644
7645 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
7646
7647         * timezone/version.h: Remove file.
7648         * timezone/README: Do not refer to version.h.
7649         * timezone/Makefile ($(objpfx)zic.o): New dependency on
7650         $(objpfx)version.h.
7651         ($(objpfx)zdump.o): Likewise.
7652         ($(objpfx)version.h): New target.
7653
7654         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
7655         2012i.
7656         * timezone/README: Don't mention modification to tzselect.ksh.
7657         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
7658         work on unmodified tzselect.ksh.  Substitute version numbers in
7659         tzselect.ksh.
7660
7661         * Makefile (format-me): Remove.
7662         (INSTALL): Adjust indentation.  Use commands directly instead of
7663         using $(format-me).
7664
7665         * aclocal.m4 (ACX_PKGVERSION): New macro.
7666         (ACX_BUGURL): Likewise.
7667         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
7668         (PKGVERSION): New AC_DEFINE_UNQUOTED.
7669         (REPORT_BUGS_TO): Likewise.
7670         * configure: Regenerated.
7671         * config.h.in (PKGVERSION): New macro.
7672         (REPORT_BUGS_TO): Likewise.
7673         * config.make.in (PKGVERSION): New variable.
7674         (PKGVERSION_TEXI): Likewise.
7675         (REPORT_BUGS_TO): Likewise.
7676         (REPORT_BUGS_TEXI): Likewise.
7677         * Makefile (format-me): Use -I$(common-objpfx)manual.
7678         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
7679         ($(common-objpfx)manual/%): New target.
7680         (manual/%): Remove target.
7681         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
7682         (print_version): Use PKGVERSION.
7683         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
7684         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
7685         and REPORT_BUGS_TO.
7686         ($(objpfx)xtrace): Likewise.
7687         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
7688         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
7689         (print_version): Use PKGVERSION.
7690         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
7691         (do_version): Use PKGVERSION.
7692         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
7693         REPORT_BUGS_TO.
7694         (common-ldd-rewrite): Likewise.
7695         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
7696         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
7697         (print_version): Use PKGVERSION.
7698         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
7699         * elf/pldd.c (argp_program_bug_address): Remove variable.
7700         (more_help): New function.
7701         (argp): Use more_help.
7702         (print_version): Use PKGVERSION.
7703         * elf/sln.c (main): Use PKGVERSION.
7704         (usage): Use REPORT_BUGS_TO.
7705         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
7706         (top level): Use PKGVERSION.
7707         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
7708         (print_version): Use PKGVERSION.
7709         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
7710         (print_version): Use PKGVERSION.
7711         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
7712         (print_version): Use PKGVERSION.
7713         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
7714         (print_version): Use PKGVERSION.
7715         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
7716         (print_version): Use PKGVERSION.
7717         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
7718         (print_version): Use PKGVERSION.
7719         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
7720         and BUGURL.
7721         ($(objpfx)memusage): Likewise.
7722         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
7723         (do_version): Use PKGVERSION.
7724         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
7725         (print_version): Use PKGVERSION.
7726         * malloc/mtrace.pl ($PACKAGE): Remove variable.
7727         ($PKGVERSION): New variable.
7728         ($REPORT_BUGS_TO): Likewise.
7729         (usage): Use $REPORT_BUGS_TO.
7730         (top level): Use $PKGVERSION.
7731         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
7732         ($(objpfx)pkgvers.texi): New rule.
7733         ($(objpfx)stamp-pkgvers): Likewise.
7734         * manual/install.texi: Include pkgvers.texi.
7735         (--with-pkgversion): Document new configure option.
7736         (--with-bugurl): Likewise.
7737         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
7738         than necessarily for this particular distribution.  Use
7739         REPORT_BUGS_TO for where to report bugs.
7740         * INSTALL: Regenerated.
7741         * manual/libc.texinfo: Include pkgvers.texi.
7742         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
7743         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
7744         (print_version): Use PKGVERSION.
7745         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
7746         (print_version): Use PKGVERSION.
7747         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
7748         (print_version): Use PKGVERSION.
7749         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
7750         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
7751         macro.
7752         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
7753         (print_version): Use PKGVERSION.
7754         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
7755         (print_version): Use PKGVERSION.
7756         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
7757         and PKGVERSION.
7758
7759         * timezone/checktab.awk: Update from tzcode 2012i.
7760         * timezone/ialloc.c: Likewise.
7761         * timezone/private.h: Likewise.
7762         * timezone/scheck.c: Likewise.
7763         * timezone/tzfile.h: Likewise.
7764         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
7765         (TZVERSION): Hardcode tzcode version number.
7766         * timezone/zdump.c: Update from tzcode 2012i.
7767         * timezone/zic.c: Likewise.
7768         * timezone/version.h: New file.
7769         * timezone/README: Describe version.h.  Update upstream location.
7770
7771         [BZ #14824]
7772         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
7773         (mktemp): Enable declaration.
7774         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
7775         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
7776         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
7777         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
7778         Likewise.
7779         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
7780         Likewise.
7781         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
7782         Likewise.
7783         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
7784         Likewise.
7785         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
7786         Likewise.
7787         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
7788         Likewise.
7789
7790         [BZ #14821]
7791         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
7792         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
7793         for copies of such integer values.
7794         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
7795         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
7796
7797 2012-11-09  Andreas Jaeger  <aj@suse.de>
7798
7799         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
7800         definitions and declarations that are provided by
7801         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7802
7803 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7804
7805         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
7806         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
7807         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
7808         definition.
7809
7810 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7811
7812         * elf/elf.h: Update comment before AArch64 relocations.
7813
7814 2012-11-07  David S. Miller  <davem@davemloft.net>
7815
7816         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
7817         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
7818         (__start_context): Declare.
7819         (__makecontext_ret): Delete.
7820         (__makecontext): Hook up __start_context instead of
7821         __makecontext_ret.
7822         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7823         (sysdep_routines): Add __start_context when in stdlib.
7824
7825 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7826
7827         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
7828         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
7829         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
7830         hardcoded "nm".
7831         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
7832         (READELF): New variable.  Use it instead of hardcoded "readelf".
7833
7834 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7835
7836         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
7837         * sysdeps/x86/Makefile: Here.
7838         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
7839         * sysdeps/x86/tst-xmmymm.sh: This.
7840
7841 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7842
7843         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
7844         expectations.
7845         [UNIX98] (pthread_barrier_t): Do not expect.
7846         [UNIX98] (pthread_barrierattr_t): Likewise.
7847         [UNIX98] (pthread_spinlock_t): Likewise.
7848         [UNIX98] (pthread_barrier_destroy): Likewise.
7849         [UNIX98] (pthread_barrier_init): Likewise.
7850         [UNIX98] (pthread_barrier_wait): Likewise.
7851         [UNIX98] (pthread_barrierattr_destroy): Likewise.
7852         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
7853         [UNIX98] (pthread_barrierattr_init): Likewise.
7854         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
7855         [UNIX98] (pthread_getcpuclockid): Likewise.
7856         [UNIX98] (pthread_mutex_timedlock): Likewise.
7857         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
7858         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
7859         [UNIX98] (pthread_sigmask): Likewise.
7860         [UNIX98] (pthread_spin_destroy): Likewise.
7861         [UNIX98] (pthread_spin_init): Likewise.
7862         [UNIX98] (pthread_spin_lock): Likewise.
7863         [UNIX98] (pthread_spin_trylock): Likewise.
7864         [UNIX98] (pthread_spin_unlock): Likewise.
7865         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
7866         Do not expect.
7867         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
7868         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
7869         [XPG3 || XPG4] (pthread_cond_t): Likewise.
7870         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
7871         [XPG3 || XPG4] (pthread_key_t): Likewise.
7872         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
7873         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
7874         [XPG3 || XPG4] (pthread_once_t): Likewise.
7875         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
7876         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
7877         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
7878         [XPG3 || XPG4] (pthread_t): Likewise.
7879
7880         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
7881         not expect.
7882         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
7883
7884         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
7885         Change function return type to int.
7886
7887         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
7888         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
7889         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
7890         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
7891         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
7892         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
7893         [!POSIX] (posix_madvise): Likewise.
7894         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
7895         && !UNIX98].
7896         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
7897         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
7898         (mode_t): Likewise.
7899         (posix_mem_offset): Likewise.
7900         (posix_typed_mem_get_info): Likewise.
7901         (posix_typed_mem_open): Likewise.
7902
7903         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
7904         Change condition to [XOPEN2K8].
7905
7906         * conform/conformtest.pl: Preprocess allow-header data with -x c
7907         instead of from stdin.
7908         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
7909         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
7910         [C99-based standards] (cerfc): Likewise.
7911         [C99-based standards] (cexp2): Likewise.
7912         [C99-based standards] (cexpm1): Likewise.
7913         [C99-based standards] (clog10): Likewise.
7914         [C99-based standards] (clog1p): Likewise.
7915         [C99-based standards] (clog2): Likewise.
7916         [C99-based standards] (clgamma): Likewise.
7917         [C99-based standards] (ctgamma): Likewise.
7918         [C99-based standards] (cerff): Likewise.
7919         [C99-based standards] (cerfcf): Likewise.
7920         [C99-based standards] (cexp2f): Likewise.
7921         [C99-based standards] (cexpm1f): Likewise.
7922         [C99-based standards] (clog10f): Likewise.
7923         [C99-based standards] (clog1pf): Likewise.
7924         [C99-based standards] (clog2f): Likewise.
7925         [C99-based standards] (clgammaf): Likewise.
7926         [C99-based standards] (ctgammaf): Likewise.
7927         [C99-based standards] (cerfl): Likewise.
7928         [C99-based standards] (cerfcl): Likewise.
7929         [C99-based standards] (cexp2l): Likewise.
7930         [C99-based standards] (cexpm1l): Likewise.
7931         [C99-based standards] (clog10l): Likewise.
7932         [C99-based standards] (clog1pl): Likewise.
7933         [C99-based standards] (clog2l): Likewise.
7934         [C99-based standards] (clgammal): Likewise.
7935         [C99-based standards] (ctgammal): Likewise.
7936         * conform/data/inttypes.h-data [C99-based standards]: Include
7937         stdint.h-data.  Remove all expectations for stdint.h contents.
7938         [C99-based standards] (PRI*): Do not allow.
7939         [C99-based standards] (SCN*): Likewise.
7940         [C99-based standards] (*_t): Likewise.
7941         [C99-based-standards] (PRId8): Expect macro.
7942         [C99-based-standards] (PRIi8): Likewise.
7943         [C99-based-standards] (PRIo8): Likewise.
7944         [C99-based-standards] (PRIu8): Likewise.
7945         [C99-based-standards] (PRIx8): Likewise.
7946         [C99-based-standards] (PRIX8): Likewise.
7947         [C99-based-standards] (SCNd8): Likewise.
7948         [C99-based-standards] (SCNi8): Likewise.
7949         [C99-based-standards] (SCNo8): Likewise.
7950         [C99-based-standards] (SCNu8): Likewise.
7951         [C99-based-standards] (SCNx8): Likewise.
7952         [C99-based-standards] (PRIdLEAST8): Likewise.
7953         [C99-based-standards] (PRIiLEAST8): Likewise.
7954         [C99-based-standards] (PRIoLEAST8): Likewise.
7955         [C99-based-standards] (PRIuLEAST8): Likewise.
7956         [C99-based-standards] (PRIxLEAST8): Likewise.
7957         [C99-based-standards] (PRIXLEAST8): Likewise.
7958         [C99-based-standards] (SCNdLEAST8): Likewise.
7959         [C99-based-standards] (SCNiLEAST8): Likewise.
7960         [C99-based-standards] (SCNoLEAST8): Likewise.
7961         [C99-based-standards] (SCNuLEAST8): Likewise.
7962         [C99-based-standards] (SCNxLEAST8): Likewise.
7963         [C99-based-standards] (PRIdFAST8): Likewise.
7964         [C99-based-standards] (PRIiFAST8): Likewise.
7965         [C99-based-standards] (PRIoFAST8): Likewise.
7966         [C99-based-standards] (PRIuFAST8): Likewise.
7967         [C99-based-standards] (PRIxFAST8): Likewise.
7968         [C99-based-standards] (PRIXFAST8): Likewise.
7969         [C99-based-standards] (SCNdFAST8): Likewise.
7970         [C99-based-standards] (SCNiFAST8): Likewise.
7971         [C99-based-standards] (SCNoFAST8): Likewise.
7972         [C99-based-standards] (SCNuFAST8): Likewise.
7973         [C99-based-standards] (SCNxFAST8): Likewise.
7974         [C99-based-standards] (PRId16): Likewise.
7975         [C99-based-standards] (PRIi16): Likewise.
7976         [C99-based-standards] (PRIo16): Likewise.
7977         [C99-based-standards] (PRIu16): Likewise.
7978         [C99-based-standards] (PRIx16): Likewise.
7979         [C99-based-standards] (PRIX16): Likewise.
7980         [C99-based-standards] (SCNd16): Likewise.
7981         [C99-based-standards] (SCNi16): Likewise.
7982         [C99-based-standards] (SCNo16): Likewise.
7983         [C99-based-standards] (SCNu16): Likewise.
7984         [C99-based-standards] (SCNx16): Likewise.
7985         [C99-based-standards] (PRIdLEAST16): Likewise.
7986         [C99-based-standards] (PRIiLEAST16): Likewise.
7987         [C99-based-standards] (PRIoLEAST16): Likewise.
7988         [C99-based-standards] (PRIuLEAST16): Likewise.
7989         [C99-based-standards] (PRIxLEAST16): Likewise.
7990         [C99-based-standards] (PRIXLEAST16): Likewise.
7991         [C99-based-standards] (SCNdLEAST16): Likewise.
7992         [C99-based-standards] (SCNiLEAST16): Likewise.
7993         [C99-based-standards] (SCNoLEAST16): Likewise.
7994         [C99-based-standards] (SCNuLEAST16): Likewise.
7995         [C99-based-standards] (SCNxLEAST16): Likewise.
7996         [C99-based-standards] (PRIdFAST16): Likewise.
7997         [C99-based-standards] (PRIiFAST16): Likewise.
7998         [C99-based-standards] (PRIoFAST16): Likewise.
7999         [C99-based-standards] (PRIuFAST16): Likewise.
8000         [C99-based-standards] (PRIxFAST16): Likewise.
8001         [C99-based-standards] (PRIXFAST16): Likewise.
8002         [C99-based-standards] (SCNdFAST16): Likewise.
8003         [C99-based-standards] (SCNiFAST16): Likewise.
8004         [C99-based-standards] (SCNoFAST16): Likewise.
8005         [C99-based-standards] (SCNuFAST16): Likewise.
8006         [C99-based-standards] (SCNxFAST16): Likewise.
8007         [C99-based-standards] (PRId32): Likewise.
8008         [C99-based-standards] (PRIi32): Likewise.
8009         [C99-based-standards] (PRIo32): Likewise.
8010         [C99-based-standards] (PRIu32): Likewise.
8011         [C99-based-standards] (PRIx32): Likewise.
8012         [C99-based-standards] (PRIX32): Likewise.
8013         [C99-based-standards] (SCNd32): Likewise.
8014         [C99-based-standards] (SCNi32): Likewise.
8015         [C99-based-standards] (SCNo32): Likewise.
8016         [C99-based-standards] (SCNu32): Likewise.
8017         [C99-based-standards] (SCNx32): Likewise.
8018         [C99-based-standards] (PRIdLEAST32): Likewise.
8019         [C99-based-standards] (PRIiLEAST32): Likewise.
8020         [C99-based-standards] (PRIoLEAST32): Likewise.
8021         [C99-based-standards] (PRIuLEAST32): Likewise.
8022         [C99-based-standards] (PRIxLEAST32): Likewise.
8023         [C99-based-standards] (PRIXLEAST32): Likewise.
8024         [C99-based-standards] (SCNdLEAST32): Likewise.
8025         [C99-based-standards] (SCNiLEAST32): Likewise.
8026         [C99-based-standards] (SCNoLEAST32): Likewise.
8027         [C99-based-standards] (SCNuLEAST32): Likewise.
8028         [C99-based-standards] (SCNxLEAST32): Likewise.
8029         [C99-based-standards] (PRIdFAST32): Likewise.
8030         [C99-based-standards] (PRIiFAST32): Likewise.
8031         [C99-based-standards] (PRIoFAST32): Likewise.
8032         [C99-based-standards] (PRIuFAST32): Likewise.
8033         [C99-based-standards] (PRIxFAST32): Likewise.
8034         [C99-based-standards] (PRIXFAST32): Likewise.
8035         [C99-based-standards] (SCNdFAST32): Likewise.
8036         [C99-based-standards] (SCNiFAST32): Likewise.
8037         [C99-based-standards] (SCNoFAST32): Likewise.
8038         [C99-based-standards] (SCNuFAST32): Likewise.
8039         [C99-based-standards] (SCNxFAST32): Likewise.
8040         [C99-based-standards] (PRId64): Likewise.
8041         [C99-based-standards] (PRIi64): Likewise.
8042         [C99-based-standards] (PRIo64): Likewise.
8043         [C99-based-standards] (PRIu64): Likewise.
8044         [C99-based-standards] (PRIx64): Likewise.
8045         [C99-based-standards] (PRIX64): Likewise.
8046         [C99-based-standards] (SCNd64): Likewise.
8047         [C99-based-standards] (SCNi64): Likewise.
8048         [C99-based-standards] (SCNo64): Likewise.
8049         [C99-based-standards] (SCNu64): Likewise.
8050         [C99-based-standards] (SCNx64): Likewise.
8051         [C99-based-standards] (PRIdLEAST64): Likewise.
8052         [C99-based-standards] (PRIiLEAST64): Likewise.
8053         [C99-based-standards] (PRIoLEAST64): Likewise.
8054         [C99-based-standards] (PRIuLEAST64): Likewise.
8055         [C99-based-standards] (PRIxLEAST64): Likewise.
8056         [C99-based-standards] (PRIXLEAST64): Likewise.
8057         [C99-based-standards] (SCNdLEAST64): Likewise.
8058         [C99-based-standards] (SCNiLEAST64): Likewise.
8059         [C99-based-standards] (SCNoLEAST64): Likewise.
8060         [C99-based-standards] (SCNuLEAST64): Likewise.
8061         [C99-based-standards] (SCNxLEAST64): Likewise.
8062         [C99-based-standards] (PRIdFAST64): Likewise.
8063         [C99-based-standards] (PRIiFAST64): Likewise.
8064         [C99-based-standards] (PRIoFAST64): Likewise.
8065         [C99-based-standards] (PRIuFAST64): Likewise.
8066         [C99-based-standards] (PRIxFAST64): Likewise.
8067         [C99-based-standards] (PRIXFAST64): Likewise.
8068         [C99-based-standards] (SCNdFAST64): Likewise.
8069         [C99-based-standards] (SCNiFAST64): Likewise.
8070         [C99-based-standards] (SCNoFAST64): Likewise.
8071         [C99-based-standards] (SCNuFAST64): Likewise.
8072         [C99-based-standards] (SCNxFAST64): Likewise.
8073         [C99-based-standards] (PRIdMAX): Likewise.
8074         [C99-based-standards] (PRIiMAX): Likewise.
8075         [C99-based-standards] (PRIoMAX): Likewise.
8076         [C99-based-standards] (PRIuMAX): Likewise.
8077         [C99-based-standards] (PRIxMAX): Likewise.
8078         [C99-based-standards] (PRIXMAX): Likewise.
8079         [C99-based-standards] (SCNdMAX): Likewise.
8080         [C99-based-standards] (SCNiMAX): Likewise.
8081         [C99-based-standards] (SCNoMAX): Likewise.
8082         [C99-based-standards] (SCNuMAX): Likewise.
8083         [C99-based-standards] (SCNxMAX): Likewise.
8084         [C99-based-standards] (PRIdPTR): Likewise.
8085         [C99-based-standards] (PRIiPTR): Likewise.
8086         [C99-based-standards] (PRIoPTR): Likewise.
8087         [C99-based-standards] (PRIuPTR): Likewise.
8088         [C99-based-standards] (PRIxPTR): Likewise.
8089         [C99-based-standards] (PRIXPTR): Likewise.
8090         [C99-based-standards] (SCNdPTR): Likewise.
8091         [C99-based-standards] (SCNiPTR): Likewise.
8092         [C99-based-standards] (SCNoPTR): Likewise.
8093         [C99-based-standards] (SCNuPTR): Likewise.
8094         [C99-based-standards] (SCNxPTR): Likewise.
8095         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
8096         allow.
8097         * conform/data/stdint.h-data: Update comments to clarify
8098         requirements.
8099         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
8100         type.
8101         [C99-based standards] (INT8_MAX): Likewise.
8102         [C99-based standards] (INT16_MIN): Likewise.
8103         [C99-based standards] (INT16_MAX): Likewise.
8104         [C99-based standards] (INT32_MIN): Likewise.
8105         [C99-based standards] (INT32_MAX): Likewise.
8106         [C99-based standards] (INT64_MIN): Likewise.
8107         [C99-based standards] (INT64_MAX): Likewise.
8108         [C99-based standards] (UINT8_MAX): Likewise.
8109         [C99-based standards] (UINT16_MAX): Likewise.
8110         [C99-based standards] (UINT32_MAX): Likewise.
8111         [C99-based standards] (UINT64_MAX): Likewise.
8112         [C99-based standards] (INT_LEAST8_MIN): Likewise.
8113         [C99-based standards] (INT_LEAST8_MAX): Likewise.
8114         [C99-based standards] (INT_LEAST16_MIN): Likewise.
8115         [C99-based standards] (INT_LEAST16_MAX): Likewise.
8116         [C99-based standards] (INT_LEAST32_MIN): Likewise.
8117         [C99-based standards] (INT_LEAST32_MAX): Likewise.
8118         [C99-based standards] (INT_LEAST64_MIN): Likewise.
8119         [C99-based standards] (INT_LEAST64_MAX): Likewise.
8120         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
8121         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
8122         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
8123         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
8124         [C99-based standards] (INT_FAST8_MIN): Likewise.
8125         [C99-based standards] (INT_FAST8_MAX): Likewise.
8126         [C99-based standards] (INT_FAST16_MIN): Likewise.
8127         [C99-based standards] (INT_FAST16_MAX): Likewise.
8128         [C99-based standards] (INT_FAST32_MIN): Likewise.
8129         [C99-based standards] (INT_FAST32_MAX): Likewise.
8130         [C99-based standards] (INT_FAST64_MIN): Likewise.
8131         [C99-based standards] (INT_FAST64_MAX): Likewise.
8132         [C99-based standards] (UINT_FAST8_MAX): Likewise.
8133         [C99-based standards] (UINT_FAST16_MAX): Likewise.
8134         [C99-based standards] (UINT_FAST32_MAX): Likewise.
8135         [C99-based standards] (UINT_FAST64_MAX): Likewise.
8136         [C99-based standards] (INTPTR_MIN): Likewise.
8137         [C99-based standards] (INTPTR_MAX): Likewise.
8138         [C99-based standards] (UINTPTR_MAX): Likewise.
8139         [C99-based standards] (INTMAX_MIN): Likewise.
8140         [C99-based standards] (INTMAX_MAX): Likewise.
8141         [C99-based standards] (UINTMAX_MAX): Likewise.
8142         [C99-based standards] (PTRDIFF_MIN): Likewise.
8143         [C99-based standards] (PTRDIFF_MAX): Likewise.
8144         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
8145         [C99-based standards] (SIZE_MAX): Likewise.
8146         [C99-based standards] (WCHAR_MAX): Likewise.
8147         [C99-based standards] (WINT_MAX): Likewise.
8148         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
8149         constraint on value.
8150         [C99-based standards] (WCHAR_MIN): Likewise.
8151         [C99-based standards] (WINT_MIN): Likewise.
8152         [C99-based standards] (*_t): Allow.
8153         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
8154         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
8155         Include math.h-data and complex.h-data.  Remove all expectations
8156         of math.h and complex.h contents.
8157         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
8158         at end of line.
8159         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
8160         (struct tm): Expect tag.
8161         [C99-based-standards] (wcstof): Expect function.
8162         [C99-based-standards] (wcstold): Likewise.
8163         [C99-based-standards] (wcstoll): Likewise.
8164         [C99-based-standards] (wcstoull): Likewise.
8165         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
8166         macro-int-constant.  Specify type.
8167         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
8168         constraint on value.
8169         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
8170         Specify type.
8171         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
8172         Specify value.
8173         [ISO C standards]: Do not allow headers.
8174         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
8175         wcs[abcdefghijklmnopqrstuvwxyz]*.
8176         [ISO C standards] (*_t): Do not allow.
8177         * conform/data/wctype.h-data [C99-based standards] (iswblank):
8178         Expect function.
8179         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
8180         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
8181         Specify type.
8182         [ISO C standards]: Do not allow headers.
8183         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
8184         is[abcdefghijklmnopqrstuvwxyz]*.
8185         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
8186         to[abcdefghijklmnopqrstuvwxyz]*.
8187         [ISO C standards] (*_t): Do not allow.
8188         * conform/data/stdalign.h-data: New file.
8189         * conform/data/stdbool.h-data: Likewise.
8190         * conform/data/stdnoreturn.h-data: Likewise.
8191
8192 2012-11-07  Roland McGrath  <roland@hack.frob.com>
8193
8194         [BZ #14815]
8195         * manual/filesys.texi (Directory Entries): Typo fix.
8196         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
8197
8198 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8199
8200         * elf/elf.h (EM_AARCH64): New macro.
8201         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
8202         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
8203         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
8204         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
8205         (R_AARCH64_TLSDESC): Likewise.
8206         (NT_ARM_TLS): Likewise.
8207         (NT_ARM_HW_BREAK): Likewise.
8208         (NT_ARM_HW_WATCH): Likewise.
8209
8210 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8211
8212         [BZ #14811]
8213         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
8214         (__ieee754_powl): Saturate nonzero exponents with absolute value
8215         below 0x1p-79 to +/- 0x1p-79.
8216         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
8217         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
8218         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
8219         nonzero exponents with absolute value below 0x1p-32 to +/-
8220         0x1p-32.
8221         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
8222         (__ieee754_powl): Saturate nonzero exponents with absolute value
8223         below 0x1p-79 to +/- 0x1p-79.
8224         * math/libm-test.inc (pow_test): Add more tests.
8225
8226 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8227
8228         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
8229         _dl_s390_cap_flags with kernel. Increase string length.
8230         (_dl_s390_platforms): Add z196 and zEC12.
8231
8232 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8233
8234         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
8235         Change XOPEN21K to XOPEN2K.
8236
8237 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
8238
8239         * string/memmove.c: Use memcpy when possible.
8240
8241 2012-11-06  Andreas Jaeger  <aj@suse.de>
8242
8243         * po/eo.po: Update from translation team.
8244
8245 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
8246
8247         [BZ #14793]
8248         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
8249         exponent and small x and y exponents, scale x or y up.  Increase
8250         by 2 the exponent used in scaling up.
8251         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8252         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8253         * math/libm-test.inc (fma_test): Add more tests.
8254         (fma_test_towardzero): Likewise.
8255         (fma_test_downward): Likewise.
8256         (fma_test_upward): Likewise.
8257
8258 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
8259
8260         [BZ #14805]
8261         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
8262         fenv_t *.
8263
8264         [BZ #14801]
8265         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
8266         namespace for names of struct fields.
8267         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
8268         fenv_t fields.
8269         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
8270         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
8271
8272 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8273
8274         [BZ #3665]
8275         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8276
8277 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
8278
8279         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
8280         PTR_DEMANGLE.
8281
8282         [BZ #5246]
8283         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
8284         PTR_DEMANGLE.
8285
8286 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
8287
8288         [BZ #14797]
8289         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
8290         definitely overflow as x * y not x * y + z.
8291         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8292         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8293         * math/libm-test.inc (fma_test): Add more tests.
8294         (fma_test_towardzero): Likewise.
8295         (fma_test_downward): Likewise.
8296         (fma_test_upward): Likewise.
8297
8298 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
8299
8300         [BZ #157]
8301
8302         * include/stub-tag.h: Remove file.
8303         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
8304         '#include' of it.
8305         * manual/maint.texi (Porting): Don't reference it.
8306         * Makerules ($(objpfx)stubs): Likewise.
8307         * dirent/closedir.c: Don't include <stub-tag.h>.
8308         * dirent/dirfd.c: Likewise.
8309         * dirent/fdopendir.c: Likewise.
8310         * dirent/getdents.c: Likewise.
8311         * dirent/getdents64.c: Likewise.
8312         * dirent/opendir.c: Likewise.
8313         * dirent/readdir.c: Likewise.
8314         * dirent/readdir64.c: Likewise.
8315         * dirent/readdir64_r.c: Likewise.
8316         * dirent/readdir_r.c: Likewise.
8317         * dirent/rewinddir.c: Likewise.
8318         * dirent/seekdir.c: Likewise.
8319         * dirent/telldir.c: Likewise.
8320         * gmon/profil.c: Likewise.
8321         * grp/setgroups.c: Likewise.
8322         * inet/if_index.c: Likewise.
8323         * io/access.c: Likewise.
8324         * io/chdir.c: Likewise.
8325         * io/chmod.c: Likewise.
8326         * io/chown.c: Likewise.
8327         * io/close.c: Likewise.
8328         * io/dup.c: Likewise.
8329         * io/dup2.c: Likewise.
8330         * io/dup3.c: Likewise.
8331         * io/euidaccess.c: Likewise.
8332         * io/faccessat.c: Likewise.
8333         * io/fchdir.c: Likewise.
8334         * io/fchmod.c: Likewise.
8335         * io/fchmodat.c: Likewise.
8336         * io/fchown.c: Likewise.
8337         * io/fchownat.c: Likewise.
8338         * io/fcntl.c: Likewise.
8339         * io/flock.c: Likewise.
8340         * io/fstatfs.c: Likewise.
8341         * io/fstatfs64.c: Likewise.
8342         * io/fstatvfs.c: Likewise.
8343         * io/fstatvfs64.c: Likewise.
8344         * io/futimens.c: Likewise.
8345         * io/fxstat.c: Likewise.
8346         * io/fxstat64.c: Likewise.
8347         * io/fxstatat.c: Likewise.
8348         * io/fxstatat64.c: Likewise.
8349         * io/getcwd.c: Likewise.
8350         * io/isatty.c: Likewise.
8351         * io/lchmod.c: Likewise.
8352         * io/lchown.c: Likewise.
8353         * io/link.c: Likewise.
8354         * io/linkat.c: Likewise.
8355         * io/lseek.c: Likewise.
8356         * io/lseek64.c: Likewise.
8357         * io/lxstat64.c: Likewise.
8358         * io/mkdir.c: Likewise.
8359         * io/mkdirat.c: Likewise.
8360         * io/mkfifo.c: Likewise.
8361         * io/mkfifoat.c: Likewise.
8362         * io/open.c: Likewise.
8363         * io/open64.c: Likewise.
8364         * io/openat.c: Likewise.
8365         * io/openat64.c: Likewise.
8366         * io/pipe.c: Likewise.
8367         * io/pipe2.c: Likewise.
8368         * io/poll.c: Likewise.
8369         * io/posix_fadvise.c: Likewise.
8370         * io/posix_fadvise64.c: Likewise.
8371         * io/posix_fallocate.c: Likewise.
8372         * io/posix_fallocate64.c: Likewise.
8373         * io/read.c: Likewise.
8374         * io/readlink.c: Likewise.
8375         * io/readlinkat.c: Likewise.
8376         * io/rmdir.c: Likewise.
8377         * io/sendfile.c: Likewise.
8378         * io/sendfile64.c: Likewise.
8379         * io/statfs.c: Likewise.
8380         * io/statfs64.c: Likewise.
8381         * io/statvfs.c: Likewise.
8382         * io/statvfs64.c: Likewise.
8383         * io/symlink.c: Likewise.
8384         * io/symlinkat.c: Likewise.
8385         * io/ttyname.c: Likewise.
8386         * io/ttyname_r.c: Likewise.
8387         * io/umask.c: Likewise.
8388         * io/unlink.c: Likewise.
8389         * io/unlinkat.c: Likewise.
8390         * io/utime.c: Likewise.
8391         * io/utimensat.c: Likewise.
8392         * io/write.c: Likewise.
8393         * io/xmknod.c: Likewise.
8394         * io/xmknodat.c: Likewise.
8395         * io/xstat.c: Likewise.
8396         * io/xstat64.c: Likewise.
8397         * login/getpt.c: Likewise.
8398         * login/grantpt.c: Likewise.
8399         * login/unlockpt.c: Likewise.
8400         * math/e_acoshl.c: Likewise.
8401         * math/e_acosl.c: Likewise.
8402         * math/e_asinl.c: Likewise.
8403         * math/e_atan2l.c: Likewise.
8404         * math/e_atanhl.c: Likewise.
8405         * math/e_coshl.c: Likewise.
8406         * math/e_expl.c: Likewise.
8407         * math/e_fmodl.c: Likewise.
8408         * math/e_gammal_r.c: Likewise.
8409         * math/e_hypotl.c: Likewise.
8410         * math/e_j0l.c: Likewise.
8411         * math/e_j1l.c: Likewise.
8412         * math/e_jnl.c: Likewise.
8413         * math/e_lgammal_r.c: Likewise.
8414         * math/e_log10l.c: Likewise.
8415         * math/e_log2l.c: Likewise.
8416         * math/e_logl.c: Likewise.
8417         * math/e_powl.c: Likewise.
8418         * math/e_rem_pio2l.c: Likewise.
8419         * math/e_sinhl.c: Likewise.
8420         * math/e_sqrtl.c: Likewise.
8421         * math/fclrexcpt.c: Likewise.
8422         * math/fedisblxcpt.c: Likewise.
8423         * math/feenablxcpt.c: Likewise.
8424         * math/fegetenv.c: Likewise.
8425         * math/fegetexcept.c: Likewise.
8426         * math/fegetround.c: Likewise.
8427         * math/feholdexcpt.c: Likewise.
8428         * math/fesetenv.c: Likewise.
8429         * math/fesetround.c: Likewise.
8430         * math/feupdateenv.c: Likewise.
8431         * math/fgetexcptflg.c: Likewise.
8432         * math/fraiseexcpt.c: Likewise.
8433         * math/fsetexcptflg.c: Likewise.
8434         * math/ftestexcept.c: Likewise.
8435         * math/k_cosl.c: Likewise.
8436         * math/k_rem_pio2l.c: Likewise.
8437         * math/k_sinl.c: Likewise.
8438         * math/k_tanl.c: Likewise.
8439         * math/s_asinhl.c: Likewise.
8440         * math/s_atanl.c: Likewise.
8441         * math/s_cbrtl.c: Likewise.
8442         * math/s_erfl.c: Likewise.
8443         * math/s_expm1l.c: Likewise.
8444         * math/s_log1pl.c: Likewise.
8445         * math/s_tanhl.c: Likewise.
8446         * misc/acct.c: Likewise.
8447         * misc/brk.c: Likewise.
8448         * misc/chflags.c: Likewise.
8449         * misc/chroot.c: Likewise.
8450         * misc/fchflags.c: Likewise.
8451         * misc/fgetxattr.c: Likewise.
8452         * misc/flistxattr.c: Likewise.
8453         * misc/fremovexattr.c: Likewise.
8454         * misc/fsetxattr.c: Likewise.
8455         * misc/fsync.c: Likewise.
8456         * misc/ftruncate.c: Likewise.
8457         * misc/futimes.c: Likewise.
8458         * misc/futimesat.c: Likewise.
8459         * misc/getdomain.c: Likewise.
8460         * misc/getdtsz.c: Likewise.
8461         * misc/gethostid.c: Likewise.
8462         * misc/gethostname.c: Likewise.
8463         * misc/getloadavg.c: Likewise.
8464         * misc/getpagesize.c: Likewise.
8465         * misc/getsysstats.c: Likewise.
8466         * misc/getxattr.c: Likewise.
8467         * misc/gtty.c: Likewise.
8468         * misc/ioctl.c: Likewise.
8469         * misc/lgetxattr.c: Likewise.
8470         * misc/listxattr.c: Likewise.
8471         * misc/llistxattr.c: Likewise.
8472         * misc/lremovexattr.c: Likewise.
8473         * misc/lsetxattr.c: Likewise.
8474         * misc/lutimes.c: Likewise.
8475         * misc/madvise.c: Likewise.
8476         * misc/mincore.c: Likewise.
8477         * misc/mlock.c: Likewise.
8478         * misc/mlockall.c: Likewise.
8479         * misc/mmap.c: Likewise.
8480         * misc/mprotect.c: Likewise.
8481         * misc/msync.c: Likewise.
8482         * misc/munlock.c: Likewise.
8483         * misc/munlockall.c: Likewise.
8484         * misc/munmap.c: Likewise.
8485         * misc/preadv.c: Likewise.
8486         * misc/preadv64.c: Likewise.
8487         * misc/ptrace.c: Likewise.
8488         * misc/pwritev.c: Likewise.
8489         * misc/pwritev64.c: Likewise.
8490         * misc/readv.c: Likewise.
8491         * misc/reboot.c: Likewise.
8492         * misc/remap_file_pages.c: Likewise.
8493         * misc/removexattr.c: Likewise.
8494         * misc/revoke.c: Likewise.
8495         * misc/select.c: Likewise.
8496         * misc/setdomain.c: Likewise.
8497         * misc/setegid.c: Likewise.
8498         * misc/seteuid.c: Likewise.
8499         * misc/sethostid.c: Likewise.
8500         * misc/sethostname.c: Likewise.
8501         * misc/setregid.c: Likewise.
8502         * misc/setreuid.c: Likewise.
8503         * misc/setxattr.c: Likewise.
8504         * misc/sstk.c: Likewise.
8505         * misc/stty.c: Likewise.
8506         * misc/swapoff.c: Likewise.
8507         * misc/swapon.c: Likewise.
8508         * misc/sync.c: Likewise.
8509         * misc/syncfs.c: Likewise.
8510         * misc/syscall.c: Likewise.
8511         * misc/truncate.c: Likewise.
8512         * misc/ualarm.c: Likewise.
8513         * misc/usleep.c: Likewise.
8514         * misc/ustat.c: Likewise.
8515         * misc/utimes.c: Likewise.
8516         * misc/vhangup.c: Likewise.
8517         * misc/writev.c: Likewise.
8518         * posix/_exit.c: Likewise.
8519         * posix/alarm.c: Likewise.
8520         * posix/execve.c: Likewise.
8521         * posix/fexecve.c: Likewise.
8522         * posix/fork.c: Likewise.
8523         * posix/fpathconf.c: Likewise.
8524         * posix/getaddrinfo.c: Likewise.
8525         * posix/getegid.c: Likewise.
8526         * posix/geteuid.c: Likewise.
8527         * posix/getgid.c: Likewise.
8528         * posix/getgroups.c: Likewise.
8529         * posix/getlogin.c: Likewise.
8530         * posix/getlogin_r.c: Likewise.
8531         * posix/getpgid.c: Likewise.
8532         * posix/getpid.c: Likewise.
8533         * posix/getppid.c: Likewise.
8534         * posix/getresgid.c: Likewise.
8535         * posix/getresuid.c: Likewise.
8536         * posix/getsid.c: Likewise.
8537         * posix/getuid.c: Likewise.
8538         * posix/glob64.c: Likewise.
8539         * posix/nanosleep.c: Likewise.
8540         * posix/pathconf.c: Likewise.
8541         * posix/pause.c: Likewise.
8542         * posix/posix_madvise.c: Likewise.
8543         * posix/pread.c: Likewise.
8544         * posix/pread64.c: Likewise.
8545         * posix/pwrite.c: Likewise.
8546         * posix/pwrite64.c: Likewise.
8547         * posix/sched_getaffinity.c: Likewise.
8548         * posix/sched_getp.c: Likewise.
8549         * posix/sched_gets.c: Likewise.
8550         * posix/sched_primax.c: Likewise.
8551         * posix/sched_primin.c: Likewise.
8552         * posix/sched_rr_gi.c: Likewise.
8553         * posix/sched_setaffinity.c: Likewise.
8554         * posix/sched_setp.c: Likewise.
8555         * posix/sched_sets.c: Likewise.
8556         * posix/sched_yield.c: Likewise.
8557         * posix/setgid.c: Likewise.
8558         * posix/setlogin.c: Likewise.
8559         * posix/setpgid.c: Likewise.
8560         * posix/setresgid.c: Likewise.
8561         * posix/setresuid.c: Likewise.
8562         * posix/setsid.c: Likewise.
8563         * posix/setuid.c: Likewise.
8564         * posix/sleep.c: Likewise.
8565         * posix/spawni.c: Likewise.
8566         * posix/sysconf.c: Likewise.
8567         * posix/times.c: Likewise.
8568         * posix/wait.c: Likewise.
8569         * posix/wait3.c: Likewise.
8570         * posix/wait4.c: Likewise.
8571         * posix/waitpid.c: Likewise.
8572         * resolv/gai_sigqueue.c: Likewise.
8573         * resource/getpriority.c: Likewise.
8574         * resource/getrlimit.c: Likewise.
8575         * resource/getrusage.c: Likewise.
8576         * resource/nice.c: Likewise.
8577         * resource/setpriority.c: Likewise.
8578         * resource/setrlimit.c: Likewise.
8579         * resource/ulimit.c: Likewise.
8580         * rt/aio_cancel.c: Likewise.
8581         * rt/aio_fsync.c: Likewise.
8582         * rt/aio_read.c: Likewise.
8583         * rt/aio_sigqueue.c: Likewise.
8584         * rt/aio_suspend.c: Likewise.
8585         * rt/aio_write.c: Likewise.
8586         * rt/clock_getres.c: Likewise.
8587         * rt/clock_gettime.c: Likewise.
8588         * rt/clock_nanosleep.c: Likewise.
8589         * rt/clock_settime.c: Likewise.
8590         * rt/lio_listio.c: Likewise.
8591         * rt/mq_close.c: Likewise.
8592         * rt/mq_getattr.c: Likewise.
8593         * rt/mq_notify.c: Likewise.
8594         * rt/mq_open.c: Likewise.
8595         * rt/mq_receive.c: Likewise.
8596         * rt/mq_send.c: Likewise.
8597         * rt/mq_setattr.c: Likewise.
8598         * rt/mq_timedreceive.c: Likewise.
8599         * rt/mq_timedsend.c: Likewise.
8600         * rt/mq_unlink.c: Likewise.
8601         * rt/shm_open.c: Likewise.
8602         * rt/shm_unlink.c: Likewise.
8603         * rt/timer_create.c: Likewise.
8604         * rt/timer_delete.c: Likewise.
8605         * rt/timer_getoverr.c: Likewise.
8606         * rt/timer_gettime.c: Likewise.
8607         * rt/timer_settime.c: Likewise.
8608         * setjmp/__longjmp.c: Likewise.
8609         * setjmp/setjmp.c: Likewise.
8610         * signal/kill.c: Likewise.
8611         * signal/killpg.c: Likewise.
8612         * signal/raise.c: Likewise.
8613         * signal/sigaction.c: Likewise.
8614         * signal/sigaltstack.c: Likewise.
8615         * signal/sigblock.c: Likewise.
8616         * signal/sigignore.c: Likewise.
8617         * signal/sigintr.c: Likewise.
8618         * signal/signal.c: Likewise.
8619         * signal/sigpause.c: Likewise.
8620         * signal/sigpending.c: Likewise.
8621         * signal/sigqueue.c: Likewise.
8622         * signal/sigreturn.c: Likewise.
8623         * signal/sigset.c: Likewise.
8624         * signal/sigsetmask.c: Likewise.
8625         * signal/sigstack.c: Likewise.
8626         * signal/sigsuspend.c: Likewise.
8627         * signal/sigtimedwait.c: Likewise.
8628         * signal/sigvec.c: Likewise.
8629         * signal/sigwait.c: Likewise.
8630         * signal/sigwaitinfo.c: Likewise.
8631         * signal/sysv_signal.c: Likewise.
8632         * socket/accept.c: Likewise.
8633         * socket/accept4.c: Likewise.
8634         * socket/bind.c: Likewise.
8635         * socket/connect.c: Likewise.
8636         * socket/getpeername.c: Likewise.
8637         * socket/getsockname.c: Likewise.
8638         * socket/getsockopt.c: Likewise.
8639         * socket/isfdtype.c: Likewise.
8640         * socket/listen.c: Likewise.
8641         * socket/recv.c: Likewise.
8642         * socket/recvfrom.c: Likewise.
8643         * socket/recvmsg.c: Likewise.
8644         * socket/send.c: Likewise.
8645         * socket/sendmsg.c: Likewise.
8646         * socket/sendto.c: Likewise.
8647         * socket/setsockopt.c: Likewise.
8648         * socket/shutdown.c: Likewise.
8649         * socket/sockatmark.c: Likewise.
8650         * socket/socket.c: Likewise.
8651         * socket/socketpair.c: Likewise.
8652         * stdio-common/ctermid.c: Likewise.
8653         * stdio-common/cuserid.c: Likewise.
8654         * stdio-common/remove.c: Likewise.
8655         * stdio-common/rename.c: Likewise.
8656         * stdio-common/renameat.c: Likewise.
8657         * stdio-common/tempname.c: Likewise.
8658         * stdlib/getcontext.c: Likewise.
8659         * stdlib/makecontext.c: Likewise.
8660         * stdlib/setcontext.c: Likewise.
8661         * stdlib/swapcontext.c: Likewise.
8662         * stdlib/system.c: Likewise.
8663         * streams/fattach.c: Likewise.
8664         * streams/fdetach.c: Likewise.
8665         * streams/getmsg.c: Likewise.
8666         * streams/getpmsg.c: Likewise.
8667         * streams/putmsg.c: Likewise.
8668         * streams/putpmsg.c: Likewise.
8669         * sysdeps/unix/bsd/getpt.c: Likewise.
8670         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
8671         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
8672         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
8673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
8674         Likewise.
8675         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
8676         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
8677         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
8678         * sysvipc/msgctl.c: Likewise.
8679         * sysvipc/msgget.c: Likewise.
8680         * sysvipc/msgrcv.c: Likewise.
8681         * sysvipc/msgsnd.c: Likewise.
8682         * sysvipc/semctl.c: Likewise.
8683         * sysvipc/semget.c: Likewise.
8684         * sysvipc/semop.c: Likewise.
8685         * sysvipc/semtimedop.c: Likewise.
8686         * sysvipc/shmat.c: Likewise.
8687         * sysvipc/shmctl.c: Likewise.
8688         * sysvipc/shmdt.c: Likewise.
8689         * sysvipc/shmget.c: Likewise.
8690         * termios/tcdrain.c: Likewise.
8691         * termios/tcflow.c: Likewise.
8692         * termios/tcflush.c: Likewise.
8693         * termios/tcgetattr.c: Likewise.
8694         * termios/tcgetpgrp.c: Likewise.
8695         * termios/tcsendbrk.c: Likewise.
8696         * termios/tcsetattr.c: Likewise.
8697         * termios/tcsetpgrp.c: Likewise.
8698         * time/adjtime.c: Likewise.
8699         * time/clock.c: Likewise.
8700         * time/getitimer.c: Likewise.
8701         * time/gettimeofday.c: Likewise.
8702         * time/setitimer.c: Likewise.
8703         * time/settimeofday.c: Likewise.
8704         * time/stime.c: Likewise.
8705         * time/time.c: Likewise.
8706
8707 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
8708
8709         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
8710         /usr/old/bin.
8711
8712         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
8713         instead of spaces.
8714         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
8715
8716 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
8717
8718         [BZ #14796]
8719         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
8720         FE_TONEAREST before applying Dekker multiplication and Knuth
8721         addition.  Clear inexact exceptions and check for exact zero
8722         results afterwards.
8723         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8724         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8725         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8726         * math/libm-test.inc (fma_test): Add more tests.
8727         (fma_test_towardzero): Likewise.
8728         (fma_test_downward): Likewise.
8729         (fma_test_upward): Likewise.
8730         * sysdeps/generic/math_private.h (default_libc_fesetround): New
8731         function.
8732         (libc_fesetround): New macro.
8733         (libc_fesetroundf): Likewise.
8734         (libc_fesetroundl): Likewise.
8735         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
8736         function.
8737         (libc_fesetround_387): Likewise.
8738         (libc_fesetroundf): New macro.
8739         (libc_fesetround): Likewise.
8740         (libc_fesetroundl): Likewise.
8741         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
8742         function.
8743         (libc_fesetroundf): New macro.
8744         (libc_fesetround): Likewise.
8745         (libc_fesetroundl): Likewise.
8746         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
8747         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
8748         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
8749         libm_hidden_ver.
8750         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
8751         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
8752         libm_hidden_def.
8753         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
8754         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
8755         libm_hidden_ver.
8756         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
8757         libm_hidden_def.
8758
8759         [BZ #3439]
8760         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
8761         integer constant usable in #if and use that to give value to enum
8762         constant.
8763         (FE_DIVBYZERO): Likewise.
8764         (FE_UNDERFLOW): Likewise.
8765         (FE_OVERFLOW): Likewise.
8766         (FE_INVALID): Likewise.
8767         (FE_INVALID_SNAN): Likewise.
8768         (FE_INVALID_ISI): Likewise.
8769         (FE_INVALID_IDI): Likewise.
8770         (FE_INVALID_ZDZ): Likewise.
8771         (FE_INVALID_IMZ): Likewise.
8772         (FE_INVALID_COMPARE): Likewise.
8773         (FE_INVALID_SOFTWARE): Likewise.
8774         (FE_INVALID_SQRT): Likewise.
8775         (FE_INVALID_INTEGER_CONVERSION): Likewise.
8776         (FE_TONEAREST): Likewise.
8777         (FE_TOWARDZERO): Likewise.
8778         (FE_UPWARD): Likewise.
8779         (FE_DOWNWARD): Likewise.
8780         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
8781         (FE_DIVBYZERO): Likewise.
8782         (FE_OVERFLOW): Likewise.
8783         (FE_UNDERFLOW): Likewise.
8784         (FE_INEXACT): Likewise.
8785         (FE_TONEAREST): Likewise.
8786         (FE_DOWNWARD): Likewise.
8787         (FE_UPWARD): Likewise.
8788         (FE_TOWARDZERO): Likewise.
8789         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
8790         (FE_UNDERFLOW): Likewise.
8791         (FE_OVERFLOW): Likewise.
8792         (FE_DIVBYZERO): Likewise.
8793         (FE_INVALID): Likewise.
8794         (FE_TONEAREST): Likewise.
8795         (FE_TOWARDZERO): Likewise.
8796         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
8797         (FE_OVERFLOW): Likewise.
8798         (FE_UNDERFLOW): Likewise.
8799         (FE_DIVBYZERO): Likewise.
8800         (FE_INEXACT): Likewise.
8801         (FE_TONEAREST): Likewise.
8802         (FE_TOWARDZERO): Likewise.
8803         (FE_UPWARD): Likewise.
8804         (FE_DOWNWARD): Likewise.
8805         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
8806         (FE_DIVBYZERO): Likewise.
8807         (FE_OVERFLOW): Likewise.
8808         (FE_UNDERFLOW): Likewise.
8809         (FE_INEXACT): Likewise.
8810         (FE_TONEAREST): Likewise.
8811         (FE_DOWNWARD): Likewise.
8812         (FE_UPWARD): Likewise.
8813         (FE_TOWARDZERO): Likewise.
8814
8815 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
8816
8817         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
8818
8819 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
8820
8821         * scripts/cross-test-ssh.sh (command): Use newlines to separate
8822         commands.  Quote $PWD.
8823         (blacklist_exports): Don't use remove_newlines.  Replace "declare
8824         -x" by "export".
8825         (remove_newlines): Remove.
8826
8827 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
8828
8829         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
8830         * stdlib/stdlib.h (atof): Moved to ...
8831         * include/bits/stdlib-float.h: Here.  New file.
8832         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
8833         * stdlib/bits/stdlib-float.h: New file.
8834         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
8835         -mno-sse -mno-mmx.
8836         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
8837         <xmmintrin.h>.
8838
8839 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8840
8841         * conform/conformtest.pl (@headers): Add fenv.h.
8842         * conform/data/fenv.h-data: New file.
8843         * include/fenv.h [_ISOMAC]: Disable all contents of file except
8844         include of <math/fenv.h>.
8845
8846         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
8847         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
8848         && !UNIX98].  Enables tests for XOPEN2K8.
8849         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
8850         POSIX2008]: Likewise.
8851
8852         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
8853         (struct rusage): Do not expect type or its members.
8854
8855         [BZ #3439]
8856         * math/math.h (FP_NAN): Define macro to integer constant usable in
8857         #if and use that to give value to enum constant.
8858         (FP_INFINITE): Likewise.
8859         (FP_ZERO): Likewise.
8860         (FP_SUBNORMAL): Likewise.
8861         (FP_NORMAL): Likewise.
8862
8863 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
8864
8865         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
8866         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
8867         arguments.
8868
8869 2012-11-02  Roland McGrath  <roland@hack.frob.com>
8870
8871         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
8872         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
8873         autoconf-time if not.
8874         * configure.in: Remove AC_PREREQ.
8875
8876 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8877
8878         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
8879         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
8880         of the internal implementation.
8881
8882 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8883
8884         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
8885         except include of <misc/sys/syslog.h>.
8886
8887 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8888
8889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
8890         function returns with a NULL context exit with zero.
8891
8892 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8893
8894         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
8895
8896 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
8897
8898         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
8899         (run_program_cmd): This.
8900         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
8901         (tst_langinfo): New variable.  Use it.
8902
8903 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
8904
8905         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
8906         floating point opcodes.
8907
8908 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8909
8910         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
8911         variable.
8912
8913         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
8914
8915         * sysdeps/mach/hurd/powerpc: Remove directory.
8916         * sysdeps/mach/powerpc: Likewise.
8917
8918 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8919
8920         * scripts/check-local-headers.sh: Ignore c++ headers.
8921
8922 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8923
8924         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
8925         __libc_cleanup_region_start argument.
8926
8927 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
8928
8929         [BZ #14784]
8930         [BZ #14785]
8931         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
8932         x * y using scaling, not as x * y + z.
8933         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8934         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8935         * math/libm-test.inc (fma_test): Add more tests.
8936         (fma_test_towardzero): Likewise.
8937         (fma_test_downward): Likewise.
8938         (fma_test_upward): Likewise.
8939
8940 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8941
8942         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
8943
8944 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8945
8946         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8947         New variable.
8948
8949 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
8950
8951         * rt/tst-shm.c (worker): Correct checking for mmap failure.
8952
8953 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8954
8955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8956         Fix sort order.
8957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8958         Likewise.
8959
8960 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8961
8962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8963         Fix the order of the list for glibc 2.17.
8964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8965         Likewise.
8966
8967 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8968
8969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8970
8971 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8972
8973         [BZ #14610]
8974         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
8975         for low part of x being zero before using __atanl (y).
8976         * math/libm-test.inc (atan2_test): Add another test.
8977
8978         * manual/install.texi (Configuring and compiling): Document
8979         general use of test-wrapper and test-wrapper-env.
8980         * INSTALL: Regenerated.
8981
8982         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8983         (__fma): Do not extract and scale down low bits on after-rounding
8984         systems when result rounded to normal precision would have normal
8985         exponent.
8986         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8987         (__fmal): Do not extract and scale down low bits on after-rounding
8988         systems when result rounded to normal precision would have normal
8989         exponent.
8990         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
8991         (__fmal): Do not extract and scale down low bits on after-rounding
8992         systems when result rounded to normal precision would have normal
8993         exponent.
8994         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
8995         macro.
8996         (fma_test): Add more tests.
8997         (fma_test_towardzero): Likewise.
8998         (fma_test_downward): Likewise.
8999         (fma_test_upward): Likewise.
9000
9001 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
9002
9003         * sysdeps/i386/tininess.h: Renamed to ...
9004         * sysdeps/x86/tininess.h: This.
9005         * sysdeps/x86_64/tininess.h: Removed.
9006
9007 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
9008
9009         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
9010         input.  Use $(build-program-cmd).
9011         ($(objpfx)tst-array1-static.out): Likewise.
9012         ($(objpfx)tst-array2.out): Likewise.
9013         ($(objpfx)tst-array3.out): Likewise.
9014         ($(objpfx)tst-array4.out): Likewise.
9015         ($(objpfx)tst-array5.out): Likewise.
9016         ($(objpfx)tst-array5-static.out): Likewise.
9017
9018 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
9019
9020         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
9021         if defined.
9022
9023         * nss/nsswitch.h (nss_interface_function): Provide new
9024         macro for use with NSS functions.
9025         * grp/initgroups.c: Use new macro.
9026         * nss/getXXbyYY.c: Likewise.
9027         * nss/getXXbyYY_r.c: Likewise.
9028         * nss/getXXent.c: Likewise.
9029         * nss/getXXent_r.c: Likewise.
9030         * sysdeps/posix/getaddrinfo.c: Likewise.
9031
9032 2012-10-30  Andreas Jaeger  <aj@suse.de>
9033
9034         * po/ru.po: Update Russion translation from translation project.
9035
9036 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
9037
9038         [BZ #14152]
9039         [BZ #14783]
9040         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
9041         result and shift together with sticky bit instead of replicating
9042         round-to-nearest rounding.
9043         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9044         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9045         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
9046         missing underflow exceptions.
9047         (fma_test_towardzero): Add more tests.
9048         (fma_test_downward): Likewise.
9049         (fma_test_upward): Likewise.
9050
9051         [BZ #14047]
9052         * sysdeps/generic/tininess.h: New file.
9053         * sysdeps/i386/tininess.h: Likewise.
9054         * sysdeps/sh/tininess.h: Likewise.
9055         * sysdeps/x86_64/tininess.h: Likewise.
9056         * stdlib/tst-strtod-underflow.c: Likewise.
9057         * stdlib/tst-tininess.c: Likewise.
9058         * stdlib/strtod_l.c: Include <tininess.h>.
9059         (round_and_return): Do not set errno for exact underflow cases.
9060         Force an underflow exception when setting errno for underflow.
9061         Determine underflow based on rounding to normal precision if
9062         TININESS_AFTER_ROUNDING.
9063         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
9064         ERANGE for exact underflow cases.
9065         * stdlib/Makefile (tests): Add tst-tininess and
9066         tst-strtod-underflow.
9067         ($(objpfx)tst-tininess): Use $(link-libm).
9068         ($(objpfx)tst-strtod-underflow): Likewise.
9069
9070 2012-10-30  Andreas Jaeger  <aj@suse.de>
9071
9072         [BZ#14767]
9073         * elf/Makefile (tests): Remove conditional for have-initfini-array
9074         since this is now always required and the variable does not exist
9075         anymore.
9076         (tests-static): Likewise.
9077         (modules-names): Likewise.
9078
9079         * po/eo.po: Add Esperanto translation from translation project.
9080
9081         * elf/tst-array1.c (fini_array): Make writeable so that it can be
9082         merged with constructor/destructor.
9083         (init_array): Likewise.
9084         * elf/tst-array2dep.c (fini_array): Likewise.
9085         (init_array): Likewise.
9086
9087 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
9088
9089         * manual/message.texi: Delete @cartouche tags.
9090
9091 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
9092
9093         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
9094         EOPNOTSUPP.
9095         * sysdeps/mach/hurd/fsync.c: Likewise.
9096
9097         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
9098         [_POSIX_REALTIME_SIGNALS]: Change condition to
9099         [_POSIX_REALTIME_SIGNALS > 0].
9100
9101 2012-10-27  Andreas Jaeger  <aj@suse.de>
9102
9103         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
9104         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
9105         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
9106         [__WORDSIZE != 64]: Likewise.
9107
9108 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
9109
9110         *  iconvdata/tst-table.sh: Remove ${SHELL}.
9111         *  iconvdata/tst-tables.sh: Likewise.
9112
9113 2012-10-25  David S. Miller  <davem@davemloft.net>
9114
9115         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9116         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
9117         of strtoull.
9118
9119         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
9120         ifunc-impl-list.c
9121         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9122         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
9123         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
9124         file.
9125
9126 2012-10-25  Roland McGrath  <roland@hack.frob.com>
9127
9128         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9129         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
9130         __getdirentries.
9131
9132 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
9133             Jim Blandy  <jimb@codesourcery.com>
9134
9135         * scripts/cross-test-ssh.sh: New file.
9136         * manual/install.texi (Configuring and compiling): Document use of
9137         cross-test-ssh.sh.
9138         * INSTALL: Regenerated.
9139
9140 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
9141
9142         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
9143         EOPNOTSUPP.
9144
9145 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
9146
9147         * Makeconfig (run-program-prefix): Fix comment.
9148
9149 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
9150             Jim Blandy  <jimb@codesourcery.com>
9151
9152         * Makeconfig (test-wrapper): New variable,
9153         (test-wrapper-env): Likewise.
9154         [$(cross-compiling) = yes && $(test-wrapper) != ""]
9155         (run-built-tests): Define to yes.
9156         (run-program-prefix): Use $(test-wrapper).
9157         (built-program-cmd): Likewise.
9158         * Rules (make-test-out): Use $(test-wrapper-env) and
9159         $(host-built-program-cmd).
9160         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
9161         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
9162         tst-pathopt.sh.
9163         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
9164         $(test-wrapper-env) to tst-rtld-load-self.sh.
9165         ($(objpfx)order2.out): Use $(test-wrapper).
9166         ($(objpfx)tst-initorder.out): Likewise.
9167         ($(objpfx)tst-initorder2.out): Likewise.
9168         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
9169         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
9170         (test_wrapper_env): New variable.  Use it to run ld.so.
9171         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
9172         Use it to run ld.so.
9173         (test_wrapper_env): Likewise.
9174         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
9175         $(test-wrapper) to run-iconv-test.sh.
9176         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
9177         (ICONV): Use $test_wrapper.
9178         * posix/Makefile ($(objpfx)globtest.out): Pass
9179         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
9180         globtest.sh, not $(run-program-prefix).
9181         * posix/globtest.sh (run_via_rtld_prefix): New variable.
9182         (test_wrapper): Likewise.
9183         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
9184         set together with run_via_rtld_prefix.
9185         (run_program_prefix): Define in terms of test_wrapper and
9186         run_via_rtld_prefix.
9187
9188 2012-10-24  Roland McGrath  <roland@hack.frob.com>
9189
9190         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
9191         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
9192         Targets removed.
9193
9194         [BZ #14743]
9195         * include/time.h: Remove librt_hidden_proto (clock_gettime).
9196         Declare __clock_getres, __clock_gettime, __clock_settime,
9197         __clock_nanosleep, and __clock_getcpuclockid.
9198         * rt/clock_gettime.c: Define __clock_gettime as an alias.
9199         Remove librt_hidden_def (clock_gettime).
9200         * sysdeps/unix/clock_gettime.c: Likewise.
9201         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
9202         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
9203         * rt/clock_getres.c: Define __clock_getres as an alias.
9204         * sysdeps/posix/clock_getres.c: Likewise.
9205         * rt/clock_settime.c: Define __clock_settime as an alias.
9206         * sysdeps/unix/clock_settime.c: Likewise.
9207         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
9208         * sysdeps/unix/clock_nanosleep.c: Likewise.
9209         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
9210         * rt/clock-compat.c: New file.
9211         * rt/Makefile (librt-routines): Add clock-compat and move
9212         $(clock-routines) to ...
9213         (routines): ... here, new variable.
9214         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
9215         Don't add get_clockfreq here.
9216         * rt/Versions (libc: GLIBC_2.17): New version set.
9217         Add clock_* symbols here.
9218         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
9219         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
9220         (GLIBC_2.17): Add clock_* symbols.
9221         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
9222         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
9223         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9225         Likewise.
9226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9227         Likewise.
9228         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9229         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
9230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
9231         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
9232         * NEWS: Mention the move.
9233
9234         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
9235         Use __open, __read, __close rather than their public counterparts.
9236         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9237         (__get_clockfreq_via_cpuinfo): Likewise.
9238         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
9239         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
9240
9241         * config.h.in (HAVE_IFUNC): New #undef.
9242         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
9243         was successful.
9244         * configure: Regenerated.
9245
9246 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
9247
9248         * configure.in: Move READELF check to start of file.
9249         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
9250         libc_cv_asm_gnu_indirect_function in the process.
9251         * configure: Regenerated.
9252
9253 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
9254
9255         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
9256         send the output to /dev/null.
9257         (libc_cv_cc_with_libunwind): Likewise.
9258         (libc_cv_as_noexecstack): Likewise.
9259         * configure: Regenerate.
9260
9261 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
9262
9263         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
9264
9265         * posix/globtest.sh (TMPDIR): Do not set.
9266         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
9267         (testout): Likewise.
9268
9269 2012-10-24  Andreas Jaeger  <aj@suse.de>
9270
9271         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
9272         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
9273         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
9274         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
9275         posix_fadvise64, posix_fallocate64.
9276
9277         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
9278         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
9279         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
9280         Likewise.
9281         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
9282         Likewise.
9283         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
9284
9285         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
9286         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
9287         <bits/fcntl-linux.h>.
9288         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
9289
9290         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
9291         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
9292         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
9293         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
9294         [__WORDSIZE != 64]: Likewise.
9295
9296 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
9297
9298         * Makeconfig (run-built-tests): New variable.
9299         * Rules [$(cross-compiling) = yes]: Change condition to
9300         [$(run-built-tests) = no].
9301         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
9302         to [$(run-built-tests) = yes].
9303         * elf/Makefile [$(cross-compiling) = no]: Likewise
9304         * grp/Makefile [$(cross-compiling) = no]: Likewise.
9305         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
9306         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
9307         * intl/Makefile [$(cross-compiling) = no]: Likewise.
9308         * io/Makefile [$(cross-compiling) = no]: Likewise.
9309         * libio/Makefile [$(cross-compiling) = no]: Likewise.
9310         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
9311         * misc/Makefile [$(cross-compiling) = no]: Likewise.
9312         * posix/Makefile [$(cross-compiling) = no]: Likewise.
9313         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
9314         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
9315         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
9316         * string/Makefile [$(cross-compiling) = no]: Likewise.
9317
9318         * posix/Makefile ($(objpfx)globtest.out): Pass
9319         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
9320         $(rtld-installed-name).
9321         * posix/globtest.sh (elf_objpfx): Remove variable.
9322         (rtld_installed_name): Likewise.
9323         (library_path): Likewise.
9324         (run_program_prefix): New variable.  Use for running globtest
9325         binary.
9326
9327 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
9328             Joseph Myers  <joseph@codesourcery.com>
9329
9330         * Makeconfig (host-built-program-cmd): New variable.
9331         * elf/Makefile (tst-stackguard1-ARGS): Use
9332         $(host-built-program-cmd).
9333         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
9334         (tst-spawn-ARGS): Likewise.
9335         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
9336
9337 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
9338             Jim Blandy  <jimb@codesourcery.com>
9339
9340         * Makeconfig (run-via-rtld-prefix): New variable.
9341         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
9342         (built-program-cmd): Likewise.
9343
9344 2012-10-22  Andreas Jaeger  <aj@suse.de>
9345
9346         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
9347         __O_RSYNC if it exists, otherwise to O_SYNC.
9348
9349 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
9350             Joseph Myers  <joseph@codesourcery.com>
9351
9352         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
9353         /dev/null.
9354         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
9355         from /dev/null
9356         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
9357         /dev/null.
9358
9359 2012-10-22  Andreas Jaeger  <aj@suse.de>
9360
9361         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
9362         Define always.
9363         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
9364
9365         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9366         bits/fcntl-linux.h.
9367
9368         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
9369         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
9370
9371         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
9372         to __O_LARGEFILE.
9373         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
9374         to __O_LARGEFILE.
9375
9376 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
9377             Joseph Myers  <joseph@codesourcery.com>
9378
9379         * config.make.in (NM): New variable.
9380
9381 2012-10-21  Andreas Jaeger  <aj@suse.de>
9382
9383         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
9384         definitions and declarations that are provided by
9385         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
9386
9387 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9388
9389         [BZ #14683]
9390         * elf/Makefile (tests-static): Add tst-leaks1-static.
9391         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
9392         ($(objpfx)tst-leaks1-static): New rule.
9393         ($(objpfx)tst-leaks1-static-mem): Likewise.
9394         (tst-leaks1-static-ENV): New macro.
9395         * elf/dl-open.c (dl_open_worker): Check the main application
9396         only if SHARED is defined.
9397         * elf/tst-leaks1-static.c: New file.
9398
9399 2012-10-20  Andreas Jaeger  <aj@suse.de>
9400
9401         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
9402         generic values for Linux.
9403         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
9404         and declarations that are provided by <bits/fcntl-linux.h> and
9405         include <bits/fcntl-linux.h>.
9406         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9407         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9408
9409 2012-10-20  Roland McGrath  <roland@hack.frob.com>
9410
9411         * io/fcntl.h: Move include of <bits/types.h> to the top and
9412         include it unconditionally.
9413
9414 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9415
9416         * wcsmbs/Makefile (tests-ifunc): New variable.
9417         (tests): Add $(tests-ifunc).
9418         * wcsmbs/test-wcschr-ifunc.c: New file.
9419         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
9420         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
9421         * wcsmbs/test-wcslen-ifunc.c: Likewise.
9422         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
9423         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
9424
9425         * string/Makefile (tests-ifunc): New variable.
9426         (tests): Add $(tests-ifunc).
9427         * string/test-memccpy.c (TEST_NAME): New macro.
9428         * string/test-memchr.c (TEST_NAME): Likewise.
9429         * string/test-memcmp.c (TEST_NAME): Likewise.
9430         * string/test-memcpy.c (TEST_NAME): Likewise.
9431         * string/test-memmem.c (TEST_NAME): Likewise.
9432         * string/test-memmove.c (TEST_NAME): Likewise.
9433         * string/test-memset.c (TEST_NAME): Likewise.
9434         * string/test-rawmemchr.c (TEST_NAME): Likewise.
9435         * string/test-stpcpy.c (TEST_NAME): Likewise.
9436         * string/test-stpncpy.c (TEST_NAME): Likewise.
9437         * string/test-strcasecmp.c (TEST_NAME): Likewise.
9438         * string/test-strcasestr.c (TEST_NAME): Likewise.
9439         * string/test-strcat.c (TEST_NAME): Likewise.
9440         * string/test-strchr.c (TEST_NAME): Likewise.
9441         * string/test-strcmp.c(TEST_NAME): Likewise.
9442         * string/test-strcpy.c (TEST_NAME): Likewise.
9443         * string/test-strcspn.c (TEST_NAME): Likewise.
9444         * string/test-strlen.c (TEST_NAME): Likewise.
9445         * string/test-strncasecmp.c (TEST_NAME): Likewise.
9446         * string/test-strncmp.c (TEST_NAME): Likewise.
9447         * string/test-strncpy.c (TEST_NAME): Likewise.
9448         * string/test-strnlen.c (TEST_NAME): Likewise.
9449         * string/test-strpbrk.c (TEST_NAME): Likewise.
9450         * string/test-strrchr.c (TEST_NAME): Likewise.
9451         * string/test-strspn.c (TEST_NAME): Likewise.
9452         * string/test-strstr.c (TEST_NAME): Likewise.
9453         * string/test-bcopy-ifunc.c: New file.
9454         * string/test-bzero-ifunc.c: Likewise.
9455         * string/test-memccpy-ifunc.c: Likewise.
9456         * string/test-memchr-ifunc.c: Likewise.
9457         * string/test-memcmp-ifunc.c: Likewise.
9458         * string/test-memcpy-ifunc.c: Likewise.
9459         * string/test-memmem-ifunc.c: Likewise.
9460         * string/test-memmove-ifunc.c: Likewise.
9461         * string/test-mempcpy-ifunc.c: Likewise.
9462         * string/test-memset-ifunc.c: Likewise.
9463         * string/test-rawmemchr-ifunc.c: Likewise.
9464         * string/test-stpcpy-ifunc.c: Likewise.
9465         * string/test-stpncpy-ifunc.c: Likewise.
9466         * string/test-strcasecmp-ifunc.c: Likewise.
9467         * string/test-strcasestr-ifunc.c: Likewise.
9468         * string/test-strcat-ifunc.c: Likewise.
9469         * string/test-strchr-ifunc.c: Likewise.
9470         * string/test-strchrnul-ifunc.c: Likewise.
9471         * string/test-strcmp-ifunc.c: Likewise.
9472         * string/test-strcpy-ifunc.c: Likewise.
9473         * string/test-strcspn-ifunc.c: Likewise.
9474         * string/test-strlen-ifunc.c: Likewise.
9475         * string/test-strncasecmp-ifunc.c: Likewise.
9476         * string/test-strncat-ifunc.c: Likewise.
9477         * string/test-strncmp-ifunc.c: Likewise.
9478         * string/test-strncpy-ifunc.c: Likewise.
9479         * string/test-strnlen-ifunc.c: Likewise.
9480         * string/test-strpbrk-ifunc.c: Likewise.
9481         * string/test-strrchr-ifunc.c: Likewise.
9482         * string/test-strspn-ifunc.c: Likewise.
9483         * string/test-strstr-ifunc.c: Likewise.
9484
9485         * debug/Makefile (tests-ifunc): New variable.
9486         (tests): Add $(tests-ifunc).
9487         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
9488         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
9489         * debug/test-stpcpy_chk-ifunc.c: New file.
9490         * debug/test-strcpy_chk-ifunc.c: Likewise.
9491
9492 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9493
9494         [BZ #13601]
9495         * elf/dl-load.c (open_verify): Retry read if the entire ELF
9496         header is not read in.
9497
9498 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
9499
9500         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
9501         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
9502         directly.  Pass built executable to script as
9503         $(built-program-cmd).
9504         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
9505         $testprogram without using LD_LIBRARY_PATH and $ldso.
9506
9507         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
9508         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
9509         $(rtld-installed-name).
9510         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
9511         (rtld_installed_name): Likewise.
9512         (library_path): Likewise.
9513         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
9514         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
9515         $(run-program-prefix) to tst-tables.sh.
9516         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
9517         it to run tst-table-from and tst-table-to.
9518         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
9519         Pass it to tst-table.sh.
9520         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
9521         $(run-program-prefix) to tst-gettext.sh.
9522         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
9523         tst-translit.sh.
9524         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
9525         tst-gettext2.sh.
9526         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
9527         to run tst-gettext.
9528         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
9529         to run tst-gettext2.
9530         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
9531         to run tst-translit.
9532         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
9533         $(run-program-prefix) to tst-mtrace.sh.
9534         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
9535         to run tst-mtrace.
9536         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
9537         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
9538         $(rtld-installed-name).
9539         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
9540         (rtld_installed_name): Likewise.
9541         (run_program_prefix): New variable.  Use it to run wordexp-test.
9542
9543         * Makeconfig (ARCH): Remove all definitions.
9544         (machine): Likewise.
9545         [ARCH]: Remove conditional code.
9546         [!objdir]: Give error.
9547         [!objdir] (objpfx): Remove.
9548         [!objdir] (common-objpfx): Likewise.
9549         [!objdir] (common-objdir): Likewise.
9550         * configure.in (config_makefile): Remove.  Hardcode Makefile in
9551         AC_CONFIG_FILES call.
9552         * configure: Regenerated.
9553
9554         [BZ #13888]
9555         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
9556         or TMPDIR.
9557         (testout): Likewise.
9558
9559         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
9560         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
9561         $(rtld-installed-name).
9562         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
9563         (rtld_installed_name): Likwise.
9564         (runit): Remove function.
9565         (run_getconf): New variable,  Use it for running getconf binary.
9566
9567 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
9568
9569         [BZ #14716]
9570         * string/test-memmem.c (check_result): New function.
9571         (do_one_test): Use it.
9572         (check1): New function.
9573         (test_main): Use it.
9574
9575 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9576
9577         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
9578
9579 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
9580
9581         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
9582         (_G_LSEEK64): Likewise.
9583         (_G_MMAP64): Likewise.
9584         (_G_FSTAT64): Likewise.
9585         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
9586         (_G_LSEEK64): Likewise.
9587         (_G_MMAP64): Likewise.
9588         (_G_FSTAT64): Likewise.
9589         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
9590         unconditional.  Call __mmap64 directly.
9591         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
9592         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
9593         __lseek64 directly.
9594         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
9595         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
9596         __mmap64 directly.
9597         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
9598         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
9599         __lseek64 directly.
9600         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
9601         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
9602         __lseek64 directly.
9603         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
9604         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
9605         __lseek64 directly.
9606         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
9607         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
9608         __fxstat64 directly.
9609         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
9610         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
9611         unconditional.
9612         (freopen64) [!_G_OPEN64]: Remove conditional code.
9613         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
9614         unconditional.
9615         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
9616         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
9617         unconditional.
9618         (ftello64) [!_G_LSEEK64]: Remove conditional code.
9619         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
9620         unconditional.
9621         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
9622         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
9623         unconditional.
9624         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
9625         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
9626         unconditional.
9627         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
9628         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
9629         unconditional.
9630         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
9631         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
9632         unconditional.
9633         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
9634
9635 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9636
9637         [BZ #12140]
9638         * manual/memory.texi (Malloc Tunable Parameters): Add note
9639         about free list pointers overwriting some perturb bytes.
9640         Wording suggested by Roland McGrath.
9641
9642 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
9643
9644         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
9645         (lgamma_test): Likewise.
9646         (tgamma_test): Likewise.
9647
9648 2012-10-16  Florian Weimer  <fweimer@redhat.com>
9649
9650         [BZ #14700]
9651         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
9652         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
9653
9654 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
9655
9656         * NEWS: Mention BZ #14716.
9657         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
9658         when removing AVAILABLE1_USES_J macro.
9659
9660 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9661
9662         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
9663         (__bswap_64): __uint64_t for unsigned 64-bit int.
9664
9665 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
9666
9667         * include/string.h (memmem): Declare libc hidden alias.
9668         * string/memmem.c (memmem): Define libc hidden alias.
9669         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
9670         __read, __close instead of open, read, close.
9671
9672 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
9673
9674         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
9675         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
9676         global and hidden.
9677         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
9678         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
9679         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
9680         Likewise.
9681         (__rawmemchr_sse2): Likewise.
9682         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
9683         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
9684         (__strchr_sse2): Likewise.
9685         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
9686         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
9687         (__strcasecmp_sse2): Likewise.
9688         (__strncasecmp_sse2): Likewise.
9689         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
9690         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
9691         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
9692         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
9693         (__strrchr_sse2): Likewise.
9694         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
9695         ifunc-impl-list.c.
9696         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
9697         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
9698         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
9699         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
9700         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
9701         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
9702         * sysdeps/x86_64/multiarch/memset.S: Likewise.
9703         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
9704         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
9705         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
9706         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
9707         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
9708         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
9709         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
9710         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
9711         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
9712         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
9713         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
9714         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
9715         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
9716         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
9717         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
9718         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
9719         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
9720         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
9721         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
9722         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
9723         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
9724         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
9725         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
9726
9727         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
9728         global and hidden.
9729         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
9730         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
9731         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
9732         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
9733         Likewise.
9734         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
9735         Likewise.
9736         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
9737         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
9738         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
9739         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
9740         ifunc-impl-list.c.
9741         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9742         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9743         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9744         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9745         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9746         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9747         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9748         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9749         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9750         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9751         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9752         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9753         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9754         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9755         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9756         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9757         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9758         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
9759         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9760         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
9761         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9762         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9763         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9764         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9765         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9766         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9767         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9768         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9769         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9770         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9771         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9772         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9773         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9774         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
9775         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9776         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9777         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9778         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9779         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9780         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9781         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
9782
9783         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
9784         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
9785         * include/ifunc-impl-list.h: New file.
9786         * misc/ifunc-impl-list.c: Likewise.
9787         * misc/Makefile (routines): Add ifunc-impl-list.
9788         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
9789         * string/test-string.h: Include <ifunc-impl-list.h>.
9790         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
9791         impl_array): New variables.
9792         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
9793         are defined.
9794         (test_init): Call __libc_ifunc_impl_list to initialize
9795         func_list if TEST_IFUNC and TEST_NAME are defined.
9796
9797         * string/Makefile (strop-tests): Add bcopy and bzero.
9798         * string/test-bcopy.c: New file.
9799         * string/test-bzero.c: Likewise.
9800         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
9801         defined.
9802         * string/test-memset.c: Support bzero test if TEST_BZERO is
9803         defined.
9804         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
9805         __libc_memmove.
9806         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
9807         __libc_memset.
9808         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
9809         of memset.
9810
9811 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
9812
9813         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
9814         * configure: Regenerated.
9815
9816         * Makeconfig (+link-static-before-libc): Don't include
9817         $(link-static-libc).
9818
9819         * libio/libio.h (_IO_pos_t): Remove.
9820
9821 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9822
9823         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
9824         McGrath.
9825
9826 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9827
9828         * crypt/crypt-entry.c: Include fips-private.h.
9829         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
9830         * crypt/md5c-test.c (main): Tolerate disabled MD5.
9831         * sysdeps/unix/sysv/linux/fips-private.h: New file.
9832         * sysdeps/generic/fips-private.h: New file, dummy fallback.
9833
9834 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9835
9836         * crypt/crypt-private.h: Include stdbool.h.
9837         (_ufc_setup_salt_r): Return bool.
9838         * crypt/crypt-entry.c: Include errno.h.
9839         (__crypt_r): Return NULL with EINVAL for bad salt.
9840         * crypt/crypt_util.c (bad_for_salt): New.
9841         (_ufc_setup_salt_r): Check that salt is long enough and within
9842         the specified alphabet.
9843         * crypt/badsalttest.c: New file.
9844         * crypt/Makefile (tests): Add it.
9845         ($(objpfx)badsalttest): New.
9846
9847 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9848
9849         * NEWS: Add entry for BZ #14602.
9850
9851 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9852
9853         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
9854         type-generic.
9855         * math/libm-test.inc: Update comment listing what functions and
9856         macros are tested.
9857         (isgreater_test): New function.
9858         (isgreaterequal_test): Likewise.
9859         (isless_test): Likewise.
9860         (islessequal_test): Likewise.
9861         (islessgreater_test): Likewise.
9862         (isunordered_test): Likewise.
9863         (main): Call the new functions.
9864
9865 2012-10-09  Roland McGrath  <roland@hack.frob.com>
9866
9867         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
9868         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
9869         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
9870         * sysdeps/i386/configure: Regenerated.
9871         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
9872         * sysdeps/mach/configure: Regenerated.
9873         * sysdeps/mach/hurd/configure: Regenerated.
9874         * sysdeps/powerpc/configure: Regenerated.
9875         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9876         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9877         * sysdeps/s390/s390-32/configure: Regenerated.
9878         * sysdeps/s390/s390-64/configure: Regenerated.
9879         * sysdeps/sh/configure: Regenerated.
9880         * sysdeps/sparc/configure: Regenerated.
9881         * sysdeps/unix/sysv/linux/configure: Regenerated.
9882         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
9883         * sysdeps/x86_64/configure: Regenerated.
9884
9885         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
9886         defined.  Don't check if MAP is NULL.
9887
9888 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9889
9890         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
9891         (_G_stat64): Likewise.
9892         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
9893         (_G_stat64): Likewise.
9894         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
9895         instead of struct _G_stat64.
9896         * libio/fileops.c (mmap_remap_check): Likewise.
9897         (decide_maybe_mmap): Likewise.
9898         (_IO_new_file_seekoff): Likewise.
9899         (_IO_file_stat): Likewise.
9900         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
9901         _G_off64_t.
9902         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
9903         instead of struct _G_stat64.
9904         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9905
9906 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
9907
9908         [BZ #14602]
9909         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9910         Replace with ...
9911         (CHECK_EOL): New macro.
9912         (two_way_short_needle): Check beginning of haystack for EOL.  Use
9913         CHECK_EOL.
9914         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9915         Replace with CHECK_EOL.
9916         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9917         Replace with CHECK_EOL.
9918
9919 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
9920
9921         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
9922         type-generic.
9923         * math/libm-test.inc: Update comment listing what functions and
9924         macros are tested.
9925         (finite_test): New function.
9926         (isinf_test): Likewise.
9927         (isnan_test): Likewise.
9928         (fpclassify_test): Test subnormal input.
9929         (isfinite_test): Likewise.
9930         (isnormal_test): Likewise.
9931         (main): Call the new functions.
9932
9933 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
9934
9935         [BZ #14660]
9936         * Makerules (%.dynsym): Force C locale when running
9937         $(OBJDUMP) --dynamic-syms.
9938
9939 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
9940
9941         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
9942         <stdint.h>.
9943
9944 2012-10-06  David S. Miller  <davem@davemloft.net>
9945
9946         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
9947         upper 32-bits of the length value in %o2 since we use branch-on-register
9948         tests which consider the entire 64-bit register.
9949
9950 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9951
9952         * string/test-strstr.c (check2): Add a test for page boundary.
9953
9954 2012-10-05  David S. Miller  <davem@davemloft.net>
9955
9956         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
9957         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9958         file.
9959         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9960         sysdep_routines.
9961         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9962         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
9963         and bzero when HWCAP_SPARC_CRYPTO is present.
9964
9965 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
9966
9967         [BZ #14602]
9968         * string/test-strstr.c (check2): New function.
9969         (test_main): Call check2.
9970
9971         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
9972         and bug-strchr1.
9973         * string/bug-strcasestr1.c (do_test): Moved to ...
9974         * string/test-strcasestr.c (check1): Here.  New function.
9975         (do_one_test): Break out result checking code into ...
9976         (check_result): This.  New function.
9977         (do_one_test): Call check_result.
9978         (test_main): Call check1.
9979         * string/bug-strchr1.c (do_test): Moved to ...
9980         * string/test-strchr.c (check1): Here.  New function.
9981         (do_one_test): Break out result checking code into ...
9982         (check_result): This.  New function.
9983         (do_one_test): Call check_result.
9984         (test_main): Call check1.
9985         * string/bug-strstr1.c (main): Moved to ...
9986         * string/test-strstr.c (check1): Here.  New function.
9987         (do_one_test): Break out result checking code into ...
9988         (check_result): This.  New function.
9989         (do_one_test): Call check_result.
9990         (test_main): Call check1.
9991         * string/bug-strcasestr1.c: Removed.
9992         * string/bug-strchr1.c: Likewise.
9993         * string/bug-strstr1.c: Likewise.
9994
9995         * elf/Makefile (dl-routines): Add hwcaps.
9996         * elf/dl-support.c (_dl_important_hwcaps): Removed.
9997         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
9998         (_dl_important_hwcaps): Moved to ...
9999         * elf/dl-hwcaps.c: Here.  New file.
10000         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
10001
10002         [BZ #14557]
10003         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
10004         if IS_IN_rtld isn't defined.
10005
10006         * elf/dl-support.c (_dl_sysinfo_map): New.
10007         Include "get-dynamic-info.h" and "setup-vdso.h".
10008         (_dl_non_dynamic_init): Call setup_vdso.
10009         * elf/dynamic-link.h: Don't include <assert.h>.
10010         (elf_get_dynamic_info): Moved to ...
10011         * elf/get-dynamic-info.h: Here.  New file.
10012         * elf/dynamic-link.h: Include "get-dynamic-info.h".
10013         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
10014         * elf/setup-vdso.h: Here.  New file.
10015         * elf/rtld.c: Include "setup-vdso.h".
10016         (dl_main): Call setup_vdso.
10017
10018 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
10019
10020         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
10021         creal in comment listing functions tested.  List finite, isinf,
10022         isnan, isless, islessequal, isgreater, isgreaterequal,
10023         islessgreater, isunordered, lgamma_r and pow10 as functions and
10024         macros not tested.  Mention which functions not tested are aliases
10025         for other functions.  Fix typo.  Note that signs of NaNs are not
10026         tested.
10027
10028         * scripts/config.guess: Update from config.git.
10029         * scripts/config.sub: Likewise.
10030
10031 2012-10-04  Roland McGrath  <roland@hack.frob.com>
10032
10033         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
10034         * misc/madvise.c (madvise): Renamed to __madvise.
10035         Make madvise a weak alias.
10036         * include/sys/mman.h: Declare __madvise.
10037         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
10038         * sysdeps/unix/syscalls.list
10039         (madvise): Make __madvise the strong name, and madvise a weak alias.
10040         * sysdeps/unix/sysv/linux/syscalls.list
10041         (madvise, mmap): Remove redundant entries.
10042         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
10043         * malloc/malloc.c (mtrim): Likewise.
10044         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
10045
10046 2012-10-03  Roland McGrath  <roland@hack.frob.com>
10047
10048         * sysdeps/mach/hurd/dl-cache.c: File removed.
10049         * config.h.in (USE_LDCONFIG): New #undef.
10050         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
10051         * configure: Regenerated.
10052         * elf/Makefile (dl-routines): Add dl-cache only under
10053         [$(use-ldconfig) = yes].
10054         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
10055         cache on [USE_LDCONFIG].
10056         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
10057         [USE_LDCONFIG].
10058         * elf/rtld.c (dl_main): Likewise.
10059
10060 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
10061
10062         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
10063         _SC_LEVEL4_CACHE_LINESIZE.
10064
10065 2012-10-03  Roland McGrath  <roland@hack.frob.com>
10066
10067         * sysdeps/unix/bsd/confstr.h: File removed.
10068
10069 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
10070
10071         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
10072         sys/sdt-config.h.
10073
10074 2012-10-02  Roland McGrath  <roland@hack.frob.com>
10075
10076         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
10077         Make 'mapoff' field ElfW(Off) rather than off_t.
10078
10079 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10080
10081         * nscd/Makefile: Remove nscd-cflags and all its users.
10082         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
10083         (CFLAGS-nonlib): Add compiler flags for nscd modules.
10084
10085         [BZ #10631]
10086         * malloc.c (malloc_printerr): Clarify error message.
10087
10088 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
10089
10090         [BZ #14648]
10091         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10092         Set bit_FMA_Usable if FMA is supported.
10093         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
10094         macro.
10095         (bit_FMA4_Usable): Updated.
10096         (index_FMA_Usable): New macro.
10097         (CPUID_FMA): Likewise
10098         (HAS_FMA): Defined with bit_FMA_Usable.
10099
10100 2012-10-01  Roland McGrath  <roland@hack.frob.com>
10101
10102         * bits/types.h (__swblk_t): Type removed.
10103         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
10104         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
10105         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10106         (__SWBLK_T_TYPE): Likewise.
10107         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10108         (__SWBLK_T_TYPE): Likewise.
10109         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10110         (__SWBLK_T_TYPE): Likewise.
10111         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10112         (__SWBLK_T_TYPE): Likewise.
10113
10114 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
10115             Honza Horak <hhorak@redhat.com>
10116
10117         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
10118         (xdr_mapname): Use YPMAXMAP as maxsize.
10119         (xdr_peername): Use YPMAXPEER as maxsize.
10120         (xdr_keydat): Use YPAXRECORD as maxsize.
10121         (xdr_valdat): Use YPMAXRECORD as maxsize.
10122
10123 2012-10-01  Roland McGrath  <roland@hack.frob.com>
10124
10125         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
10126
10127         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
10128         * csu/init-first.c: ... here.
10129         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
10130         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
10131         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
10132         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
10133         * sysdeps/i386/init-first.c: File removed.
10134         * sysdeps/sh/init-first.c: File removed.
10135
10136 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
10137
10138         [BZ #14645]
10139         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
10140         if x * y might underflow to zero and z is zero.
10141         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
10142         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
10143         * math/libm-test.inc (min_subnorm_value): New variable.
10144         (fma_test): Add more tests.
10145         (fma_test_towardzero): Likewise.
10146         (fma_test_downward): Likewise
10147         (fma_test_upward): Likewise.
10148         (initialize): Set min_subnorm_value.
10149
10150 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
10151
10152         [BZ #14638]
10153         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
10154         0 + 0.
10155         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
10156         mode for addition resulting in exact zero.
10157         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
10158         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
10159         exact 0 + 0.
10160         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
10161         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
10162         * math/libm-test.inc (fma_test): Add more tests.
10163         (fma_test_towardzero): New function.
10164         (fma_test_downward): Likewise.
10165         (fma_test_upward): Likewise.
10166         (main): Call the new functions.
10167
10168 2012-09-28  David S. Miller  <davem@davemloft.net>
10169
10170         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
10171
10172 2012-09-28  Roland McGrath  <roland@hack.frob.com>
10173
10174         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
10175         instead of SIGALRM.
10176
10177         * sysdeps/gnu/_G_config.h: Moved to ...
10178         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
10179         * sysdeps/mach/hurd/_G_config.h: Moved to ...
10180         * sysdeps/generic/_G_config.h: ... here.
10181
10182         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
10183
10184         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
10185
10186         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
10187         Conditionalize target on [libnss_test1.so-version].
10188
10189         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
10190
10191         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
10192         (elfobjdir): Move out of conditionals.
10193
10194         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
10195         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
10196         (__nss_lookup_function): Conditionalize label remove_from_tree on
10197         [!DO_STATIC_NSS || SHARED], matching its only use.
10198
10199 2012-09-28  David S. Miller  <davem@davemloft.net>
10200
10201         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
10202         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
10203         file.
10204         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
10205         sysdep_routines.
10206         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
10207         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
10208         when HWCAP_SPARC_CRYPTO is present.
10209
10210 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10211
10212         * io/tst-mknodat.c: Create a FIFO instead of a socket.
10213
10214 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
10215
10216         [BZ #6530]
10217         * stdio-common/vfprintf.c (process_string_arg): Revert
10218         2000-07-22 change.
10219
10220 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
10221
10222         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
10223         for testcase.
10224         * stdio-common/tst-sprintf.c: Include <locale.h>
10225         (main): Test sprintf's handling of incomplete multibyte
10226         characters.
10227
10228 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
10229
10230         * elf/dl-runtime.c (VERSYMIDX): Removed.
10231         * elf/dl-version.c (VERSYMIDX): Likewise.
10232         * elf/do-rel.h (VERSYMIDX): Likewise.
10233         (VALIDX): Likewise.
10234         * elf/dynamic-link.h (VERSYMIDX): Likewise.
10235         * elf/rtld.c (VALIDX): Likewise.
10236         (ADDRIDX): Likewise.
10237         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
10238         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
10239         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
10240         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
10241         (VALIDX): Likewise.
10242         (ADDRIDX): Likewise.
10243
10244 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10245
10246         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
10247
10248 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
10249
10250         [BZ #11438]
10251         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
10252         to global scope.
10253         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
10254         addresses are in the same scope as 192.0.2/24.
10255         * posix/gai.conf: Document new scope table defaults.
10256
10257 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10258
10259         [BZ #5298]
10260         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
10261         for ftell.  Compute offsets from write pointers instead.
10262         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
10263
10264 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10265
10266         [BZ #14543]
10267         * libio/Makefile (tests): New test case tst-fseek.
10268         * libio/tst-fseek.c: New test case to verify that fseek/ftell
10269         combination works in wide mode.
10270         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
10271         state when the external buffer state changes.
10272
10273 2012-09-27  David S. Miller  <davem@davemloft.net>
10274
10275         [BZ #14376]
10276         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
10277         pass reloc->r_addend in as the 'high' argument to
10278         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
10279
10280         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10281
10282 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10283
10284         * rt/tst-aio2.c: Include <pthread.h>.
10285         * rt/tst-aio3.c: Likewise.
10286
10287 2012-09-27  Steve Ellcey  <sellcey@mips.com>
10288
10289         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
10290
10291 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
10292
10293         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
10294         contents on [SHARED].
10295
10296 2012-09-26  Marek Polacek  <polacek@redhat.com>
10297
10298         [BZ #14530]
10299         [BZ #13741]
10300         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
10301         for C++ and GCC <4.3 as well as for non GCC compilers.
10302
10303 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10304
10305         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10306
10307 2012-09-25  Roland McGrath  <roland@hack.frob.com>
10308
10309         * Makefile.in (all, install): Declare with .PHONY.
10310         Reported by Michael Hope <michael.hope@linaro.org>.
10311
10312 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10313
10314         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
10315         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
10316         system header.
10317         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
10318         Likewise.
10319         (sydep_routines): Add the new and the internal functions.
10320         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
10321         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
10322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
10323         (GLIBC_2.17): Add the new function.
10324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
10325         (GLIBC_2.17): Likewise.
10326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
10327         (GLIBC_2.17): Likewise.
10328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
10329         (GLIBC_2.17): Likewise.
10330         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
10331
10332 2012-09-25  Alan Modra  <amodra@gmail.com>
10333
10334         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
10335         Add release barrier before setting once_control to say
10336         initialisation is done.  Add hints on lwarx.  Use macro in
10337         place of isync.
10338         (clear_once_control): Add release barrier.
10339
10340 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
10341
10342         [BZ #13629]
10343         * math/s_clog.c (__clog): Handle more values close to |z| = 1
10344         specially.
10345         * math/s_clog10.c (__clog10): Likewise.
10346         * math/s_clog10f.c (__clog10f): Likewise.
10347         * math/s_clog10l.c (__clog10l): Likewise.
10348         * math/s_clogf.c (__clogf): Likewise.
10349         * math/s_clogl.c (__clogl): Likewise.
10350         * math/Makefile (libm-calls): Add x2y2m1.
10351         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
10352         (__x2y2m1): Likewise.
10353         (__x2y2m1l): Likewise.
10354         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
10355         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
10356         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10357         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10358         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
10359         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10360         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
10361         * sysdeps/i386/fpu/libm-test-ulps: Update.
10362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10363
10364         [BZ #14621]
10365         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
10366         int as type of variable DEPTH.
10367         (glob): Use size_t instead of int as type of variables NEWCOUNT
10368         and OLD_PATHC.
10369
10370 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10371
10372         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10373         Add s_sincosf-sse2.
10374         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
10375         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
10376         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
10377         macros for using routine as __sincosf_ia32.
10378         Use macro for function declaration and weak_alias.
10379         * sysdeps/i386/fpu/libm-test-ulps: Update.
10380
10381         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
10382         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10383
10384         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
10385         subnormal argument.
10386         * math/s_cexpf.c (__cexpf): Likewise.
10387         * math/s_csinf.c (__csinf): Likewise.
10388         * math/s_csinhf.c (__csinhf): Likewise.
10389         * math/s_ctanf.c (__ctanf): Likewise.
10390         * math/s_ctanhf.c (__ctanhf): Likewise.
10391         * math/s_ccosh.c (__ccoshf): Likewise.
10392         * math/s_cexp.c (__cexpl): Likewise.
10393         * math/s_csin.c (__csin): Likewise.
10394         * math/s_csinh.c (__csinh): Likewise.
10395         * math/s_ctan.c (__ctan): Likewise.
10396         * math/s_ctanh.c (ctanh): Likewise.
10397         * math/s_ccoshl.c (__ccoshl): Likewise.
10398         * math/s_cexpl.c (__cexpl): Likewise.
10399         * math/s_csinl.c (__csinl): Likewise.
10400         * math/s_csinhl.c (__csinhl): Likewise.
10401         * math/s_ctanl.c (__ctanl): Likewise.
10402         * math/s_ctanhl.c (__ctanhl): Likewise.
10403
10404 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
10405
10406         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
10407         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
10408         (_IO_off_t): Define to __off_t, not _G_off_t.
10409         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
10410         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
10411         (_IO_wint_t): Define to wint_t, not _G_wint_t.
10412         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
10413         type of __dummy and __dummy2 fields.
10414         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
10415         (_G_ssize_t): Likewise.
10416         (_G_off_t): Likewise.
10417         (_G_pid_t): Likewise.
10418         (_G_uid_t): Likewise.
10419         (_G_wchar_t): Likewise.
10420         (_G_wint_t): Likewise.
10421         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
10422         (_G_ssize_t): Likewise.
10423         (_G_off_t): Likewise.
10424         (_G_pid_t): Likewise.
10425         (_G_uid_t): Likewise.
10426         (_G_wchar_t): Likewise.
10427         (_G_wint_t): Likewise.
10428         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
10429         (_G_ssize_t): Likewise.
10430         (_G_off_t): Likewise.
10431         (_G_pid_t): Likewise.
10432         (_G_uid_t): Likewise.
10433         (_G_wchar_t): Likewise.
10434         (_G_wint_t): Likewise.
10435
10436 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10437
10438         * malloc/arena.c: Include malloc-sysdep.h.
10439         (shrink_heap): Use check_may_shrink_heap to decide if madvise
10440         is sufficient to shrink the heap or an unmap is needed.
10441         * sysdeps/generic/malloc-sysdep.h: New file.  Define
10442         new function check_may_shrink_heap.
10443         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
10444         new function check_may_shrink_heap.
10445
10446 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10447
10448         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
10449         comments.
10450
10451 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
10452
10453         * catgets/test-gencat.sh: Add "set -e".
10454         * elf/tst-pathopt.sh: Likewise.
10455         * grp/tst_fgetgrent.sh: Likewise.
10456         * iconvdata/run-iconv-test.sh: Likewise.
10457         * intl/tst-gettext.sh: Likewise.
10458         * intl/tst-gettext2.sh: Likewise.
10459         * intl/tst-gettext4.sh: Likewise.
10460         * intl/tst-gettext6.sh: Likewise.
10461         * intl/tst-translit.sh: Likewise.
10462         * io/ftwtest-sh: Likewise.
10463         * libio/test-freopen.sh: Likewise.
10464         * malloc/tst-mtrace.sh: Likewise.
10465         * posix/globtest.sh: Likewise.
10466         * posix/tst-getconf.sh: Likewise.
10467         * posix/wordexp-tst.sh: Likewise.
10468         * stdio-common/tst-printf.sh: Likewise.
10469         * stdio-common/tst-unbputc.sh: Likewise.
10470         * stdlib/tst-fmtmsg.sh: Likewise.
10471         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
10472         * catgets/Makefile: Do not specify -e option when running
10473         testsuite shell scripts.
10474         * elf/Makefile: Likewise.
10475         * grp/Makefile: Likewise.
10476         * iconvdata/Makefile: Likewise.
10477         * intl/Makefile: Likewise.
10478         * io/Makefile: Likewise.
10479         * libio/Makefile: Likewise.
10480         * malloc/Makefile: Likewise.
10481         * posix/Makefile: Likewise.
10482         * stdio-common/Makefile: Likewise.
10483         * stdlib/Makefile: Likewise.
10484         * sysdeps/x86_64/Makefile: Likewise.
10485
10486         * io/ftwtest-sh: Add copyright header.
10487         * posix/globtest.sh: Likewise.
10488         * posix/tst-getconf.sh: Likewise.
10489         * posix/wordexp-tst.sh: Likewise.
10490         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
10491
10492 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
10493
10494         [BZ #13679]
10495         * Makeconfig (+link): Defined as $(+link-static) if
10496         $(build-shared) isn't yes.
10497         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
10498         isn't yes.
10499         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
10500
10501         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
10502
10503         [BZ #14562]
10504         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
10505         new chunk size with MALLOC_ALIGN_MASK.
10506
10507 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
10508
10509         [BZ #5044]
10510         * stdio-common/printf_fphex.c: Include <stdbool.h> and
10511         <rounding-mode.h>.
10512         (__printf_fphex): Determine rounding using get_rounding_mode and
10513         round_away.
10514         * stdio-common/tst-printf-round.c (struct hex_test): New
10515         structure.
10516         (hex_tests): New variable.
10517         (test_hex_in_one_mode): New function.
10518         (do_test): Also run tests for hex float output.
10519
10520 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
10521
10522         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
10523         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
10524         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
10525         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
10526         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
10527         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
10528         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
10529         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
10530
10531 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
10532
10533         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
10534         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
10535         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
10536         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
10537
10538 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
10539
10540         [BZ #14579]
10541         * elf/rtld.c (dl_main): Limit the check for self loading to normal
10542         mode only.
10543         * elf/tst-rtld-load-self.sh: New test.
10544         * elf/Makefile: Run it.
10545
10546 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
10547
10548         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
10549         (tst-writev-ENV): Remove.
10550         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
10551
10552 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
10553
10554         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
10555
10556 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
10557
10558         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
10559         unconditional.
10560         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
10561         Likewise.
10562         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
10563         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
10564         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
10565         Likewise.
10566
10567 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
10568
10569         [BZ #14587]
10570         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
10571         * config.make.in (have-cpp-asm-debuginfo): Removed.
10572         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
10573         * configure: Regenerated.
10574
10575 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
10576
10577         [BZ #5044]
10578         * stdio-common/printf_fp.c: Include <stdbool.h> and
10579         <rounding-mode.h>.
10580         (___printf_fp): Determine rounding using get_rounding_mode and
10581         round_away.
10582         * stdio-common/tst-printf-round.c: New file.
10583         * stdio-common/Makefile (tests): Add tst-printf-round.
10584         (link-libm): New variable.
10585         ($(objpfx)tst-printf-round): Depend in $(link-libm).
10586
10587 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
10588
10589         [BZ #14576]
10590         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
10591         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
10592         Likewise.
10593         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
10594         Likewise.
10595
10596 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
10597
10598         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
10599         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10600         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10601         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10602
10603 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
10604
10605         [BZ #14518]
10606         * include/rounding-mode.h: New file.
10607         * sysdeps/generic/get-rounding-mode.h: Likewise.
10608         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
10609         * stdlib/strtod_l.c: Include <rounding-mode.h>.
10610         (MAX_VALUE): New macro.
10611         (MIN_VALUE): Likewise.
10612         (overflow_value): New function.
10613         (underflow_value): Likewise.
10614         (round_and_return): Use overflow_value and underflow_value to
10615         determine return values in overflow and underflow cases.  Use
10616         round_away to determine rounding depending on rounding mode.
10617         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
10618         determine return values in overflow and underflow cases.
10619         * stdlib/tst-strtod-round.c: Include <fenv.h>.
10620         (struct test_results): New structure.
10621         (struct test): Use struct test_results to store expected results
10622         for all rounding modes.
10623         (TEST): Include expected results for all rounding modes.
10624         (test_in_one_mode): New function.
10625         (do_test): Use test_in_one_mode to compute and check results.
10626         Check results for all rounding modes.
10627         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
10628         $(link-libm).
10629
10630 2012-12-09  Allan McRae  <allan@archlinux.org>
10631
10632         * sysdeps/i386/fpu/libm-test-ulps: Update
10633
10634 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
10635
10636         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
10637         (_G_int32_t): Likewise.
10638         (_G_uint16_t): Likewise.
10639         (_G_uint32_t): Likewise.
10640         (_G_HAVE_BOOL): Likewise.
10641         (_G_HAVE_ATEXIT): Likewise.
10642         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10643         (_G_HAVE_IO_FILE_OPEN): Likewise.
10644         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
10645         (_G_int32_t): Likewise.
10646         (_G_uint16_t): Likewise.
10647         (_G_uint32_t): Likewise.
10648         (_G_HAVE_BOOL): Likewise.
10649         (_G_HAVE_ATEXIT): Likewise.
10650         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10651         (_G_HAVE_IO_FILE_OPEN): Likewise.
10652         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
10653         (_G_int32_t): Likewise.
10654         (_G_uint16_t): Likewise.
10655         (_G_uint32_t): Likewise.
10656         (_G_HAVE_BOOL): Likewise.
10657         (_G_HAVE_ATEXIT): Likewise.
10658         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10659         (_G_HAVE_IO_FILE_OPEN): Likewise.
10660
10661 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
10662
10663         * csu/libc-tls.c: Update copyright years.
10664
10665 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
10666
10667         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
10668         [!_G_USING_THUNKS]: Remove conditional code.
10669         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
10670         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
10671
10672         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
10673         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
10674         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10675         (_G_VTABLE_LABEL_PREFIX): Likewise.
10676         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10677         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10678         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10679         (_G_VTABLE_LABEL_PREFIX): Likewise.
10680         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
10681         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10682         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10683         (_G_VTABLE_LABEL_PREFIX): Likewise.
10684         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
10685
10686 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
10687
10688         * libio/Makefile: Include ../Makeconfig before tests.
10689         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
10690         only if $(build-shared) is yes.
10691
10692         * iconv/gconv_db.c: Update copyright years.
10693
10694 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10695
10696         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
10697         unwind info if defined PIC. Fix special cases description.
10698         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
10699
10700         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
10701         DP_HI_MASK entry.
10702         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
10703
10704 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
10705
10706         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
10707
10708         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
10709         is NULL.
10710
10711         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
10712         (LDLIBS-tst-chk4): This.
10713         (LDFLAGS-tst-chk5): Renamed to ...
10714         (LDLIBS-tst-chk5): This.
10715         (LDFLAGS-tst-chk6): Renamed to ...
10716         (LDLIBS-tst-chk6): This.
10717         (LDFLAGS-tst-lfschk4): Renamed to ...
10718         (LDLIBS-tst-lfschk4): This.
10719         (LDFLAGS-tst-lfschk5): Renamed to ...
10720         (LDLIBS-tst-lfschk5): This.
10721         (LDFLAGS-tst-lfschk6): Renamed to ...
10722         (LDLIBS-tst-lfschk6): This.
10723
10724         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
10725         on $(common-objpfx)soversions.mk.
10726
10727 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
10728
10729         [BZ #10014]
10730         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
10731         example host name.
10732
10733 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
10734
10735         * malloc/arena.c (arena_get_retry): New function that gets
10736         another arena for the caller to try its request on.
10737         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
10738         current arena cannot fulfill the request.
10739         (__libc_memalign): Likewise.
10740         (__libc_memalign): Likewise.
10741         (__libc_pvalloc): Likewise.
10742         (__libc_calloc): Likewise.
10743
10744 2012-09-05  John Tobey  <john.tobey@gmail.com>
10745
10746         [BZ #13542]
10747         * manual/arith.texi (Operations on Complex): Fix description
10748         of carg branch cut.
10749
10750 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
10751
10752         [BZ #10014]
10753         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
10754         host name.
10755
10756         [BZ #10038]
10757         * manual/memory.texi (Memory): Make order of menu items match
10758         order of sections.
10759
10760 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10761
10762         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
10763         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
10764         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
10765
10766 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10767
10768         * csu/libc-tls.c (static_dtv): Renamed to ...
10769         (_dl_static_dtv): This.  Make it global.
10770         (_dl_initial_dtv): Removed.
10771         (__libc_setup_tls): Updated.
10772         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
10773         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
10774         DL_INITIAL_DTV.
10775
10776 2012-09-06  Petr Machata  <pmachata@redhat.com>
10777
10778         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
10779         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
10780         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
10781         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
10782
10783 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10784
10785         [BZ #14545]
10786         * csu/libc-tls.c (_dl_initial_dtv): New variable.
10787         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
10788         freeing dtv[-1].
10789
10790 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10791
10792         [BZ #14544]
10793         * Makeconfig (link-static-before-libc): Replace $(+prector)
10794         with $(+prectorT).
10795         (link-static-after-libc): Replace $(+postctor) with
10796         $(+postctorT).
10797         (link-bounded): Replace $(+prector)/$(+postctor) with
10798         $(+prectorT)/$(+postctorT).
10799         (+prectorT): New macro.
10800         (+postctorT): Likewise.
10801
10802 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
10803
10804         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
10805         (round_str): Handle values above the maximum for IBM long double
10806         as inexact.
10807         * stdlib/tst-strtod-round.c (tests): Regenerated.
10808
10809 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10810
10811         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
10812         assembler flag.
10813         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
10814         zarch_nohighgprs around the zarch optimized routines.
10815         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
10816         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
10817         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
10818         for zarch.
10819
10820 2012-09-05  David S. Miller  <davem@davemloft.net>
10821
10822         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10823
10824         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
10825         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
10826         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
10827         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
10828         entries.
10829
10830 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10831
10832         * malloc/arena.c: Fold copyright years.
10833         * malloc/mcheck.c, malloc/memusage.c: Likewise.
10834
10835 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10836
10837         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
10838
10839 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10840
10841         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
10842
10843 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10844
10845         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
10846         change internal state upon failure.
10847
10848 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10849
10850         * malloc/mcheck.c (mcheck_check_all): Fix typo.
10851         * malloc/memusage.c (mmap): Likewise.
10852         (mmap64, mremap): Likewise.  Adjust name in comment.
10853
10854 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10855
10856         * libio/fileops.c: Fix typos in comments.
10857         * libio/oldfileops.c: Likewise.
10858         * libio/wfileops.c: Likewise.
10859
10860 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10861
10862         [BZ #1349]
10863         * malloc/Makefile (tests): Add tst-malloc-usable test case.
10864         (tst-malloc-usable-ENV): Set environment for test case.
10865         * malloc/hooks.c (malloc_check_get_size): New function to get
10866         requested size.
10867         * malloc/malloc.c (musable): Use malloc_check_get_size.
10868         * malloc/tst-malloc-usable.c: New test case.
10869
10870 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10871
10872         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
10873
10874 2012-09-05  Allan McRae  <allan@archlinux.org>
10875
10876         [BZ #13966]
10877         * configure.in (CXX_SYSINCLUDES): Use compiler output to
10878         determine header location.
10879         * configure: Regenerated.
10880
10881 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10882
10883         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
10884         float format.
10885         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
10886         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
10887         format.
10888         (test): Regenerate.
10889
10890 2012-09-04  David S. Miller  <davem@davemloft.net>
10891
10892         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
10893         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
10894         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
10895
10896 2012-09-04  Florian Weimer  <fweimer@redhat.com>
10897
10898         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
10899         failures.
10900
10901         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
10902
10903 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
10904
10905         [BZ #9914]
10906         * libio/iogetdelim.c: Include <limits.h>.
10907         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
10908         + len + 1 would overflow.
10909
10910 2012-09-03  Andreas Jaeger  <aj@suse.de>
10911
10912         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10913         * sysdeps/i386/fpu/libm-test-ulps: Update.
10914
10915 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10916
10917         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10918         Add s_sinf-sse2, s_conf-sse2.
10919
10920         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
10921         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
10922         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
10923         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
10924
10925         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
10926         for using routine as __sinf_ia32.
10927         Use macro for function declaration and weak_alias.
10928         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
10929         for using routine as __cosf_ia32.
10930         Use macro for function declaration and weak_alias.
10931
10932         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
10933         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
10934
10935         * sysdeps/x86_64/fpu/s_sinf.S: New file.
10936         * sysdeps/x86_64/fpu/s_cosf.S: New file.
10937         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10938
10939         * math/libm-test.inc (cos_test): Add more test cases.
10940         (sin_test): Likewise.
10941         (sincos_test): Likewise.
10942
10943 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10944
10945         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
10946         (IFUNC_RESOLVE): Make pointers to the specialized implementations
10947         hidden.
10948         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10949
10950 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
10951
10952         [BZ #14538]
10953         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
10954         first element of the GOT.
10955         (elf_machine_load_address): Return the difference between
10956         the runtime address of _DYNAMIC and elf_machine_dynamic ().
10957
10958 2012-09-01  Allan McRae  <allan@archlinux.org>
10959
10960         [BZ #13412]
10961         * configure.in (AWK): Require gawk version 3.0 or later.
10962         * configure: Regenerated.
10963
10964 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
10965
10966         * sysdeps/unix/sysv/linux/kernel-features.h
10967         (__ASSUME_POSIX_CPU_TIMERS): Remove.
10968         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10969         [__NR_clock_getres]: Make code unconditional.
10970         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
10971         (clock_getcpuclockid): Remove code left unreachable by removal of
10972         conditionals.
10973         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
10974         code unconditional.
10975         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10976         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10977         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
10978         Make code unconditional.
10979         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10980         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10981         * sysdeps/unix/sysv/linux/clock_settime.c
10982         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
10983         conditional code.
10984         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
10985         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10986
10987 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
10988
10989         [BZ #14476]
10990         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
10991         scripts/test-installation.pl.
10992
10993         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
10994         and $ld_so_version if it is set.
10995
10996 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10997
10998         [BZ #14516]
10999         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
11000         failure if reading from procfs failed.
11001         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
11002
11003 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
11004
11005         * sysdeps/unix/sysv/linux/kernel-features.h
11006         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
11007         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
11008         Remove conditional code.
11009         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11010         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
11011         Remove conditional code.
11012         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11013         * sysdeps/unix/sysv/linux/i386/fxstat.c
11014         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
11015         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11016         * sysdeps/unix/sysv/linux/i386/fxstatat.c
11017         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
11018         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11019         * sysdeps/unix/sysv/linux/i386/lxstat.c
11020         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
11021         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11022         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
11023         Remove conditional code.
11024         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11025         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
11026         Remove conditional code.
11027         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11028         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
11029         <kernel-features.h>.
11030         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
11031         Remove.
11032         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
11033         Remove conditional code.
11034         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
11035         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
11036         Remove conditional.
11037
11038 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
11039
11040         [BZ #5400]
11041         * NEWS: Add fixed bug number.
11042
11043 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
11044
11045         [BZ #14519]
11046         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
11047         underflowing exponent in case of negative sign.
11048         * stdlib/tst-strtod-round-data: Add more tests.
11049         * stdlib/tst-strtod-round.c (tests): Regenerated.
11050
11051         [BZ #3479]
11052         * stdlib/strtod_l.c (NDIG): Remove.
11053         (HEXNDIG): Likewise.
11054         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
11055         smallest representable value.
11056         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
11057         lie within an exact representation of 1/2 ulp of the result.
11058         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
11059         unconditionally.
11060         (TENS_P9_IDX): Define unconditionally.
11061         (TENS_P9_SIZE): Likewise.
11062         (TENS_P10_IDX): Likewise.
11063         (TENS_P10_SIZE): Likewise.
11064         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
11065         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
11066         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
11067         entries for 10^2^13 and 10^2^14.
11068         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
11069         (TENS_P13_IDX): Define.
11070         (TENS_P13_SIZE): Likewise.
11071         (TENS_P14_IDX): Likewise.
11072         (TENS_P14_SIZE): Likewise.
11073         (_fpioconst_pow10): Change array size to
11074         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
11075         unconditional.
11076         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
11077         1024]: Add entries for 10^2^13 and 10^2^14.
11078         [LAST_POW10 > _LAST_POW10]: Remove #error.
11079         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
11080         (_fpioconst_pow10): Change array size to
11081         FPIOCONST_POW10_ARRAY_SIZE.
11082         * stdlib/gen-fpioconst.c: New file.
11083         * stdlib/gen-tst-strtod-round.c: Likewise.
11084         * stdlib/tst-strtod-round-data: Likewise.
11085         * stdlib/tst-strtod-round.c: Likewise.
11086         * stdlib/Makefile (tests): Add tst-strtod-round.
11087
11088         [BZ #14459]
11089         * stdlib/strtod_l.c: Include <stdint.h>.
11090         (NDEBUG): Do not define.
11091         (round_and_return): Change EXPONENT parameter to type intmax_t.
11092         Rearrange calculations to avoid internal overflow possibilities.
11093         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
11094         Rearrange calculations to avoid internal overflow possibilities.
11095         Assert that number fits inside MPNSIZE limbs.
11096         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
11097         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
11098         calculations and add assertions to avoid internal overflow
11099         possibilities.  Add casts to avoid signed/unsigned operations.
11100         * stdlib/tst-strtod-overflow.c: New file.
11101         * stdlib/Makefile (tests): Add tst-strtod-overflow.
11102
11103 2012-08-25  Marek Polacek  <polacek@redhat.com>
11104
11105         * time/time.h: Fix some typos in comments.
11106
11107 2012-08-23  Roland McGrath  <roland@hack.frob.com>
11108
11109         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
11110         * posix/tst-rfc3484-2.c: Likewise.
11111         * posix/tst-rfc3484-3.c: Likewise.
11112
11113 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
11114
11115         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
11116         (EF_ARM_ABI_FLOAT_HARD): Likewise.
11117
11118 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
11119
11120         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
11121         #include of fxstatat64.c.
11122
11123 2012-08-22  Roland McGrath  <roland@hack.frob.com>
11124
11125         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
11126         * shadow/getspent_r.c: Likewise.
11127         * shadow/getspnam.c: Likewise.
11128         * shadow/getspnam_r.c: Likewise.
11129         * gshadow/getsgent.c: Likewise.
11130         * gshadow/getsgent_r.c: Likewise.
11131         * gshadow/getsgnam.c: Likewise.
11132         * gshadow/getsgnam_r.c: Likewise.
11133         * inet/getnetbyad.c: Likewise.
11134         * inet/getnetbyad_r.c: Likewise.
11135         * inet/getnetbynm.c: Likewise.
11136         * inet/getnetbynm_r.c: Likewise.
11137         * inet/getnetent.c: Likewise.
11138         * inet/getnetent_r.c: Likewise.
11139         * inet/getproto.c: Likewise.
11140         * inet/getproto_r.c: Likewise.
11141         * inet/getprtent.c: Likewise.
11142         * inet/getprtent_r.c: Likewise.
11143         * inet/getprtname.c: Likewise.
11144         * inet/getprtname_r.c: Likewise.
11145         * inet/getrpcbyname.c: Likewise.
11146         * inet/getrpcbyname_r.c: Likewise.
11147         * inet/getrpcbynumber.c: Likewise.
11148         * inet/getrpcbynumber_r.c: Likewise.
11149         * inet/getrpcent.c: Likewise.
11150         * inet/getrpcent_r.c: Likewise.
11151         * inet/getaliasent.c: Likewise.
11152         * inet/getaliasent_r.c: Likewise.
11153         * inet/getaliasname.c: Likewise.
11154         * inet/getaliasname_r.c: Likewise.
11155         * nscd/getgrgid_r.c: Likewise.
11156         * nscd/getgrnam_r.c: Likewise.
11157         * nscd/gethstbyad_r.c: Likewise.
11158         * nscd/gethstbynm3_r.c: Likewise.
11159         * nscd/getpwnam_r.c: Likewise.
11160         * nscd/getpwuid_r.c: Likewise.
11161         * nscd/getsrvbynm_r.c: Likewise.
11162         * nscd/getsrvbypt_r.c: Likewise.
11163         * nscd/gai.c: Likewise.
11164
11165         * configure.in (build_nscd): New substituted variable, set
11166         by --disable-build-nscd and defaults to $use_nscd.
11167         * configure: Regenerated.
11168         * config.make.in (build-nscd): New substituted variable.
11169         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
11170         Change conditional to require [$(build-nscd) = yes] as well.
11171         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
11172
11173         [BZ# 13696]
11174         * configure.in (use_nscd): New substituted variable, set by
11175         --disable-nscd.  If enabled, define USE_NSCD.
11176         * configure: Regenerated.
11177         * config.h.in: Add USE_NSCD.
11178         * config.make.in (use-nscd): New substituted variable.
11179         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
11180         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
11181         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
11182         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
11183         (CFLAGS-getgrnam_r.c): Likewise.
11184         (CFLAGS-initgroups.c): Likewise.
11185         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
11186         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
11187         Variables removed.
11188         * inet/getnetgrent_r.c
11189         (nscd_setnetgrent): New function, broken out of ...
11190         (setnetgrent): ... here.  Call it.
11191         (innetgr): Conditionalize nscd bits on [USE_NSCD].
11192         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
11193         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
11194         * nscd/Makefile (routines, aux): Move definitions after include of
11195         Makeconfig.  Conditionalize on [$(use-nscd) != no].
11196         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
11197         Conditionalize on [USE_NSCD].
11198         (is_nscd, nscd_init_cb): Likewise.
11199         (nss_load_library): Conditionalize init callback on [USE_NSCD].
11200         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
11201         * nss/nss_db/db-init.c: Likewise.
11202         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
11203         [USE_NSCD].
11204         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
11205         (make_request): Use it.
11206         (cache_valid_p): New function.
11207         (__check_pf): Use it.
11208         * NEWS: Add item for --disable-nscd.
11209
11210 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
11211
11212         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
11213         to support sed >= 4.2.1-20-ga9bf076.
11214         * configure: Regenerated.
11215
11216 2012-08-22  Roland McGrath  <roland@hack.frob.com>
11217
11218         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
11219         Conditionalize whole body on [IREL].
11220
11221 2012-08-22  Jeff Law <law@redhat.com>
11222
11223         [BZ #14505]
11224         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
11225         if the family is PF_UNSPEC.
11226
11227 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
11228
11229         * Makerules (lib-version): Rename from V.
11230         (install-lib-nosubdir): Change V to lib-version.
11231
11232 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
11233
11234         [BZ #14252]
11235         * powerpc32/power6/wcschr.c: New file.
11236         * powerpc32/power6/wcscpy.c: New file.
11237         * powerpc32/power6/wcsrchr.c: New file.
11238         * powerpc64/power6/wcschr.c: New file.
11239         * powerpc64/power6/wcscpy.c: New file.
11240         * powerpc64/power6/wcsrchr.c: New file.
11241
11242 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
11243
11244         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
11245         (two_way_short_needle): Use it.
11246         * string/strstr.c (AVAILABLE1_USES_J): Define.
11247         * string/strcasestr.c: Likewise.
11248
11249         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
11250         array references.
11251         * string/strcasestr.c (TOLOWER): Make side-effect safe.
11252
11253         [BZ #11607]
11254         * NEWS: Add an entry.
11255         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
11256         define their defaults.
11257         (two_way_short_needle): Detect end-of-string on-the-fly.
11258         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
11259         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
11260         * string/bug-strcasestr1.c: New test.
11261         * string/Makefile: Run it.
11262
11263 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
11264
11265         [BZ #11607]
11266         * string/str-two-way.h (two_way_short_needle): Optimize matching of
11267         the first character.
11268
11269 2012-08-21  Roland McGrath  <roland@hack.frob.com>
11270
11271         * csu/elf-init.c (__libc_csu_irel): Function removed.
11272         * csu/libc-start.c (apply_irel): New function.
11273         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
11274
11275 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
11276
11277         * sysdeps/unix/sysv/linux/kernel-features.h
11278         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
11279         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
11280         <kernel-features.h>.
11281         [__NR_fadvise64_64]: Make code unconditional.
11282         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
11283         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
11284         !__NR_fadvise64_64)]: Likewise.
11285         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
11286         !__NR_fadvise64_64))]: Likewise.
11287         [__NR_fadvise64]: Make code unconditional.
11288         [!__NR_fadvise64]: Remove conditional code.
11289         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
11290         <kernel-features.h>.
11291         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11292         unconditional.
11293         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11294         conditional code.
11295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
11296         not include <kernel-features.h>.
11297         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11298         unconditional.
11299         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11300         conditional code.
11301         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
11302         include <kernel-features.h>.
11303         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11304         unconditional.
11305         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11306         conditional code.
11307
11308 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
11309
11310         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
11311         slight instruction rearrangements per scrollpipe analysis.
11312         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
11313
11314 2012-08-20  Roland McGrath  <roland@hack.frob.com>
11315
11316         * manual/syslog.texi (syslog; vsyslog, closelog):
11317         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
11318         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
11319
11320         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
11321         DSOCAPS to match condition on defining it.
11322
11323 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
11324
11325         * sysdeps/unix/sysv/linux/kernel-features.h
11326         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
11327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
11328         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11329         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
11331         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11332         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
11334         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11335         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11336
11337         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
11338         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
11339
11340         * sysdeps/unix/sysv/linux/kernel-features.h
11341         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
11342         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
11343         unconditional.
11344         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11345         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
11346         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
11347         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11348         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
11349         Make code unconditional.
11350         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11351         (__mmap64) [!__NR_mmap2]: Likewise.
11352         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
11353         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
11354         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11355         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
11356         [__NR_mmap2]: Make code unconditional.
11357         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11358         (__mmap64) [!__NR_mmap2]: Likewise.
11359
11360 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11361
11362         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
11363
11364 2012-08-18  Andreas Jaeger  <aj@suse.de>
11365
11366         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
11367
11368 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
11369
11370         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
11371         * include/unistd.h (__have_sock_cloexec): Likewise.
11372         (__have_pipe2): Likewise.
11373         (__have_dup3): Likewise.
11374
11375 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
11376
11377         [BZ #9685]
11378         * include/unistd.h (__have_pipe2): Change define into an extern int.
11379         (__have_dup3): Likewise.
11380         * socket/have_sock_cloexec.c: Include fcntl.h.
11381         (__have_pipe2): New variable.
11382         (__have_dup3): Likewise.
11383
11384 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
11385
11386         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
11387
11388 2012-08-17  Marek Polacek  <polacek@redhat.com>
11389
11390         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
11391         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
11392
11393 2012-08-17  Roland McGrath  <roland@hack.frob.com>
11394
11395         * configure.in: Add AC_SUBST for sysheaders.
11396         * configure: Regenerated.
11397         * config.make.in (sysheaders): New substituted variable.
11398
11399         * sysdeps/unix/mkfifo.c: Moved ...
11400         * sysdeps/posix/mkfifo.c: ... here.
11401         * sysdeps/unix/mkfifoat.c: Moved ...
11402         * sysdeps/posix/mkfifoat.c: ... here.
11403
11404         * sysdeps/unix/utime.c: Moved ...
11405         * sysdeps/posix/utime.c: ... here.
11406
11407         * sysdeps/unix/time.c: Moved ...
11408         * sysdeps/posix/time.c: ... here.
11409         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
11410         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
11411
11412         * sysdeps/unix/nice.c: Moved ...
11413         * sysdeps/posix/nice.c: ... here.
11414
11415         * sysdeps/unix/alarm.c: Moved ...
11416         * sysdeps/posix/alarm.c: ... here.
11417
11418         * intl/Makefile ($(codeset_mo)): Depend on the input file.
11419
11420 2012-08-17  Jeff Law <law@redhat.com>
11421
11422         * intl/Makefile (codeset_mo): New variable.
11423         ($(codeset_mo)): New target.
11424         (tst-codeset.out): Depend on that.  Remove explicit rule.
11425         (tst-gettext3.out, tst-gettext5.out): Likewise.
11426         (LOCPATH-ENV, tst-codeset-ENV): New variables.
11427         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
11428         * intl/tst-codeset.sh: Remove.
11429         * intl/tst-gettext3.sh: Likewise.
11430         * intl/tst-gettext5.sh: Likewise.
11431
11432 2012-08-17  Roland McGrath  <roland@hack.frob.com>
11433
11434         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
11435         * sysdeps/unix/syscalls.list: ... here.
11436
11437         * sysdeps/posix/getaddrinfo.c
11438         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
11439         (gaiconf_init, gaiconf_reload): Use them.
11440         [!_STATBUF_ST_NSEC]
11441         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
11442         Define using time_t rather than struct timespec.
11443
11444         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
11445         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
11446         Macros removed.
11447         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
11448         [!NO_THREADS].
11449         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
11450         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
11451         Likewise.
11452
11453         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
11454         __libc_cleanup_push argument.
11455
11456         * bits/param.h: New file.
11457         * misc/sys/param.h: New file.
11458         * include/sys/param.h: New file.
11459         * misc/Makefile (headers): Add bits/param.h.
11460         * sysdeps/generic/sys/param.h: File removed.
11461         * sysdeps/unix/sysv/linux/bits/param.h: New file.
11462         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
11463         * sysdeps/mach/hurd/bits/param.h: New file.
11464         * sysdeps/mach/hurd/sys/param.h: File removed.
11465
11466         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
11467         last change.
11468
11469         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
11470         [_IO_MTSAFE_IO].
11471         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
11472         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
11473         New macros.
11474
11475         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
11476         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
11477         rather than -D_IO_MTSAFE_IO conditionally.
11478         * stdio-common/Makefile (CPPFLAGS): Likewise.
11479         * wcsmbs/Makefile (CPPFLAGS): Likewise.
11480         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
11481         Use $(libio-mtsafe).
11482         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
11483         of -D_IO_MTSAFE_IO.
11484         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
11485         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
11486         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
11487         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
11488         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
11489         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
11490         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
11491         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
11492         (CFLAGS-fread_u_chk.c): Likewise.
11493         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
11494         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
11495         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
11496         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
11497         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
11498         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
11499         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
11500         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
11501         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
11502
11503         * libio/Makefile: Test [$(libc-reentrant) = yes]
11504         instead of [$(filter %REENTRANT, $(defines)) nonempty].
11505
11506         * Makeconfig
11507         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
11508         * sysdeps/pthread/configure: File removed.
11509         * sysdeps/pthread/Makeconfig: New file.
11510         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
11511         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
11512
11513 2012-08-16  Gary Benson  <gbenson@redhat.com>
11514
11515         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
11516         unmapping the first object in a namespace.
11517
11518 2012-08-16  Roland McGrath  <roland@hack.frob.com>
11519
11520         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
11521         (__internal_setnetgrent): ... this.  Add internal_function to
11522         definition.  Add libc_hidden_def.
11523         (setnetgrent): Update caller.
11524         (internal_endnetgrent): Renamed to ...
11525         (__internal_endnetgrent): ... this.  Add internal_function to
11526         definition.  Add libc_hidden_def.
11527         (endnetgrent): Update caller.
11528         (internal_getnetgrent_r): Renamed to ...
11529         (__internal_getnetgrent_r): ... this.  Add internal_function to
11530         definition.  Add libc_hidden_def.
11531         (__getnetgrent_r): Update caller.
11532         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
11533
11534 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
11535
11536         * stdlib/longlong.h: Update from GCC.
11537
11538 2012-08-16  Roland McGrath  <roland@hack.frob.com>
11539
11540         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
11541         on _QL, which is set by umul_ppmm but never used.
11542         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
11543         variables, which are set by GMP macros but never used.
11544         * stdio-common/_itowa.c (_itowa): Likewise.
11545         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
11546         * stdlib/mod_1.c (mpn_mod_1): Likewise.
11547
11548 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
11549
11550         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
11551         struct La_sh_regs is not constant.
11552         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
11553         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
11554         and struct La_sparc64_regs are not constant.
11555
11556 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
11557
11558         * sysdeps/unix/sysv/linux/kernel-features.h
11559         (__ASSUME_POSIX_TIMERS): Remove.
11560         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
11561         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11562         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
11563         Make code unconditional.
11564         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11565         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
11566         Make code unconditional.
11567         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11568         * sysdeps/unix/sysv/linux/clock_nanosleep.c
11569         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
11570         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11571         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
11572         Make code unconditional.
11573         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11574         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
11575         (__libc_missing_posix_timers): Remove.
11576
11577 2012-08-15  Roland McGrath  <roland@hack.frob.com>
11578
11579         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
11580         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
11581
11582         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
11583
11584         * elf/dl-sym.c: Include <stdlib.h>.
11585
11586         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
11587         constants, which avoids warnings in 32-bit builds.
11588
11589         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
11590         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
11591
11592         * misc/lseek.c: File moved to ...
11593         * io/lseek.c: ... here.
11594
11595         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
11596
11597         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
11598         shifting LEN more than 31 bits at once.
11599
11600 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11601
11602         [BZ #14195]
11603         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
11604         segmentation fault for a case of two empty input strings.
11605         * string/test-strncasecmp.c (check1): Renamed to...
11606         (bz12205): ...this.
11607         (bz14195): Add new testcase for two empty input strings and N > 0.
11608         (test_main): Call new testcase, adapt for renamed function.
11609
11610 2012-08-15  Andreas Jaeger  <aj@suse.de>
11611
11612         [BZ #14090]
11613         * crypt/md5test2.c: New test, based on test supplied by Serge
11614         Belyshev <belyshev@depni.sinp.msu.ru>.
11615         * crypt/Makefile (xtests): Add md5test-giant..
11616         * crypt/Makefile ($(objpfx)md5test-giant): Add.
11617
11618 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11619
11620         [BZ #14090]
11621         * crypt/md5.c (md5_process_block): Don't assume the buffer
11622         length is less than 2**32.
11623         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
11624         length is less than 2**64.
11625
11626 2012-08-15  Roland McGrath  <roland@hack.frob.com>
11627
11628         * string/str-two-way.h: Include <sys/param.h>.
11629         (MAX): Macro removed.
11630
11631         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
11632         Move #define and #undef of memmove to just before and after
11633         including <string.h>.
11634
11635         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
11636         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
11637         and after including <string.h>.  Move declarations of
11638         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
11639         to before #include "string/memmove.c".
11640
11641         * include/dirent.h: Declare __getdirentries.
11642
11643         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
11644         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
11645
11646 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
11647
11648         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
11649         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
11650         * sysdeps/i386/configure: Regenerated.
11651         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
11652         STABS_CURRENT_FILE, and STABS_FUN.
11653         (END): Remove call to STABS_FUN_END.
11654         (STABS_CURRENT_FILE1): Delete.
11655         (STABS_CURRENT_FILE): Likewise.
11656         (STABS_FUN): Likewise.
11657         (STABS_FUN_END): Likewise.
11658         (STABS_FUN2): Likewise.
11659         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
11660         * sysdeps/x86_64/configure: Regenerated.
11661
11662 2012-08-14  Roland McGrath  <roland@hack.frob.com>
11663
11664         * elf/dl-open.c: Include <atomic.h>.
11665         * elf/dl-lookup.c: Likewise.
11666
11667 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
11668
11669         * sysdeps/unix/sysv/linux/kernel-features.h
11670         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
11671         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
11672         unconditionally.
11673         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
11674         unconditionally.
11675         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
11676         condition on __ASSUME_CLONE_THREAD_FLAGS.
11677
11678 2012-08-14  Andreas Jaeger  <aj@suse.de>
11679
11680         * sysdeps/i386/fpu/libm-test-ulps: Update.
11681
11682 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
11683
11684         * include/atomic.h (atomic_exchange_and_add): Split into ...
11685         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
11686         New atomic macros.
11687
11688 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
11689
11690         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11691
11692 2012-08-13  Jeff Law <law@redhat.com>
11693
11694         * manual/stdio.texi (snprintf): Clarify handling of the trailing
11695         null byte in the output string.
11696
11697 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
11698
11699         * sysdeps/unix/sysv/linux/kernel-features.h
11700         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
11701         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
11702         (__ASSUME_ARG_MAX_STACK_BASED): Define.
11703         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
11704         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
11705         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
11706         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
11707
11708 2012-08-09  Jeff Law <law@redhat.com>
11709
11710         [BZ #13939]
11711         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
11712         When avoid_arena is set, don't retry in the that arena.  Pick the
11713         next one, whatever it might be.
11714         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
11715         (arena_lock): Pass in new parameter to arena_get2.
11716         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
11717         arena_get2.
11718         (__libc_malloc): Unify retrying after main arena failure with
11719         __libc_memalign version.
11720         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
11721
11722 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
11723
11724         [BZ #14166]
11725         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
11726         to __redirect_strstr.
11727         (__strstr_sse42): Use typeof __redirect_strstr.
11728         (__strstr_ia32): Likewise.
11729         (__libc_strstr): New prototype.
11730         (strstr): Renamed to ...
11731         (__libc_strstr): This.
11732         (strstr): New strong alias of __libc_strstr.
11733         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
11734         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
11735         __redirect_time.
11736         Include <time.h>.
11737         (__libc_time): New prototype.
11738         (time_ifunc): Replace time with __libc_time.
11739         (time): New strong alias and hidden definition of __libc_time.
11740         (__GI_time): Remove strong alias.
11741         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
11742         Include <stddef.h>.
11743         (memmove): Redefined to __redirect_memmove.
11744         (__memmove_sse2): Use typeof __redirect_memmove.
11745         (__memmove_ssse3): Likewise.
11746         (__memmove_ssse3_back): Likewise.
11747         (__libc_memmove): New prototype.
11748         (memmove): Renamed to ...
11749         (__libc_memmove): This.
11750         (memmove): New strong alias of __libc_memmove.
11751
11752 2012-08-08  Mark Salter  <msalter@redhat.com>
11753
11754         * elf/elf.h
11755         (R_MN10300_TLS_GD): Define.
11756         (R_MN10300_TLS_LD): Likewise.
11757         (R_MN10300_TLS_LDO): Likewise.
11758         (R_MN10300_TLS_GOTIE): Likewise.
11759         (R_MN10300_TLS_IE): Likewise.
11760         (R_MN10300_TLS_LE): Likewise.
11761         (R_MN10300_TLS_DTPMOD): Likewise.
11762         (R_MN10300_TLS_DTPOFF): Likewise.
11763         (R_MN10300_TLS_TPOFF): Likewise.
11764         (R_MN10300_SYM_DIFF): Likewise.
11765         (R_MN10300_ALIGN): Likewise.
11766         (R_MN10300_NUM): Update.
11767
11768 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
11769
11770         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
11771         Remove.
11772
11773 2012-08-08  Roland McGrath  <roland@hack.frob.com>
11774
11775         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
11776
11777         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
11778         sysdeps/unix -> sysdeps/posix move.
11779         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
11780
11781 2012-08-07      Allan McRae     <allan@archlinux.org>
11782
11783         [BZ #14303]
11784         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
11785         (SUNOS_CPP): Likewise.
11786         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
11787         not found.
11788         (open_input): Call CPP using execvp.
11789
11790 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11791
11792         * sysdeps/unix/sysv/linux/kernel-features.h
11793         (__ASSUME_PROT_GROWSUPDOWN): Remove.
11794         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11795         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11796         (__ASSUME_WAITID_SYSCALL): Likewise.
11797         * sysdeps/unix/sysv/linux/dl-execstack.c
11798         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
11799         code unconditional.
11800         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
11801         conditional code.
11802         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
11803         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
11804         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
11805         code.
11806         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
11807         unconditional.
11808         [__ASSUME_WAITID_SYSCALL]: Likewise.
11809         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
11810
11811 2012-08-07  Roland McGrath  <roland@hack.frob.com>
11812
11813         * sysdeps/unix/closedir.c: Renamed to ...
11814         * sysdeps/posix/closedir.c: ... here.
11815         * sysdeps/unix/dirfd.c: Renamed to ...
11816         * sysdeps/posix/dirfd.c: ... here.
11817         * sysdeps/unix/dirstream.h: Renamed to ...
11818         * sysdeps/posix/dirstream.h: ... here.
11819         * sysdeps/unix/fdopendir.c: Renamed to ...
11820         * sysdeps/posix/fdopendir.c: ... here.
11821         * sysdeps/unix/opendir.c: Renamed to ...
11822         * sysdeps/posix/opendir.c: ... here.
11823         * sysdeps/unix/readdir.c: Renamed to ...
11824         * sysdeps/posix/readdir.c: ... here.
11825         * sysdeps/unix/readdir_r.c: Renamed to ...
11826         * sysdeps/posix/readdir_r.c: ... here.
11827         * sysdeps/unix/rewinddir.c: Renamed to ...
11828         * sysdeps/posix/rewinddir.c: ... here.
11829         * sysdeps/unix/seekdir.c: Renamed to ...
11830         * sysdeps/posix/seekdir.c: ... here.
11831         * sysdeps/unix/telldir.c: Renamed to ...
11832         * sysdeps/posix/telldir.c: ... here.
11833         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
11834         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
11835         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
11836         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
11837
11838         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
11839         * bits/fcntl.h: ... here.
11840
11841         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
11842         not 0.
11843         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
11844         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
11845         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
11846         (struct flock): Move l_start, l_len to the beginning.
11847         Use __pid_t for l_pid.
11848         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
11849         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
11850         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
11851         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
11852         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
11853         [__USE_LARGEFILE64] (struct flock64): New type.
11854         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
11855
11856         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
11857         * bits/dirent.h: ... here.
11858
11859         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
11860         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
11861
11862 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11863
11864         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11865         Change from 2.6.0 to 2.6.16.
11866         * sysdeps/unix/sysv/linux/configure: Regenerated.
11867         * sysdeps/unix/sysv/linux/kernel-features.h
11868         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
11869         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
11870         version.
11871         (__ASSUME_UTIMES): Likewise.
11872         (__ASSUME_CLONE_STOPPED): Remove.
11873         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
11874         architectures, not kernel version.
11875         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
11876         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11877         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11878         (__ASSUME_WAITID_SYSCALL): Likewise.
11879         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
11880         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
11881         * README: State 2.6.16 as minimum Linux kernel version.  Do not
11882         refer to older versions.
11883
11884 2012-08-06  Roland McGrath  <roland@hack.frob.com>
11885
11886         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
11887         Define alphasort64 as an alias.
11888         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
11889         Define versionsort64 as an alias.
11890         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
11891         Define scandir64 as an alias.
11892         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
11893         Define scandirat64 as an alias.
11894         * dirent/alphasort64.c (alphasort64):
11895         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
11896         * dirent/versionsort64.c: Likewise.
11897         * dirent/scandir64.c: Likewise.
11898         * dirent/scandirat64.c: Likewise.
11899         * sysdeps/wordsize-64/alphasort.c: File removed.
11900         * sysdeps/wordsize-64/alphasort64.c: File removed.
11901         * sysdeps/wordsize-64/scandir.c: File removed.
11902         * sysdeps/wordsize-64/scandir64.c: File removed.
11903         * sysdeps/wordsize-64/scandirat.c: File removed.
11904         * sysdeps/wordsize-64/scandirat64.c: File removed.
11905         * sysdeps/wordsize-64/versionsort.c: File removed.
11906         * sysdeps/wordsize-64/versionsort64.c: File removed.
11907         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
11908         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
11909         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
11910         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
11911         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
11912         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
11913         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
11914         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
11915
11916         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
11917         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11918         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
11919         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11920         [defined __arch64__ || defined __sparcv9]
11921         (__INO_T_MATCHES_INO64_T): New macro.
11922         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11923         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
11924         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
11925         * sysdeps/unix/sysv/linux/bits/dirent.h
11926         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
11927         (_DIRENT_MATCHES_DIRENT64): New macro.
11928
11929         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
11930         Define lockf64 as an alias.
11931         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
11932         Define fseeko64 as an alias.
11933         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
11934         Define ftello64 as an alias.
11935         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
11936         Define _IO_fgetpos64 and fgetpos64 as aliases.
11937         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
11938         Define _IO_fsetpos64 and fsetpos64 as aliases.
11939         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
11940         Conditionalize body on this.
11941         * libio/fseeko64.c: Likewise.
11942         * libio/ftello64.c: Likewise.
11943         * libio/iofgetpos64.c: Likewise.
11944         * libio/iofsetpos64.c: Likewise.
11945         * sysdeps/wordsize-64/lockf.c: File removed.
11946         * sysdeps/wordsize-64/lockf64.c: File removed.
11947         * sysdeps/wordsize-64/fseeko.c: File removed.
11948         * sysdeps/wordsize-64/fseeko64.c: File removed.
11949         * sysdeps/wordsize-64/ftello.c: File removed.
11950         * sysdeps/wordsize-64/ftello64.c: File removed.
11951         * sysdeps/wordsize-64/iofgetpos.c: File removed.
11952         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
11953         * sysdeps/wordsize-64/iofsetpos.c: File removed.
11954         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
11955         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
11956         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
11957         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
11958         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
11959         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
11960         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
11961         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
11962         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
11963         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
11964         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
11965
11966         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11967         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11968         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
11969         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11970         [defined __arch64__ || defined __sparcv9]
11971         (__OFF_T_MATCHES_OFF64_T): New macro.
11972         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11973         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11974         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11975         (__OFF_T_MATCHES_OFF64_T): New macro.
11976
11977 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11978
11979         * stdlib/secure-getenv.c (__secure_getenv): Replace
11980         GLIBC_2_16 with GLIBC_2_17.
11981
11982 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11983
11984         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
11985         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11986
11987 2012-08-03  David S. Miller  <davem@davemloft.net>
11988
11989         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11990
11991 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11992
11993         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
11994         Remove.
11995         (__ASSUME_CORRECT_SI_PID): Likewise.
11996         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
11997         (__ASSUME_TMPFS_NAME): Likewise.
11998         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
11999         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
12000         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
12001         (HAVE_AUX_SECURE): Make definition unconditional.
12002         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
12003         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
12004
12005 2012-08-03  Roland McGrath  <roland@hack.frob.com>
12006
12007         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
12008         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
12009         * sysdeps/mach/hurd/eloop-threshold.h: New file.
12010         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
12011         __eloop_threshold instead of SYMLOOP_MAX.
12012
12013         * sysdeps/generic/eloop-threshold.h: New file.
12014         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
12015         of MAXSYMLINKS.
12016         * elf/chroot_canon.c (chroot_canon): Likewise.
12017
12018 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
12019
12020         [BZ #13717]
12021         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12022         Change to 2.6.0 everywhere.
12023         * sysdeps/unix/sysv/linux/configure: Regenerated.
12024         * sysdeps/unix/sysv/linux/kernel-features.h
12025         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
12026         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
12027         kernel versions.
12028         (__ASSUME_POSIX_TIMERS): Define unconditionally.
12029         (__ASSUME_FUTEX_REQUEUE): Remove.
12030         (__ASSUME_STATFS64): Define unconditionally.
12031         (__ASSUME_AT_SECURE): Likewise.
12032         (__ASSUME_CORRECT_SI_PID): Likewise.
12033         (__ASSUME_TGKILL): Define without depending on kernel version for
12034         i386.
12035         (__ASSUME_UTIMES): Likewise.
12036         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
12037         kernel version.
12038         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
12039         (__ASSUME_TMPFS_NAME): Likewise.
12040         * README: Update reference to Linux kernel versions.
12041
12042 2012-08-02  Marek Polacek  <polacek@redhat.com>
12043
12044         [BZ# 14150]
12045         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
12046         libc_cv_asm_type_prefix with %.
12047         * configure: Regenerated.
12048         * include/libc-symbols.h: Remove comment about
12049         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
12050         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
12051         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
12052         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
12053         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
12054         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
12055         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
12056         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
12057         * elf/tst-unique2mod1.c: Likewise.
12058         * elf/tst-unique1mod2.c: Likewise.
12059         * elf/tst-unique1mod1.c: Likewise.
12060         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
12061         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
12062         Replace ASM_TYPE_DIRECTIVE with .type.
12063         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12064         * sysdeps/i386/sysdep.h: Likewise.
12065         * sysdeps/x86_64/sysdep.h: Likewise.
12066         * sysdeps/sh/sysdep.h: Likewise.
12067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12068         Do not define ASM_TYPE_DIRECTIVE.
12069         * sysdeps/powerpc/sysdep.h: Likewise.
12070         * sysdeps/powerpc/powerpc32/sysdep.h:
12071         Replace ASM_TYPE_DIRECTIVE with .type.
12072         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12073         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12074         * sysdeps/i386/fpu/e_powf.S: Likewise.
12075         * sysdeps/i386/fpu/e_expl.S: Likewise.
12076         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12077         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12078         * sysdeps/i386/fpu/e_pow.S: Likewise.
12079         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12080         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12081         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12082         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12083         * sysdeps/i386/fpu/e_log2.S: Likewise.
12084         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12085         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12086         * sysdeps/i386/fpu/e_powl.S: Likewise.
12087         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12088         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12089         * sysdeps/i386/fpu/e_logl.S: Likewise.
12090         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12091         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12092         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12093         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12094         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12095         * sysdeps/i386/fpu/e_log.S: Likewise.
12096         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12097         * sysdeps/i386/fpu/e_logf.S: Likewise.
12098         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12099         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12100         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12101         * sysdeps/i386/fpu/e_log10.S: Likewise.
12102         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12103         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12104         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12105         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12106         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12107         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
12108         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12109         * sysdeps/i386/i686/strtok.S: Likewise.
12110         * sysdeps/i386/i386-mcount.S: Likewise.
12111         * sysdeps/i386/strtok.S: Likewise.
12112         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
12113         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12114         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12115         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12116         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12117         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12118         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12119         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12120         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12121         * sysdeps/x86_64/_mcount.S: Likewise.
12122         * sysdeps/x86_64/strtok.S: Likewise.
12123         * sysdeps/sh/_mcount.S: Likewise.
12124
12125 2012-08-01  Roland McGrath  <roland@hack.frob.com>
12126
12127         * libio/iofopen.c: Include <fcntl.h>.
12128         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
12129         (_IO_fopen64, fopen64): Define as aliases.
12130         * libio/iofopen64.c: Include <fcntl.h>.
12131         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
12132         Conditionalize body on this.
12133         * sysdeps/wordsize-64/iofopen.c: File removed.
12134         * sysdeps/wordsize-64/iofopen64.c: File removed.
12135
12136 2012-08-01  Marek Polacek  <polacek@redhat.com>
12137
12138         * libc/Makeconfig: Use elf in place of binfmt-subdir.
12139         Use dlfcn directly instead of a variable.
12140         (binfmt-subdir): Do not define.
12141         (dlfcn): Likewise.
12142
12143 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
12144
12145         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
12146         Remove all definitions.
12147         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
12148         <kernel-features.h>.
12149         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
12150         (miss_F_GETOWN_EX): Remove all definitions.
12151         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
12152         macro definition.
12153         [!__ASSUME_FCNTL64]: Remove conditional code.
12154         [__ASSUME_FCNTL64]: Make code unconditional.
12155         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
12156         <kernel-features.h>.
12157         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
12158         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
12159         (lockf64) [__NR_fcntl64]: Make code unconditional.
12160         (lockf64) [__ASSUME_FCNTL64]: Likewise.
12161
12162         * sysdeps/unix/sysv/linux/kernel-features.h
12163         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
12164         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
12165         Make code unconditional.
12166         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
12167         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
12168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
12169         [__NR_vfork]: Make code unconditional.
12170         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
12171         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
12172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
12173         [__NR_vfork]: Make code unconditional.
12174         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
12175         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
12176
12177 2012-08-01  Roland McGrath  <roland@hack.frob.com>
12178
12179         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
12180         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
12181
12182         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12183         Define mkstemp64 as an alias.
12184         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12185         Define mkstemps64 as an alias.
12186         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12187         Define mkostemp64 as an alias.
12188         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
12189         Define mkostemps64 as an alias.
12190         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
12191         Conditionalize body on this.
12192         * misc/mkostemp64.c: Likewise.
12193         * misc/mkostemps64.c: Likewise.
12194         * misc/mkstemps64.c: Likewise.
12195         * sysdeps/wordsize-64/mkstemp64.c: File removed.
12196         * sysdeps/wordsize-64/mkostemp64.c: File removed.
12197         * sysdeps/wordsize-64/mkostemp.c: File removed.
12198         * sysdeps/wordsize-64/mkstemp.c: File removed.
12199         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
12200         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
12201         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
12202         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
12203
12204         [BZ #14138]
12205         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
12206         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
12207         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
12208         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
12209
12210         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
12211         compat_symbol macros from <shlib-compat.h> rather than the underlying
12212         default_symbol_version and symbol_version macros, so that DEFAULT
12213         lines in shlib-versions are respected.
12214         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
12215
12216 2012-08-01  Florian Weimer  <fweimer@redhat.com>
12217
12218         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
12219         Declare with warn_unused_result.
12220         (setgid, setregid, setegid, setresgid): Likewise.
12221         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
12222         Likewise.
12223         * WUR-REPORT: Remove set*id functions.
12224
12225 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
12226
12227         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
12228
12229 2012-07-31  Roland McGrath  <roland@hack.frob.com>
12230
12231         [BZ #10191]
12232         * include/sys/socket.h (__libc_accept, __libc_accept4):
12233         Add attribute_hidden.
12234         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
12235
12236         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
12237         use of PTR_MANGLE.
12238         * inet/getnetgrent_r.c (setup): Likewise.
12239
12240         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
12241
12242 2012-07-31  David S. Miller  <davem@davemloft.net>
12243
12244         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12245
12246 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
12247
12248         [BZ #13629]
12249         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
12250         value between 1.0 and 2.0 and smaller part has absolute value less
12251         than 1.0.
12252         * math/s_clog10.c (__clog10): Likewise.
12253         * math/s_clog10f.c (__clog10f): Likewise.
12254         * math/s_clog10l.c (__clog10l): Likewise.
12255         * math/s_clogf.c (__clogf): Likewise.
12256         * math/s_clogl.c (__clogl): Likewise.
12257         * math/libm-test.inc (clog_test): Add more tests.
12258         (clog10_test): Likewise.
12259         * sysdeps/i386/fpu/libm-test-ulps: Update.
12260         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12261
12262 2012-07-31  Florian Weimer  <fweimer@redhat.com>
12263
12264         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
12265         Exit with zero in case no suitable GID is found, and write a
12266         message to standard error.
12267
12268 2012-07-30  Roland McGrath  <roland@hack.frob.com>
12269
12270         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
12271         rather than to 1.
12272         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
12273         (MAXPATHLEN): Removed.
12274         (NOGROUP, NODEV): New macros.
12275         (setbit, clrbit, isset, isclr): New macros.
12276         (howmany, roundup, powerof2): New macros.
12277         (DEV_BSIZE): New macro.
12278
12279         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
12280         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
12281
12282         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
12283         definition on [!__NO_LONG_DOUBLE_MATH].
12284
12285         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
12286         PTR_MANGLE and PTR_DEMANGLE.
12287
12288         * socket/accept4.c (accept4): Rename to __libc_accept4.
12289         Define accept4 as a weak alias.
12290
12291         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
12292         on [_DIRENT_HAVE_D_TYPE].
12293         * io/ftw.c (ftw_dir): Likewise.
12294
12295         * io/xmknod.c (__xmknod): Don't check PATH for being null.
12296
12297         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
12298
12299         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
12300         Use the BSD numbers rather than the arbitrary ones we had.
12301         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
12302         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
12303         (SIGXCPU, SIGXFSZ): New macros.
12304         (_NSIG): Now 32.
12305
12306         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
12307         initializer on [_LIBC_REENTRANT].
12308
12309         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
12310         definitions inside [_POSIX_MAPPED_FILES].
12311
12312         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
12313
12314         * dirent/opendir.c: Include <fcntl.h>.
12315
12316         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
12317         (__libc_getspecific): Likewise.
12318         (__libc_key_create): Likewise.
12319
12320         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
12321         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
12322         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
12323         (tmpfile64): Define as alias.
12324         * sysdeps/wordsize-64/tmpfile.c: File removed.
12325         * sysdeps/wordsize-64/tmpfile64.c: File removed.
12326         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
12327         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
12328
12329         * stdio-common/vfscanf.c: Include <stdbool.h>.
12330         * nss/makedb.c: Likewise.
12331         * stdio-common/_i18n_number.h: Likewise.
12332         * argp/argp-help.c: Likewise.
12333         * posix/wordexp.c: Likewise.
12334         * sysdeps/posix/spawni.c: Likewise.
12335         * nss/nss_files/files-initgroups.c: Likewise.
12336         * stdio-common/reg-modifier.c: Include <stdlib.h>.
12337         * nss/nss_files/files-initgroups.c: Likewise.
12338         * nss/nss_db/db-netgrp.c: Likewise.
12339         * nss/nss_db/db-initgroups.c: Likewise.
12340         * io/fchmodat.c: Include <sys/stat.h>.
12341
12342         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
12343         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
12344
12345         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
12346         [HAVE_MMAP].
12347
12348         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
12349         Add multiple inclusion protection.
12350
12351 2012-07-27  David S. Miller  <davem@davemloft.net>
12352
12353         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12354
12355 2012-07-27  Gary Benson  <gbenson@redhat.com>
12356
12357         [BZ #14298]
12358         * elf/rtld.c: Include <stap-probe.h>.
12359         (dl_main): Added static probes "init_start" and "init_complete".
12360         * elf/dl-load.c: Include <stap-probe.h>.
12361         (lose): Take new parameter "nsid".
12362         Added static probe "map_failed".
12363         (_dl_map_object_from_fd): Pass namespace id to lose.
12364         Added static probe "map_start".
12365         (open_verify): Pass namespace id to lose.
12366         * elf/dl-open.c: Include <stap-probe.h>.
12367         (dl_open_worker) Added static probes "map_complete", "reloc_start"
12368         and "reloc_complete".
12369         * elf/dl-close.c: Include <stap-probe.h>.
12370         (_dl_close_worker): Added static probes "unmap_start" and
12371         "unmap_complete".
12372         * elf/rtld-debugger-interface.txt: New file documenting the above.
12373
12374 2012-07-26  Roland McGrath  <roland@hack.frob.com>
12375
12376         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
12377         rather than a string variable.
12378         * sunrpc/rpc_main.c (h_output): Likewise.
12379         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
12380
12381 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
12382
12383         * inet/check_native.c: New file.
12384
12385 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
12386
12387         [BZ #13629]
12388         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
12389         if larger part has absolute value 1.0.
12390         * math/s_clog10.c (__clog10): Likewise.
12391         * math/s_clog10f.c (__clog10f): Likewise.
12392         * math/s_clog10l.c (__clog10l): Likewise.
12393         * math/s_clogf.c (__clogf): Likewise.
12394         * math/s_clogl.c (__clogl): Likewise.
12395         * math/libm-test.inc (clog_test): Add more tests.
12396         (clog10_test): Likewise.
12397         * sysdeps/i386/fpu/libm-test-ulps: Update.
12398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12399
12400         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
12401         (pltexit): Likewise.
12402         (La_regs): Likewise.
12403         (La_retval): Likewise.
12404         (int_retval): Likewise.
12405         Update #error for removed macros to refer only to definitions in
12406         tst-audit.h.
12407         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
12408         macro.
12409         (pltexit): Likewise.
12410         (La_regs): Likewise.
12411         (La_retval): Likewise.
12412         (int_retval): Likewise.
12413         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
12414         macro.
12415         (pltexit): Likewise.
12416         (La_regs): Likewise.
12417         (La_retval): Likewise.
12418         (int_retval): Likewise.
12419         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
12420         macro.
12421         (pltexit): Likewise.
12422         (La_regs): Likewise.
12423         (La_retval): Likewise.
12424         (int_retval): Likewise.
12425         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
12426         macro.
12427         (pltexit): Likewise.
12428         (La_regs): Likewise.
12429         (La_retval): Likewise.
12430         (int_retval): Likewise.
12431         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
12432         macro.
12433         (pltexit): Likewise.
12434         (La_regs): Likewise.
12435         (La_retval): Likewise.
12436         (int_retval): Likewise.
12437         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
12438         macro.
12439         (pltexit): Likewise.
12440         (La_regs): Likewise.
12441         (La_retval): Likewise.
12442         (int_retval): Likewise.
12443         * sysdeps/generic/tst-audit.h: Update comment to refer only to
12444         macro definitions in tst-audit.h.
12445         * sysdeps/i386/tst-audit.h: New file.
12446         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
12447         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
12448         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
12449         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
12450         * sysdeps/sh/tst-audit.h: Likewise.
12451         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
12452         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
12453         * sysdeps/x86_64/tst-audit.h: Likewise.
12454
12455 2012-07-26  Andreas Jaeger  <aj@suse.de>
12456
12457         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
12458         ptrace.
12459
12460         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
12461         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
12462         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
12463         PTRACE_O_MASK.
12464         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
12465         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
12466         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
12467
12468         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
12469         value.
12470
12471         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
12472         _sigsys.
12473         (si_call_addr, si_syscall, si_arch): Define new macro.
12474         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
12475         _sigsys.
12476         (si_call_addr, si_syscall, si_arch): Define new marcro.
12477         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
12478         _sigsys.
12479         (si_call_addr, si_syscall, si_arch): Define new macro.
12480         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
12481         _sigsys.
12482         (si_call_addr, si_syscall, si_arch): Define new macro.
12483
12484 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
12485
12486         [BZ #13717]
12487         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12488         Change to 2.4.21 where previously 2.4.1.
12489         * sysdeps/unix/sysv/linux/configure: Regenerated.
12490         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
12491         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
12492         Linux kernel version.
12493         (__ASSUME_STD_AUXV): Remove.
12494         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
12495         kernel version.
12496         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
12497         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
12498         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
12499         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
12500         (__ASSUME_NETLINK_SUPPORT): Likewise.
12501         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
12502         (__no_netlink_support): Remove conditional definition.
12503         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
12504         Remove.
12505         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
12506         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
12507         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
12508         (if_nameindex_ioctl): Remove.
12509         (if_nameindex_netlink): Do not handle __no_netlink_support.
12510         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
12511         code.
12512         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
12513         Remove conditional code.
12514         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
12515         code.
12516         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
12517         unconditional.
12518         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
12519         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
12520         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
12521         Remove.
12522         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
12523         [!__ASSUME_STD_AUXV]: Remove conditional code.
12524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
12525         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
12526         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
12527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
12528         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
12529         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
12530         code.
12531         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
12532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12533         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
12534         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
12535         conditional code.
12536         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
12537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12538         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
12539         code.
12540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12541         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
12542         conditional code.
12543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
12544         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12545         code unconditional.
12546         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12547         conditional code.
12548         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12549         unconditional.
12550         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12551         conditional code.
12552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12553         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12554         unconditional.
12555         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12556         conditional code.
12557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
12558         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12559         code unconditional.
12560         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12561         conditional code.
12562         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12563         unconditional.
12564         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12565         conditional code.
12566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
12567         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12568         code unconditional.
12569         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12570         conditional code.
12571         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12572         unconditional.
12573         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12574         conditional code.
12575
12576 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
12577
12578         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
12579         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
12580         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
12581         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
12582         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
12583         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
12584         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
12585         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
12586         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
12587         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
12588         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
12589         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
12590         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
12591         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
12592         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12593         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
12594         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
12595         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
12596         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
12597         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
12598         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
12599         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
12600         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
12601
12602 2012-07-25  Florian Weimer  <fweimer@redhat.com>
12603
12604         * Versions.def: Add GLIBC_2.17.
12605         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
12606         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
12607         Introduce __libc_secure_getenv.
12608         * stdlib/Versions (2.17): Add secure_getenv
12609         (GLIBC_PRIVATE): Add __libc_secure_getenv.
12610         * stdlib/secure-getenv.c: Rename __secure_getenv to
12611         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
12612         symbol __secure_getenv for GLIBC_2.0.
12613         * stdlib/tst-secure-getenv.c: New.
12614         * stdlib/Makefile (tests): Add testcase.
12615         * manual/startup.texi (Environment Access): Document
12616         secure_getenv.
12617         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
12618         __libc_secure_getenv.
12619         * inet/ruserpass.c (ruserpass): Likewise.
12620         * malloc/mtrace.c (mtrace): Likewise.
12621         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
12622         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
12623         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
12624         * sysdeps/posix/tempname.c: Likewise.  Evaluate
12625         HAVE_SECURE_GETENV.
12626         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
12627         __secure_getenv to __libc_secure_getenv.
12628         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
12629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12630         Likewise.
12631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12632         Likewise.
12633         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
12634         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
12635         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12636         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
12637         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
12638         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12639         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
12640
12641 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
12642
12643         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
12644         (struct La_i86_retval): Likewise.
12645         (struct La_x86_64_regs): Likewise.
12646         (struct La_x86_64_retval): Likewise.
12647         (struct La_x32_regs): Likewise.
12648         (struct La_x32_retval): Likewise.
12649         (struct La_ppc32_regs): Likewise.
12650         (struct La_ppc32_retval): Likewise.
12651         (struct La_ppc64_regs): Likewise.
12652         (struct La_ppc64_retval): Likewise.
12653         (struct La_sh_regs): Likewise.
12654         (struct La_sh_retval): Likewise.
12655         (struct La_s390_32_regs): Likewise.
12656         (struct La_s390_32_retval): Likewise.
12657         (struct La_s390_64_regs): Likewise.
12658         (struct La_s390_64_retval): Likewise.
12659         (struct La_sparc32_regs): Likewise.
12660         (struct La_sparc32_retval): Likewise.
12661         (struct La_sparc64_regs): Likewise.
12662         (struct La_sparc64_retval): Likewise.
12663         (struct audit_ifaces): Remove architecture-specific pltenter and
12664         pltexit members.
12665         * sysdeps/i386/ldsodefs.h: New file.
12666         * sysdeps/powerpc/ldsodefs.h: Likewise.
12667         * sysdeps/s390/ldsodefs.h: Likewise.
12668         * sysdeps/sh/ldsodefs.h: Likewise.
12669         * sysdeps/sparc/ldsodefs.h: Likewise.
12670         * sysdeps/x86_64/ldsodefs.h: Likewise.
12671
12672 2012-07-25  Marek Polacek  <polacek@redhat.com>
12673
12674         [BZ #6808]
12675         * math/libm-test.inc (yn_test): Add another test.
12676         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
12677         to ERANGE when the result is +-Inf.
12678         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
12679         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
12680         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
12681         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
12682
12683 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
12684
12685         * conform/data/time.h-data (NULL): Use macro-constant.  Require
12686         equal to 0.
12687         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
12688         clock_t.
12689         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
12690
12691 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
12692
12693         * configure.in <sysdeps resolving>: Correct printing
12694         Implies_before.
12695         * configure: Regenerate.
12696
12697 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
12698
12699         * math/w_ilogb.c: Include <limits.h>.
12700         * math/w_ilogbl.c: Likewise.
12701
12702 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
12703
12704         * manual/lang.texi (__va_copy): Document primarily as ISO C99
12705         va_copy.  Document allowing for unavailable va_copy only as
12706         pre-C99 compatibility.
12707         * manual/string.texi (Copying and Concatenation): Use va_copy
12708         instead of __va_copy in concat example.
12709
12710 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
12711
12712         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
12713         (__sendto): Use create_address_port.  Initialize APORT and deallocate
12714         it if not null.
12715
12716         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
12717         with O_NOLINK passed to __file_name_lookup.
12718
12719         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
12720         with O_NOLINK passed to __file_name_lookup.
12721
12722         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
12723         negative N or less than NGIDS.
12724
12725         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
12726         type to string_t.  Set ERANGE as errno and return it if NAME is not big
12727         enough.  Use memcpy instead of strncpy.
12728
12729 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
12730
12731         * elf/Makefile (check-data): Remove.
12732         (localplt.data): New vpath directive.
12733         ($(objpfx)check-localplt.out): Use localplt.data from vpath
12734         instead of $(check-data).
12735         * scripts/data/localplt-generic.data: Move to ...
12736         * sysdeps/generic/localplt.data: ... here.
12737         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
12738         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
12739         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
12740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
12741         ... here.
12742         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
12743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
12744         ... here.
12745         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
12746         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
12747         ... here.
12748         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
12749         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
12750         ... here.
12751         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
12752         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
12753         ... here.
12754         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
12755         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
12756         ... here.
12757
12758 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12759
12760         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
12761         PPC32 and PPC64 files.
12762         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
12763         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
12764
12765 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12766
12767         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
12768         __makecontext_ret to ...
12769         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
12770         ... here and call exit if uc_link is NULL.  New file.
12771         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
12772         __makecontext_ret.S.
12773         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
12774         __makecontext_ret to ...
12775         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
12776         ... here and call exit if uc_link is NULL.  New file.
12777         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
12778         __makecontext_ret.S.
12779
12780 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12781
12782         * elf/elf.h (R_390_IRELATIVE): New definition.
12783         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
12784         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
12785         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
12786         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12787         (elf_machine_lazy_rel): Likewise.
12788         * sysdeps/s390/dl-irel.h: New file.
12789         * sysdeps/s390/s390-64/memcpy.S: New asm code.
12790         * sysdeps/s390/s390-64/memset.S: New asm code.
12791         * sysdeps/s390/s390-64/memcmp.S: New asm code.
12792         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
12793         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
12794         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
12795         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
12796         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
12797         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
12798         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
12799         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
12800         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
12801         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
12802         * sysdeps/s390/s390-32/memcpy.S: New asm code.
12803         * sysdeps/s390/s390-32/memset.S: New asm code.
12804         * sysdeps/s390/s390-32/memcmp.S: New asm code.
12805
12806 2012-07-17  Marek Polacek  <polacek@redhat.com>
12807
12808         [BZ #14349]
12809         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
12810         * sysdeps/s390/s390-64/configure.in: Likewise.
12811         * sysdeps/sparc/configure.in: Likewise.
12812         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
12813         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
12814         * sysdeps/i386/configure.in: Likewise.
12815         * sysdeps/x86_64/configure.in: Likewise.
12816         * sysdeps/sh/configure.in: Likewise.
12817         * sysdeps/s390/s390-32/configure: Regenerated.
12818         * sysdeps/s390/s390-64/configure: Likewise.
12819         * sysdeps/x86_64/configure: Likewise.
12820         * sysdeps/sh/configure: Likewise.
12821         * sysdeps/powerpc/powerpc64/configure: Likewise.
12822         * sysdeps/powerpc/powerpc32/configure: Likewise.
12823         * sysdeps/sparc/configure: Likwise.
12824         * sysdeps/i386/configure: Likewise.
12825
12826         * elf/dl-open.c: Comment fixes.
12827
12828 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
12829
12830         * Makefile [CXX] (check-data): Remove.
12831         [CXX] (c++-types.data): New vpath directive.
12832         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
12833         vpath.  Do not allow for C++ type data being missing.
12834         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
12835         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
12836         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
12837         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
12838         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
12839         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
12840         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
12841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
12842         ... here.
12843         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
12844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
12845         ... here.
12846         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
12847         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
12848         ... here.
12849         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
12850         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
12851         ... here.
12852         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
12853         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
12854         ... here.
12855         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
12856         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
12857         ... here.
12858         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
12859         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
12860         ... here.
12861         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
12862         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
12863
12864         * elf/tls-macros.h (TLS_LE): Move architecture-specific
12865         definitions to architecture-specific files.
12866         (TLS_IE): Likewise.
12867         (TLS_LD): Likewise.
12868         (TLS_GD): Likewise.
12869         * sysdeps/i386/tls-macros.h: New file.
12870         * sysdeps/powerpc/tls-macros.h: Likewise.
12871         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
12872         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
12873         * sysdeps/sh/tls-macros.h: Likewise.
12874         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
12875         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
12876         * sysdeps/x86_64/tls-macros.h: Likewise.
12877
12878 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12879
12880         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
12881         zero value for regular exit case.
12882
12883         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
12884         (__start_context): Preserve zero value for regular exit case.
12885
12886 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12887             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12888
12889         * manual/setjmp.texi (setcontext): Clarify normal process
12890         termination when uc_link is the null pointer.
12891         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
12892         exit call.
12893
12894 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
12895
12896         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
12897         preprocessor.  Test for each exception mask separately.
12898
12899 2012-07-16  Andreas Jaeger  <aj@suse.de>
12900
12901         * po/ru.po: Update from translation team.
12902
12903 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
12904
12905         * conform/data/string.h-data (NULL): Use macro-constant.  Require
12906         equal to 0.
12907         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12908         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12909         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
12910         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
12911         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12912
12913 2012-07-13  Andreas Jaeger  <aj@suse.de>
12914
12915         * po/fr.po: Update from translation team.
12916
12917 2012-07-12  Marek Polacek  <polacek@redhat.com>
12918
12919         [BZ #14173]
12920         * math/libm-test.inc (yn_test): Add test for BZ #14173.
12921         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
12922         loop condition.
12923
12924 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
12925
12926         [BZ #13717]
12927         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12928         Change to 2.4.1 where previously 2.4.0.
12929         * sysdeps/unix/sysv/linux/configure: Regenerated.
12930         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
12931         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
12932         version.
12933         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
12934         (__ASSUME_AT_CLKTCK): Remove.
12935         (__ASSUME_AT_PAGESIZE): Likewise.
12936         (__ASSUME_AT_XID): Likewise.
12937         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
12938         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
12939         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
12940         unconditionally.
12941         (HAVE_AUX_PAGESIZE): Likewise.
12942         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
12943         [__ASSUME_AT_CLKTCK]: Make code unconditional.
12944         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
12945
12946 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
12947
12948         [BZ #14307]
12949         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
12950         the temporary buffer used to invoke __gethostbyname2_r,
12951         __gethostbyaddr_r and gethostbyname4_r to make room for struct
12952         host_data / struct gaih_addrtuple.
12953         * resolv/nss_dns/dns-host.c (global scope): Move definition of
12954         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
12955         header file nss/nsswitch.h.
12956         * nss/nsswitch.h (global scope): Add definition of implementation
12957         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
12958         resolv/nss_dns/dns-host.c).
12959
12960 2012-07-11  Andreas Jaeger  <aj@suse.de>
12961
12962         * po/fr.po: Update from translation team.
12963
12964         * po/sv.po: Update from translation team
12965         * po/fr.po: Another update from translation team.
12966
12967 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12968
12969         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
12970         for subnormals or multiply small sinh result by itself.
12971         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12972         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12973
12974 2012-07-11  David S. Miller  <davem@davemloft.net>
12975
12976         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12977
12978 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
12979
12980         [BZ #14347]
12981         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
12982         (INTERNAL_MARK): Shift it here.
12983
12984 2012-07-10  Marek Polacek  <polacek@redhat.com>
12985
12986         [BZ #14151]
12987         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
12988         libc_cv_asm_global_directive with .globl.
12989         * configure: Regenerated.
12990         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
12991         with .globl.
12992         * sysdeps/i386/configure: Regenerated.
12993         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
12994         with .globl.
12995         * sysdeps/x86_64/configure: Regenerated.
12996         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
12997         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
12998         * elf/tst-unique2mod2.c: Likewise.
12999         * elf/tst-unique2mod1.c: Likewise.
13000         * elf/tst-unique1mod2.c: Likewise.
13001         * elf/tst-unique1mod1.c: Likewise.
13002         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13003         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
13004         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13005         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
13006         * sysdeps/mach/sysdep.h: Likewise.
13007         * sysdeps/i386/sysdep.h: Likewise.
13008         * sysdeps/i386/i386-mcount.S: Likewise.
13009         * sysdeps/x86_64/_mcount.S: Likewise.
13010         * sysdeps/x86_64/sysdep.h: Likewise.
13011         * sysdeps/sh/_mcount.S: Likewise.
13012         * sysdeps/sh/sysdep.h: Likewise.
13013         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
13014         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
13015         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
13016         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13017         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
13018         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
13019         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
13020         * locale/localeinfo.h: Likewise.
13021         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
13022         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
13023
13024 2012-07-09  Roland McGrath  <roland@hack.frob.com>
13025
13026         [BZ #14336]
13027         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
13028         system".
13029         * manual/message.texi (The Uniforum approach): Likewise.
13030         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
13031         (glibc iconv Implementation): Likewise.
13032
13033 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
13034
13035         [BZ #14337]
13036         * math/s_clog.c (__clog): Avoid scaling a value down where that
13037         could result in underflow.
13038         * math/s_clog10.c (__clog10): Likewise.
13039         * math/s_clog10f.c (__clog10f): Likewise.
13040         * math/s_clog10l.c (__clog10l): Likewise.
13041         * math/s_clogf.c (__clogf): Likewise.
13042         * math/s_clogl.c (__clogl): Likewise.
13043         * math/libm-test.inc (clog_test): Add more tests.
13044         (clog10_test): Likewise.
13045         * sysdeps/i386/fpu/libm-test-ulps: Update.
13046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13047
13048 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
13049
13050         [BZ #14283]
13051         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
13052         by 7 not 8 to examine high bit of fractional part.
13053
13054         [BZ #14042]
13055         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
13056         for call to __mcount_internal.
13057         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
13058         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
13059         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
13060
13061 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
13062
13063         [BZ #14154]
13064         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
13065         approximation for values within 0x1p-13f of an odd multiple of
13066         pi/4.
13067         * math/libm-test.inc (tan_test): Do not allow spurious underflow
13068         exception.  Add more tests.
13069         * sysdeps/i386/fpu/libm-test-ulps: Update.
13070
13071         [BZ #6778]
13072         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
13073         inputs and return -1 for them.  Do not check for +Inf in case not
13074         reachable for +Inf.
13075         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
13076         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
13077         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
13078         and return -1 for them.  Do not check for +Inf in case not
13079         reachable for +Inf.
13080         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
13081         define.
13082         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
13083         and return -1 for them.  Do not check for +Inf in case not
13084         reachable for +Inf.
13085         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
13086         spurious underflow.
13087         * sysdeps/i386/fpu/libm-test-ulps: Update.
13088         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13089
13090 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
13091
13092         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
13093
13094 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
13095
13096         [BZ #14157]
13097         [BZ #14331]
13098         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
13099         could result in spurious underflow.  Scale down values above
13100         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
13101         * math/s_csqrtf.c (__csqrtf): Likewise.
13102         * math/s_csqrtl.c (__csqrtl): Likewise.
13103         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
13104         spurious underflow.
13105         * sysdeps/i386/fpu/libm-test-ulps: Update.
13106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13107
13108 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
13109
13110         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
13111         xopen-msg.sed.
13112         * catgets/xopen-msg.awk: New file.
13113         * catgets/xopen-msg.sed: Removed.
13114
13115         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
13116         po2text.sed.
13117         * intl/po2test.awk: New file.
13118         * intl/po2test.sed: Removed.
13119
13120 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
13121
13122         [BZ #14328]
13123         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
13124         or multiply small sinh result by itself.
13125         * math/s_ctanf.c (__ctanf): Likewise.
13126         * math/s_ctanh.c (__ctanh): Likewise.
13127         * math/s_ctanhf.c (__ctanhf): Likewise.
13128         * math/s_ctanhl.c (__ctanhl): Likewise.
13129         * math/s_ctanl.c (__ctanl): Likewise.
13130         * math/libm-test.inc (ctan_test_tonearest): New function.
13131         (ctan_test_towardzero): Likewise.
13132         (ctan_test_downward): Likewise.
13133         (ctan_test_upward): Likewise.
13134         (ctanh_test_tonearest): Likewise.
13135         (ctanh_test_towardzero): Likewise.
13136         (ctanh_test_downward): Likewise.
13137         (ctanh_test_upward): Likewise.
13138         (main): Call these new functions.
13139         * sysdeps/i386/fpu/libm-test-ulps: Update.
13140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13141
13142 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
13143
13144         * .gitignore: Delete /ports entry.
13145
13146 2012-07-03  Andreas Jaeger  <aj@suse.de>
13147
13148         * po/bg.po: Update from translation team.
13149         * po/cs.po: Likewise.
13150         * po/de.po: Likewise.
13151         * po/hr.po: Likewise.
13152         * po/nl.pl: Likewise.
13153         * po/pl.po: Likewise.
13154         * po/vi.po: Likewise.
13155
13156 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
13157
13158         * Makeconfig [!+link] (+link-before-libc): New variable.
13159         [!+link] (+link-after-libc): Likewise.
13160         [!+link] (+link-tests): Likewise.
13161         [!+link] (+link): Define in terms of $(+link-before-libc) and
13162         $(+link-after-libc).
13163         [!+link-static] (+link-static-before-libc): New variable.
13164         [!+link-static] (+link-static-after-libc): Likewise.
13165         [!+link-static] (+link-static-tests): Likewise.
13166         [!+link-static] (+link-static): Define in terms of
13167         $(+link-static-before-libc) and $(+link-static-after-libc).
13168         [build-shared] (link-libc-before-gnulib): New variable.
13169         [build-shared] (link-libc-tests): Likewise.
13170         [build-shared] (link-libc): Define in terms of
13171         $(link-libc-before-gnulib).
13172         [!build-shared] (link-libc-tests): New variable.
13173         (link-libc-static-tests): New variable.
13174         [!gnulib] (gnulib-arch): New variable.
13175         [!gnulib] (gnulib-tests): Likewise.
13176         [!gnulib] (static-gnulib-arch): Likewise.
13177         [!gnulib] (static-gnulib-tests): Likewise.
13178         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
13179         Define with "=" instead of ":=".
13180         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
13181         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
13182         * Rules (binaries-all-notests): New variable.
13183         (binaries-all-tests): Likewise.
13184         (binaries-static-notests): Likewise.
13185         (binaries-static-tests): Likewise.
13186         (binaries-all): Define using $(binaries-all-notests) and
13187         $(binaries-all-tests).
13188         (binaries-static): Define using $(binaries-static-notests) and
13189         $(binaries-static-tests).
13190         (binaries-shared-tests): New variable.
13191         (binaries-shared-notests): Likewise.
13192         (binaries-shared): Remove variable.
13193         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
13194         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
13195         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
13196         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
13197         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
13198         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
13199         * elf/Makefile (sln-modules): New variable.
13200         (extra-objs): Add $(sln-modules:=.o).
13201         (ldconfig-modules): Add static-stubs.
13202         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
13203         * elf/static-stubs.c: New file.
13204
13205         [BZ #14283]
13206         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
13207         by 7 not 8 to examine high bit of fractional part.  Use volatile
13208         variables when splitting into final array of floats if
13209         __FLT_EVAL_METHOD__ != 0.
13210         * math/libm-test.inc (cos_test): Add another test.
13211         (sin_test): Likewise.
13212         * sysdeps/i386/fpu/libm-test-ulps: Update.
13213
13214         [BZ #14273]
13215         * math/libm-test.inc (cosh_test): Add more tests.
13216
13217         * version.h (RELEASE): Set to "development".
13218         (VERSION): Set to "2.16.90".
13219
13220 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
13221
13222         * NEWS: Update copyright. Remove last-updated date.
13223         Mention math library bug fixes and timezone data changes.
13224         * README: Mention GNU/Hurd, x32, and HPPA support status.
13225
13226 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
13227
13228         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
13229
13230 2012-06-27  Andreas Jaeger  <aj@suse.de>
13231
13232         * manual/contrib.texi (Contributors): Add Samuel Thibault.
13233
13234 2012-06-25  Andreas Jaeger  <aj@suse.de>
13235
13236         * sysdeps/s390/fpu/libm-test-ulps: Update.
13237
13238 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
13239             Thomas Schwinge  <thomas@codesourcery.com>
13240
13241         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
13242         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
13243         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
13244         fanotify_mark.
13245
13246 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
13247
13248         * sysdeps/mach/start.c: Remove file.
13249         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
13250         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
13251         * sysdeps/sh/init-first.c: Likewise.
13252
13253         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
13254         registers for frame unwinding purposes, add CFI directives.
13255         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
13256         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
13257         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
13258         Likewise.
13259
13260         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
13261         __fortify_fail returning.
13262         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
13263
13264         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
13265         sysdeps/sh/____longjmp_chk.S.
13266         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
13267         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
13268         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
13269         (gen-as-const-headers): Append sigaltstack-offsets.sym.
13270
13271         * sysdeps/sh/abort-instr.h: New file.
13272         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
13273         process in case exit returns.
13274
13275         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
13276         initialize the GOT register before use.
13277
13278         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
13279         calculation of ARGC > 4.
13280
13281         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
13282         meaningful names to some local labels.
13283
13284 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13285             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13286
13287         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
13288         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
13289         (__arch_compare_and_exchange_val_16_acq): Likewise.
13290         (__arch_compare_and_exchange_val_32_acq): Likewise.
13291         (atomic_exchange_and_add): Fix gUSA sequence.
13292         (atomic_add): Likewise.
13293         (atomic_add_negative): Likewise.
13294         (atomic_add_zero): Likewise.
13295         (atomic_bit_test_set): Likewise.
13296
13297 2012-06-22  Andreas Schwab  <schwab@redhat.com>
13298
13299         [BZ #13579]
13300         * include/link.h (struct link_map): Add l_free_initfini.
13301         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
13302         l_initfini.
13303         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
13304         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
13305         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
13306         set.
13307
13308 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
13309
13310         * configure.in: Use AC_LANG_SOURCE.
13311         * configure: Regenerate.
13312
13313 2012-06-22  Roland McGrath  <roland@hack.frob.com>
13314
13315         * configure.in (libc_cv_localstatedir): New substituted variable.
13316         * configure: Regenerated.
13317         * config.make.in (localstatedir): New variable, substituted from
13318         libc_cv_localstatedir.
13319         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
13320         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
13321         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
13322         * sysdeps/gnu/configure: Regenerated.
13323
13324 2012-06-21  Jeff Law  <law@redhat.com>
13325
13326         [BZ #14277]
13327         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
13328         free.  Simplify list management for _LIBC case.
13329
13330 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
13331
13332         [BZ #14273]
13333         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
13334         Clear sign bit of 64-bit integer value before comparing against
13335         overflow value.
13336
13337         * sysdeps/mach/configure: Regenerated.
13338
13339 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13340
13341         [BZ #14278]
13342         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
13343
13344 2012-06-21  Jeff Law  <law@redhat.com>
13345
13346         [BZ #13882]
13347         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
13348         uint16_t for elements in the "seen" array to avoid char overflows.
13349         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13350         * elf/dl-open.c (dl_open_worker): Likewise.
13351
13352 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
13353
13354         * scripts/list-sources.sh: Scan PORTS for translations.
13355         * po/libc.pot: Regenerated.
13356
13357 2012-06-21  Andreas Jaeger  <aj@suse.de>
13358
13359         [BZ #12194]
13360         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
13361         warning.
13362         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
13363         * bits/byteswap-16.h (__bswap_16): Likewise.
13364         * bits/byteswap.h (__bswap_constant_16): Likewise.
13365
13366 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13367
13368         [BZ #14117]
13369         * sysdeps/i386/fpu_control.h: Removed.
13370         * sysdeps/x86_64/fpu_control.h: Moved to ...
13371         * sysdeps/x86/fpu_control.h: Here.
13372
13373         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
13374         (_FPU_SETCW): Likewise.
13375
13376 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
13377
13378         [BZ #14117]
13379         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
13380         * sysdeps/x86/fpu/bits/mathinline.h: This.
13381         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
13382
13383         [BZ #14050]
13384         [BZ #14117]
13385         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
13386         functions if __x86_64__ is defined.
13387
13388 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
13389
13390         * string/endian.h: Add !__ASSEMBLER__ condition for including
13391         conversion interfaces.
13392
13393 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
13394
13395         [BZ #14241]
13396         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
13397         of ABS(x) in calculating zero to negative powers other than odd
13398         integers.
13399         * math/libm-test.inc (pow_test): Add more tests.
13400
13401 2012-06-15  Andreas Jaeger  <aj@suse.de>
13402
13403         * manual/contrib.texi (Contributors): Update entry of Liubov
13404         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
13405         Machado Filho.
13406
13407 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
13408
13409         * string/string.h: Add __wur to GNU version of strerror_r.
13410
13411 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13412
13413         [BZ #14229]
13414         * string/Makefile (tests): Add tst-strtok_r.
13415         * string/tst-strtok_r.c: New file.
13416         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
13417         RAX_LP/RDX_LP on SAVE_PTR.
13418
13419 2012-06-14  Roland McGrath  <roland@hack.frob.com>
13420
13421         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
13422
13423 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
13424
13425         * libm_test.inc (csqrt_test): Allow more spurious underflow
13426         exceptions.
13427         (j0_test): Likewise.
13428         (j1_test): Likewise.
13429         (y0_test): Likewise.
13430         (y1_test): Likewise.
13431
13432 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
13433
13434         * po/Makefile (libc.pot): Use UTF-8 charset.
13435
13436 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
13437
13438         [BZ #14210]
13439         Suppress sign-conversion warning from FD_SET.
13440         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
13441         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
13442         not unsigned long int.
13443         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
13444
13445 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13446
13447         [BZ #14050]
13448         [BZ #14117]
13449         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
13450         __extern_always_inline instead of __extern_inline.
13451         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
13452         (__signbit): Likewise.
13453         (__signbitl): Support C++ namespace.
13454         (lrintf): New inline function.
13455         (lrint): Likewise.
13456         (llrintf): Likewise.
13457         (llrint): Likewise.
13458         (fmaxf): Likewise.
13459         (fmax): Likewise.
13460         (fminf): Likewise.
13461         (fmin): Likewise.
13462         (rint): Likewise.
13463         (rintf): Likewise.
13464         (ceil): Likewise.
13465         (ceilf): Likewise.
13466         (floor): Likewise.
13467         (floorf): Likewise.
13468         (nearbyint): Likewise.
13469         (nearbyintf): Likewise.
13470
13471 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
13472
13473         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
13474         non-default versions.
13475
13476 2012-06-11  Roland McGrath  <roland@hack.frob.com>
13477
13478         [BZ #14218]
13479         * manual/argp.texi (Argp): Reword argp_parse description slightly.
13480
13481 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
13482
13483         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
13484         (FE_UPWARD, FE_DOWNWARD): Don't define.
13485         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
13486         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13487
13488         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
13489         reading it.
13490         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13491         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13492
13493 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13494
13495         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
13496         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
13497         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
13498         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
13499
13500 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
13501
13502         [BZ #14117]
13503         * sysdeps/i386/fpu/bits/fenv.h: Removed.
13504         * sysdeps/i386/fpu/Implies: New file.
13505         * sysdeps/x86_64/fpu/Implies: Likewise.
13506         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
13507         * sysdeps/x86/fpu/bits/fenv.h: This.
13508
13509         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
13510         __SSE_MATH__.
13511
13512 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
13513
13514         [BZ #14134]
13515         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
13516         character 0xffff that matches the last element of the
13517         conversion table.
13518
13519 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13520
13521         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
13522         fmodl commit.
13523
13524 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13525
13526         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
13527         values higher than 25.6283.
13528
13529 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13530
13531         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
13532         subnormal exponent extraction and add some __builtin_expect.
13533         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
13534         Fix for subnormal mantissa calculation.
13535
13536 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
13537
13538         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
13539         cpu2 is -1 and errno is not ENOSYS.
13540
13541 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13542
13543         [BZ #14117]
13544         * sysdeps/i386/i486/bits/string.h: Renamed to ...
13545         * sysdeps/x86/bits/string.h: This.
13546         * sysdeps/x86_64/bits/string.h: Removed.
13547
13548         * sysdeps/i386/i486/bits/string.h: Define inline functions only
13549         if not compiling for x86-64, but compiling for >= i486.
13550
13551         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
13552         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
13553
13554         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
13555         New macro from Linux kernel 3.4.0.
13556         (FP_XSTATE_MAGIC2): Likewise.
13557         (FP_XSTATE_MAGIC2_SIZE): Likewise.
13558         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
13559         (struct _fpx_sw_bytes): New struct.
13560         (struct _xsave_hdr): Likewise.
13561         (struct _ymmh_state): Likewise.
13562         (struct _xstate): Likewise.
13563
13564         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
13565         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
13566         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
13567         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
13568         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
13569         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
13570
13571         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
13572         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
13573         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
13574         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
13575         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
13576         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
13577
13578 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13579
13580         [BZ #13743]
13581         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
13582         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
13583         (sysdep_headers): Include sys/platform/ppc.h.
13584         * sysdeps/powerpc/test-gettimebase.c: Test for
13585         __ppc_get_timebase() to catch future ISA opcode/insn changes.
13586         * manual/Makefile (appendices): Include platform.texi.
13587         * manual/contrib.texi (Contributors): Update @node pointers.
13588         * manual/maint.texi (Maintenance): Likewise.
13589         (Platform): New node.
13590         * manual/platform.texi: New file.  Document the new features.
13591
13592 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13593             Jakub Jelinek  <jakub@redhat.com>
13594
13595         [BZ #14188]
13596         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
13597         where __builtin_expect is unavailable.
13598
13599 2012-06-03  David S. Miller  <davem@davemloft.net>
13600
13601         * stdlib/longlong.h: Updated from GCC.
13602
13603 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
13604
13605         [BZ #14042]
13606         * sysdeps/powerpc/powerpc32/mcount.c: New file.
13607         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
13608         __mcount_internal.
13609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
13610         (GLIBC_2.16): Likewise.
13611
13612 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13613
13614         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
13615
13616 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
13617
13618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
13619         (default-abi): New variable.
13620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
13621         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
13622         variable.
13623         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
13624         Likewise.
13625         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
13626         Likewise.
13627         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
13628         Likewise.
13629
13630         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
13631         definition.  Document in comment.
13632
13633 2012-06-01  David S. Miller  <davem@davemloft.net>
13634
13635         * stdlib/longlong.h: Updated from GCC.
13636
13637 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13638
13639         [BZ #14117]
13640         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
13641         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
13642         sys/debugreg.h sys/io.h here.
13643         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
13644         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
13645         sys/io.h.
13646         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
13647         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
13648         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
13649         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
13650         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
13651         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
13652
13653         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
13654         Define only if __x86_64__ is defined.
13655
13656 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
13657
13658         [BZ #14048]
13659         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
13660         Use int64_t for variable i.
13661         * math/libm-test.inc (fmod_test): Add more tests.
13662
13663         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
13664         z computation is not scheduled after fetestexcept.
13665         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
13666         Use math_force_eval instead of asm to ensure calculation scheduled
13667         before exception test.
13668         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
13669         Ensure a1 + u.d computation is not scheduled after fetestexcept.
13670
13671 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
13672
13673         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
13674         computation is not scheduled after fetestexcept.
13675
13676 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13677
13678         [BZ #14117]
13679         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
13680         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
13681
13682 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13683
13684         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
13685         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13686
13687 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13688
13689         [BZ #14117]
13690         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
13691         <bits/wordsize.h>.
13692         (__WCHAR_MIN): Support __WORDSIZE == 64.
13693         (__WCHAR_MAX): Likewise.
13694
13695         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
13696         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
13697
13698         [BZ #14183]
13699         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
13700         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
13701
13702         [BZ #14117]
13703         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
13704         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
13705
13706         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
13707         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
13708
13709         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
13710         Defined to 1 if __x86_64__ isn't defined.
13711         (_STAT_VER_LINUX_OLD): New.
13712         (st_atime): Remove duplicate.
13713         (st_mtime): Likewise.
13714         (st_ctime): Likewise.
13715
13716 2012-05-31  David S. Miller  <davem@davemloft.net>
13717
13718         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
13719         entries.
13720
13721 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
13722
13723         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
13724         gen-libm-test.pl.
13725
13726         [BZ #14132]
13727         * elf/dl-reloc.c: Include <_itoa.h>.
13728         (_dl_reloc_bad_type): Remove use of INTUSE.
13729         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
13730         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
13731         * stdio-common/psiginfo.c (psiginfo): Likewise.
13732         * stdio-common/psignal.c (psignal): Likewise.
13733         * string/strsignal.c (strsignal): Likewise.
13734         * include/signal.h (_sys_siglist): Declare hidden proto.
13735         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
13736         INTVARDEF with libc_hidden_data_def.
13737         * stdio-common/itoa-udigits.c: Likewise.
13738         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
13739         (_itoa_lower_digits_internal): Remove declaration.
13740         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
13741         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
13742         (_sys_sigabbrev_internal): Remove aliases.
13743         (_sys_siglist): Define hidden alias.
13744
13745 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
13746
13747         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13748         bits/sysctl.h.
13749
13750 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13751
13752         [BZ #14117]
13753         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
13754         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
13755
13756         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
13757         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
13758         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
13759         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
13760         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
13761         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
13762
13763         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
13764         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
13765         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
13766
13767         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
13768         with __addr.
13769         (insw): Likewise.
13770         (insl): Likewise.
13771         (outsb): Likewise.
13772         (outsw): Likewise.
13773         (outsl): Likewise.
13774
13775         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
13776         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
13777         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
13778
13779         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
13780         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
13781         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
13782         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
13783         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
13784         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
13785
13786         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
13787         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
13788
13789         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
13790         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
13791
13792         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
13793         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
13794         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
13795
13796         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
13797         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
13798         to ...
13799         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
13800
13801         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
13802         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
13803         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
13804
13805         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
13806         for x86-64.
13807         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
13808
13809 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
13810
13811         * math/math.h (M_El): Use two more decimal places.
13812         (M_LOG2El): Likewise.
13813         (M_LOG10El): Likewise.
13814         (M_LN2l): Likewise.
13815         (M_LN10l): Likewise.
13816         (M_PIl): Likewise.
13817         (M_PI_2l): Likewise.
13818         (M_PI_4l): Likewise.
13819         (M_1_PIl): Likewise.
13820         (M_2_PIl): Likewise.
13821         (M_2_SQRTPIl): Likewise.
13822         (M_SQRT2l): Likewise.
13823         (M_SQRT1_2l): Likewise.
13824
13825 2012-05-31  David S. Miller  <davem@davemloft.net>
13826
13827         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
13828         values between float registers.
13829         * sysdeps/sparc/sparc64/memset.S: Likewise.
13830         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
13831
13832 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
13833
13834         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
13835         -D_FORTIFY_SOURCE=1.
13836         (CPPFLAGS-tst-longjmp_chk.c): Define.
13837         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
13838         (CPPFLAGS-tst-longjmp_chk2.c): Define.
13839         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
13840         CFLAGS-tst-wchar-h.c.
13841
13842 2012-05-31  Marek Polacek  <polacek@redhat.com>
13843
13844         [BZ #14132]
13845         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
13846         __endmntent_internal): Remove declaration.
13847         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
13848         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
13849         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
13850
13851 2012-05-30  David S. Miller  <davem@davemloft.net>
13852
13853         * sysdeps/sparc/sparc32/soft-fp/q_util.c
13854         (___Q_simulate_exceptions): Use real FP ops rather than writing
13855         into the %fsr.
13856         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
13857         Likewise.
13858
13859 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13860
13861         [BZ #14117]
13862         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
13863         * sysdeps/x86/bits/xtitypes.h: This.
13864
13865         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
13866         * sysdeps/x86/bits/wordsize.h: This.
13867
13868         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
13869         * sysdeps/x86/bits/huge_vall.h: This.
13870
13871         * sysdeps/i386/bits/select.h: Removed.
13872         * sysdeps/x86_64/bits/select.h: Renamed to ...
13873         * sysdeps/x86/bits/select.h: This.
13874
13875         * sysdeps/i386/bits/setjmp.h: Removed.
13876         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
13877         * sysdeps/x86/bits/setjmp.h: This.
13878
13879         * sysdeps/i386/bits/mathdef.h: Removed.
13880         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
13881         * sysdeps/x86/bits/mathdef.h: This.
13882
13883 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13884
13885         [BZ #14132]
13886         * include/sys/socket.h (__connect_internal)
13887         (__libc_sa_len_internal): Remove declaration.
13888         (__connect, __libc_sa_len): Declare hidden_proto.
13889         (SA_LEN): Remove use of INTUSE.
13890         * socket/connect.c: Add libc_hidden_def.
13891         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
13892         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
13893         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
13894         alias.
13895         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13896         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13897         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
13898         of adding _internal alias.
13899
13900 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13901
13902         [BZ #14117]
13903         * sysdeps/i386/bits/link.h: Removed.
13904         * sysdeps/i386/bits/linkmap.h: Likewise.
13905         * sysdeps/x86_64/bits/link.h: Renamed to ...
13906         * sysdeps/x86/bits/link.h: This.
13907         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
13908         * sysdeps/x86/bits/linkmap.h: This.
13909
13910         * sysdeps/i386/bits/endian.h: Removed.
13911         * sysdeps/x86_64/bits/endian.h: Renamed to ...
13912         * sysdeps/x86/bits/endian.h: This.
13913
13914         * sysdeps/i386/bits/byteswap.h: Removed.
13915         * sysdeps/i386/bits/byteswap-16.h: Likewise.
13916         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
13917         * sysdeps/x86/bits/byteswap.h: This.
13918         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
13919         * sysdeps/x86/bits/byteswap-16.h: This.
13920         * sysdeps/i386/Implies: Add x86.
13921         * sysdeps/x86_64/Implies: Likewise.
13922
13923 2012-05-30  David S. Miller  <davem@davemloft.net>
13924
13925         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
13926         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
13927         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
13928         (FP_TRAPPING_EXCEPTIONS): Define.
13929         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
13930         (FP_TRAPPING_EXCEPTIONS): Define.
13931         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
13932         subnormals only when inexact has been signalled or underflow
13933         exceptions are enabled.
13934         (_FP_PACK_CANONICAL): Likewise.
13935
13936 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13937
13938         [BZ #14183]
13939         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
13940         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
13941
13942 2012-05-30  Richard Henderson  <rth@twiddle.net>
13943
13944         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
13945         with #ifndef NOT_IN_libc.
13946
13947         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
13948         marked to avoid plt entry.
13949
13950 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13951
13952         [BZ #14112]
13953         * Makeconfig (default-abi): New macro.
13954         (abi-includes): Likewise.
13955         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
13956         $(abi-$(default-abi)-lib-soname) for soname if defined.
13957         ($(common-objpfx)gnu/lib-names.stmp): Generate from
13958         abi-variants.
13959         * Makefile (installed-stubs): Likewise.
13960         * include/stubs-biarch.h: Removed.
13961         * scripts/lib-names.awk: Only handle one library at a time.
13962         * scripts/soversions.awk: Remove WORDSIZE support.
13963         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
13964         entries.
13965         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
13966         Removed.
13967         (syscall-list-default-condition): Likewise.
13968         (syscall-list-default-condition): Likewise.
13969         (syscall-list-includes): Likewise.
13970         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
13971         syscall-list-* with abi-*.  Handle undefined abi-variants.
13972         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
13973         * sysdeps/unix/sysv/linux/i386/Implies: New file.
13974         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
13975         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
13976         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
13977         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
13978         Removed.
13979         (syscall-list-32-options): Likewise.
13980         (syscall-list-32-condition): Likewise.
13981         (syscall-list-64-options): Likewise.
13982         (syscall-list-64-condition): Likewise.
13983         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
13984         macro.
13985         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
13986         Renamed to ...
13987         (abi-*): This.
13988         (abi-64-ld-soname): New macro.
13989         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
13990         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
13991         Renamed to ...
13992         (abi-*): This.
13993         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
13994         * sysdeps/x86_64/x32/shlib-versions: Likewise.
13995
13996 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
13997
13998         * sysdeps/unix/sysv/linux/kernel-features.h
13999         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
14000         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
14001         include <kernel-features.h>.
14002         [!__NR_ftruncate64]: Remove conditional code.
14003         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14004         [__NR_ftruncate64]: Make code unconditional.
14005         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14006         * sysdeps/unix/sysv/linux/truncate64.c: Do not
14007         include <kernel-features.h>.
14008         [!__NR_ftruncate64]: Remove conditional code.
14009         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14010         [__NR_ftruncate64]: Make code unconditional.
14011         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
14013         include <kernel-features.h>.
14014         [!__NR_ftruncate64]: Remove conditional code.
14015         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14016         [__NR_ftruncate64]: Make code unconditional.
14017         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
14019         include <kernel-features.h>.
14020         [!__NR_ftruncate64]: Remove conditional code.
14021         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14022         [__NR_ftruncate64]: Make code unconditional.
14023         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
14024
14025         * configure.in (libc_cv_fpie): Weaken to a compile test using
14026         LIBC_TRY_CC_OPTION.
14027         * configure: Regenerated.
14028
14029 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14030
14031         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
14032         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
14033         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
14034         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
14035         Refreshed.
14036         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
14037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
14038         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
14039         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
14040         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
14041         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
14042         Refreshed.
14043
14044 2012-05-27  David S. Miller  <davem@davemloft.net>
14045
14046         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
14047         (___Q_zero): New.
14048         (__Q_simulate_exceptions): Return void.  Change to simulate
14049         exceptions by writing into the %fsr.
14050         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
14051         (__Qp_handle_exceptions): Likewise.
14052         (numbers): Delete.
14053         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
14054         __Qp_handle_exceptions.
14055         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
14056         __Qp_handle_exceptions.
14057         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
14058         as unused and give dummy FP_RND_NEAREST initializer.
14059         (FP_INHIBIT_RESULTS): Define.
14060         (___Q_simulate_exceptions): Update declaration.
14061         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
14062         formatting.
14063         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
14064         as unused and give dummy FP_RND_NEAREST initializer.
14065         (__Qp_handle_exceptions): Update declaration.
14066         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
14067         formatting.
14068
14069 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
14070
14071         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
14072         the temporary FPU control word.
14073         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
14074         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
14075         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
14076         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
14077         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
14078         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
14079         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
14080         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
14081         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
14082         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
14083         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14084
14085 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14086
14087         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
14088         fields.
14089
14090 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
14091
14092         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
14093         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
14094         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
14095         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
14096         Likewise.
14097         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
14098         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
14099         Likewise.
14100
14101 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
14102
14103         * po/h.po: Update from translation team.
14104
14105 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
14106
14107         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
14108
14109         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
14110         handling of denormals.
14111         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
14112         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
14113         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
14114         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
14115         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14116         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
14117         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
14118         Likewise.
14119
14120 2012-05-26  Marek Polacek  <polacek@redhat.com>
14121
14122         [BZ #14152]
14123         * math/libm-test.inc (fma_test): Don't always expect underflow
14124         exception.
14125
14126 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14127
14128         [BZ #12416]
14129         * elf/tst-execstack.c: Include stackinfo.h.
14130         (do_test): Adjust test case to ensure that pthread_getattr_np
14131         behaviour remains the same after marking stack executable.
14132
14133 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
14134
14135         * sysdeps/unix/sysv/linux/kernel-features.h
14136         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
14137         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
14138         kernel-features.h.
14139         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
14140         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
14141         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
14142         kernel-features.h.
14143         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
14144         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
14145
14146 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14147
14148         * configure.in: Define the default includes to being none.
14149         * configure: Regenerated.
14150
14151 2012-05-25  Roland McGrath  <roland@hack.frob.com>
14152
14153         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
14154         * sysdeps/x86_64/setjmp.S: Likewise.
14155         * sysdeps/i386/bsd-setjmp.S: Likewise.
14156         * sysdeps/i386/bsd-_setjmp.S: Likewise.
14157         * sysdeps/i386/setjmp.S: Likewise.
14158         * sysdeps/i386/__longjmp.S: Likewise.
14159         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14160         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
14161
14162         * include/stap-probe.h: New file.
14163         * configure.in: Handle --enable-systemtap.
14164         * configure: Regenerated.
14165         * config.h.in (USE_STAP_PROBE): New #undef.
14166         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
14167         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
14168         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
14169
14170 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
14171
14172         [BZ #13717]
14173         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
14174         to 2.4.0 where earlier.
14175         * sysdeps/unix/sysv/linux/configure: Regenerated.
14176         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
14177         <kernel-features.h>.
14178         [__ASSUME_32BITUIDS]: Make code unconditional.
14179         [!__ASSUME_32BITUIDS]: Remove conditional code.
14180         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
14181         <kernel-features.h>.
14182         [__ASSUME_32BITUIDS]: Make code unconditional.
14183         [!__ASSUME_32BITUIDS]: Remove conditional code.
14184         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
14185         [__ASSUME_32BITUIDS]: Make code unconditional.
14186         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
14187         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
14188         <kernel-features.h>.
14189         [__ASSUME_32BITUIDS]: Make code unconditional.
14190         [!__ASSUME_32BITUIDS]: Remove conditional code.
14191         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
14192         <kernel-features.h>.
14193         [__ASSUME_32BITUIDS]: Make code unconditional.
14194         [!__ASSUME_32BITUIDS]: Remove conditional code.
14195         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
14196         <kernel-features.h>.
14197         [__ASSUME_32BITUIDS]: Make code unconditional.
14198         [!__ASSUME_32BITUIDS]: Remove conditional code.
14199         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
14200         <kernel-features.h>.
14201         [__ASSUME_32BITUIDS]: Make code unconditional.
14202         [!__ASSUME_32BITUIDS]: Remove conditional code.
14203         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
14204         <kernel-features.h>.
14205         [__ASSUME_32BITUIDS]: Make code unconditional.
14206         [!__ASSUME_32BITUIDS]: Remove conditional code.
14207         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
14208         <kernel-features.h>.
14209         [__ASSUME_32BITUIDS]: Make code unconditional.
14210         [!__ASSUME_32BITUIDS]: Remove conditional code.
14211         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
14212         <kernel-features.h>.
14213         [__ASSUME_32BITUIDS]: Make code unconditional.
14214         [!__ASSUME_32BITUIDS]: Remove conditional code.
14215         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
14216         <kernel-features.h>.
14217         [__ASSUME_32BITUIDS]: Make code unconditional.
14218         [!__ASSUME_32BITUIDS]: Remove conditional code.
14219         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
14220         <kernel-features.h>.
14221         [__ASSUME_32BITUIDS]: Make code unconditional.
14222         [!__ASSUME_32BITUIDS]: Remove conditional code.
14223         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
14224         <kernel-features.h>.
14225         [__ASSUME_32BITUIDS]: Make code unconditional.
14226         [!__ASSUME_32BITUIDS]: Remove conditional code.
14227         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
14228         <kernel-features.h>.
14229         [__NR_setresgid] (__setresgid): Do not declare.
14230         [__ASSUME_32BITUIDS]: Make code unconditional.
14231         [!__ASSUME_32BITUIDS]: Remove conditional code.
14232         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
14233         <kernel-features.h>.
14234         [__NR_setresuid] (__setresuid): Do not declare.
14235         [__ASSUME_32BITUIDS]: Make code unconditional.
14236         [!__ASSUME_32BITUIDS]: Remove conditional code.
14237         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
14238         <kernel-features.h>.
14239         [__ASSUME_32BITUIDS]: Make code unconditional.
14240         [!__ASSUME_32BITUIDS]: Remove conditional code.
14241         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
14242         <kernel-features.h>.
14243         [__ASSUME_32BITUIDS]: Make code unconditional.
14244         [!__ASSUME_32BITUIDS]: Remove conditional code.
14245         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
14246         <kernel-features.h>.
14247         [__ASSUME_32BITUIDS]: Make code unconditional.
14248         [!__ASSUME_32BITUIDS]: Remove conditional code.
14249         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
14250         <kernel-features.h>.
14251         [__ASSUME_32BITUIDS]: Make code unconditional.
14252         [!__ASSUME_32BITUIDS]: Remove conditional code.
14253         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
14254         <kernel-features.h>.
14255         [__ASSUME_32BITUIDS]: Make code unconditional.
14256         [!__ASSUME_32BITUIDS]: Remove conditional code.
14257         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
14258         <kernel-features.h>.
14259         [__ASSUME_32BITUIDS]: Make code unconditional.
14260         [!__ASSUME_32BITUIDS]: Remove conditional code.
14261         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
14262         <kernel-features.h>.
14263         [__ASSUME_32BITUIDS]: Make code unconditional.
14264         [!__ASSUME_32BITUIDS]: Remove conditional code.
14265         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
14266         <kernel-features.h>.
14267         [__ASSUME_32BITUIDS]: Make code unconditional.
14268         [!__ASSUME_32BITUIDS]: Remove conditional code.
14269         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
14270         <kernel-features.h>.
14271         [__ASSUME_32BITUIDS]: Make code unconditional.
14272         [!__ASSUME_32BITUIDS]: Remove conditional code.
14273         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
14274         <kernel-features.h>.
14275         [__ASSUME_32BITUIDS]: Make code unconditional.
14276         [!__ASSUME_32BITUIDS]: Remove conditional code.
14277         * sysdeps/unix/sysv/linux/kernel-features.h
14278         (__ASSUME_SETRESUID_SYSCALL): Remove.
14279         (__ASSUME_SETRESGID_SYSCALL): Likewise.
14280         (__ASSUME_32BITUIDS): Likewise.
14281         (__ASSUME_LDT_WORKS): Likewise.
14282         (__ASSUME_O_DIRECTORY): Likewise.
14283         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
14284         architecture but not kernel version.
14285         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
14286         (__ASSUME_MMAP2_SYSCALL): Likewise.
14287         (__ASSUME_STAT64_SYSCALL): Likewise.
14288         (__ASSUME_IPC64): Likewise.
14289         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
14290         <kernel-features.h>.
14291         [__ASSUME_32BITUIDS]: Make code unconditional.
14292         [!__ASSUME_32BITUIDS]: Remove conditional code.
14293         * sysdeps/unix/sysv/linux/opendir.c: Do not include
14294         <kernel-features.h>.
14295         [__ASSUME_O_DIRECTORY]: Make code unconditional.
14296         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
14297         132096]: Remove conditional code.
14298         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
14299         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
14300         <kernel-features.h>.
14301         [__ASSUME_32BITUIDS]: Make code unconditional.
14302         [!__ASSUME_32BITUIDS]: Remove conditional code.
14303         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
14304         <kernel-features.h>.
14305         [__ASSUME_32BITUIDS]: Make code unconditional.
14306         [!__ASSUME_32BITUIDS]: Remove conditional code.
14307         * sysdeps/unix/sysv/linux/setegid.c: Do not include
14308         <kernel-features.h>.
14309         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
14310         unconditional.
14311         (__setresgid): Do not declare.
14312         [__ASSUME_32BITUIDS]: Make code unconditional.
14313         [!__ASSUME_32BITUIDS]: Remove conditional code.
14314         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
14315         <kernel-features.h>.
14316         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
14317         unconditional.
14318         (__setresuid): Do not declare.
14319         [__ASSUME_32BITUIDS]: Make code unconditional.
14320         [!__ASSUME_32BITUIDS]: Remove conditional code.
14321         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
14322         <kernel-features.h>.
14323         [__ASSUME_32BITUIDS]: Make code unconditional.
14324         [!__ASSUME_32BITUIDS]: Remove conditional code.
14325         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
14326         <kernel-features.h>.
14327         [__ASSUME_32BITUIDS]: Make code unconditional.
14328         [!__ASSUME_32BITUIDS]: Remove conditional code.
14329
14330 2012-05-25  Richard Henderson  <rth@twiddle.net>
14331
14332         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
14333         dl_hwcap to ifunc resolver.
14334         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
14335         elf_ifunc_invoke.
14336         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
14337         dl_hwcap to ifunc resolver.
14338         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
14339
14340 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14341
14342         [BZ #14153]
14343         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
14344         for |x| <= 2**-26, not 2**-57.
14345         * math/libm-test.inc (acos_test): Do not allow spurious underflow
14346         exception.
14347
14348 2012-05-24  Jeff Law  <law@redhat.com>
14349
14350         * stdio-common/Makefile (tests): Add bug25.
14351         * stdio-common/bug25.c: New test.
14352
14353 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14354
14355         [BZ #13576]
14356         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
14357         multiple of MALLOC_ALIGNMENT in size.
14358         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
14359
14360 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14361
14362         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
14363         Require >= 256.
14364         (FILENAME_MAX): Use macro-int-constant.
14365         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
14366         (_IOFBF): Use macro-int-constant.
14367         (_IOLBF): Likewise.
14368         (_IONBF): Likewise.
14369         (SEEK_CUR): Likewise.
14370         (SEEK_END): Likewise.
14371         (SEEK_SET): Likewise.
14372         (TMP_MAX): Likewise.
14373         (EOF): Use macro-int-constant.  Require < 0.
14374         (NULL): Use macro-constant.  Require == 0.
14375         (stdin): Require type to be FILE *.
14376         (stdout): Likewise.
14377         (stderr): Likewise.
14378         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
14379         macro-int-constant.
14380         (EXIT_SUCCESS): Likewise.
14381         (NULL): Use macro-constant.  Require == 0.
14382         (RAND_MAX): Use macro-int-constant.
14383         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
14384         [C99-based standards] (strtof): Require function.
14385         [C99-based standards] (strtold): Likewise.
14386         [C99-based standards] (strtoll): Likewise.
14387         [C99-based standards] (strtoull): Likewise.
14388         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
14389         [ISO || ISO99 || ISO11] (limits.h): Likewise.
14390         [ISO || ISO99 || ISO11] (math.h): Likewise.
14391         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
14392         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
14393         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14394
14395 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
14396
14397         [BZ #14132]
14398         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
14399         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
14400         * intl/dgettext.c (DCGETTEXT): Likewise.
14401         * intl/gettext.c (DCGETTEXT): Likewise.
14402         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
14403         * posix/regex_internal.h (gettext): Likewise.
14404         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
14405         Remove declaration.
14406         * include/argz.h (__argz_count_internal)
14407         (__argz_stringify_internal): Remove declaration.
14408         (__argz_count, __argz_stringify): Declare hidden proto.
14409         * intl/dcgettext.c: Remove use of INTDEF.
14410         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
14411         * string/argz-stringify.c: Likewise.
14412         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
14413         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
14414         Declare hidden proto.
14415         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
14416         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
14417         Declare hidden proto.
14418         * include/stdio.h (__asprintf_internal): Don't declare.
14419         (__asprintf): Don't define as macro.  Declare hidden proto.
14420         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
14421         (__fsetlocking): Declare hidden proto.
14422         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
14423         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
14424         hidden proto.
14425         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
14426         (_IO_setlinebuf): Remove use of INTUSE.
14427         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
14428         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
14429         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
14430         Remove declaration.
14431         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
14432         (_IO_do_flush): Remove use of INTUSE.
14433         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
14434         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
14435         (_IO_adjust_column, _IO_least_wmarker)
14436         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
14437         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
14438         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
14439         (_IO_default_doallocate, _IO_wdefault_doallocate)
14440         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
14441         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
14442         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
14443         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
14444         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
14445         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
14446         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
14447         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
14448         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
14449         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
14450         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
14451         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
14452         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
14453         proto.
14454         (_IO_flush_all_internal, _IO_adjust_column_internal)
14455         (_IO_default_uflow_internal, _IO_default_finish_internal)
14456         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
14457         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
14458         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
14459         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
14460         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
14461         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
14462         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
14463         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
14464         (_IO_file_close_internal, _IO_file_close_it_internal)
14465         (_IO_file_underflow_internal, _IO_file_overflow_internal)
14466         (_IO_file_init_internal, _IO_file_attach_internal)
14467         (_IO_file_fopen_internal, _IO_file_read_internal)
14468         (_IO_file_sync_internal, _IO_file_seek_internal)
14469         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
14470         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
14471         (_IO_str_underflow_internal, _IO_str_overflow_internal)
14472         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
14473         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
14474         (_IO_list_all_internal, _IO_link_in_internal)
14475         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
14476         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
14477         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
14478         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
14479         (_IO_do_write_internal, _IO_padn_internal)
14480         (_IO_getline_info_internal, _IO_getline_internal)
14481         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
14482         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
14483         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
14484         (_IO_vfscanf_internal, _IO_vfprintf_internal)
14485         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
14486         (_IO_init_internal, _IO_un_link_internal): Don't declare.
14487         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
14488         with libc_hidden_ver, remove use of INTUSE.
14489         * libio/genops.c: Likewise.
14490         * libio/freopen.c: Likewise.
14491         * libio/freopen64.c: Likewise.
14492         * libio/iofclose.c: Likewise.
14493         * libio/iofdopen.c: Likewise.
14494         * libio/iofflush.c: Likewise.
14495         * libio/iofflush_u.c: Likewise.
14496         * libio/iofgets.c: Likewise.
14497         * libio/iofgets_u.c: Likewise.
14498         * libio/iofopen.c: Likewise.
14499         * libio/iofopncook.c: Likewise.
14500         * libio/iofread.c: Likewise.
14501         * libio/iofread_u.c: Likewise.
14502         * libio/ioftell.c: Likewise.
14503         * libio/iofwrite.c: Likewise.
14504         * libio/iogetline.c: Likewise.
14505         * libio/iogets.c: Likewise.
14506         * libio/iogetwline.c: Likewise.
14507         * libio/iopadn.c: Likewise.
14508         * libio/iopopen.c: Likewise.
14509         * libio/ioseekoff.c: Likewise.
14510         * libio/ioseekpos.c: Likewise.
14511         * libio/iosetbuffer.c: Likewise.
14512         * libio/iosetvbuf.c: Likewise.
14513         * libio/ioungetc.c: Likewise.
14514         * libio/ioungetwc.c: Likewise.
14515         * libio/iovdprintf.c: Likewise.
14516         * libio/iovsprintf.c: Likewise.
14517         * libio/iovsscanf.c: Likewise.
14518         * libio/memstream.c: Likewise.
14519         * libio/obprintf.c: Likewise.
14520         * libio/oldfileops.c: Likewise.
14521         * libio/oldiofclose.c: Likewise.
14522         * libio/oldiofdopen.c: Likewise.
14523         * libio/oldiofopen.c: Likewise.
14524         * libio/oldiopopen.c: Likewise.
14525         * libio/oldstdfiles.c: Likewise.
14526         * libio/putc.c: Likewise.
14527         * libio/setbuf.c: Likewise.
14528         * libio/setlinebuf.c: Likewise.
14529         * libio/stdfiles.c: Likewise.
14530         * libio/strops.c: Likewise.
14531         * libio/vasprintf.c: Likewise.
14532         * libio/vscanf.c: Likewise.
14533         * libio/vsnprintf.c: Likewise.
14534         * libio/vswprintf.c: Likewise.
14535         * libio/wfiledoalloc.c: Likewise.
14536         * libio/wfileops.c: Likewise.
14537         * libio/wgenops.c: Likewise.
14538         * libio/wmemstream.c: Likewise.
14539         * libio/wstrops.c: Likewise.
14540         * libio/__fpurge.c: Likewise.
14541         * libio/__fsetlocking.c: Likewise.
14542         * assert/assert.c: Likewise.
14543         * debug/fgets_chk.c: Likewise.
14544         * debug/fgets_u_chk.c: Likewise.
14545         * debug/fread_chk.c: Likewise.
14546         * debug/fread_u_chk.c: Likewise.
14547         * debug/gets_chk.c: Likewise.
14548         * debug/obprintf_chk.c: Likewise.
14549         * debug/vasprintf_chk.c: Likewise.
14550         * debug/vdprintf_chk.c: Likewise.
14551         * debug/vsnprintf_chk.c: Likewise.
14552         * debug/vsprintf_chk.c: Likewise.
14553         * malloc/mtrace.c: Likewise.
14554         * misc/error.c: Likewise.
14555         * misc/syslog.c: Likewise.
14556         * stdio-common/asprintf.c: Likewise.
14557         * stdio-common/fxprintf.c: Likewise.
14558         * stdio-common/getw.c: Likewise.
14559         * stdio-common/isoc99_fscanf.c: Likewise.
14560         * stdio-common/isoc99_scanf.c: Likewise.
14561         * stdio-common/isoc99_vfscanf.c: Likewise.
14562         * stdio-common/isoc99_vscanf.c: Likewise.
14563         * stdio-common/isoc99_vsscanf.c: Likewise.
14564         * stdio-common/printf-prs.c: Likewise.
14565         * stdio-common/printf_fp.c: Likewise.
14566         * stdio-common/printf_fphex.c: Likewise.
14567         * stdio-common/printf_size.c: Likewise.
14568         * stdio-common/putw.c: Likewise.
14569         * stdio-common/scanf.c: Likewise.
14570         * stdio-common/sprintf.c: Likewise.
14571         * stdio-common/tmpfile.c: Likewise.
14572         * stdio-common/vfprintf.c: Likewise.
14573         * stdio-common/vfscanf.c: Likewise.
14574         * stdlib/strfmon_l.c: Likewise.
14575         * sunrpc/openchild.c: Likewise.
14576         * sunrpc/xdr_stdio.c: Likewise.
14577         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
14578         * sysdeps/mach/hurd/tmpfile.c: Likewise.
14579
14580 2012-05-24  Roland McGrath  <roland@hack.frob.com>
14581
14582         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14583
14584         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
14585         in the third column, to generate for the shared library an IFUNC
14586         that uses _dl_vdso_vsym.
14587         * Makerules (COMPILE.c, compile-stdin.c): New variables.
14588         * Makeconfig (object-suffixes-noshared): New variable.
14589
14590         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
14591         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
14592         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
14593         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
14594
14595         [BZ #14132]
14596         * include/sys/time.h (__gettimeofday): Remove macro.
14597         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
14598         * time/gettimeofday.c (__gettimeofday): Remove #undef.
14599         Remove INTDEF.
14600         (__gettimeofday): Add libc_hidden_def.
14601         (gettimeofday): Add libc_hidden_weak.
14602         * sysdeps/mach/gettimeofday.c: Likewise.
14603         * sysdeps/posix/gettimeofday.c: Likewise.
14604         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
14605         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
14606         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
14607         (__gettimeofday_internal): Remove strong_alias.
14608         (__gettimeofday): Add libc_hidden_def.
14609         (gettimeofday): Add libc_hidden_weak.
14610         * sysdeps/unix/syscalls.list (gettimeofday):
14611         Remove __gettimeofday_internal alias.
14612
14613 2012-05-24  Daniel Jacobowitz  <drow@false.org>
14614             H.J. Lu  <hongjiu.lu@intel.com>
14615
14616         [BZ #12495]
14617         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
14618         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
14619         (largebin_index_32_big): New.
14620         (largebin_index): Use it for 16-byte alignment.
14621         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
14622         correction with front_misalign.
14623
14624 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14625
14626         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
14627         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
14628         Likewise.
14629         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
14630         Likewise.
14631         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
14632         Likewise.
14633         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
14634         Likewise.
14635         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
14636         Likewise.
14637         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
14638         Likewise.
14639         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
14640         Likewise.
14641         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
14642         Likewise.
14643         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
14644         Likewise.
14645         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
14646         Likewise.
14647         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
14648         Likewise.
14649         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
14650         Likewise.
14651
14652         * scripts/data/c++-types-x32-linux-gnu.data: New file.
14653         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
14654
14655 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14656
14657         [BZ #10846]
14658         [BZ #14036]
14659         * math/libm-test.inc (exp_test): Add test from bug 14036.
14660         (pow_test): Add test from bug 10846.
14661
14662         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
14663         and other flags.
14664         (special_function): Do not include flags in test name.
14665         (parse_args): Likewise.
14666         * sysdeps/i386/fpu/libm-test-ulps: Update.
14667         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14668         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
14669         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
14670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14671
14672         * math/gen-libm-test.pl (%beautify): Add entries for underflow
14673         exceptions.
14674         * math/libm-test.inc ("Philosophy"): Update comment about
14675         exception testing.
14676         (UNDERFLOW_EXCEPTION): New macro.
14677         (UNDERFLOW_EXCEPTION_OK): Likewise.
14678         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
14679         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
14680         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
14681         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
14682         (INVALID_EXCEPTION_OK): Update value.
14683         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
14684         (OVERFLOW_EXCEPTION_OK): Likewise.
14685         (IGNORE_ZERO_INF_SIGN): Likewise.
14686         (test_exceptions): Handle underflow exceptions.
14687         (acos_test): Update for underflow exception expectations.
14688         (cexp_test): Likewise.
14689         (clog_test): Likewise.
14690         (clog10_test): Likewise.
14691         (csqrt_test): Likewise.
14692         (ctan_test): Likewise.
14693         (ctanh_test): Likewise.
14694         (exp_test): Likewise.
14695         (exp10_test): Likewise.
14696         (exp2_test): Likewise.
14697         (expm1_test): Likewise.
14698         (fma_test): Likewise.
14699         (j0_test): Likewise.
14700         (jn_test): Likewise.
14701         (nexttoward_test): Likewise.
14702         (pow_test): Likewise.
14703         (scalbn_test): Likewise.
14704         (scalbln_test): Likewise.
14705         (tan_test): Likewise.
14706         (y1_test): Likewise.
14707         * sysdeps/i386/fpu/libm-test-ulps: Update.
14708         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14709
14710 2012-05-23  David S. Miller  <davem@davemloft.net>
14711
14712         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
14713         (__libc_sigaction): Remove unused local variables.
14714
14715 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14716
14717         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
14718
14719 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14720
14721         mktime: avoid signed integer overflow
14722         * time/mktime.c (__mktime_internal): Do not mishandle the case
14723         where diff == INT_MIN.
14724
14725         mktime: simplify computation of average
14726         * time/mktime.c (ranged_convert): Use new time_t_avg function
14727         instead of rolling our own (probably-slower) code.
14728
14729         mktime: do not assume signed right shift propagates sign bit
14730         * time/mktime.c (isdst_differ): New static function.
14731         (__mktime_internal): No need to normalize tm_isdst now.
14732         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
14733         tm_isdst values.
14734
14735         mktime: merge another wrapv change from gnulib
14736         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
14737         from some compilers.
14738
14739         mktime: remove incorrect attempt at unusual arithmetics
14740         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
14741         The code didn't really work on such machines anyway.
14742         (TYPE_MINIMUM): Assume two's complement.
14743         (twos_complement_arithmetic): Verify that long_int and time_t
14744         are two's complement (or unsigned, in the latter case).
14745
14746         mktime: check signed shifts on long_int and time_t, too
14747         * time/mktime.c (SHR): Check that shifts work as desired
14748         on the types long_int and time_t too, as SHR is used on
14749         such types.
14750
14751         mktime: do not assume 'long' is wide enough
14752         * time/mktime.c (verify): Move decl up.
14753         (long_int): New type.
14754         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
14755         to remove assumption in the code that 'long' is wide enough to
14756         store year values.  This assumption is not true on x32 and on
14757         some non-glibc platforms.
14758
14759         mktime: merge wrapv change from gnulib
14760         * time/mktime.c (WRAPV): New macro.
14761         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
14762         (guess_time_tm, __mktime_internal): Do not assume that signed
14763         integer overflow wraps around; modern compilers generate code
14764         where this assumption is no longer valid.
14765
14766 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14767
14768         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14769         Replace "jmp L(pseudo_end)" with "ret".
14770         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14771         Likewise.
14772
14773 2012-05-23  Andreas Jaeger  <aj@suse.de>
14774
14775         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
14776         * sysdeps/unix/sysv/linux/poll.c: Remove file.
14777
14778 2012-05-23  Andreas Jaeger  <aj@suse.de>
14779             Maximilian Attems  <max@stro.at>
14780
14781         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
14782         New macros.
14783
14784 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14785
14786         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
14787         code so that pseudo_end is just ret and the stack pointer is
14788         correct also for static library in error case.
14789
14790 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
14791
14792         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
14793         move to syscalls.list.
14794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
14795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
14796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
14797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
14798
14799         * manual/install.texi (Running make install): Do not mention Linux
14800         kernel version for which pt_chown is not needed.
14801         (Linux): Do not mention problems with nscd with 2.0 kernels.
14802         * INSTALL: Regenerated.
14803
14804 2012-05-23  Andreas Jaeger  <aj@suse.de>
14805
14806         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
14807         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
14808         macro.
14809         * sysdeps/unix/sysv/linux/s390/bits/mman.h
14810         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14811         * sysdeps/unix/sysv/linux/sh/bits/mman.h
14812         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14813         * sysdeps/unix/sysv/linux/i386/bits/mman.h
14814         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14815         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
14816         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14817         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
14818         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14819         * sysdeps/unix/sysv/linux/bits/in.h
14820         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
14821
14822 2012-05-22  Roland McGrath  <roland@hack.frob.com>
14823
14824         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
14825         (PREPARE_VERSION): Just use assert instead, it will be elided
14826         under [NDEBUG] anyway.
14827
14828 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14829
14830         * sysdeps/unix/sysv/linux/Makefile: Include
14831         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
14832         (sysdep_routines): Remove sysctl.
14833         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
14834         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
14835         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
14836         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
14837         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
14838
14839 2012-05-22  Andreas Jaeger  <aj@suse.de>
14840
14841         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
14842         that pseudo_end is just ret and the stack pointer is correct also
14843         for static library in error case.
14844
14845 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
14846
14847         [BZ #14122]
14848         * nss/nsswitch.c (defconfig_entries): New variable.
14849         (__nss_database_lookup): Don't leak defconfig entries.
14850         (nss_parse_service_list): Don't leak on error paths.
14851         (free_database_entries): New function.
14852         (free_defconfig): New function.
14853         (free_mem): Move common code to free_database_entries.
14854
14855 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14856
14857         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
14858         Add arch_prctl.
14859         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
14860
14861         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
14862         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
14863         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
14864         New macro.
14865         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
14866         (INTERNAL_SYSCALL_TYPES): Likewise.
14867         (LOAD_ARGS_TYPES_[1-6]): Likewise.
14868         (LOAD_REGS_TYPES_[1-6]): Likewise.
14869         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
14870         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
14871
14872 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14873
14874         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
14875         copysignl for GLIBC_2_0.
14876         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
14877         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
14878         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
14879         logbl for GLIBC_2_0.
14880         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
14881         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
14882
14883 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14884
14885         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
14886         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14887
14888         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14889         Use "neg %eax".
14890
14891         * time/mktime.c: Update copyright years.
14892
14893 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14894
14895         mktime: merge comment-quoting-style change from gnulib
14896         * time/mktime.c: Quote 'like this' in comments.
14897         The GNU coding standards suggest that we no longer quote `like this',
14898         as "`" and "'" are typically rendered asymmetrically nowadays.
14899         The typical gnulib style is to quote 'like this' when quoting
14900         code, and "like this" when quoting English.
14901
14902         * time/mktime.c (compile-command): Add "-I.".
14903
14904         mktime: merge mktime-internal.h change from gnulib
14905         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
14906
14907         mktime: merge time_r change from gnulib
14908         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
14909
14910         mktime: merge DEBUG change from gnulib
14911         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
14912         case system <time.h> has a #define.
14913
14914         mktime: merge <sys/types.h> change from gnulib
14915         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
14916         since <time.t> is now guaranteed to define time_t.
14917
14918         mktime: merge HAVE_CONFIG_H change from gnulib
14919         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
14920
14921 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14922
14923         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14924         Use "neg %eax".
14925
14926         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
14927         __rlim_t cast.
14928         (struct rusage): Use anonymous union to pad each field to
14929         __syscall_slong_t.
14930
14931 2012-05-21  David S. Miller  <davem@davemloft.net>
14932
14933         * Makefules (o-iterator): Remove .s cases.
14934         (compile-command.s): Delete.
14935         (COMPILE.s): Delete.
14936         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
14937
14938 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
14939
14940         * configure.in (libc_cv_predef_stack_protector): Only consider
14941         "foobar" and "__stack_chk_fail" lines in libc_undefs.
14942         * configure: Regenerated.
14943
14944 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14945
14946         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14947         New macro.  Use R*LP on int and pointer.
14948         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
14949         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
14950         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
14951         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
14952
14953         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
14954         [__WORDSIZE_TIME64_COMPAT32] instead of
14955         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
14956         (struct utmp): Likewise.
14957         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
14958         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
14959         Renamed to ...
14960         (__WORDSIZE_TIME64_COMPAT32): This.
14961         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
14962         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
14963         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
14964         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
14965         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
14966         (__WORDSIZE_TIME64_COMPAT32): New macro.
14967
14968 2012-05-21  Andreas Jaeger  <aj@suse.de>
14969
14970         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
14971         only if [SHARED]. Add prototype for __wcschr_ia32.
14972
14973 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14974
14975         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
14976         of %rbp unmolested in the jmp_buf while mangling the low bits.
14977         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
14978         unmolested high bits of %rbp while demangling the low bits.
14979         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14980
14981 2012-05-21  Andreas Jaeger  <aj@suse.de>
14982
14983         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
14984         * sunrpc/svc_simple.c: Use it for registerrpc.
14985         * sunrpc/xcrypt.c: Use it for passwd2des.
14986
14987         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
14988
14989 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14990
14991         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
14992         Don't define if [__SYSCALL_WORDSIZE != 32].
14993         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
14994         New macro.
14995
14996 2012-05-21  Bruno Haible  <bruno@clisp.org>
14997             Andreas Jaeger  <aj@suse.de>
14998
14999         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
15000         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
15001         inptr and inend for must_buffer_ch.
15002         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
15003         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
15004         * stdio-common/Makefile (tests): Remove bug15.
15005         (bug15-ENV): Remove macro.
15006         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
15007         anymore.
15008
15009 2012-05-19  Andreas Jaeger  <aj@suse.de>
15010             Roland McGrath  <roland@hack.frob.com>
15011
15012         * manual/contrib.texi: Completely rewritten. It contains now an
15013         alphabetical list of contributors and their contributions.
15014
15015 2012-05-21  Richard Henderson  <rth@twiddle.net>
15016
15017         * misc/getauxval.c (__getauxval): Use unsigned long int.
15018         * misc/sys/auxv.h: Include <sys/cdefs.h>.
15019         (getauxval): Use unsigned long int.
15020
15021 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15022
15023         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
15024
15025 2012-05-21  Roland McGrath  <roland@hack.frob.com>
15026
15027         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
15028         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
15029         __alignof__ (long double).
15030
15031 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15032
15033         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15034
15035 2012-05-20  Richard Henderson  <rth@twiddle.net>
15036
15037         * misc/getauxval.c: New file.
15038         * misc/sys/auxv.h: New file.
15039         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
15040         (routines): Add getauxval.
15041         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
15042         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
15043         * elf/dl-sysdep.c (_dl_auxv): Remove.
15044         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
15045         * elf/dl-support.c (_dl_auxv): New variable.
15046         (_dl_aux_init): Initialize it.
15047         * manual/startup.texi (Auxiliary Vector): New node.
15048         * sysdeps/generic/bits/hwcap.h: New file.
15049         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
15050         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
15051         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
15052         * sysdeps/sparc/sysdep.h: ... here.  Include it.
15053         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
15054         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
15055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15056         Update.
15057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
15058         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
15059         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
15060         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
15061         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
15062         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
15063         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
15064         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
15065
15066 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15067
15068         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15069
15070 2012-05-19  David S. Miller  <davem@davemloft.net>
15071
15072         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15073
15074 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
15075
15076         [BZ #14123]
15077         * math/s_ccosh.c: Include <float.h>
15078         (__ccosh): Avoid internal overflow calculating sinh and cosh
15079         values before multiplying by sin and cos values.
15080         * math/s_ccoshf.c: Likewise.
15081         * math/s_ccoshl.c: Likewise.
15082         * math/s_csin.c: Likewise.
15083         * math/s_csinf.c: Likewise.
15084         * math/s_csinl.c: Likewise.
15085         * math/s_csinh.c: Likewise.
15086         * math/s_csinhf.c: Likewise.
15087         * math/s_csinhl.c: Likewise.
15088         * math/libm-test.inc (ccos_test): Add more tests.
15089         (ccosh_test): Likewise.
15090         (csin_test): Likewise.
15091         (csinh_test): Likewise.
15092         * sysdeps/i386/fpu/libm-test-ulps: Update.
15093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15094
15095 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15096
15097         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
15098         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
15099
15100         * sysdeps/x86_64/x32/_itoa.h: Add comment.
15101
15102 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
15103
15104         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
15105         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
15106         * sysdeps/powerpc/soft-fp/Versions: Likewise.
15107         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
15108         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
15109         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
15110         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
15111         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
15112         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
15113         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
15114         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
15115         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
15116         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
15117         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
15118         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
15119         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
15120         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
15121         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
15122         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
15123         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
15124         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
15125         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
15126         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
15127         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
15128         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
15129         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
15130         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
15131         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
15132         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
15133         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
15134         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
15135
15136 2012-05-18  Andreas Jaeger  <aj@suse.de>
15137
15138         * csu/.gitignore: Delete.
15139
15140 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15141
15142         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
15143         (timex): Use __syscall_slong_t.
15144
15145 2012-05-18  Andreas Jaeger  <aj@suse.de>
15146             Carlos O'Donell  <carlos_odonell@mentor.com>
15147
15148         * manual/install.texi (Configuring and compiling): Update
15149         description about files modified in the source directory.
15150         * INSTALL: Regenerated.
15151
15152 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15153
15154         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
15155         value.  Use "or" to set return value to -1.
15156         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
15157         negate return value.
15158
15159 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15160
15161         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
15162         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
15163         failure if the compiler has Graphite support disabled.
15164         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
15165         Likewise.
15166         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
15167         CFLAGS-memmove.c): Likewise.
15168         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
15169         Likewise.
15170
15171 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15172
15173         * sysdeps/x86_64/x32/_itoa.h: New file.
15174
15175         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
15176         getdents system call only if kernel and user dirents have the
15177         same d_ino and d_off.
15178
15179         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
15180         LLONG_MAX != LONG_MAX.
15181         (_itoa_word): Use _ITOA_WORD_TYPE on value.
15182         (_fitoa_word): Likewise.
15183
15184         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
15185         years.
15186         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
15187         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
15188         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
15189
15190         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
15191         include <bits/wordsize.h>.  Check __x86_64__ instead of
15192         __WORDSIZE.
15193         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
15194         if __x86_64__ is defined.  Use anonymous union on fpstate.
15195
15196         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
15197         anonymous union.
15198
15199 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
15200
15201         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
15202         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
15203         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
15204         Refer to _rtld_local_ro instead of _rtld_global_ro.
15205         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
15206         Likewise.
15207         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
15208         Likewise.
15209         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
15210         Likewise.
15211         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
15212         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
15213         of _rtld_global, and rtld_progname instead of _dl_argv[0].
15214
15215         * sysdeps/powerpc/powerpc32/dl-machine.c
15216         (__elf_machine_runtime_setup) [PROF]: Don't reference
15217         _dl_prof_resolve.
15218
15219 2012-05-18  Andreas Jaeger  <aj@suse.de>
15220
15221         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
15222         function only available for GCCs before 3.4 since GCC 3.4
15223         introduced a builtin.
15224         (lrint): Likewise.
15225         (llrintf): Likewise.
15226         (llrint): Likewise.
15227         (fmaxf): Likewise.
15228         (fmax): Likewise.
15229         (fminf): Likewise.
15230         (fmin): Likewise.
15231         (rint): Likewise.
15232         (rintf): Likewise.
15233         (nearbyint): Likewise.
15234         (nearbyintf): Likewise.
15235         (ceil): Likewise.
15236         (ceilf): Likewise.
15237         (floor): Likewise.
15238         (floorf): Likewise.
15239
15240 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15241
15242         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
15243         on both fields and cast pointer to __syscall_ulong_t.
15244
15245         * bits/types.h (__fsword_t): New type.
15246         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
15247         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
15248         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15249         (__FSWORD_T_TYPE): Likewise.
15250         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15251         (__FSWORD_T_TYPE): Likewise.
15252         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15253         (__FSWORD_T_TYPE): Likewise.
15254         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
15255         (__FSWORD_T_TYPE): Likewise.
15256         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
15257         __SWORD_TYPE with __fsword_t.
15258         (statfs64): Likewise.
15259
15260 2012-05-17  David S. Miller  <davem@davemloft.net>
15261
15262         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
15263
15264 2012-05-17  Andreas Jaeger  <aj@suse.de>
15265
15266         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
15267         warning.
15268
15269 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15270
15271         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
15272
15273 2012-05-17  Andreas Jaeger  <aj@suse.de>
15274
15275         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
15276         when it is used.
15277
15278 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
15279
15280         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
15281
15282 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15283
15284         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
15285         * sysdeps/x86_64/tst-mallocalign1.c: New file.
15286
15287 2012-05-17  Andreas Jaeger  <aj@suse.de>
15288             Carlos O'Donell  <carlos_odonell@mentor.com>
15289
15290         [BZ #14059]
15291         * sysdeps/x86_64/multiarch/init-arch.h
15292         (bit_YMM_Usable): Rename to...
15293         (bit_AVX_Usable): ... this.
15294         (bit_FMA4_Usable): New macro.
15295         (bit_XMM_state): New macro.
15296         (bit_YMM_state): New macro.
15297         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
15298         [__ASSEMBLER__] (index_AVX_Usable): ... this.
15299         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
15300         (CPUID_OSXSAVE): New macro.
15301         (CPUID_AVX): New macro.
15302         (CPUID_FMA4): New macro.
15303         (index_YMM_Usable): Rename to...
15304         (index_AVX_Usable): ... this.
15305         (HAS_AVX): Use HAS_ARCH_FEATURE.
15306         (HAS_FMA4): Likewise.
15307         (HAS_YMM_USABLE): Remove.
15308         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15309         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
15310         are present.
15311         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
15312         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
15313         * sysdeps/x86_64/multiarch/Makefile: Likewise.
15314         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
15315         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
15316
15317 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
15318
15319         * math/libm-test.c: Support platforms without multiple rounding modes.
15320         * math/bug-nextafter.c: Support platforms without FP exceptions.
15321         * math/bug-nexttoward.c: Likewise.
15322         * math/test-fenv.c: Likewise.
15323         * math/test-misc.c: Likewise.
15324         * stdlib/bug-getcontext.c: Likewise.
15325
15326 2012-05-17  Andreas Jaeger  <aj@suse.de>
15327
15328         * manual/examples/search.c (critter_cmp): Change signature to
15329         avoid warnings.
15330         * manual/string.texi (Collation Functions): Likewise.
15331
15332 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15333
15334         * bits/types.h: Fold copyright years.
15335         * bits/typesizes.h: Likewise.
15336         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
15337         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
15338         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
15339         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
15340         * time/time.h: Likewise.
15341
15342 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
15343
15344         [BZ #208]
15345         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
15346         in instead of returning them.  Return void.
15347         (__libc_mallinfo): Accumulate over all arenas.
15348         (__malloc_stats): Adjust for change in int_mallinfo interface.
15349
15350 2012-05-16  Roland McGrath  <roland@hack.frob.com>
15351
15352         [BZ #10375]
15353         * configure.in (NM): Add AC_CHECK_TOOL for it.
15354         (libc_extra_cflags): New substituted variable.
15355         Check for -fstack-protector being used implicitly.
15356         * configure: Regenerated.
15357         * config.make.in (config-extra-cflags): New variable,
15358         gets @libc_extra_cflags@.
15359         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
15360
15361         [BZ #10375]
15362         * configure.in: Check for _FORTIFY_SOURCE being predefined.
15363         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
15364         * configure: Regenerated.
15365         * config.make.in (CPPUNDEFS): New substituted variable.
15366         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
15367         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
15368         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
15369
15370 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15371
15372         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
15373         (mq_attr): Use __syscall_slong_t.
15374
15375 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15376
15377         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
15378         Check __x86_64__ instead of __WORDSIZE.
15379         (_STAT_VER_LINUX): Likewise.
15380         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
15381         __syscall_ulong_t and __syscall_slong_t.
15382         (stat64): Likewise.
15383
15384 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15385
15386         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
15387
15388 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15389
15390         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
15391
15392 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15393
15394         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
15395         __syscall_ulong_t.
15396
15397         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
15398         include <bits/wordsize.h>.  Check __x86_64__ instead of
15399         __WORDSIZE.
15400         (greg_t): Use "__extension__ long long int" if __x86_64__ is
15401         defined.
15402         (mcontext_t): Replace "unsigned long" with "unsigned long long".
15403
15404         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
15405         include <bits/wordsize.h>.  Check __x86_64__ instead of
15406         __WORDSIZE.
15407         (user_regs_struct): Use "__extension__ unsigned long long"
15408         instead of "unsigned long" if __x86_64__ is defined.
15409         (user): Likewise.  Pad after pointer field if __ILP32__ is
15410         defined.
15411
15412 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
15413
15414         * configure.in (makeinfo): Require version 4.5 or later.  Allow
15415         versions 5 to 9.
15416         * configure: Regenerated.
15417         * manual/install.texi (texinfo): Increase version requirement to
15418         4.5 or later.
15419         * INSTALL: Regenerated.
15420
15421         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
15422
15423 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15424
15425         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
15426
15427         * sysdeps/x86_64/x32/ffs.c: New file.
15428
15429         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
15430         __syscall_ulong_t.
15431         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
15432         defined.  Use __syscall_ulong_t.
15433         (shminfo): Use __syscall_ulong_t.
15434         (shm_info): Likewise.
15435
15436         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
15437         __syscall_ulong_t.
15438
15439         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
15440         <bits/wordsize.h>.
15441         (msgqnum_t): Use __syscall_ulong_t.
15442         (msglen_t): Likewise.
15443         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
15444         __syscall_ulong_t.
15445
15446         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
15447         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
15448
15449         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
15450
15451         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
15452         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
15453
15454         * sysvipc/sys/msg.h (msgbuf): Replace long int with
15455         __syscall_slong_t.
15456
15457         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
15458         include <bits/wordsize.h>.  Check __x86_64__ instead of
15459         __WORDSIZE.
15460
15461         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
15462         "unsigned long long int" if __x86_64__ is defined.
15463         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
15464
15465         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
15466         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
15467         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
15468
15469         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
15470         <stdint.h>.
15471         (GET_PC): Cast to uintptr_t first.
15472         (GET_FRAME): Likewise.
15473         (GET_STACK): Likewise.
15474
15475         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
15476         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
15477         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
15478         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
15479         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
15480         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
15481         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
15482         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
15483         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
15484         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
15485         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
15486         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
15487         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
15488         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
15489         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
15490         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
15491         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
15492         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
15493         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
15494         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
15495         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
15496         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
15497         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
15498         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
15499         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
15500         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
15501         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
15502         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
15503         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
15504
15505 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
15506
15507         * Makerules (+depfiles): Also collect depfiles from .oS in
15508         $(extra-objs).
15509         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
15510         .oS, $(libnldbl-routines)).
15511
15512         * Makerules (native-compile-mkdep-flags): Define.
15513         * sunrpc/Makefile (extra-objs): Add $(addprefix
15514         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
15515         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
15516         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
15517         calling $(make-target-directory).
15518
15519 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15520
15521         * bits/types.h (__snseconds_t): Removed.
15522         * time/time.h (struct timespec): Replace __snseconds_t with
15523         __syscall_slong_t.
15524         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
15525         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
15526         Likewise.
15527         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15528         (__SNSECONDS_T_TYPE): Likewise.
15529         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15530         (__SNSECONDS_T_TYPE): Likewise.
15531         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15532         (__SNSECONDS_T_TYPE): Likewise.
15533
15534 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15535
15536         * sysdeps/mach/hurd/bits/typesizes.h
15537         (__SYSCALL_SLONG_TYPE): New macro.
15538         (__SYSCALL_ULONG_TYPE): Likewise.
15539
15540 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15541
15542         * bits/types.h (__syscall_slong_t): New type.
15543         (__syscall_ulong_t): Likewise.
15544
15545         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
15546         (__SYSCALL_ULONG_TYPE): Likewise.
15547         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15548         (__SYSCALL_SLONG_TYPE): Likewise.
15549         (__SYSCALL_ULONG_TYPE): Likewise.
15550         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15551         (__SYSCALL_SLONG_TYPE): Likewise.
15552         (__SYSCALL_ULONG_TYPE): Likewise.
15553         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15554         (__SYSCALL_SLONG_TYPE): Likewise.
15555         (__SYSCALL_ULONG_TYPE): Likewise.
15556
15557 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15558
15559         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
15560         Add sigaltstack-offsets.sym.
15561         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15562         <sigaltstack-offsets.h>.
15563         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
15564         longjmp_msg pointer.
15565         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
15566         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
15567         signal stack.
15568         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
15569
15570 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
15571
15572         * elf/stackguard-macros.h: Remove file.
15573         * sysdeps/generic/stackguard-macros.h: New file.
15574         * sysdeps/i386/stackguard-macros.h: Likewise.
15575         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
15576         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
15577         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
15578         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
15579         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
15580         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
15581         * sysdeps/x86_64/stackguard-macros.h: Likewise.
15582         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
15583         <elf/stackguard-macros.h>.
15584
15585         [BZ #14109]
15586         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
15587         __aligned__ in attribute.
15588         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
15589         (gregset_t): Likewise.
15590
15591 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15592
15593         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
15594         * sysdeps/x86_64/64/Implies-after: Here.  New file.
15595         * sysdeps/x86_64/x32/Implies-after: New file.
15596
15597 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15598
15599         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
15600         and access return value for _dl_profile_fixup.  Use R10_LP to
15601         load frame size.
15602
15603 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15604
15605         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
15606
15607 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15608
15609         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
15610         * sysdeps/x86_64/x32/sysdep.h: New file.
15611
15612 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15613
15614         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
15615         * sysdeps/x86_64/setjmp.S: Likewise.
15616
15617 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15618
15619         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
15620         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
15621         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
15622         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
15623         remove unused global constant.
15624
15625 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
15626
15627         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
15628         include of <not-cancel.h>.
15629
15630 2012-05-15  Roland McGrath  <roland@hack.frob.com>
15631
15632         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
15633
15634 2012-05-15  Jeff Law  <law@redhat.com>
15635             Andreas Jaeger  <aj@suse.de>
15636
15637         [BZ #13594]
15638         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
15639         out from...
15640         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
15641         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
15642         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
15643         code changing __hst_map_handle.map.
15644
15645 2012-05-15  Roland McGrath  <roland@hack.frob.com>
15646
15647         * configure.in (sysnames): Look for Implies-before and Implies-after
15648         files.
15649         * configure: Regenerated.
15650
15651 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15652
15653         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
15654         8-byte data alignment with LP_SIZE alignment.
15655
15656 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15657
15658         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
15659         into R10_LP.
15660
15661 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15662
15663         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
15664
15665 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15666
15667         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
15668         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
15669         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
15670         Likewise.
15671         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
15672
15673 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15674
15675         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
15676         (stackinfo_sub_sp): Likewise.
15677
15678 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15679
15680         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
15681         RAX_LP.
15682
15683 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15684
15685         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
15686         into R*_LP.
15687
15688 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15689
15690         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
15691         sizes into R*_LP.
15692
15693 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15694
15695         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
15696
15697 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15698
15699         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
15700         into R11_LP and load __x86_64_shared_cache_size_half into
15701         R8_LP.
15702
15703 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15704
15705         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
15706         R8_LP.
15707
15708 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15709
15710         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
15711         logb for POWER7.
15712         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
15713         logbf for POWER7.
15714         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
15715         logbl for POWER7.
15716         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
15717         powerpc32/power7/fpu/s_logb.c via #include.
15718         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
15719         powerpc32/power7/fpu/s_logbf.c via #include.
15720         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
15721         powerpc32/power7/fpu/s_logbl.c via #include.
15722
15723 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
15724
15725         * README.libm: Remove file.
15726
15727 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15728
15729         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
15730         count for x32.  Use R*_LP and omit operand-size suffix.
15731
15732 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15733
15734         * shlib-versions: Move x86_64-.*-linux.* entries to ...
15735         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
15736         * sysdeps/x86_64/x32/shlib-versions: New file.
15737
15738 2012-05-14  Roland McGrath  <roland@hack.frob.com>
15739
15740         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
15741         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
15742         Use _dl_fatal_printf instead.
15743
15744 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15745
15746         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
15747         set if not set by the user.  Do not allow for being unset.
15748         * sysdeps/unix/sysv/linux/configure: Regenerated.
15749
15750 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15751
15752         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
15753         the `q' suffix from lea and replace .quad with ASM_ADDR.
15754
15755 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15756
15757         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
15758         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
15759         instead of $17.
15760         (PTR_DEMANGLE): Likewise.
15761
15762 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15763
15764         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
15765         (LP_OP): Likewise.
15766         (ASM_ADDR): Likewise.
15767         (RAX_LP): Likewise.
15768         (RBP_LP): Likewise.
15769         (RBX_LP): Likewise.
15770         (RCX_LP): Likewise.
15771         (RDI_LP): Likewise.
15772         (RSI_LP): Likewise.
15773         (RSP_LP): Likewise.
15774         (R8_LP): Likewise.
15775         (R9_LP): Likewise.
15776         (R10_LP): Likewise.
15777         (R10_LP): Likewise.
15778         (R11_LP): Likewise.
15779         (R12_LP): Likewise.
15780         (R13_LP): Likewise.
15781         (R14_LP): Likewise.
15782         (R15_LP): Likewise.
15783
15784 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15785
15786         * sysdeps/x86_64/x32/dl-machine.h: New file.
15787
15788 2012-05-14  Andreas Jaeger  <aj@suse.de>
15789
15790         * manual/Makefile (subdir): Remove export of subdir.
15791         (all): Remove target.
15792         (.PHONY): Remove all from list.
15793         (mkinstalldirs): Remove.
15794         (.PHONY): Remove installdirs from list.
15795         ($(inst_infodir)/libc.info): Use make-target-directory.
15796         (installdirs): Remove.
15797         (subdir_%): Remove.
15798         (glibc-targets): Remove.
15799         (lib): Remove.
15800         (stubs): Remove.
15801         ($(objpfx)stubs ../po/manual.pot): Remove.
15802         ($(objpfx)stamp%): Remove.
15803         (make-target-directory): Remove.
15804         (subdir_install): Remove.
15805         (routines): Remove.
15806         (aux): Remove.
15807         (sources): Remove.
15808         (objects): Remove.
15809         (headers): Remove.
15810
15811         [BZ #13750]
15812         * manual/.gitignore: Remove, it's not needed anymore.
15813         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
15814         all files in it.
15815         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
15816         directory.
15817         (texis): Renamed to $(objpfx)texis.
15818         (texis-path): New, contains path to generated files.
15819         (chapters.%): Use texis-path for complete path, add extra argument
15820         libc-texinfo.sh.
15821         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
15822         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
15823         (summary,texi, stamp-summary): Use complete path of
15824         files. Generate files in build dir.
15825         (dir-add.texi): Build in build dir.
15826         (libm-err.texi,stamp-libm-err): Likewise.
15827         (version.texi, stamp-version): Likewise.
15828         (.%c.texi): Likewise.
15829         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
15830         (mostlyclean): Remove target.
15831         (realclean): Remove target.
15832         (generated): Add new variable with contents from mostlyclean and
15833         realclean, remove entries duplicated in common-mostlyclean, add
15834         stamp-libm-err and stamp-version.
15835         (generated-dirs): Add libc directory.
15836         ($(inst_infodir)/libc.info): Install files from build dir.
15837
15838         * manual/install.texi (Configuring and compiling): Adjust since
15839         the info files are not part of the tar ball anymore.
15840
15841 2012-05-14  Andreas Jaeger  <aj@suse.de>
15842
15843         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
15844         variable.
15845
15846 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15847
15848         [BZ #13717]
15849         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
15850         to 2.2.0 where earlier.
15851         * sysdeps/unix/sysv/linux/configure: Regenerated.
15852         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
15853         Remove conditional code.
15854         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
15855         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
15856         Remove conditional code.
15857         [!__NR_lchown]: Likewise.
15858         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15859         [__NR_lchown]: Likewise.
15860         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
15861         comment referencing __ASSUME_LCHOWN_SYSCALL.
15862         * sysdeps/unix/sysv/linux/i386/sigaction.c
15863         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15864         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15865         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
15866         Remove conditional code.
15867         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
15868         (__protocol_available): Remove #if 0 code.
15869         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
15870         conditional code.
15871         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
15872         * sysdeps/unix/sysv/linux/kernel-features.h
15873         (__ASSUME_GETCWD_SYSCALL): Don't define.
15874         (__ASSUME_REALTIME_SIGNALS): Likewise.
15875         (__ASSUME_PREAD_SYSCALL): Likewise.
15876         (__ASSUME_PWRITE_SYSCALL): Likewise.
15877         (__ASSUME_POLL_SYSCALL): Likewise.
15878         (__ASSUME_LCHOWN_SYSCALL): Likewise.
15879         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
15880         non-SPARC.
15881         (__ASSUME_SIOCGIFNAME): Don't define.
15882         (__ASSUME_MSG_NOSIGNAL): Likewise.
15883         (__ASSUME_SENDFILE): Define unconditionally.
15884         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
15885         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
15886         conditional code.
15887         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
15888         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
15889         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15890         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15891         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
15892         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15893         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
15895         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15896         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
15898         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15899         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
15901         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15902         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
15904         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15905         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
15907         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15908         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
15910         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15911         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
15913         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15914         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
15916         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15917         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15918         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
15919         Remove conditional code.
15920         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15921         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15922         Remove conditional code.
15923         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15924         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
15925         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
15926         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15927         Remove conditional code.
15928         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15929         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
15930         Remove conditional code.
15931         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15932         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
15933         Remove conditional code.
15934         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15935         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15936         Remove conditional code.
15937         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15938         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15939         Remove conditional code.
15940         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15941         * sysdeps/unix/sysv/linux/sh/pwrite64.c
15942         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15943         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15944         * sysdeps/unix/sysv/linux/sigaction.c
15945         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15946         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15947         * sysdeps/unix/sysv/linux/sigpending.c
15948         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15949         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15950         * sysdeps/unix/sysv/linux/sigprocmask.c
15951         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15952         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15953         * sysdeps/unix/sysv/linux/sigsuspend.c
15954         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15955         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15956         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15957         (__libc_missing_rt_sigs): Remove.
15958         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
15959         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
15960         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
15961         Remove conditional code.
15962         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
15963         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
15964         return 1.
15965         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
15966         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
15967         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
15968         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
15969
15970 2012-05-14  Andreas Jaeger  <aj@suse.de>
15971
15972         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
15973         it's not used in glibc.
15974         (__coshm1): Likewise.
15975         (__acosh1p): Likewise.
15976         (__sgn): Likewise.
15977
15978         * manual/string.texi (Copying and Concatenation): Add missing
15979         variable in concat example.
15980         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
15981
15982 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15983
15984         [BZ #14103]
15985         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
15986         __builtin_clzl with __builtin_clzll.
15987
15988 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15989
15990         [BZ #14104]
15991         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
15992         libc_freeres_ptr.
15993
15994 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15995
15996         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
15997         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
15998         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
15999         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
16000
16001 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
16002
16003         * NEWS: Update ia64 info.
16004
16005 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
16006
16007         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
16008         used as bcopy.
16009
16010 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
16011
16012         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
16013         * sysdeps/unix/syscalls.list (dup3): Likewise.
16014         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
16015         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
16016
16017 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16018
16019         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
16020         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
16021
16022 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16023
16024         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
16025         thread pointer.
16026         (TLS_IE): Use mov/add instead of movq/addq to load thread
16027         pointer.
16028         (TLS_GD_PREFIX): New.
16029         (TLS_GD): Use it.
16030
16031 2012-05-11  David S. Miller  <davem@davemloft.net>
16032
16033         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
16034         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
16035         (_FPU_SETCW): Likewise.
16036
16037 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16038
16039         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
16040         is 32-byte aligned.
16041
16042 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
16043
16044         [BZ #11837]
16045         * iconvdata/gb18030.c: Update tables.
16046         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
16047         characters specially.
16048         (BODY for TO_LOOP): Add encoding of missing ranges.
16049
16050 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
16051
16052         [BZ #13673]
16053         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
16054         * sysdeps/mach/hurd/dup3.c: Likewise.
16055         * sysdeps/mach/hurd/readlinkat.c: Likewise.
16056         * sysdeps/powerpc/memmove.c:: Likewise.
16057
16058 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16059
16060         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
16061         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
16062
16063 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16064
16065         * elf/elf.h (R_X86_64_RELATIVE64): New.
16066         (R_X86_64_NUM): Updated.
16067         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
16068         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
16069         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
16070         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
16071         tst-quad1pie tst-quad2pie
16072         (modules-names): Add tst-quadmod1 tst-quadmod2.
16073         ($(objpfx)tst-quad1): New dependency.
16074         ($(objpfx)tst-quad2): Likewise.
16075         ($(objpfx)tst-quad1pie): Likewise.
16076         ($(objpfx)tst-quad2pie): Likewise.
16077         * sysdeps/x86_64/tst-quad1.c: New file.
16078         * sysdeps/x86_64/tst-quad1pie.c: New file.
16079         * sysdeps/x86_64/tst-quad2.c: Likewise.
16080         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
16081         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
16082         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
16083         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
16084         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
16085
16086 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16087
16088         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
16089         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
16090         * streams/stropts.h (t_scalar_t): Define type.
16091
16092         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
16093         (_PATH_PRESERVE): Set to "/var/lib".
16094         (_PATH_RWHODIR): Set to "/var/spool/rwho".
16095
16096         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
16097         instead of int.
16098
16099         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
16100         if __dir_mkfile succeeded.
16101
16102         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
16103         checking for _hurd_dtablesize.  Unlock it right after having
16104         finished _hurd_dtable allocation.
16105
16106 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16107
16108         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
16109         * sysdeps/mach/hurd/configure: Regenerated.
16110         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
16111         special-casing to...
16112         * sysdeps/gnu/configure.in: ... this new file.
16113         * sysdeps/unix/sysv/linux/configure: Regenerated.
16114         * sysdeps/gnu/configure: New generated file.
16115
16116         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
16117         for Linux: use nsec instead of usec, as well as:
16118         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
16119         members of type struct timespec.
16120         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
16121         New macros.
16122         (struct stat64): Likewise.
16123         (_STATBUF_ST_NSEC): New macro.
16124         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
16125
16126         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16127         __strtoul_internal rather than strtoul.
16128
16129 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16130
16131         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
16132         and reject them.
16133
16134 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16135
16136         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
16137         which preserves existing values.
16138         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
16139
16140 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16141
16142         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
16143         TIMEOUT values.  Return EINVAL for NFDS values either negative or
16144         greater than FD_SETSIZE.
16145
16146 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16147
16148         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
16149         allocated, call __vm_protect to finish enabling the existing space, and
16150         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
16151         allocate the remainder.
16152
16153 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16154
16155         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
16156         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
16157
16158 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16159
16160         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
16161         sysdeps/mach/hurd/readlink.c.
16162
16163         * posix/tst-sysconf.c (posix_options): Only use
16164         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
16165         _POSIX_SYNCHRONIZED_IO when they are defined
16166         * sysdeps/mach/hurd/bits/posix_opt.h:
16167         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
16168         (_XOPEN_REALTIME): Undefine macro.
16169         (_XOPEN_REALTIME_THREADS): Undefine macro.
16170         (_XOPEN_SHM): Undefine macro.
16171         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
16172         macro to -1.
16173         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
16174         macro to -1.
16175         (_POSIX_ASYNC_IO): Undefine macro.
16176         (_POSIX_PRIORITIZED_IO): Undefine macro.
16177         (_POSIX_SPIN_LOCKS): Define macro to -1.
16178
16179         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
16180         SA_NODEFER, SA_RESETHAND.
16181         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
16182         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
16183         F_DUPFD_CLOEXEC.
16184
16185 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16186
16187         * elf/Makefile (pldd-modules): Define unconditionally.
16188
16189 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16190
16191         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
16192
16193 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16194
16195         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
16196         Return ENOENT when name is empty.
16197         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
16198
16199 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16200
16201         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
16202
16203         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
16204
16205 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16206
16207         Fix mlock in all cases except non-readable pages.
16208         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
16209         instead of VM_PROT_ALL as parameter to __vm_wire function.
16210
16211         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
16212         (__mkdir): When path is `/', just fail with EEXIST.
16213         * sysdeps/mach/hurd/mkdirat.c: Likewise.
16214
16215 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16216
16217         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
16218         <sys/uio.h> (for writev).
16219         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
16220         and <sys/param.h> (for MIN).
16221
16222 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16223
16224         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
16225         REQUESTED_TIME.  Properly set the remaining time and return EINTR
16226         if interrupted.
16227
16228 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16229
16230         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
16231         Depend on against $(link-rpcuserlibs).
16232
16233 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16234
16235         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
16236         (__libc_stack_end): Do not use attribute_relro.
16237         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
16238         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
16239         to libthread-provided value.
16240         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
16241         attribute_relro.
16242
16243 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16244
16245         [BZ #3748]
16246         * bits/libc-lock.h (__libc_once_get): New macro.
16247         * sysdeps/mach/bits/libc-lock.h: Likewise.
16248         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
16249         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
16250         instead of using implementation details.
16251
16252         * libio/fileops.c: Unconditionally include <kernel-features.h>.
16253         * libio/freopen.c: Likewise.
16254         * libio/freopen64.c: Likewise.
16255         * misc/syslog.c: Likewise.
16256         * nscd/connections.c: Likewise.
16257         * nscd/netgroupcache.c: Likewise.
16258         * sysdeps/posix/getcwd.c: Likewise.
16259
16260 2012-05-10  Roland McGrath  <roland@hack.frob.com>
16261
16262         * math/w_ilogbf.c: Add #include <limits.h>.
16263
16264 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16265
16266         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
16267         path instead of returning without unlocking.
16268
16269         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
16270         immediate-write ioctls.
16271         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
16272
16273 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16274
16275         * sysdeps/mach/hurd/i386/init-first.c (init): Use
16276         __builtin_frame_address instead of making assumptions about the
16277         location of the return address relative to DATA.  Force early load of
16278         the return address.
16279         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
16280         __builtin_frame_address.
16281
16282         dup3 for GNU Hurd.
16283         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
16284         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
16285         implement dup3 and do some further code clean-ups.
16286         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
16287         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
16288
16289 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16290
16291         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
16292
16293         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
16294         HURD_CRITICAL_END around holding _hurd_dtable_lock.
16295         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
16296         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
16297         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
16298         d->port.lock.
16299
16300         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
16301         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
16302         when handler == SIG_ERR, not when handler != SIG_ERR.
16303
16304 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16305
16306         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
16307         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
16308         definitions.
16309
16310         accept4 for GNU Hurd.
16311         * include/sys/socket.h (__libc_accept4): New prototype.
16312         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
16313         to implement __libc_accept4.
16314         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
16315         __libc_accept4.
16316         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
16317
16318         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
16319         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
16320         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
16321         signal-defines.sym.
16322
16323 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16324
16325         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
16326
16327 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16328
16329         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
16330         assertion on O_CLOEXEC flag.
16331         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
16332         * hurd/intern-fd.c: Likewise.
16333         * hurd/port2fd.c: Likewise.
16334
16335 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16336
16337         [BZ #3906]
16338         * bits/in.h (IPV6_PKTINFO): Define new macro.
16339         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
16340
16341 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16342
16343         [BZ #13954]
16344         [BZ #13955]
16345         [BZ #13956]
16346         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
16347         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
16348         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
16349         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
16350         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
16351         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
16352         * math/libm-test.inc (logb_test) : Additional logb tests.
16353
16354 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
16355             Andreas Jaeger  <aj@suse.de>
16356
16357         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
16358         * configure: Regenerated.
16359         * config.h.in (LINK_OBSOLETE_RPC): New macro.
16360         * config.make.in (link-obsolete-rpc): New substituted variable.
16361         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
16362         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
16363         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
16364         (shared-only-routines): Don't set it under [link-obsolete-rpc],
16365         so that libc.a contains the symbols.
16366         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
16367         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
16368         * sunrpc/auth_none.c: Likewise.
16369         * sunrpc/auth_unix.c: Likewise.
16370         * sunrpc/authdes_prot.c: Likewise.
16371         * sunrpc/authuxprot.c: Likewise.
16372         * sunrpc/clnt_gen.c: Likewise.
16373         * sunrpc/clnt_perr.c: Likewise.
16374         * sunrpc/clnt_raw.c: Likewise.
16375         * sunrpc/clnt_simp.c: Likewise.
16376         * sunrpc/clnt_tcp.c: Likewise.
16377         * sunrpc/clnt_udp.c: Likewise.
16378         * sunrpc/clnt_unix.c: Likewise.
16379         * sunrpc/des_crypt.c: Likewise.
16380         * sunrpc/des_soft.c: Likewise.
16381         * sunrpc/get_myaddr.c: Likewise.
16382         * sunrpc/key_call.c: Likewise.
16383         * sunrpc/key_prot.c: Likewise.
16384         * sunrpc/netname.c: Likewise.
16385         * sunrpc/pm_getmaps.c: Likewise.
16386         * sunrpc/pm_getport.c: Likewise.
16387         * sunrpc/pmap_clnt.c: Likewise.
16388         * sunrpc/pmap_prot.c: Likewise.
16389         * sunrpc/pmap_prot2.c: Likewise.
16390         * sunrpc/pmap_rmt.c: Likewise.
16391         * sunrpc/publickey.c: Likewise.
16392         * sunrpc/rpc_cmsg.c: Likewise.
16393         * sunrpc/rpc_common.c: Likewise.
16394         * sunrpc/rpc_dtable.c: Likewise.
16395         * sunrpc/rpc_prot.c: Likewise.
16396         * sunrpc/rpc_thread.c: Likewise.
16397         * sunrpc/rtime.c: Likewise.
16398         * sunrpc/svc.c: Likewise.
16399         * sunrpc/svc_auth.c: Likewise.
16400         * sunrpc/svc_raw.c: Likewise.
16401         * sunrpc/svc_run.c: Likewise.
16402         * sunrpc/svc_tcp.c: Likewise.
16403         * sunrpc/svc_udp.c: Likewise.
16404         * sunrpc/svc_unix.c: Likewise.
16405         * sunrpc/svcauth_des.c: Likewise.
16406         * sunrpc/xcrypt.c: Likewise.
16407         * sunrpc/xdr.c: Likewise.
16408         * sunrpc/xdr_array.c: Likewise.
16409         * sunrpc/xdr_float.c: Likewise.
16410         * sunrpc/xdr_intXX_t.c: Likewise.
16411         * sunrpc/xdr_mem.c: Likewise.
16412         * sunrpc/xdr_rec.c: Likewise.
16413         * sunrpc/xdr_ref.c: Likewise.
16414         * sunrpc/xdr_sizeof.c: Likewise.
16415         * sunrpc/xdr_stdio.c: Likewise.
16416
16417 2012-05-10  Roland McGrath  <roland@hack.frob.com>
16418
16419         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
16420         change.  Update copyright years.
16421
16422 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
16423
16424         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
16425
16426 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
16427             Joseph Myers  <joseph@codesourcery.com>
16428             Paul Pluzhnikov  <ppluzhnikov@google.com>
16429
16430         [BZ #14012]
16431         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
16432         requiring rpcgen.
16433         [cross-compiling] (extra-libs): Likewise.
16434         [cross-compiling] (extra-libs-others): Likewise.
16435         [cross-compiling] (librpcsvc-routines): Likewise.
16436         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
16437         [cross-compiling] (omit-deps): Likewise.
16438         (sunrpc-CPPFLAGS): New variable.
16439         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
16440         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
16441         (cross-rpcgen-objs): New variable.
16442         (extra-objs): Append $(cross-rpcgen-objs).
16443         ($(cross-rpcgen-objs)): New rule.
16444         ($(objpfx)cross-rpcgen): Likewise.
16445         (rpcgen-cmd): Define to use $(built-program-file).  Expand
16446         comment.
16447         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
16448         ($(objpfx)x%.stmp): Likewise.
16449         * sunrpc/proto.h [IS_IN_build] (_): Define.
16450         [IS_IN_build] (_libc_intl_domainname): Likewise.
16451
16452 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16453
16454         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
16455         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
16456         and R_X86_64_TPOFF64.
16457
16458 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
16459
16460         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
16461         sysdeps/unix/sysv/syscalls.list.
16462         (stime): Likewise.
16463         (utime): Likewise.
16464         * sysdeps/unix/sysv/syscalls.list: Remove file.
16465
16466 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
16467
16468         [BZ #3440]
16469         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
16470         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
16471         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
16472         (__LC_IDENTIFICATION): Make these macros useful in #if
16473         expressions, as required by C99.
16474
16475 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
16476
16477         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
16478         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
16479         after this.
16480
16481 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16482
16483         * stdlib/longlong.h: Updated from GCC.
16484
16485 2012-05-09  Andreas Jaeger  <aj@suse.de>
16486
16487         * nscd/nscd.c (run_modes): Make named enum, reorder so that
16488         default is first entry.
16489         (run_mode): Set type.
16490         (main): Remove informal message about syslog.
16491         (options): Fix typo.
16492
16493         [BZ #14053]
16494         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
16495         to asm.
16496         (lrint): Likewise.
16497         (llrintf): Likewise.
16498         (llrint): Likewise.
16499         (rint): Likewise.
16500         (rintf): Likewise.
16501         (nearbyint): Likewise.
16502         (nearbyintf): Likewise.
16503
16504 2012-05-09  Andreas Jaeger  <aj@suse.de>
16505             Pedro Alves  <palves@redhat.com>
16506
16507         * nscd/nscd.c (run_mode): Use enum.
16508         (main): Cleanup coding style issue.
16509
16510 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
16511             Andreas Jaeger  <aj@suse.de>
16512
16513         * nscd/nscd.c (go_background): Replaced with...
16514         (run_mode): ... this.
16515         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
16516         (options): Add -F --foreground.
16517         (main): Implement it.
16518         (parse_opt): Parse it.
16519
16520 2012-05-09  Andreas Jaeger  <aj@suse.de>
16521
16522         [BZ #14083]
16523         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
16524         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
16525         -Wconversion warning.
16526         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
16527         Likewise.
16528
16529 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
16530
16531         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
16532         == 0.
16533         (LC_ALL): Use macro-int-constant.
16534         (LC_COLLATE): Likewise.
16535         (LC_CTYPE): Likewise.
16536         (LC_MESSAGES): Likewise.
16537         (LC_MONETARY): Likewise.
16538         (LC_NUMERIC): Likewise.
16539         (LC_TIME): Likewise.
16540         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
16541         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
16542         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16543         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
16544         Specify type.
16545         [C99-based standards] (float_t): Expect type.
16546         [C99-based standards] (double_t): Expect type.
16547         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
16548         type.
16549         [C99-based standards] (HUGE_VALL): Likewise.
16550         [C99-based standards] (INFINITY): Likewise.
16551         [C99-based standards] (NAN): Likewise.
16552         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
16553         [C99-based standards] (FP_NAN): Likewise.
16554         [C99-based standards] (FP_NORMAL): Likewise.
16555         [C99-based standards] (FP_SUBNORMAL): Likewise.
16556         [C99-based standards] (FP_ZERO): Likewise.
16557         [C99-based standards] (FP_FAST_FMA): Use
16558         optional-macro-int-constant.  Specify type.  Require == 1.
16559         [C99-based standards] (FP_FAST_FMAF): Likewise.
16560         [C99-based standards] (FP_FAST_FMAL): Likewise.
16561         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
16562         [C99-based standards] (FP_ILOGBNAN): Likewise.
16563         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
16564         Specify type.
16565         [C99-based standards] (MATH_ERREXCEPT): Likewise.
16566         [C99-based standards] (math_errhandling): Specify type.
16567         [ISO99 || ISO11] (signgam): Do not allow.
16568         [non-C99-based standards] (copysignf): Do not allow.
16569         [non-C99-based standards] (exp2f): Likewise.
16570         [non-C99-based standards] (log2f): Likewise.
16571         [non-C99-based standards] (modff): Allow.
16572         [non-C99-based standards] (erff): Do not allow.
16573         [non-C99-based standards] (erfcf): Likewise.
16574         [non-C99-based standards] (gammaf): Likewise.
16575         [non-C99-based standards] (hypotf): Likewise.
16576         [non-C99-based standards] (j0f): Likewise.
16577         [non-C99-based standards] (j1f): Likewise.
16578         [non-C99-based standards] (jnf): Likewise.
16579         [non-C99-based standards] (lgammaf): Likewise.
16580         [non-C99-based standards] (tgammaf): Likewise.
16581         [non-C99-based standards] (y0f): Likewise.
16582         [non-C99-based standards] (y1f): Likewise.
16583         [non-C99-based standards] (ynf): Likewise.
16584         [non-C99-based standards] (isnanf): Likewise.
16585         [non-C99-based standards] (acoshf): Likewise.
16586         [non-C99-based standards] (asinhf): Likewise.
16587         [non-C99-based standards] (atanhf): Likewise.
16588         [non-C99-based standards] (cbrtf): Likewise.
16589         [non-C99-based standards] (expm1f): Likewise.
16590         [non-C99-based standards] (ilogbf): Likewise.
16591         [non-C99-based standards] (log1pf): Likewise.
16592         [non-C99-based standards] (logbf): Likewise.
16593         [non-C99-based standards] (nextafterf): Likewise.
16594         [non-C99-based standards] (remainderf): Likewise.
16595         [non-C99-based standards] (rintf): Likewise.
16596         [non-C99-based standards] (scalbf): Likewise.
16597         [non-C99-based standards] (copysignl): Likewise.
16598         [non-C99-based standards] (exp2l): Likewise.
16599         [non-C99-based standards] (log2l): Likewise.
16600         [non-C99-based standards] (modfl): Allow.
16601         [non-C99-based standards] (erfl): Do not allow.
16602         [non-C99-based standards] (erfcl): Likewise.
16603         [non-C99-based standards] (gammal): Likewise.
16604         [non-C99-based standards] (hypotl): Likewise.
16605         [non-C99-based standards] (j0l): Likewise.
16606         [non-C99-based standards] (j1l): Likewise.
16607         [non-C99-based standards] (jnl): Likewise.
16608         [non-C99-based standards] (lgammal): Likewise.
16609         [non-C99-based standards] (tgammal): Likewise.
16610         [non-C99-based standards] (y0l): Likewise.
16611         [non-C99-based standards] (y1l): Likewise.
16612         [non-C99-based standards] (ynl): Likewise.
16613         [non-C99-based standards] (isnanl): Likewise.
16614         [non-C99-based standards] (acoshl): Likewise.
16615         [non-C99-based standards] (asinhl): Likewise.
16616         [non-C99-based standards] (atanhl): Likewise.
16617         [non-C99-based standards] (cbrtl): Likewise.
16618         [non-C99-based standards] (expm1l): Likewise.
16619         [non-C99-based standards] (ilogbl): Likewise.
16620         [non-C99-based standards] (log1pl): Likewise.
16621         [non-C99-based standards] (logbl): Likewise.
16622         [non-C99-based standards] (nextafterl): Likewise.
16623         [non-C99-based standards] (remainderl): Likewise.
16624         [non-C99-based standards] (rintl): Likewise.
16625         [non-C99-based standards] (scalbl): Likewise.
16626         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16627         [non-C99-based standards] (FP_*): Do not allow.
16628         [C99-based standards] (FP_*): Change to
16629         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
16630         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16631         allow.
16632         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
16633         (SIG_ERR): Likewise.
16634         [X/Open-based standards] (SIG_HOLD): Likewise.
16635         (SIG_IGN): Likewise.
16636         (SIGABRT): Use macro-int-constant.  Specify type.  Require
16637         positive value.
16638         (SIGFPE): Likewise.
16639         (SIGILL): Likewise.
16640         (SIGINT): Likewise.
16641         (SIGSEGV): Likewise.
16642         (SIGTER): Likewise.
16643         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
16644         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
16645         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
16646         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
16647         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
16648         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
16649         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
16650         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
16651         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
16652         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
16653         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
16654         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
16655         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
16656         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
16657         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
16658         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
16659         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
16660         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
16661         [X/Open-based standards] (SIGTRAP): Likewise.
16662         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
16663         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
16664         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
16665         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
16666         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16667         allow.
16668
16669 2012-05-08  Ian Wienand  <ianw@vmware.com>
16670
16671         [BZ #14080]
16672         * time/tzset.c (__tzset_parse_tz): Update default rules for
16673         daylight time changes in the Energy Policy Act of 2005.
16674
16675 2012-05-09  Andreas Jaeger  <aj@suse.de>
16676
16677         [BZ #13983]
16678         * elf/ldconfig.c (parse_conf): Change string to make clear that
16679         ldconfig only issued a warning if ld.so.conf does not exist.
16680
16681 2012-05-08  David S. Miller  <davem@davemloft.net>
16682
16683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
16684         movxtod instead of popping the value on the stack.
16685
16686         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16687
16688 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
16689
16690         * config.h.in: Add HAVE_ARM_PCS_VFP.
16691
16692 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
16693
16694         [BZ #13979]
16695         * include/features.h: Warn if user requests __FORTIFY_SOURCE
16696         checking but the checks are disabled for any reason.
16697
16698 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16699
16700         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
16701         and ELF64_R_TYPE with ELFW(R_TYPE).
16702
16703 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
16704
16705         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
16706         (ulimit): Likewise.
16707
16708         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
16709         (settimeofday): Likewise.
16710
16711 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
16712
16713         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
16714         a struct th_u2 inside the union, and move tu_block/tu_code into
16715         a new th_u3 union of tu_block/tu_code inside of that.  Move
16716         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
16717         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
16718         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
16719         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
16720         (th_stuff): Change to th_u1.tu_stuff.
16721         (th_data): Define.
16722         (th_msg): Change to th_u1.th_u2.tu_data.
16723
16724 2012-05-07  David S. Miller  <davem@davemloft.net>
16725
16726         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16727
16728         [BZ #14074]
16729         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
16730         (SETUP_PIC_REG): Use it.
16731         (SETUP_PIC_REG_LEAF): Use it.
16732
16733 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
16734
16735         [BZ #13885]
16736         [BZ #13923]
16737         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16738         USE_AS_EXPM1L.
16739         (EXPL_FINITE): Likewise.
16740         (FLDLOG): Likewise.
16741         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
16742         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
16743         e_expl.S.
16744         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16745         USE_AS_EXPM1L.
16746         (EXPL_FINITE): Likewise.
16747         (FLDLOG): Likewise.
16748         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
16749         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
16750         e_expl.S.
16751         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
16752         test of -max_value argument for long double.
16753         * sysdeps/i386/fpu/libm-test-ulps: Update.
16754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16755
16756 2012-05-06  David S. Miller  <davem@davemloft.net>
16757
16758         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
16759         quad soft-float symbols whose references which are compiler
16760         generated.
16761         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16762
16763 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
16764
16765         [BZ #13884]
16766         [BZ #13914]
16767         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16768         USE_AS_EXP10L.
16769         (EXPL_FINITE): Likewise.
16770         (FLDLOG): Likewise.
16771         (c0): Likewise.
16772         (c1): Likewise.
16773         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16774         Adjust comments for base varying.
16775         (__expl_finite): Change alias to EXPL_FINITE.
16776         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
16777         e_expl.S.
16778         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
16779         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16780         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16781         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
16782         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16783         USE_AS_EXP10L.
16784         (EXPL_FINITE): Likewise.
16785         (FLDLOG): Likewise.
16786         (c0): Likewise.
16787         (c1): Likewise.
16788         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16789         Adjust comments for base varying.
16790         (__expl_finite): Change alias to EXPL_FINITE.
16791         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
16792         tests for bugs.
16793         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16794
16795         [BZ #14064]
16796         * math/libm-test.inc (check_float_internal): Correct ulp
16797         calculation for subnormal expected results.
16798
16799 2012-05-06  Andreas Jaeger  <aj@suse.de>
16800
16801         * Makeconfig (+math-flags): New, set to -frounding-math.
16802         (+cflags): Add +math-flags so that all of glibc gets compiled with
16803         it.
16804
16805         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
16806
16807 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
16808
16809         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
16810         Disable one test.
16811
16812         [BZ #13787]
16813         [BZ #13922]
16814         [BZ #14036]
16815         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
16816         (__ieee754_expl): Allow for and saturate large arguments.
16817         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
16818         (u_threshold): Likewise.
16819         (__exp): Call __ieee754_exp before checking for overflow and
16820         underflow.
16821         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
16822         (u_threshold): Likewise.
16823         (__expf): Call __ieee754_expf before checking for overflow and
16824         underflow.
16825         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
16826         (u_threshold): Likewise.
16827         (__expl): Call __ieee754_expl before checking for overflow and
16828         underflow.
16829         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
16830         (__ieee754_expl): Allow for and saturate large arguments.
16831         * math/libm-test.inc (exp_test): Add another test.  Do not allow
16832         missing overflow exception on overflow.
16833         (expm1_test): Do not allow missing overflow exception on overflow.
16834
16835         * sysdeps/i386/fpu/e_expl.c: Move to ...
16836         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
16837         rather than using inline asm.
16838         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
16839         * sysdeps/x86_64/fpu/e_expl.S: Copy from
16840         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
16841
16842         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
16843         (nice): Likewise.
16844         (poll): Likewise.
16845         (signal): Likewise.
16846         (time): Likewise.
16847         (times): Likewise.
16848
16849 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16850
16851         * sysdeps/unix/syscalls.list (adjtime): Add entry from
16852         sysdeps/unix/common/syscalls.list.
16853         (fchmod): Likewise.
16854         (fchown): Likewise.
16855         (ftruncate): Likewise.
16856         (getrusage): Likewise.
16857         (gettimeofday): Likewise.
16858         (setpgid): Likewise.
16859         (setregid): Likewise.
16860         (setreuid): Likewise.
16861         (sigaction): Likewise.
16862         (truncate): Likewise.
16863         (vhangup): Likewise.
16864         * sysdeps/unix/common/syscalls.list: Remove file.
16865         * sysdeps/unix/bsd/Implies: Don't include unix/common.
16866         * sysdeps/unix/sysv/linux/Implies: Likewise.
16867
16868 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16869
16870         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
16871         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
16872         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
16873         Moved to ...
16874         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
16875         Here.
16876         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
16877         to ...
16878         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
16879         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
16880         to ...
16881         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
16882         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
16883         to ...
16884         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
16885         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
16886         to ...
16887         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
16888         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
16889         to ...
16890         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
16891         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
16892         to ...
16893         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
16894         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
16895         to ...
16896         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
16897         Here.
16898         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
16899         to ...
16900         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
16901         Here.
16902         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
16903         to ...
16904         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
16905         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
16906         Moved to ...
16907         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
16908         Here.
16909         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
16910         to ...
16911         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
16912
16913 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16914
16915         * sysdeps/unix/common/bits/dirent.h: Remove file.
16916         * sysdeps/unix/common/bits/fcntl.h: Likewise.
16917
16918         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
16919         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
16920         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
16921         * sysdeps/unix/bsd/isatty.c: Likewise.
16922         * sysdeps/unix/bsd/tcdrain.c: Likewise.
16923         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
16924         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
16925
16926 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16927
16928         [BZ #13563]
16929         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
16930         long double comparison inaccuracies.
16931         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16932         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16933
16934 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
16935
16936         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
16937         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
16938
16939 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16940
16941         [BZ #14049]
16942         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
16943         nonzero digits before rounding a hex value.
16944         * stdlib/tst-strtod.c (tests): Add another test.
16945
16946 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16947
16948         * sysdeps/s390/fpu/libm-test-ulps: Update.
16949
16950 2012-05-03  Andreas Jaeger  <aj@suse.de>
16951
16952         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
16953         does not get optimized out.
16954         (malloc_opt_barrier): New.
16955
16956 2012-05-03  Andreas Jaeger  <aj@suse.de>
16957             Roland McGrath  <roland@hack.frob.com>
16958
16959         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
16960         intermediate file deletion.
16961         (generated): Add .symlist files.
16962
16963 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
16964
16965         [BZ #13775]
16966         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
16967         Redirect under this condition.
16968         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16969         [__USE_GNU] (__dprintf_chk): Not under this condition.
16970         [__USE_GNU] (__vdprintf_chk): Likewise.
16971         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
16972         under this condition.
16973         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16974         [__USE_XOPEN2K8] (dprintf): Define under this condition.
16975         [__USE_XOPEN2K8] (vdprintf): Likewise.
16976         [__USE_GNU] (__dprintf_chk): Not under this condition.
16977         [__USE_GNU] (__vdprintf_chk): Likewise.
16978         [__USE_GNU] (dprintf): Likewise.
16979         [__USE_GNU] (vdprintf): Likewise.
16980
16981 2012-05-03  Roland McGrath  <roland@hack.frob.com>
16982
16983         * elf/Makefile (common-generated): Set this instead of generated for
16984         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
16985         $(all-built-dso)-derived lists.
16986
16987 2012-05-03  Andreas Jaeger  <aj@suse.de>
16988
16989         * sysdeps/i386/fpu/libm-test-ulps: Update.
16990
16991         * FAQ: Removed.
16992         * FAQ.in: Likewise.
16993         * scripts/gen-FAQ.pl: Likewise.
16994         * manual/install.texi (Installation): Point to online location of
16995         FAQ.
16996         * Makefile (files-for-dist): Remove FAQ.
16997         (FAQ): Remove.
16998
16999 2012-05-02  Allan McRae  <allan@archlinux.org>
17000
17001         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
17002         (LDFLAGS-reldepmod5.so): Likewise.
17003         (LDFLAGS-reldep6mod1.so): Likewise.
17004         (LDFLAGS-reldep6mod4.so): Likewise.
17005         (LDFLAGS-reldep8mod3.so): Likewise.
17006         (LDFLAGS-unload4mod1.so): Likewise.
17007         (LDFLAGS-unload4mod2.so): Likewise.
17008         (LDFLAGS-tst-initorder): Likewise.
17009         (LDFLAGS-tst-initordera2.so): Likewise.
17010         (LDFLAGS-tst-initordera3.so): Likewise.
17011         (LDFLAGS-tst-initordera4.so): Likewise.
17012         (LDFLAGS-tst-initorderb2.so): Likewise.
17013         (LDFLAGS-noload): Likewise.
17014         (LDFLAGS-next): Likewise.
17015         (LDFLAGS-order2mod1.so): Likewise.
17016         (LDFLAGS-order2mod2.so): Likewise.
17017         (LDFLAGS-tst-initorder2): Likewise.
17018         (LDFLAGS-tst-initorder2a.so): Likewise.
17019         (LDFLAGS-tst-initorder2b.so): Likewise.
17020         (LDFLAGS-tst-initorder2c.so): Likewise.
17021         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
17022
17023 2012-05-02  David S. Miller  <davem@davemloft.net>
17024
17025         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17026
17027 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
17028
17029         [BZ #14055]
17030         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
17031
17032 2012-05-02  Andreas Jaeger  <aj@suse.de>
17033
17034         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
17035         since we manipulate rounding mode.
17036         (CPPFLAGS-test-idouble.c): Likewise.
17037         (CPPFLAGS-test-ifloat.c): Likewise.
17038         (CFLAGS-test-ldouble.c): Likewise.
17039         (CFLAGS-test-double.c): Likewise.
17040         (CFLAGS-test-float.c): Likewise.
17041         (CFLAGS-test-misc.c): Likewise.
17042         (CFLAGS-test-test-fenv.c): Likewise.
17043
17044 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17045
17046         [BZ #2550]
17047         [BZ #2570]
17048         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
17049         comparisons to determine direction to adjust input.
17050
17051 2012-05-01  Roland McGrath  <roland@hack.frob.com>
17052
17053         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
17054         output to the target.
17055
17056         * scripts/localplt.awk: New file.
17057         * elf/Makefile ($(objpfx)check-localplt): Target removed.
17058         (check-localplt-CFLAGS): Variable removed.
17059         ($(all-built-dso:=.jmprel)): New static pattern rule.
17060         (generated): Add those targets.
17061         (localplt-built-dso): New variable.
17062         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
17063
17064         * elf/check-localplt.c: File removed.
17065
17066         * scripts/check-execstack.awk: New file.
17067         * elf/Makefile ($(objpfx)check-execstack): Target removed.
17068         (check-execstack-CFLAGS): Variable removed.
17069         ($(objpfx)check-execstack.h): Target removed.
17070         ($(objpfx)execstack-default): New target.
17071         (generated): Add that instead of check-execstack.h.
17072         ($(all-built-dso:=.phdr)): New static pattern rule.
17073         (generated): Add those targets.
17074         * elf/check-execstack.c: File removed.
17075
17076         * scripts/check-textrel.awk: New file.
17077         * elf/Makefile ($(objpfx)check-textrel): Target removed.
17078         (check-textrel-CFLAGS): Variable removed.
17079         (all-built-dso): Use := to define.o
17080         ($(all-built-dso:=.dyn)): New static pattern rule.
17081         (generated): Add those targets.
17082         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
17083         * config.make.in (READELF): New substituted variable.
17084         * elf/check-textrel.c: File removed.
17085
17086 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
17087
17088         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
17089         allow.
17090         * conform/data/ctype.h-data [C99-based standards] (isblank):
17091         Expect function.
17092         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
17093         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
17094         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17095         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
17096         Specify type.  Require positive value.
17097         (EILSEQ): Likewise.
17098         (ERANGE): Likewise.
17099         [ISO || POSIX] (EILSEQ): Do not expect.
17100         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
17101         Specify type.  Require positive value.
17102         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
17103         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
17104         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
17105         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
17106         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
17107         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
17108         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
17109         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
17110         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
17111         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
17112         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
17113         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
17114         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
17115         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
17116         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
17117         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
17118         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
17119         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
17120         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
17121         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
17122         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
17123         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
17124         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
17125         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
17126         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
17127         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
17128         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
17129         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
17130         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
17131         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
17132         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
17133         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
17134         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
17135         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
17136         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
17137         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
17138         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
17139         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
17140         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
17141         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
17142         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
17143         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
17144         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
17145         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
17146         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
17147         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
17148         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
17149         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
17150         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
17151         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
17152         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
17153         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
17154         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
17155         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
17156         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
17157         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
17158         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
17159         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
17160         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
17161         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
17162         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
17163         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
17164         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
17165         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
17166         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
17167         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
17168         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
17169         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
17170         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
17171         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
17172         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
17173         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
17174         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
17175         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
17176         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
17177         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
17178         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
17179         Require >= 2.
17180         (FLT_ROUNDS): Expect as macro, not constant.
17181         (FLT_MANT_DIG): Use macro-int-constant.
17182         (DBL_MANT_DIG): Likewise.
17183         (LDBL_MANT_DIG): Likewise.
17184         (FLT_DIG): Likewise.
17185         (DBL_DIG): Likewise.
17186         (LDBL_DIG): Likewise.
17187         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
17188         (DBL_MIN_EXP): Likewise.
17189         (LDBL_MIN_EXP): Likewise.
17190         (FLT_MAX_EXP): Use macro-int-constant.
17191         (DBL_MAX_EXP): Likewise.
17192         (LDBL_MAX_EXP): Likewise.
17193         (FLT_MAX_10_EXP): Likewise.
17194         (DBL_MAX_10_EXP): Likewise.
17195         (LDBL_MAX_10_EXP): Likewise.
17196         (FLT_MAX): Use macro-constant.
17197         (DBL_MAX): Likewise.
17198         (LDBL_MAX): Likewise.
17199         (FLT_EPSILON): Use macro-constant.  Give upper bound.
17200         (DBL_EPSILON): Likewise.
17201         (LDBL_EPSILON): Likewise.
17202         (FLT_MIN): Likewise.
17203         (DBL_MIN): Likewise.
17204         (LDBL_MIN): Likewise.
17205         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
17206         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
17207         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
17208         [ISO11] (FLT_HAS_SUBNORM): Likewise.
17209         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
17210         [ISO11] (DBL_DECIMAL_DIG): Likewise.
17211         [ISO11] (FLT_DECIMAL_DIG): Likewise.
17212         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
17213         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
17214         [ISO11] (FLT_TRUE_MIN): Likewise.
17215         [ISO11] (LDBL_TRUE_MIN): Likewise.
17216         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17217         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
17218         (SCHAR_MIN): Use macro-int-constant.  Specify type.
17219         (SCHAR_MAX): Likewise.
17220         (UCHAR_MAX): Likewise.
17221         (CHAR_MIN): Likewise.
17222         (CHAR_MAX): Likewise.
17223         (MB_LEN_MAX): Use macro-int-constant.
17224         (SHRT_MIN): Use macro-int-constant.  Specify type.
17225         (SHRT_MAX): Likewise.
17226         (USHRT_MAX): Likewise.
17227         (INT_MAX): Likewise.
17228         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
17229         bound negative.
17230         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17231         bound with "U".
17232         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17233         bound with "L".
17234         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
17235         bound negative.  Suffix upper bound with "L".
17236         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17237         bound with "UL".
17238         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
17239         Specify type.
17240         [C99-based standards] (LLONG_MAX): Likewise.
17241         [C99-based standards] (ULLONG_MAX): Likewise.
17242         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
17243         == 0.
17244         [ISO11] (max_align_t): Require type.
17245         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17246
17247         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
17248         from $CFLAGS, without defining away __attribute__ calls.
17249         (checknamespace): Use $CFLAGS_namespace.
17250
17251         * conform/conformtest.pl (@keywords): Only include C99 keywords
17252         for standards based on C99 or C11.
17253
17254         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
17255         Disable tests.
17256         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
17257         UNIX98]: Likewise.
17258
17259         * conform/conformtest.pl: Handle "macro-int-constant" and test for
17260         usability of symbols in #if.
17261
17262         * conform/conformtest.pl: If macro or constant types start
17263         "promoted:", expect the symbol to be of the following type
17264         promoted by the integer promotions.
17265
17266         * conform/conformtest.pl: Parse all "constant" and "macro" lines
17267         in one place.  Also handle "macro-constant".
17268
17269         * conform/conformtest.pl: Only accept expected macro values with
17270         "==".  Parse all "macro" lines in one place.
17271         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
17272
17273         * conform/conformtest.pl: Handle braced types on "constant" lines
17274         instead of handling "typed-constant".
17275         * conform/data/signal.h-data: Use "constant" instead of
17276         "typed-constant".
17277
17278         * conform/conformtest.pl: Handle "optional-" at start of lines in
17279         one place rather than duplicating several cases.  Handle each
17280         format of "macro" line with initial "optional-".
17281
17282         * conform/conformtest.pl: Only accept expected constant or
17283         optional-constant values with "==".  Parse all "constant" lines in
17284         one place.  Parse all "optional-constant" lines in one place.
17285         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
17286         * conform/data/fmtmsg.h-data: Likewise.
17287         * conform/data/netinet/in.h-data: Likewise.
17288         * conform/data/tar.h-data: Likewise.
17289         * conform/data/limits.h-data: Use "==" form on "constant" and
17290         "optional-constant" lines.
17291
17292         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
17293         Use -std=c99 for XOPEN2K.
17294         (@knownproblems): Remove.
17295         (newtoken): Don't check %isknown.
17296
17297         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
17298         Do not expect macro.
17299         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
17300         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
17301         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
17302         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
17303         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
17304         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
17305         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
17306         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
17307         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
17308         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
17309         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
17310         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
17311         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
17312         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
17313         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
17314         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
17315         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
17316         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
17317         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
17318         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
17319         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
17320         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
17321         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
17322         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
17323         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
17324         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
17325         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
17326         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
17327         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
17328         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
17329         [XPG3] (acosh): Likewise.
17330         [XPG3] (asinh): Likewise.
17331         [XPG3] (atanh): Likewise.
17332         [XPG3] (cbrt): Likewise.
17333         [XPG3] (expm1): Likewise.
17334         [XPG3] (ilogb): Likewise.
17335         [XPG3] (log1p): Likewise.
17336         [XPG3] (logb): Likewise.
17337         [XPG3] (nextafter): Likewise.
17338         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
17339         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
17340         [XPG3] (remainder): Likewise.
17341         [XPG3] (rint): Likewise.
17342         [XPG3 || XPG4 || UNIX98] (round): Likewise.
17343         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
17344         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
17345         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
17346         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
17347         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
17348         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
17349         [UNIX98 || XOPEN2K] (scalb): Expect.
17350         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
17351         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
17352         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
17353         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
17354         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
17355         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
17356         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
17357         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
17358         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
17359         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
17360         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
17361         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
17362         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
17363         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
17364         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
17365         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
17366         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
17367         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
17368         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
17369         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
17370         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
17371         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
17372         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
17373         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
17374         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
17375         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
17376         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
17377         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
17378         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
17379         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
17380         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
17381         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
17382         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
17383         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
17384         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
17385         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
17386         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
17387         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
17388         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
17389         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
17390         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
17391         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
17392         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
17393         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
17394         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
17395         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
17396         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
17397         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
17398         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
17399         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
17400         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
17401         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
17402         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
17403         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
17404         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
17405         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
17406         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
17407         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
17408         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
17409         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
17410         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
17411         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
17412         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
17413         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
17414         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
17415         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
17416         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
17417         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
17418         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
17419         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
17420         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
17421         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
17422         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
17423         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
17424         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
17425         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
17426         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
17427         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
17428         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
17429         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
17430         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
17431         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
17432         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
17433         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
17434         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
17435         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
17436         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
17437         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
17438         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
17439         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
17440         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
17441         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
17442         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
17443         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
17444         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
17445         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
17446         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
17447         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
17448         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
17449         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
17450         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
17451         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
17452         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
17453         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
17454         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
17455         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
17456         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
17457         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
17458         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
17459         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
17460         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
17461         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
17462         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
17463         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
17464         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
17465         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
17466         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
17467         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
17468         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
17469         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
17470         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
17471         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
17472         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
17473         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
17474         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
17475         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
17476         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
17477         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
17478         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
17479         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
17480         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
17481         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
17482         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
17483         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
17484         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
17485         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
17486         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
17487
17488         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
17489         _XOPEN_SOURCE_EXTENDED for XPG4.
17490
17491         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
17492
17493         * Makeconfig (localtime): Remove variable.
17494         (inst_localtime-file): Likewise.
17495
17496 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
17497
17498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
17499         Update.
17500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17501         Update.
17502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
17503         Update.
17504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
17505         Update.
17506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
17507         Update.
17508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
17509         Update.
17510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17511         Update.
17512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
17513         Update.
17514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
17515         Update.
17516
17517 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
17518
17519         [BZ #2550]
17520         [BZ #2570]
17521         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
17522         comparisons to determine direction to adjust input.
17523         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17524         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
17525         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
17526         Likewise.
17527         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
17528         Likewise.
17529         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17530         Likewise.
17531         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
17532         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17533         Likewise.
17534         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17535         Likewise.
17536         * math/libm-test.inc (nexttoward_test): Add more tests.
17537
17538 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
17539
17540         [BZ #14040]
17541         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
17542         in version GLIBC_2.1, not GLIBC_2.0.
17543         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
17544         Likewise.
17545
17546 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
17547
17548         [BZ #13942]
17549         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
17550         (1 - x) * (1 + x).
17551         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
17552         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
17553         * math/libm-test.inc (acos_test): Add more tests.
17554         (asin_test): Likewise.
17555         * sysdeps/i386/fpu/libm-test-ulps: Update.
17556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17557
17558         [BZ #14034]
17559         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
17560         of square root.
17561         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
17562         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
17563         * math/libm-test.inc (acos_test_tonearest): New function.
17564         (acos_test_towardzero): Likewise.
17565         (acos_test_downward): Likewise.
17566         (acos_test_upward): Likewise.
17567         (asin_test_tonearest): Likewise.
17568         (asin_test_towardzero): Likewise.
17569         (asin_test_downward): Likewise.
17570         (asin_test_upward): Likewise.
17571         (main): Call the new functions.
17572         * sysdeps/i386/fpu/libm-test-ulps: Update.
17573         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17574
17575         [BZ #13884]
17576         [BZ #13924]
17577         * math/e_exp10.c: Include <float.h>.
17578         (__ieee754_exp10): Handle underflow here rather than multiplying
17579         large negative argument by M_LN10.
17580         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
17581         of __ieee754_expf.
17582         * math/e_exp10l.c: Include <float.h>.
17583         (__ieee754_exp10l): Handle underflow here rather than multiplying
17584         large negative argument by M_LN10l.
17585         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
17586         spurious overflow exception on underflow.
17587
17588 2012-04-29  Marek Polacek  <polacek@redhat.com>
17589
17590         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
17591         (__fortify_function): New macro.
17592         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
17593         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
17594         __extern_always_inline.
17595         * libio/bits/stdio2.h: Likewise.
17596         * libio/bits/stdio.h: Likewise.
17597         * string/string.h: Likewise.
17598         * string/bits/string3.h: Likewise.
17599         * include/stdio.h: Likewise.
17600         * stdlib/bits/stdlib.h: Likewise.
17601         * stdlib/stdlib.h: Likewise.
17602         * rt/bits/mqueue2.h: Likewise.
17603         * rt/mqueue.h: Likewise.
17604         * posix/bits/unistd.h: Likewise.
17605         * posix/unistd.h: Likewise.
17606         * io/bits/poll2.h: Likewise.
17607         * io/bits/fcntl2.h: Likewise.
17608         * io/fcntl.h: Likewise.
17609         * io/sys/poll.h: Likewise.
17610         * misc/bits/syslog.h: Likewise.
17611         * misc/bits/syslog-ldbl.h: Likewise.
17612         * misc/sys/syslog.h: Likewise.
17613         * socket/bits/socket2.h: Likewise.
17614         * socket/sys/socket.h: Likewise.
17615         * debug/tst-chk1.c: Likewise.
17616         * wcsmbs/bits/wchar2.h: Likewise.
17617         * wcsmbs/bits/wchar-ldbl.h: Likewise.
17618         * wcsmbs/wchar.h: Likewise.
17619
17620 2012-04-29  Andreas Jaeger  <aj@suse.de>
17621
17622         * Makerules (tests): Remove enable-check-abi protection.
17623         (check-abi-warn): Remove.
17624         (check-abi-%): Remove check-abi-warn usage.
17625
17626         * configure.in: Remove check-abi configure option.
17627         * configure: Regenerated.
17628         * config.make.in (enable-check-abi): Remove.
17629
17630 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
17631
17632         [BZ #14033]
17633         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
17634         double functions to double *_finite functions.
17635
17636         [BZ #13941]
17637         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
17638         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
17639         LDBL_MIN_EXP.
17640         * stdio-common/Makefile (tests): Add tst-sprintf3.
17641         * stdio-common/tst-sprintf3.c: New file.
17642
17643         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
17644         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
17645
17646 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17647
17648         * conform/conformtest.pl: Remove duplicate typed-constant
17649         handling.
17650
17651 2012-04-28  David S. Miller  <davem@davemloft.net>
17652
17653         * Makerules (%.abilist): Add vpath on sysdep_dirs.
17654         (check-abi-%): Remove AWK script prerequisite and explicit
17655         abilist directory.
17656         (check-abi): Rewrite to just diff the symlist with the abilist.
17657         (config-tls, config-abi-config): Delete, no longer used.
17658         (update-abi-%): Remove AWK script and explicit abilist directory.
17659         (update-abi): Rewrite to simply compare and conditionally copy the
17660         symlist and the sysdep abilist file.  Remove update-abi-config
17661         checks.
17662         * abilist/ld.abilist: Remove.
17663         * abilist/libBrokenLocale.abilist: Remove.
17664         * abilist/libanl.abilist: Remove.
17665         * abilist/libcrypt.abilist: Remove.
17666         * abilist/libdl.abilist: Remove.
17667         * abilist/librt.abilist: Remove.
17668         * abilist/libthread_db.abilist: Remove.
17669         * abilist/libutil.abilist: Remove.
17670         * scripts/extract-abilist.awk: Remove.
17671         * scripts/merge-abilist.awk: Remove.
17672         * sysdeps/generic/libcidn.abilist: New file.
17673         * sysdeps/generic/libnss_compat.abilist: New file.
17674         * sysdeps/generic/libnss_db.abilist: New file.
17675         * sysdeps/generic/libnss_dns.abilist: New file.
17676         * sysdeps/generic/libnss_files.abilist: New file.
17677         * sysdeps/generic/libnss_hesiod.abilist: New file.
17678         * sysdeps/generic/libnss_nis.abilist: New file.
17679         * sysdeps/generic/libnss_nisplus.abilist: New file.
17680         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
17681         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
17682         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
17683         file.
17684         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
17685         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
17686         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
17687         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
17688         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
17689         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
17690         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
17691         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
17692         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
17693         file.
17694         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
17695         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
17696         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
17697         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
17698         file.
17699         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
17700         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
17701         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
17702         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
17703         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
17704         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
17705         file.
17706         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
17707         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
17708         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
17709         file.
17710         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
17711         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
17712         New file.
17713         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
17714         New file.
17715         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
17716         New file.
17717         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
17718         New file.
17719         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
17720         New file.
17721         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
17722         New file.
17723         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
17724         New file.
17725         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
17726         New file.
17727         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
17728         New file.
17729         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
17730         New file.
17731         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
17732         New file.
17733         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
17734         New file.
17735         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
17736         New file.
17737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
17738         file.
17739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
17740         New file.
17741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
17742         New file.
17743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
17744         file.
17745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
17746         New file.
17747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
17748         New file.
17749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
17750         file.
17751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
17752         New file.
17753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
17754         New file.
17755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
17756         New file.
17757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
17758         New file.
17759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
17760         New file.
17761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
17762         New file.
17763         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
17764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
17765         file.
17766         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
17767         New file.
17768         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
17769         file.
17770         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
17771         file.
17772         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
17773         file.
17774         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
17775         file.
17776         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
17777         file.
17778         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
17779         New file.
17780         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
17781         file.
17782         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
17783         file.
17784         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
17785         New file.
17786         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
17787         file.
17788         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
17789         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
17790         file.
17791         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
17792         New file.
17793         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
17794         file.
17795         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
17796         file.
17797         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
17798         file.
17799         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
17800         file.
17801         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
17802         file.
17803         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
17804         New file.
17805         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
17806         file.
17807         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
17808         file.
17809         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
17810         New file.
17811         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
17812         file.
17813         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
17814         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
17815         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
17816         file.
17817         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
17818         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
17819         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
17820         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
17821         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
17822         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
17823         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
17824         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
17825         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
17826         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
17827         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
17828         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
17829         file.
17830         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
17831         New file.
17832         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
17833         file.
17834         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
17835         file.
17836         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
17837         file.
17838         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
17839         file.
17840         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
17841         file.
17842         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
17843         New file.
17844         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
17845         New file.
17846         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
17847         file.
17848         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
17849         New file.
17850         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
17851         file.
17852         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
17853         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
17854         file.
17855         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
17856         New file.
17857         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
17858         file.
17859         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
17860         file.
17861         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
17862         file.
17863         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
17864         file.
17865         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
17866         file.
17867         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
17868         New file.
17869         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
17870         New file.
17871         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
17872         file.
17873         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
17874         New file.
17875         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
17876         file.
17877
17878 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17879
17880         * conform/conformtest.pl: Fix typo in handling typed-constant from
17881         allow-header.
17882
17883 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17884
17885         * README: Cut down references to pre-2.6 Linux kernels and
17886         Linuxthreads.  Update lists of configurations in libc and ports
17887         and sort alphabetically.  Say "or newer" with Linux kernel version
17888         requirements.
17889
17890         * config.h.in [IS_IN_build]: Allow compiling without optimization.
17891
17892 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17893
17894         [BZ #887]
17895         * math/libm-test.inc (logb_test_downward): New test to expose
17896         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
17897         rounding mode.
17898
17899 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17900
17901         [BZ #14027]
17902         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
17903         to be done.
17904         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
17905         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
17906
17907 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
17908
17909         * sysdeps/unix/i386/brk.S: Remove file.
17910         * sysdeps/unix/i386/dl-brk.S: Likewise.
17911         * sysdeps/unix/i386/pipe.S: Likewise.
17912         * sysdeps/unix/i386/sigreturn.S: Likewise.
17913         * sysdeps/unix/i386/syscall.S: Likewise.
17914         * sysdeps/unix/i386/vfork.S: Likewise.
17915         * sysdeps/unix/i386/wait.S: Likewise.
17916
17917         * sysdeps/unix/common/tcsendbrk.c: Move to ...
17918         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
17919
17920         * configure.in (arm*-none*): Do not allow without
17921         --enable-hacker-mode.
17922         (netbsd*): Remove case setting base_os.
17923         (386bsd*): Likewise.
17924         (freebsd*): Likewise.
17925         (bsdi*): Likewise.
17926         (osf*): Likewise.
17927         (sunos*): Likewise.
17928         (ultrix*): Likewise.
17929         (newsos*): Likewise.
17930         (dynix*): Likewise.
17931         (*bsd*): Likewise.
17932         (sysv*): Likewise.
17933         (isc*): Likewise.
17934         (esix*): Likewise.
17935         (sco*): Likewise.
17936         (minix*): Likewise.
17937         (irix4*): Likewise.
17938         (irix6*): Likewise.
17939         (solaris[2-9]*): Likewise.
17940         (none): Likewise.
17941         * configure: Regenerated.
17942
17943 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17944
17945         [BZ #11521]
17946         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
17947         overflow or cancellation in calculating denominator.
17948         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
17949         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
17950         down expression to avoid unexpected rounding in newer GCCs.
17951         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
17952
17953 2012-04-26  David S. Miller  <davem@davemloft.net>
17954
17955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
17956         long-double compat symbols.
17957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
17961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
17963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
17964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
17965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
17966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
17967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
17968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
17969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17970
17971 2012-04-25  David S. Miller  <davem@davemloft.net>
17972
17973         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
17974         HWCAP_* values only after the memory barriers have been defined.
17975         (atomic_full_barrier): Define.
17976         (atomic_read_barrier): Define.
17977         (atomic_write_barrier): Define.
17978
17979 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17980
17981         * shlib-versions: Add libgcc_s version information.
17982         * sysdeps/generic/libgcc_s.h: Remove.
17983         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
17984         libgcc_s.h.
17985         * sysdeps/gnu/unwind-resume.c: Likewise.
17986         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
17987
17988 2012-04-25  David S. Miller  <davem@davemloft.net>
17989
17990         * sysdeps/unix/sparc/brk.S: Delete.
17991         * sysdeps/unix/sparc/dl-brk.S: Delete.
17992         * sysdeps/unix/sparc/pipe.S: Delete.
17993         * sysdeps/unix/sparc/sysdep.S: Delete.
17994         * sysdeps/unix/sparc/sysdep.h: Delete.
17995         * sysdeps/unix/sparc/vfork.S: Delete.
17996         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
17997         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
17998         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
17999         ret_ERRVAL, r0, r1, MOVE): Define.
18000         (JUMPTARGET): Remove.
18001         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
18002         sysdeps/unix/sparc/sysdep.h
18003         (ENTRY, END): Remove.
18004         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18005
18006 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
18007
18008         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
18009         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
18010         -DIS_IN_build.
18011
18012         * timezone/README: Update upstream location and email address for
18013         tzcode and tzdata.
18014         * timezone/zdump.c: Update from tzcode 2012b.
18015         * timezone/zic.c: Likewise.
18016
18017         * configure.in (libc_cv_as_needed): Remove test.
18018         * configure: Regenerated.
18019         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
18020         conditional definition.
18021         [$(have-as-needed) != yes] (no-as-needed): Likewise.
18022         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
18023         * config.make.in (have-as-needed): Remove variable.
18024
18025 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18026             Paul Pluzhnikov  <ppluzhnikov@google.com>
18027
18028         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
18029         strings correctly.
18030
18031 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
18032
18033         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
18034         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
18035         * sysdeps/sh/strlen.S: Likewise.
18036
18037 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
18038
18039         * sysdeps/unix/fork.S: Remove file.
18040         * sysdeps/unix/i386/fork.S: Likewise.
18041         * sysdeps/unix/sparc/fork.S: Likewise.
18042
18043         * sysdeps/unix/system.c: Remove file.
18044         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
18045
18046         * sysdeps/unix/getegid.S: Remove file.
18047         * sysdeps/unix/geteuid.S: Likewise.
18048
18049 2012-04-24  Roland McGrath  <roland@hack.frob.com>
18050
18051         * scripts/check-localplt.awk: New file.
18052         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
18053         of diff.
18054         * scripts/data/localplt-generic.data: Add a comment.
18055
18056         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
18057         NODE when __dir_mkfile failed.
18058         * sysdeps/mach/hurd/symlinkat.c: Likewise.
18059         Reported by Ludovic Courtès <ludo@gnu.org>.
18060
18061 2012-04-24  Andreas Jaeger  <aj@suse.de>
18062
18063         * Makerules (common-clean): Also remove gen-as-const-headers
18064         files.
18065
18066 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
18067
18068         * Makerules (native-compile): Do not change working directory for
18069         build.  Use $(OUTPUT_OPTION) in command.
18070         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
18071
18072 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18073
18074         [BZ #13886]
18075         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
18076         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
18077         * math/libm-test.inc (floor_test): Add more tests.
18078         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
18079
18080 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
18081
18082         * sysdeps/unix/getdents.c: Remove file.
18083         * sysdeps/unix/sysv/getdents.c: Likewise.
18084         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
18085
18086         * sysdeps/unix/syscalls.list (madvise): Add syscall from
18087         sysdeps/unix/mman/syscalls.list.
18088         (mmap): Likewise.
18089         (mprotect): Likewise.
18090         (msync): Likewise.
18091         (munmap): Likewise.
18092         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
18093         * sysdeps/unix/mman/syscalls.list: Remove.
18094         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
18095
18096         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
18097         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
18098         * configure: Regenerated.
18099         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
18100         $(libgcc_s_suffix).
18101         * config.make.in (libgcc_s_suffix): Remove variable.
18102
18103 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
18104
18105         * sysdeps/unix/sysv/gethostname.c: Move to ...
18106         * sysdeps/posix/gethostname.c: ... here.
18107
18108         * sysdeps/unix/execve.S: Remove file.
18109
18110         * sysdeps/unix/_exit.S: Remove file.
18111
18112 2012-04-23  Andreas Jaeger  <aj@suse.de>
18113
18114         [BZ #13739]
18115         * manual/Makefile: Remove make dist support, there's no
18116         need for a stand-alone documentation tar ball.
18117         (TEXI2DVI): Define always, it's not in Makeconfig.
18118         (dist): Removed.
18119         (tar-it): Removed.
18120         (edition): Removed.
18121         (glibc-doc-$(edition).tar): Removed
18122         (%.Z): Removed.
18123         (%.gz): Removed.
18124         (%.uu): Removed.
18125         (ETAGS): Remove, it's in Makeconfig.
18126         (move-if-change): Remove, it's in Makeconfig.
18127
18128 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
18129
18130         [BZ #13970]
18131         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
18132         (strtod, strtof, strtold, strtol, strtoul, strtoq)
18133         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
18134         (strtod_l, strtof_l, strtold_l): Remove __wur.
18135         It is not necessarily an error to ignore strtol's return value.
18136         One can reliably look at the stored endptr to decide whether
18137         the number had valid syntax.
18138
18139 2012-04-21  Andreas Jaeger  <aj@suse.de>
18140
18141         [BZ #13739]
18142         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
18143
18144 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
18145
18146         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
18147         * sysdeps/unix/sysv/Versions: Remove file.
18148
18149 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
18150
18151         [BZ #13927]
18152         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18153
18154 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
18155
18156         [BZ #7064]
18157         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
18158         version from __vm86.
18159
18160 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
18161
18162         * sysdeps/unix/common/lxstat.c: Remove file.
18163         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
18164
18165         * sysdeps/unix/sysv/Makefile: Remove file.
18166
18167         * sysdeps/unix/sysv/direct.h: Remove file.
18168
18169         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
18170         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
18171         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
18172         * sysdeps/unix/sysv/bits/signum.h: Likewise.
18173         * sysdeps/unix/sysv/bits/stat.h: Likewise.
18174         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
18175         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
18176
18177         * sysdeps/unix/sysv/setrlimit.c: Remove file.
18178
18179         * sysdeps/unix/xmknod.c: Remove file.
18180         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
18181
18182         * sysdeps/unix/sysv/settimeofday.c: Remove file.
18183
18184         * sysdeps/unix/sysv/i386/time.S: Remove file.
18185
18186         * sysdeps/unix/fxstat.c: Remove file.
18187         * sysdeps/unix/xstat.c: Likewise.
18188         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
18189
18190         * sysdeps/unix/sysv/sigaction.c: Remove file.
18191
18192         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
18193         (sysdep_headers): Remove variable.
18194         [termio.h not in sysdep_headers] (generated): Likewise.
18195         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
18196         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
18197         * sysdeps/unix/sysv/tcdrain.c: Likewise.
18198         * sysdeps/unix/sysv/tcflow.c: Likewise.
18199         * sysdeps/unix/sysv/tcflush.c: Likewise.
18200         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
18201         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
18202         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
18203         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
18204         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
18205
18206         * sysdeps/unix/siglist.c: Remove file.
18207
18208         * sysdeps/unix/getppid.S: Remove file.
18209
18210         * sysdeps/unix/mkdir.c: Remove file.
18211         * sysdeps/unix/rmdir.c: Likewise.
18212
18213 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
18214
18215         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
18216         ERR_MAX value.
18217         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
18218         errlist-compat value.
18219
18220 2012-04-18  David S. Miller  <davem@davemloft.net>
18221
18222         * sysdeps/generic/memcopy.h (reg_char): Delete.
18223         * debug/strcat_chk.c: Use char, not reg_char.
18224         * debug/strcpy_chk.c: Likewise.
18225         * debug/strncat_chk.c: Likewise.
18226         * debug/strncpy_chk.c: Likewise.
18227         * string/memchr.c: Likewise.
18228         * string/memrchr.c: Likewise.
18229         * string/rawmemchr.c: Likewise.
18230         * string/strcat.c: Likewise.
18231         * string/strchr.c: Likewise.
18232         * string/strchrnul.c: Likewise.
18233         * string/strcmp.c: Likewise.
18234         * string/strcpy.c: Likewise.
18235         * string/strncat.c: Likewise.
18236         * string/strncmp.c: Likewise.
18237         * string/strncpy.c: Likewise.
18238
18239 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18240
18241         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
18242         __builtin_memcopy is called when src and dest ranges are known to not
18243         overlap.
18244
18245 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18246
18247         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
18248         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
18249         fwd_align_merge macro call.
18250         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
18251         bwd_align_merge macro call.
18252         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
18253
18254 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18255
18256         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
18257         bwd_align_merge macros.
18258         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
18259         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
18260         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
18261
18262 2012-04-18  David S. Miller  <davem@davemloft.net>
18263
18264         * sysdeps/sparc/sparc64/memcopy.h: Delete.
18265
18266 2012-04-18  Andreas Jaeger  <aj@suse.de>
18267
18268         [BZ# 6794]
18269         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
18270         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
18271         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18272
18273         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
18274         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
18275         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18276
18277         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
18278         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
18279         Adjust for changed ldbl-128 files.
18280
18281         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
18282         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
18283         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18284
18285 2012-04-17  David S. Miller  <davem@davemloft.net>
18286
18287         * sysdeps/sparc/sparc32/memcopy.h: Delete.
18288
18289 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
18290
18291         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
18292         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
18293         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
18294         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
18295         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
18296         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
18297
18298 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18299
18300         [BZ #6794]
18301         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
18302         * math/libm-test.inc: Add ilogb errno and exception tests.
18303         * math/w_ilogb.c: New file: ilogb wrapper.
18304         * math/w_ilogbf.c: New file: ilogbf wrapper.
18305         * math/w_ilogbl.c: New file: ilogbl wrapper.
18306         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
18307         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
18308         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
18309         exception being thrown with 0.0 as argument.
18310         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
18311         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
18312         exception being thrown with 0.0 as argument.
18313         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
18314         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
18315         exception being thrown with 0.0 as argument.
18316         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
18317         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
18318         exception being thrown with 0.0 as argument.
18319         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
18320         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
18321         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
18322         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
18323         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
18324         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
18325         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
18326         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
18327         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
18328
18329 2012-04-17  Petr Baudis  <pasky@ucw.cz>
18330
18331         * include/sys/uio.h: Change __vector to __iovec to avoid clash
18332         with altivec.
18333
18334 2012-04-16  Marek Polacek  <polacek@redhat.com>
18335
18336         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
18337
18338 2012-04-16  Marek Polacek  <polacek@redhat.com>
18339
18340         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
18341         operands of fdivp instruction.
18342
18343 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18344
18345         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
18346         * elf/tst-auditmod3b.c: Likewise.
18347         * elf/tst-auditmod4b.c: Likewise.
18348         * elf/tst-auditmod5b.c: Likewise.
18349         * elf/tst-auditmod6b.c: Likewise.
18350         * elf/tst-auditmod6c.c: Likewise.
18351         * elf/tst-auditmod7b.c: Likewise.
18352         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
18353         * sysdeps/x86_64/preconfigure.in: Likewise.
18354         * sysdeps/x86_64/preconfigure: Regenerated.
18355
18356 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18357
18358         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
18359         __ILP32__.
18360
18361 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
18362
18363         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18364         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
18365
18366 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
18367
18368         [BZ #13973]
18369         * locale/iso-639.def: Fix gl language name. Spotted by
18370         Yaron Shahrabani.
18371
18372 2012-04-12  Roland McGrath  <roland@hack.frob.com>
18373
18374         [BZ #2074]
18375         * libio/libio.h (__io_write_fn): Update comment.
18376
18377 2012-04-12  Petr Baudis  <pasky@ucw.cz>
18378
18379         [BZ #2074]
18380         * stdio.texi (Hook Functions): The user provided writer function
18381         is not allowed to return -1.
18382
18383 2012-04-11  David S. Miller  <davem@davemloft.net>
18384
18385         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18386
18387 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
18388
18389         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
18390         Add a leading slash to rtkaio.
18391
18392 2012-04-11  Jim Meyering  <meyering@redhat.com>
18393
18394         [BZ #11959]
18395         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
18396         It is not necessarily an error to ignore fwrite's return
18397         value.  One can reliably use ferror to test for errors after
18398         the fact.
18399
18400 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
18401
18402         * bits/types.h (__snseconds_t): New type.
18403         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
18404
18405         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
18406         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18407         (__SNSECONDS_T_TYPE): Likewise.
18408         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18409         (__SNSECONDS_T_TYPE): Likewise.
18410         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18411         (__SNSECONDS_T_TYPE): Likewise.
18412
18413 2012-04-10  Andreas Jaeger  <aj@suse.de>
18414
18415         [BZ #2636]
18416         * manual/time.texi (Processor Time): Return type of times is
18417         elapsed real time since an arbitrary point in the past.
18418         (CPU Time): Move CLK_TCK from here...
18419         (Processor Time): ...to here.  Correct description.
18420         * manual/conf.texi (Constants for Sysconf): Correct description of
18421         _SC_CLK_TCK.
18422
18423 2012-04-10  David S. Miller  <davem@davemloft.net>
18424
18425         [BZ #13967]
18426         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
18427         where the is a gap between DT_REL(A) and DT_JMPREL.
18428
18429 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
18430
18431         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
18432         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
18433         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
18434
18435 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18436
18437         * elf/dl-support.c (_dl_inhibit_cache): New variable.
18438         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
18439         (dl_main): Handle --inhibit-cache.
18440         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
18441         _dl_inhibit_cache.
18442         * elf/dl-load.c (_dl_map_object): Use it.
18443         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
18444
18445 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
18446
18447         [BZ #13872]
18448         * sysdeps/i386/fpu/e_powl.S (p78): New object.
18449         (__ieee754_powl): Saturate large exponents rather than testing for
18450         overflow of y*log2(x).
18451         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18452         * math/libm-test.inc (pow_test): Do not permit spurious overflow
18453         exceptions.
18454
18455         [BZ #11521]
18456         * math/s_ctan.c: Include <float.h>.
18457         (__ctan): Avoid internal overflow or cancellation in calculating
18458         denominator.
18459         * math/s_ctanf.c: Likewise.
18460         * math/s_ctanl.c: Likewise.
18461         * math/s_ctanh.c: Likewise.
18462         * math/s_ctanhf.c: Likewise.
18463         * math/s_ctanhl.c: Likewise.
18464         * math/libm-test.inc (ctan_test): Add more tests.
18465         (ctanh_test): Likewise.
18466         * sysdeps/i386/fpu/libm-test-ulps: Update.
18467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18468
18469 2012-04-09  Andreas Jaeger  <aj@suse.de>
18470
18471         [BZ #6894]
18472         * manual/filesys.texi (Directory Entries): Mention that d_namlen
18473         is an optional BSD extension.
18474
18475         [BZ #10254]
18476         * manual/stdio.texi (Opening Streams): Document additional fopen
18477         parameters.
18478
18479 2012-04-09  Roland McGrath  <roland@hack.frob.com>
18480
18481         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
18482         %eax without telling the compiler.
18483
18484 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
18485
18486         [BZ # 13963]
18487         * manual/install.texi: Use sourceware.org.
18488
18489 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
18490
18491         [BZ #13873]
18492         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
18493         (__ieee754_pow): Generate overflow and underflow using huge*huge
18494         and tiny*tiny rather than just returning constant infinity or zero
18495         for large exponents.
18496         * math/libm-test.inc (pow_test): Require overflow exceptions for
18497         applicable cases of large exponents.
18498
18499         [BZ #706]
18500         * sysdeps/i386/fpu/e_pow.S (p10): New object.
18501         (__ieee754_pow): Use iterative multiplication algorithm only for
18502         integer exponents with absolute value below 1024.  Check for odd
18503         integer exponents when using algorithm for real exponents.
18504         * math/libm-test.inc (pow_test): Add more tests.
18505         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18506
18507 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
18508
18509         [BZ #13705]
18510         * math/libm-test.inc (exp_test): Do not allow overflow exception
18511         on underflow test.
18512
18513 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
18514
18515         [BZ #13705]
18516         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
18517         instead of __kernel_standard_f.
18518
18519 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
18520
18521         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
18522         * sysdeps/x86_64/memset_chk.S: Likewise.
18523
18524 2012-04-08  Andreas Jaeger  <aj@suse.de>
18525
18526         [BZ #10153]
18527         * manual/startup.texi (Environment Access): Describe return value
18528         for putenv and setenv.
18529
18530         [BZ #6895]
18531         * manual/filesys.texi (Directory Entries): Add description for
18532         DT_LNK.
18533
18534         [BZ #6890]
18535         * manual/filesys.texi (Directory Entries): Clarify that it's file
18536         system not operating system in the description of DT_UNKNOWN.
18537
18538         [BZ #6578]
18539         * manual/syslog.texi (closelog): Fix reference, it's openlog.
18540
18541 2012-04-08  Stephen Compall  <s11@member.fsf.org>
18542
18543         [BZ #6649]
18544         * manual/llio.texi (Opening and Closing Files): Add cross
18545         reference to explain mode argument.
18546
18547 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
18548
18549         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
18550         * sysdeps/x86_64/memset_chk.S: Likewise.
18551
18552 2012-04-07  David S. Miller  <davem@davemloft.net>
18553
18554         * elf/elf.h (R_SPARC_WDISP10): Define.
18555         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
18556         R_SPARC_SIZE32.
18557         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
18558         R_SPARC_SIZE64 and R_SPARC_H34.
18559
18560 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
18561
18562         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
18563         conditions and remove no longer applicable assertion.
18564
18565 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18566
18567         * bits/byteswap.h: Include <features.h>.
18568         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
18569         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
18570
18571 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18572
18573         * bits/byteswap.h (__bswap_16): Removed.
18574         Include <bits/byteswap-16.h> to get __bswap_16.
18575         * sysdeps/i386/bits/byteswap.h: Likewise.
18576         * sysdeps/s390/bits/byteswap.h: Likewise.
18577         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18578         * bits/byteswap-16.h: New file.
18579         * sysdeps/i386/bits/byteswap-16.h: Likewise.
18580         * sysdeps/s390/bits/byteswap-16.h: Likewise.
18581         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
18582         * string/Makefile (headers): Add bits/byteswap-16.h.
18583
18584 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18585
18586         [BZ #13895]
18587         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
18588         extra indirection.
18589         * nss/Makefile (tests-static, tests): Add tst-nss-static.
18590         * nss/tst-nss-static.c: New.
18591
18592 2012-04-06  Robert Millan  <rmh@gnu.org>
18593
18594         [BZ #6486]
18595         * manual/llio.texi (File Position Primitive): lseek
18596         refers to WHENCE when it really means OFFSET.
18597
18598 2012-04-06  Andreas Jaeger  <aj@suse.de>
18599
18600         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
18601         strncmp declarations.
18602
18603         * abilist/libc.abilist: Add __poll and __ppoll.
18604
18605 2012-04-05  David S. Miller  <davem@davemloft.net>
18606
18607         * scripts/check-local-headers.sh: Accept a host triplet in the
18608         path matched by the exclude regexp.
18609
18610         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
18611         definition.
18612         * sysdeps/powerpc/powerpc32/dl-machine.h
18613         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
18614         * sysdeps/s390/s390-32/dl-machine.h
18615         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18616         * sysdeps/sparc/sparc32/dl-machine.h
18617         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18618         * sysdeps/sparc/sparc64/dl-machine.h
18619         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18620
18621         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
18622         lazy binding.
18623         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
18624         undefined symbol errors.
18625
18626         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
18627         DT_NEEDED entries.
18628
18629 2012-04-05  Michael Matz  <matz@suse.de>
18630
18631         [BZ #13592]
18632         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
18633
18634 2012-04-05  Andreas Jaeger  <aj@suse.de>
18635
18636         [BZ #13908]
18637         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
18638         comment.
18639
18640 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18641
18642         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
18643         which ROUND is no valid rounding mode.
18644
18645 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18646
18647         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
18648         read again.
18649         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
18650
18651 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18652
18653         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
18654         an exception using FPU order intentionally.
18655
18656 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18657
18658         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
18659         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
18660         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
18661         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
18662
18663 2012-04-05  Simon Josefsson  <simon@josefsson.org>
18664
18665         [BZ #12340]
18666         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
18667         EINVAL when BUFLEN is too smal.
18668
18669 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
18670
18671         [BZ #13553]
18672         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
18673         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
18674
18675 2012-04-03  Andreas Jaeger  <aj@suse.de>
18676
18677         [BZ #13938]
18678         * manual/setjmp.texi (System V contexts): Fix sentence.
18679
18680         [BZ #13926]
18681         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
18682         New macro for this case.
18683         [!__GNUC__] (__bswap_64): New inline function for this case.
18684         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18685         * bits/byteswap.h: Likewise.
18686         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
18687         ull, guard with __GLIBC_HAVE_LONG_LONG.
18688
18689         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
18690         __GLIBC_HAVE_LONG_LONG.
18691
18692         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
18693         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
18694
18695 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18696
18697         [BZ #13691]
18698         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
18699         inptr and inend, rather than using last_ch.
18700
18701 2012-04-02  David S. Miller  <davem@davemloft.net>
18702
18703         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
18704         * stdio-common/printf-parse.h (read_int): Change return type to
18705         'int', return -1 on INT_MAX overflow.
18706         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
18707         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
18708         overflows INT_MAX.  Check for overflow of in-format-string precision
18709         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
18710         SIZE_MAX not INT_MAX for integer overflow test.
18711         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
18712         skip the construct in the format string but do not record anything.
18713         * stdio-common/bug22.c: Adjust to test both width/prevision
18714         INT_MAX overflow as well as total length INT_MAX overflow.  Check
18715         explicitly for proper errno values.
18716
18717 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
18718
18719         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
18720         CHAR_MAX.
18721         * string/test-strcmp.c [! WIDE]: Likewise.
18722         * time/tst-mktime2.c: Likewise for INT_MAX.
18723         * string/test-string.h: #include <sys/param.h> for MIN.
18724
18725         * csu/init-first.c (__libc_init_first): Call __ctype_init.
18726         * sysdeps/i386/init-first.c (init): Likewise.
18727         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
18728         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
18729         * sysdeps/sh/init-first.c (init): Likewise.
18730
18731 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
18732
18733         * po/ru.po: Update from translation team.
18734         * po/vi.po: Likewise.
18735
18736 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
18737
18738         * resolv/nss_dns/dns-host.c: Merge copyright years.
18739
18740 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18741
18742         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
18743         Optimize memcpy with prefetch if
18744         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
18745         src, dst pointers have unequal 16 byte alignments.
18746
18747 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18748
18749         [BZ #13928]
18750         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
18751         from a CNAME entry and return the minimum ttl for the query.
18752         (gaih_getanswer_slice): Likewise.
18753
18754 2012-03-30  Jeff Law  <law@redhat.com>
18755
18756         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
18757         due to long keys.
18758         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
18759         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
18760
18761         * resolv/nss_dns/dns-host.c: Update copyright year.
18762
18763 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
18764
18765         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
18766         requests to save a system call.  Fix check that all bytes are sent.
18767
18768         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
18769         comments for sendmmsg.
18770
18771 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18772
18773         [BZ #13691]
18774         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
18775         with only 1 character between 0x0041 and 0x01b0.
18776         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
18777         * wcsmbs/tst-mbsnrtowcs.c: New file.
18778
18779 2012-03-29  David S. Miller  <davem@davemloft.net>
18780
18781         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
18782         small copies by hand.
18783
18784 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18785
18786         [BZ #13761]
18787         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
18788         _nss_compat_initgroups_dyn): Fall back to malloc/free
18789         for large group memberships.
18790
18791 2012-03-28  David S. Miller  <davem@davemloft.net>
18792
18793         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
18794         that branches into memcpy.
18795         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
18796         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
18797         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18798         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
18799         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
18800         bits.
18801         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
18802         implementation too.
18803         * sysdeps/sparc/mempcpy.S: New file.
18804
18805         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
18806         the IFUNC routine in the libc case.
18807         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
18808
18809         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
18810         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
18811         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
18812         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
18813         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
18814         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
18815         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
18816         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
18817
18818         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
18819         loop to 256 bytes instead of 64 bytes and fix test signedness.
18820
18821         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
18822         * sysdeps/sparc/sparc32/Makefile: rather than here...
18823         * sysdeps/sparc/sparc64/Makefile: and here.
18824
18825 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
18826
18827         * malloc/mallocbug.c: Avoid warnings about unused variables.
18828
18829 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18830
18831         [BZ #13760]
18832         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
18833         in the right place. Discard and retry query if response is
18834         larger than input buffer size.
18835
18836 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
18837
18838         [BZ #369]
18839         [BZ #2678]
18840         [BZ #3866]
18841         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
18842         x for large integer exponent.
18843         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
18844         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
18845         sign of result as needed afterwards.
18846         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
18847         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
18848         result for underflowing pow the same as for overflow.
18849         (__kernel_standard_l): Handle powl overflow and underflow here
18850         rather than calling __kernel_standard.
18851         * math/libm-test.inc (pow_test): Add more tests.
18852
18853         [BZ #3868]
18854         [BZ #13879]
18855         [BZ #13910]
18856         [BZ #13911]
18857         [BZ #13912]
18858         [BZ #13913]
18859         [BZ #13915]
18860         [BZ #13916]
18861         [BZ #13917]
18862         [BZ #13918]
18863         [BZ #13919]
18864         [BZ #13920]
18865         [BZ #13921]
18866         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
18867         * sysdeps/ieee754/k_standard.c: Include <float.h>.
18868         (__kernel_standard_l): New function.
18869         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
18870         __kernel_standard.
18871         * math/w_acosl.c (__acosl): Likewise.
18872         * math/w_asinl.c (__asinl): Likewise.
18873         * math/w_atan2l.c (__atan2l): Likewise.
18874         * math/w_atanhl.c (__atanhl): Likewise.
18875         * math/w_coshl.c (__coshl): Likewise.
18876         * math/w_exp10l.c (__exp10l): Likewise.
18877         * math/w_exp2l.c (__exp2l): Likewise.
18878         * math/w_fmodl.c (__fmodl): Likewise.
18879         * math/w_hypotl.c (__hypotl): Likewise.
18880         * math/w_j0l.c (__j0l, __y0l): Likewise.
18881         * math/w_j1l.c (__j1l, __y1l): Likewise.
18882         * math/w_jnl.c (__jnl, __ynl): Likewise.
18883         * math/w_lgammal.c (__lgammal): Likewise.
18884         * math/w_log10l.c (__log10l): Likewise.
18885         * math/w_log2l.c (__log2l): Likewise.
18886         * math/w_logl.c (__logl): Likewise.
18887         * math/w_powl.c (__powl): Likewise.
18888         * math/w_remainderl.c (__remainderl): Likewise.
18889         * math/w_scalbl.c (sysv_scalbl): Likewise.
18890         * math/w_sinhl.c (__sinhl): Likewise.
18891         * math/w_sqrtl.c (__sqrtl): Likewise.
18892         * math/w_tgammal.c (__tgammal): Likewise.
18893         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
18894         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
18895         * math/libm-test.inc (acos_test): Add more tests.
18896         (acosh_test): Likewise.
18897         (asin_test): Likewise.
18898         (atanh_test): Likewise.
18899         (exp_test): Likewise.
18900         (exp10_test): Likewise.
18901         (exp2_test): Likewise.
18902         (expm1_test): Likewise.
18903         (lgamma_test): Likewise.
18904         (log_test): Likewise.
18905         (log10_test): Likewise.
18906         (log1p_test): Likewise.
18907         (log2_test): Likewise.
18908         (pow_test): Do not allow some spurious overflow exceptions.
18909         (sqrt_test): Add more tests.
18910         (tgamma_test): Likewise.
18911         (y0_test): Likewise.
18912         (y1_test): Likewise.
18913         (yn_test): Likewise.
18914
18915 2012-03-27  Anton Blanchard  <anton@samba.org>
18916
18917         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
18918         MAP_HUGETLB.
18919         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18920         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18921         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18922
18923 2012-03-27  David S. Miller  <davem@davemloft.net>
18924
18925         * conform/Makefile: Run run-conformtest.sh using $(BASH).
18926
18927         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
18928         have-as-vis3 check.
18929
18930 2012-03-27  Andreas Jaeger  <aj@suse.de>
18931
18932         * sysdeps/x86_64/elf/configure.in: Moved to ...
18933         * sysdeps/x86_64/configure.in: ... here.
18934         * sysdeps/x86_64/elf/start.S: Moved to ...
18935         * sysdeps/x86_64/start.S: ... here.
18936         * sysdeps/x86_64/elf/configure: Delete.
18937
18938         * sysdeps/x86_64/configure.in: Merge contents from
18939         sysdeps/i386/configure.in (without i686 check).
18940
18941         * sysdeps/i386/elf/Versions: Merge into ...
18942         * sysdeps/i386/Versions: ... this.
18943         * sysdeps/i386/elf/Versions: Delete file.
18944         * sysdeps/i386/elf/start.S: Moved to ...
18945         * sysdeps/i386/start.S: ...here.
18946         * sysdeps/i386/elf/configure.in: Merge into...
18947         * sysdeps/i386/configure.in: ...here.
18948         * sysdeps/i386/elf/configure.in: Delete file.
18949         * sysdeps/i386/elf/configure: Delete file.
18950
18951         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
18952         * debug/backtracesyms.c: ... here.
18953         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
18954         * debug/backtracesymsfd.c: ... here.
18955         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
18956         * sysdeps/generic/ifunc-sel.h: ... here.
18957
18958         * sysdeps/unix/i386/start.c: Delete file.
18959         * sysdeps/unix/sparc/start.c: Delete file.
18960         * sysdeps/unix/start.c: Delete file.
18961
18962         * sysdeps/sh/elf/configure.in: Moved to ...
18963         * sysdeps/sh/configure.in: ... here.
18964         * sysdeps/sh/elf/start.S: Moved to ...
18965         * sysdeps/sh/start.S: ... here.
18966         * sysdeps/sh/elf/configure: Delete file.
18967
18968         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
18969         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
18970         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
18971         * sysdeps/powerpc/powerpc64/entry.h: ... here.
18972         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
18973         * sysdeps/powerpc/powerpc64/start.S: here.
18974         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
18975         * sysdeps/powerpc/powerpc64/Makefile: ... this.
18976         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
18977         * sysdeps/powerpc/powerpc64/configure.in: ... this.
18978         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
18979
18980         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
18981         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
18982         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
18983         * sysdeps/powerpc/powerpc32/start.S: ... here.
18984         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
18985         * sysdeps/powerpc/powerpc32/configure.in: ... this.
18986         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
18987
18988         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
18989         * sysdeps/powerpc/ifunc-sel.h: ... here.
18990         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
18991         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
18992
18993         * sysdeps/sparc/elf/configure.in: Moved to ...
18994         * sysdeps/sparc/configure.in: ... here.
18995         * sysdeps/sparc/elf/configure: Delete file.
18996         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
18997         * sysdeps/sparc/sparc32/start.S: ... here.
18998         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
18999         * sysdeps/sparc/sparc64/start.S: ... here.
19000         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
19001         * sysdeps/sparc/sparc32/Makefile: ... this.
19002         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
19003         * sysdeps/sparc/sparc64/Makefile: ... this.
19004
19005         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
19006         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
19007         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
19008         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
19009         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
19010         * sysdeps/s390/s390-32/setjmp.S: ... here.
19011         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
19012         * sysdeps/s390/s390-32/configure.in: ... here.
19013         * sysdeps/s390/s390-32/elf/configure: Delete file.
19014         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
19015         * sysdeps/s390/s390-32/start.S: ... here.
19016
19017         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
19018         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
19019         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
19020         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
19021         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
19022         * sysdeps/s390/s390-64/setjmp.S: ... here.
19023         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
19024         * sysdeps/s390/s390-64/configure.in: ... here
19025         * sysdeps/s390/s390-64/elf/configure: Delete file.
19026         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
19027         * sysdeps/s390/s390-64/start.S: ... here.
19028         * sysdeps/s390/s390-64/elf/configure: Delete.
19029
19030         * configure.in: Remove support for elf directories in sysdeps.
19031
19032         * configure: Regenerated.
19033         * sysdeps/i386/configure: Regenerated.
19034         * sysdeps/powerpc/powerpc32/configure: Regenerated.
19035         * sysdeps/powerpc/powerpc64/configure: Regenerated.
19036         * sysdeps/s390/s390-32/configure: Regenerated.
19037         * sysdeps/s390/s390-64/configure: Regenerated.
19038         * sysdeps/sh/configure: Regenerated.
19039         * sysdeps/sparc/configure: Regenerated.
19040         * sysdeps/x86_64/configure: Regenerated.
19041
19042 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
19043
19044         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19045
19046         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
19047         denormal result into account.
19048
19049 2012-03-25  Roland McGrath  <roland@hack.frob.com>
19050
19051         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
19052         Reported by Allan McRae <allan@archlinux.org>.
19053
19054 2012-03-23  Jeff Law  <law@redhat.com>
19055
19056         * nss/getnssent.c (__nss_getent): Fix typo.
19057
19058 2012-03-23  David S. Miller  <davem@davemloft.net>
19059
19060         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19061
19062 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
19063
19064         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
19065         to pad to uint64_t for each field.
19066         (dl_tls_index): Replace unsigned long with uint64_t.
19067
19068 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
19069         Paul Pluzhnikov  <ppluzhnikov@google.com>
19070
19071         [BZ #6528]
19072         * grp/Makefile (otherlibs): Don't set it.
19073         * inet/Makefile (otherlibs): Likewise.
19074         * login/Makefile (otherlibs): Likewise.
19075         * nscd/Makefile (otherlibs): Likewise.
19076         * posix/Makefile (otherlibs): Likewise.
19077         * pwd/Makefile (otherlibs): Likewise.
19078         * rt/Makefile (otherlibs): Likewise.
19079         * sunrpc/Makefile (otherlibs): Likewise.
19080         * nss/Makefile (otherlibs): Likewise.
19081         Add libnss_files to routines and static-only-routines.
19082         ($(objpfx)getent): Remove rule.
19083         * resolv/Makefile: Add libnss_dns and libresolv to routines and
19084         static-only-routines.
19085
19086 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
19087
19088         [BZ #13892]
19089         * math/s_cexp.c: Include <float.h>.
19090         (__cexp): Handle exp result overflowing not necessarily
19091         overflowing both real and imaginary parts of result.
19092         * math/s_cexpf.c: Likewise.
19093         * math/s_cexpl.c: Likewise.
19094         * math/libm-test.inc (cexp_test): Add more tests.
19095         * sysdeps/i386/fpu/libm-test-ulps: Update.
19096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19097
19098 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19099
19100         * include/link.h (ELFW): New macro.
19101         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
19102         Replace ELF64_R_TYPE with ELFW(R_TYPE).
19103
19104 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19105
19106         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
19107         with uint64_t.
19108
19109 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19110
19111         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
19112         declaration.
19113         (struct La_x32_retval): Likewise.
19114
19115 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19116
19117         * sysdeps/x86_64/preconfigure.in: New file.
19118         * sysdeps/x86_64/preconfigure: New generated file.
19119
19120 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
19121
19122         [BZ #13824]
19123         * math/e_exp2l.c: Include <float.h>.
19124         (__ieee754_exp2l): Handle overflow and underflow cases
19125         separately.  Only pass fractional part of argument to
19126         __ieee754_expl.
19127         * math/libm-test.inc (exp2_test): Add more tests.
19128
19129         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
19130         negating x to take absolute value.
19131         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
19132         Likewise.
19133         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
19134         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
19135         Likewise.
19136         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
19137         computing low part if x was negated.
19138         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
19139
19140 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
19141
19142         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
19143         la_x32_gnu_pltexit.
19144         (pltexit): Cast int_retval to ptrdiff_t.
19145         * elf/tst-auditmod3b.c: Likewise.
19146         * elf/tst-auditmod4b.c: Likewise.
19147         * elf/tst-auditmod5b.c: Likewise.
19148         * elf/tst-auditmod6b.c: Likewise.
19149         * elf/tst-auditmod6c.c: Likewise.
19150         * elf/tst-auditmod7b.c: Likewise.
19151
19152         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
19153         and x32_gnu_pltexit.
19154
19155         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
19156         __ELF_NATIVE_CLASS.
19157         (La_x32_regs): New macro.
19158         (La_x32_retval): Likewise.
19159         (la_x32_gnu_pltenter): New function prototype.
19160         (la_x32_gnu_pltexit): Likewise.
19161
19162 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
19163
19164         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
19165         exponent.
19166
19167         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19168
19169         * configure.in (libc_cv_cc_nofma): Check for option to disable
19170         generation of FMA instructions.
19171         * configure: Regenerate.
19172         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
19173         * sysdeps/ieee754/dbl-64/Makefile: New file.
19174         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19175         Remove brandred-fma4.
19176         (CFLAGS-brandred-fma4.c): Remove.
19177         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
19178         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
19179         define.
19180         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
19181         define.
19182
19183 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
19184
19185         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
19186         LLONG_MAX != LONG_MAX.
19187         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19188         (_fitoa_word): Likewise.
19189         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
19190         LLONG_MAX != LONG_MAX.
19191         * stdio-common/_itowa.h: Include <_itoa.h>.
19192         (_itowa_word): Use _ITOA_WORD_TYPE on value.
19193         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
19194         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
19195         only if not defined.
19196         (_ITOA_WORD_TYPE): Likewise.
19197         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19198         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
19199
19200 2012-03-21  David S. Miller  <davem@davemloft.net>
19201
19202         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19203
19204 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
19205
19206         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
19207         of x86_64 when setting libc_cv_slibdir, libdir and
19208         libc_cv_localedir.
19209         * sysdeps/unix/sysv/linux/configure: Regenerated.
19210
19211 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19212
19213         * manual/lang.texi (Old Varargs): Remove section.
19214         (How Variadic): Update menu.
19215         (va_start): Do not mention varargs.h.
19216
19217 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19218             Joseph Myers  <joseph@codesourcery.com>
19219
19220         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
19221         link test.
19222         * configure: Regenerated.
19223
19224 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19225
19226         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
19227         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
19228         conformtest.pl
19229
19230 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19231
19232         * NOTES: Remove.
19233         * Makefile (files-for-dist): Remove NOTES.
19234         (NOTES): Remove rule.
19235         * README: Don't refer to NOTES.
19236         * manual/creature.texi: Don't include macros.texi.
19237         * manual/intro.texi (creature.texi): Remove comment referring to
19238         NOTES.
19239
19240         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
19241         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
19242         * configure: Regenerated.
19243         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
19244         LIBC_TRY_CC_OPTION.
19245         (libc_cv_as_i686): Likewise.
19246         (libc_cv_cc_avx): Likewise.
19247         (libc_cv_cc_sse2avx): Likewise.
19248         (libc_cv_cc_fma4): Likewise.
19249         (libc_cv_cc_novzeroupper): Likewise.
19250         * sysdeps/i386/configure: Regenerated.
19251
19252         [BZ #13883]
19253         * sysdeps/i386/fpu/s_cexp.S: Remove.
19254         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
19255         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
19256         * math/libm-test.inc (cexp_test): Add more tests.
19257         * sysdeps/i386/fpu/libm-test-ulps: Update.
19258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19259
19260 2012-03-21  Allan McRae  <allan@archlinux.org>
19261
19262         * timezone/Makefile: Do not install iso3166.tab and zone.tab
19263
19264 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19265
19266         [BZ #13871]
19267         * math/w_exp2.c: Do not include <float.h>.
19268         (o_threshold, u_threshold): Remove.
19269         (__exp2): Calculate result before checking finiteness and calling
19270         __kernel_standard.
19271         * math/w_exp2f.c: Likewise.
19272         * math/w_exp2l.c: Likewise.
19273         * math/libm-test.inc (exp2_test): Require overflow exception for
19274         1e6 input.
19275
19276         [BZ #3866]
19277         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
19278         range of signed 64-bit integers before using fistpll.  Remove
19279         checks for whether integers fit in mantissa bits.
19280         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
19281         the range of signed 32-bit integers before using fistpl.  Remove
19282         checks for whether integers fit in mantissa bits.
19283         * sysdeps/i386/fpu/e_powl.S (p64): New object.
19284         (__ieee754_powl): Test for y outside the range of signed 64-bit
19285         integers before using fistpll.  Reduce 64-bit values to 63-bit
19286         ones as needed.
19287         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
19288         divide-by-zero is raised for zero to large negative powers.
19289         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
19290         (__ieee754_powl): Test for y outside the range of signed 64-bit
19291         integers before using fistpll.  Reduce 64-bit values to 63-bit
19292         ones as needed.
19293         * math/libm-test.inc (pow_test): Add more tests.
19294
19295 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19296
19297         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
19298         <stdio-common/_itoa.h>.
19299         * debug/segfault.c: Likewise.
19300         * elf/dl-cache.c: Likewise.
19301         * elf/dl-minimal.c: Likewise.
19302         * elf/dl-misc.c: Likewise.
19303         * elf/dl-sysdep.c: Likewise.
19304         * elf/dl-version.c: Likewise.
19305         * elf/rtld.c: Likewise.
19306         * hurd/hurdsock.c: Likewise.
19307         * hurd/lookup-retry.c: Likewise.
19308         * malloc/malloc.c: Likewise.
19309         * malloc/mtrace.c: Likewise.
19310         * nscd/nscd_getgr_r.c: Likewise.
19311         * nscd/nscd_getpw_r.c: Likewise.
19312         * nscd/nscd_getserv_r.c: Likewise.
19313         * posix/getopt_init.c: Likewise.
19314         * posix/wordexp.c: Likewise.
19315         * stdio-common/_itoa.c: Likewise.
19316         * stdio-common/printf_fphex.c: Likewise.
19317         * stdio-common/vfprintf.c: Likewise.
19318         * string/_strerror.c: Likewise.
19319         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
19320         * sysdeps/i386/i686/hp-timing.h: Likewise.
19321         * sysdeps/mach/_strerror.c: Likewise.
19322         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
19323         * sysdeps/mach/hurd/sethostid.c: Likewise.
19324         * sysdeps/mach/hurd/xmknodat.c: Likewise.
19325         * sysdeps/mach/xpg-strerror.c: Likewise.
19326         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
19327         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
19328         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
19329         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
19330         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
19331         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
19332         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
19333         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
19334         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
19335         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
19336         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
19337         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
19338         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
19339         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
19340         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
19341         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
19342         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
19343         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
19344         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
19345         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
19346         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
19347
19348         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
19349
19350         * stdio-common/_itoa.h: Moved to ...
19351         * sysdeps/generic/_itoa.h: Here.
19352
19353         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
19354
19355         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
19356         instead of "_itoa.h" and "_itowa.h".
19357         * stdio-common/vfprintf.: Likewise.
19358
19359 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19360
19361         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
19362         <bits/wordsize.h>.
19363         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
19364         (__signbit): Likwise.
19365         (llrintf): Likwise.
19366         (llrint): Likwise.
19367
19368 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19369
19370         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
19371         __WORDSIZE != 64.
19372
19373 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
19374
19375         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
19376         OVERFLOW_EXCEPTION_OK.
19377         * math/libm-test.inc ("Philosophy"): Update comment about
19378         exception testing.
19379         (OVERFLOW_EXCEPTION): Define.
19380         (OVERFLOW_EXCEPTION_OK): Likewise.
19381         (INVALID_EXCEPTION_OK): Renumber.
19382         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
19383         (IGNORE_ZERO_INF_SIGN): Likewise.
19384         (test_exceptions): Handle FE_OVERFLOW.
19385         (exp10_test): Expect overflow exceptions.
19386         (exp2_test): Likewise.
19387         (expm1_test): Likewise.
19388         (nextafter_test): Likewise.
19389         (pow_test): Likewise.
19390         (scalbn_test): Likewise.
19391         (scalbln_test): Likewise.
19392
19393 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19394
19395         * sysdeps/x86_64/bits/atomic.h
19396         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
19397         64bit integer.
19398         (atomic_exchange_acq): Likewise.
19399         (__arch_exchange_and_add_body): Likewise.
19400         (__arch_add_body): Likewise.
19401         (atomic_add_negative): Likewise.
19402         (atomic_add_zero): Likewise.
19403
19404 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19405
19406         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
19407         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
19408
19409 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19410
19411         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
19412         Check __x86_64__ instead of __WORDSIZE.
19413
19414 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19415
19416         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
19417
19418 2012-03-19  David S. Miller  <davem@davemloft.net>
19419
19420         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19421
19422         * sysdeps/sparc/fpu/fenv_private.h: New file.
19423         * sysdeps/sparc/fpu/math_private.h: Use it.
19424         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
19425         Remove.
19426         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
19427         (libc_feholdexcept_setroundl): Remove.
19428         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
19429         Remove.
19430         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
19431         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
19432
19433 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19434
19435         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
19436         int64_t instead of long int.
19437         (INSERT_WORDS64): Likwise.
19438
19439 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19440
19441         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
19442         _Unwind_GetCFA return to _Unwind_Ptr first.
19443
19444 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
19445
19446         [BZ #13629]
19447         * math/s_clog.c: Include <float.h>.
19448         (__clog): Scale large or subnormal inputs.
19449         * math/s_clogf.c: Likewise.
19450         * math/s_clogl.c: Likewise.
19451         * math/s_clog10.c: Include <float.h>.
19452         (M_LOG10_2): Define.
19453         (__clog10): Scale large or subnormal inputs.
19454         * math/s_clog10f.c: Likewise.
19455         * math/s_clog10l.c: Likewise.
19456         * math/libm-test.inc (clog_test): Add more tests.
19457         (clog10_test): Likewise.
19458         * sysdeps/i386/fpu/libm-test-ulps: Update.
19459         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19460
19461         [BZ #11451]
19462         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
19463         x and y.
19464         * math/libm-test.inc (atan2_test): Add another test.
19465
19466         * Makerules (common-objdir-compile): Remove.
19467         * sysdeps/unix/Makefile (config-generated): Do not add
19468         $(unix-generated) to variable.
19469         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
19470         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
19471         Remove rule.
19472         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
19473         Likewise.
19474         [generic bits/local_lim.h] (before-compile): Do not append to
19475         variable.
19476         [generic bits/local_lim.h] (common-generated): Likewise.
19477         [generic sys/param.h] (before-compile): Do not append to variable.
19478         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
19479         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
19480         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
19481         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
19482         include.
19483         [generic sys/param.h] (sys/param.h-includes): Remove variable.
19484         [generic sys/param.h] (sys/param.h-includes): Remove rule.
19485         [generic sys/param.h] ($(addprefix
19486         $(common-objpfx),$(sys/param.h-includes))): Likewise.
19487         [generic sys/param.h] (common-generated): Do not append to
19488         variable.
19489         [generic sys/param.h] (sysdep_headers): Likewise.
19490         [generic bits/errno.h] (before-compile): Do not append to
19491         variable.
19492         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
19493         rule.
19494         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
19495         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
19496         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
19497         [generic bits/errno.h] (common-generated): Do not append to
19498         variable.
19499         [generic bits/ioctls.h] (before-compile): Do not append to
19500         variable.
19501         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
19502         rule.
19503         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
19504         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
19505         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
19506         rule.
19507         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
19508         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
19509         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
19510         [generic bits/ioctls.h] (common-generated): Do not append to
19511         variable.
19512         [generic sys/syscall.h] (syscall.h): Remove variable.
19513         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
19514         rule.
19515         [generic sys/syscall.h] (before-compile): Do not append to
19516         variable.
19517         [generic sys/syscall.h] (common-generated): Likewise.
19518         * sysdeps/unix/errnos-tmpl.c: Remove file.
19519         * sysdeps/unix/errnos.awk: Likewise.
19520         * sysdeps/unix/ioctls-tmpl.c: Likewise.
19521         * sysdeps/unix/ioctls.awk: Likewise.
19522         * sysdeps/unix/mk-local_lim.c: Likewise.
19523         * sysdeps/unix/snarf-ioctls: Likewise.
19524
19525 2012-03-19  Richard Henderson  <rth@twiddle.net>
19526
19527         * sysdeps/i386/fpu/fenv_private.h: New file.
19528         * sysdeps/i386/fpu/math_private.h: Use it.
19529         (math_opt_barrier, math_force_eval): Remove.
19530         (libc_feholdexcept_setround_53bit): Remove.
19531         (libc_feupdateenv_53bit): Remove.
19532         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19533         (math_opt_barrier, math_force_eval): Remove.
19534         (libc_feholdexcept): Remove.
19535         (libc_feholdexcept_setround): Remove.
19536         (libc_fetestexcept, libc_fesetenv): Remove.
19537         (libc_feupdateenv_test): Remove.
19538         (libc_feupdateenv, libc_feholdsetround): Remove.
19539         (libc_feresetround): Remove.
19540
19541         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
19542         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
19543
19544         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
19545         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
19546         (libc_feupdateenv_testl): New.
19547         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
19548         (libc_feupdateenv_testf): New.
19549         (libc_feupdateenv): Use libc_feupdateenv_test.
19550         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
19551         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
19552
19553         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
19554         (libc_feholdsetroundf, libc_feholdsetroundl): New.
19555         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
19556         (libc_feresetround_noex): New.
19557         (libc_feresetround_noexf): New.
19558         (libc_feresetround_noexl): New.
19559         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
19560         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
19561         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
19562         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
19563         SET_RESTORE_ROUND.
19564         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19565         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
19566         (__cos): Likewise.
19567         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
19568         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
19569         SET_RESTORE_ROUND_NOEX.
19570         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
19571         SET_RESTORE_ROUND_NOEXF.
19572         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
19573         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
19574         (libc_feholdsetroundf): New.
19575         (libc_feresetround, libc_feresetroundf): New.
19576
19577         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
19578         (libc_feholdexcept_setround_53bit): Convert from macro to function.
19579         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
19580
19581         * sysdeps/generic/math_private.h: Include <fenv.h>.
19582         (default_libc_feholdexcept): New.
19583         (default_libc_feholdexcept_setround): New.
19584         (default_libc_fesetenv, default_libc_feupdateenv): New.
19585         (libc_feholdexcept): Only define if undefined.
19586         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
19587         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
19588         (libc_feholdexcept_setroundl): Likewise.
19589         (libc_feholdexcept_setround_53bit): Likewise.
19590         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
19591         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
19592         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
19593         (libc_feupdateenv_53bit): Likewise.
19594         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
19595         (libc_feholdexcept): Convert from macro to inline function.
19596         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
19597         (libc_fesetenv, libc_feupdateenv): Likewise.
19598
19599         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
19600         not previously defined.
19601         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
19602         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
19603         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
19604         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
19605         * sysdeps/ieee754/flt-32/math_private.h: New file.
19606         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
19607         math_private.h below SET_FLOAT_WORD.
19608         (__isnan, __isinf_ns, __finite): Remove.
19609         (__isnanf, __isinf_nsf, __finitef): Remove.
19610
19611 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
19612
19613         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19614
19615 2012-03-17  David S. Miller  <davem@davemloft.net>
19616
19617         [BZ #6471]
19618         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
19619         for 2.16.
19620
19621 2012-03-16  David S. Miller  <davem@davemloft.net>
19622
19623         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
19624         warnings.
19625
19626         [BZ #6471]
19627         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
19628         properly.
19629         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
19630         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
19631         sysdep_routines when subdir is sysvipc.
19632         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
19633         __getshmlba helper.
19634
19635         * sysdeps/sparc/fpu/libm-test/ulps: Update.
19636
19637 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19638
19639         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
19640         [__LP64__].
19641
19642 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19643
19644         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
19645         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
19646         (__lround): Renamed to ...
19647         (__llround): This.  Replace long int with long long int.
19648         Define lround functions as aliases of llround functions.
19649         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
19650
19651 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19652
19653         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
19654         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
19655         adresses to uintptr_t.  Replace "long int" and "unsigned long
19656         int" with "greg_t" on va_arg.
19657
19658 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19659
19660         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
19661         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
19662
19663         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
19664         Move e_machine check before EI_CLASS check.  Handle x32
19665         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
19666         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
19667         SKIP_EM_IA_64 and include
19668         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
19669
19670         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
19671         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
19672         (add_system_dir): New macro.
19673
19674         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
19675         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
19676
19677 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
19678
19679         [BZ #2551]
19680         [BZ #2552]
19681         [BZ #2553]
19682         [BZ #2554]
19683         [BZ #2562]
19684         [BZ #2563]
19685         [BZ #2565]
19686         [BZ #2566]
19687         [BZ #2576]
19688         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
19689         (y0): Likewise.
19690         * math/w_j0f.c (j0f): Likewise.
19691         (y0f): Likewise.
19692         * math/w_j0l.c (__j0l): Likewise.
19693         (__y0l): Likewise.
19694         * math/w_j1.c (j1): Likewise.
19695         (y1): Likewise.
19696         * math/w_j1f.c (j1f): Likewise.
19697         (y1f): Likewise.
19698         * math/w_j1l.c (__j1l): Likewise.
19699         (__y1l): Likewise.
19700         * math/w_jn.c (jn): Likewise.
19701         (yn): Likewise.
19702         * math/w_jnf.c (jnf): Likewise.
19703         (ynf): Likewise.
19704         * math/w_jnl.c (__jnl): Likewise.
19705         (__ynl): Likewise.
19706         * math/libm-test.inc (j0_test): Add more tests.
19707         (j1_test): Likewise.
19708         (jn_test): Likewise.  Add trailing semicolon to existing test.
19709         (y0_test): Likewise.
19710         (y1_test): Likewise.
19711         * sysdeps/i386/fpu/libm-test-ulps: Update.
19712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19713
19714         [BZ #13851]
19715         [BZ #13854]
19716         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
19717         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
19718         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
19719         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
19720         (__tanl): Set errno for infinite argument.
19721         * sysdeps/i386/fpu/mptan.c: Remove.
19722         * sysdeps/i386/fpu/s_tan.S: Likewise.
19723         * sysdeps/i386/fpu/s_tanl.S: Likewise.
19724         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
19725         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
19726         * math/libm-test.inc (tan_test): Add more tests and enable more
19727         tests for double and long double.
19728         * sysdeps/i386/fpu/libm-test-ulps: Update.
19729         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19730
19731 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
19732
19733         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
19734         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
19735
19736 2012-03-16  Roland McGrath  <roland@hack.frob.com>
19737
19738         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
19739         * configure.in: Use it for both main tree and add-ons.
19740         * configure: Regenerated.
19741
19742 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19743
19744         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
19745
19746 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
19747
19748         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
19749         in comment.
19750
19751         [BZ #13851]
19752         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
19753         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
19754         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
19755         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
19756         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
19757         infinite argument.
19758         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
19759         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
19760         != 0 for prec == 2.
19761         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
19762         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
19763         * sysdeps/i386/fpu/s_cosl.S: Likewise.
19764         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
19765         * sysdeps/i386/fpu/s_sinl.S: Likewise.
19766         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
19767         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
19768         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
19769         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
19770         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
19771         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
19772         * math/libm-test.inc (cos_test): Add more tests and enable more
19773         tests for long double.
19774         (sin_test): Likewise.
19775         (sincos_test): Likewise.
19776         * sysdeps/i386/fpu/libm-test-ulps: Update.
19777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19778
19779 2012-03-16  David S. Miller  <davem@davemloft.net>
19780
19781         * sysdeps/sparc/fpu/math_private.h: New file.
19782
19783 2012-03-15  David S. Miller  <davem@davemloft.net>
19784
19785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
19786         file.
19787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
19788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
19789         file.
19790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
19791         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
19792         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
19793         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
19794         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
19795         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
19796         sysdep routines.
19797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19798
19799         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
19800         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
19801
19802         * sysdeps/sparc/sparc-ifunc.h: New file.
19803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
19804         sparc-ifunc.h
19805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
19806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
19807         Likewise.
19808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
19809         Likewise.
19810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
19811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
19813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
19814         Likewise.
19815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
19816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
19817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
19818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
19819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
19820         Likewise.
19821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
19822         Likewise.
19823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
19824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
19826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
19827         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
19828         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
19829         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
19830         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
19831         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
19832         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
19833         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
19834         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
19835         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
19836         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
19837         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
19838         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
19839         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
19840         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
19841         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
19842         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
19843         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
19844         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
19845         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
19846         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
19847
19848 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19849
19850         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
19851         scaling.
19852         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19853
19854 2012-03-15  Andreas Jaeger  <aj@suse.de>
19855
19856         [BZ #13852]
19857         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
19858         ieee754/flt-32 implementation for sin, cos and sincos.
19859         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
19860         * sysdeps/i386/fpu/s_cosf.S: Likewise.
19861         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
19862         * sysdeps/i386/fpu/s_sinf.S: Likewise.
19863         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
19864         ieee754/flt-32 implementation for tan.
19865
19866         * math/libm-test.inc (cos_test): Enable some large input tests for
19867         float as well
19868         (sin_test): Likewise.
19869         (sincos_test): Likewise.
19870         (tan_test): Add tests for large input.
19871
19872         * sysdeps/i386/fpu/libm-test-ulps: Update.
19873
19874 2012-03-15  Andreas Jaeger  <aj@suse.de>
19875
19876         [BZ #13658]
19877         * math/libm-test.inc (cos_test): Add more test cases.
19878         (sin_test): Likewise.
19879         (sincos_test): Likewise.
19880
19881 2012-03-15  Andreas Jaeger  <aj@suse.de>
19882
19883         [BZ #13837]
19884         * math/libm-test.inc (cos_test): Add a test case for large input
19885         value.
19886         (sin_test): Likewise.
19887         (sincos_test): Likewise.
19888
19889 2012-03-15  Andreas Jaeger  <aj@suse.de>,
19890         Joseph Myers  <joseph@codesourcery.com>
19891
19892         [BZ #13658]
19893         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
19894         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
19895         * sysdeps/i386/fpu/branred.c: Likewise.
19896         * sysdeps/i386/fpu/dosincos.c: Likewise.
19897         * sysdeps/i386/fpu/mpa.c: Likewise.
19898         * sysdeps/i386/fpu/s_cos.S: Likewise.
19899         * sysdeps/i386/fpu/s_sin.S: Likewise.
19900         * sysdeps/i386/fpu/s_sincos.S: Likewise.
19901         * sysdeps/i386/fpu/sincos32.c: Likewise.
19902
19903         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
19904         Define.
19905         (libc_feupdateenv_53bit): Define.
19906         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
19907         Define.
19908         (libc_feupdateenv_53bit): Define.
19909
19910         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
19911         53 bit (without extend i386 double precision).
19912
19913         * math/libm-test.inc (sincos_test): Add tests for large input.
19914         (sin): Likewise.
19915         (cos): Likewise.
19916
19917         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
19918
19919 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19920
19921         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19922
19923 2012-03-15  David S. Miller  <davem@davemloft.net>
19924
19925         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
19926         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
19927         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
19928         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
19929         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
19930         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
19931         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
19932         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
19933         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
19934         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
19935         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
19936         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
19937         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
19938         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
19939         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
19940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
19941         file.
19942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
19943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
19944         file.
19945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
19946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
19947         file.
19948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
19949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
19950         file.
19951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
19952         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
19953         fmin/fmax sysdep routines.
19954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19955
19956 2012-03-14  David S. Miller  <davem@davemloft.net>
19957
19958         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
19959         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
19960         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
19961         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
19962         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
19963         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
19964         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
19965         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
19966         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
19967         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
19968         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
19969         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
19970         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
19971         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
19972         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
19973         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
19974         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
19975         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
19976         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
19977         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
19978         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
19979         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
19980         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
19981         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
19982         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
19983         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
19984         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
19985         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
19986         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
19987         routines.
19988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
19989         file.
19990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
19991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
19992         file.
19993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
19994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
19995         file.
19996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
19997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
19998         file.
19999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
20000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
20001         file.
20002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
20003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
20004         file.
20005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
20006         file.
20007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
20008         file.
20009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
20010         file.
20011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
20012         New file.
20013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
20014         file.
20015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
20016         file.
20017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
20018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
20019         file.
20020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
20021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
20022         file.
20023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
20024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
20025         file.
20026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
20027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
20028         VIS3 routines.
20029
20030         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
20031         New file.
20032
20033         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20034
20035         * sysdeps/sparc/configure.in: New file.
20036         * sysdeps/sparc/configure: Generate.
20037         * configure.in (libc_cv_sparc_as_vis3): Substitute.
20038         * configure: Regenerate.
20039         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
20040         * config.make.in (have-as-vis3): New.
20041         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
20042         available use -Av9d instead of -Av9a.
20043         * sysdeps/sparc/sparc64/Makefile: Likewise.
20044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
20045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
20046         New file.
20047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
20048         file.
20049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
20050         New file.
20051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
20052         file.
20053         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
20054         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
20055         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
20056         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
20057         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
20058
20059         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
20060         fzeros/fnegs to load 0x80000000 into a float register instead of
20061         using the stack.
20062         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
20063
20064 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
20065
20066         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20067         bits/syscall.h.
20068         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
20069         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
20070         ($(inst_includedir)/bits/syscall.h): Remove rule.
20071         ($(objpfx)bits/syscall.d): Include instead of
20072         $(objpfx)syscall-list.d.
20073         (generated): Change syscall-list.h and syscall-list.d to
20074         bits/syscall.h and bits/syscall.d.
20075
20076 2012-03-14  Roland McGrath  <roland@hack.frob.com>
20077
20078         [BZ #13846]
20079         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
20080
20081 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
20082
20083         [BZ #13841]
20084         * math/s_csqrt.c: Include <float.h>.
20085         (__csqrt): Scale large or subnormal inputs.
20086         * math/s_csqrtf.c: Likewise.
20087         * math/s_csqrtl.c: Likewise.
20088         * math/libm-test.inc (csqrt_test): Add more tests.
20089         * sysdeps/i386/fpu/libm-test-ulps: Update.
20090         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20091
20092         [BZ #13840]
20093         * math/libm-test.inc (hypot_test): Add more tests.
20094
20095 2012-03-13  David S. Miller  <davem@davemloft.net>
20096
20097         [BZ #13840]
20098         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
20099         double-precision for the calculation instead of scaling.
20100
20101 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
20102
20103         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
20104         manipulate bits before adding and subtracting TWO52[sx].
20105         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
20106         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
20107         Likewise.
20108         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
20109
20110 2012-03-13  David S. Miller  <davem@davemloft.net>
20111
20112         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
20113         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
20114         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
20115         rtld-global-offsets.h
20116         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20117
20118         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
20119         large parameters.
20120
20121         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
20122
20123         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
20124         'err' in the ifdef scope in which it is actually used.
20125
20126         * nss/nss_db/db-init.c: Include string.h
20127
20128 2012-03-12  David S. Miller  <davem@davemloft.net>
20129
20130         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
20131         masking out of the most significant byte of random value used.
20132         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20133         Fix coding style in previous change.
20134
20135         * sysdeps/unix/sysv/linux/kernel-features.h
20136         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
20137         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
20138         expression.
20139         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
20140         later.
20141
20142 2012-03-11  David S. Miller  <davem@davemloft.net>
20143
20144         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
20145         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
20146         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
20147         for 'resultvar' otherwise things get truncated on 64-bit.
20148
20149         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20150         Fix masking out of the most significant byte of random value used.
20151
20152         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20153
20154 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
20155
20156         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20157
20158 2012-03-09  David S. Miller  <davem@davemloft.net>
20159
20160         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
20161         variables with appropriate CPP guards.
20162         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
20163         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
20164         on resulting framesize and the management of the outregs buffer for pltexit.
20165         Preserve floating point return values across _dl_call_pltexit call.
20166         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
20167         framesize and the management of the outregs buffer for pltexit.
20168         Preserve floating point return values across _dl_call_pltexit
20169         call.
20170         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
20171         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
20172         (print_exit): Fix format string for return register value.
20173
20174 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
20175
20176         * sunrpc/Makefile (others): Add rpcgen.
20177         ($(objpfx)rpcgen): Remove special build rule and dependency on
20178         libc.
20179         * sunrpc/rpcgen.c: New file.
20180
20181 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
20182
20183         [BZ #13673]
20184         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
20185         * stdio-common/bug-vfprintf-nargs.c: Likewise.
20186         * sysdeps/i386/crti.S: Likewise.
20187         * sysdeps/i386/crtn.S: Likewise.
20188         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
20189         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
20190         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
20191         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
20192         * sysdeps/sh/crti.S: Likewise.
20193         * sysdeps/sh/crtn.S: Likewise.
20194         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20195
20196         [BZ #13673]
20197         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
20198         with URL.
20199         * locale/programs/locfile-kw.gperf: Likewise.
20200         * locale/programs/charmap-kw.h: Regenerated.
20201         * locale/programs/locfile-kw.h: Likewise.
20202
20203         [BZ #13673]
20204         * intl/plural.y: Replace FSF snail mail address with URL.
20205         * intl/plural.c: Regenerated.
20206
20207 2012-03-09  Richard Henderson  <rth@twiddle.net>
20208
20209         * include/math_private.h: Remove file.
20210         * math/math_private.h: Move file ...
20211         * sysdeps/generic/math_private.h: ... here.
20212
20213         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
20214         * sysdeps/powerpc/fpu/math_private.h: Likewise.
20215         * sysdeps/x86_64/fpu/math_private.h: Likewise.
20216
20217         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
20218         and <math_private.h>.
20219         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
20220         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
20221         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
20222         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
20223         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
20224         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
20225         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
20226         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20227         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
20228         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
20229         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20230         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20231         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
20232         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20233         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
20234         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
20235         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20236         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
20237         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
20238         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
20239         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20240         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
20241         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
20242         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20243         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
20244         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
20245         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
20246         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
20247         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20248         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
20249         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
20250         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20251         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
20252         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
20253         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
20254         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
20255         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
20256         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
20257         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
20258         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20259         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
20260         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
20261         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
20262         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
20263         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
20264         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20265         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
20266         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
20267         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
20268         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
20269         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
20270         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
20271         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
20272         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
20273         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
20274         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
20275         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20276         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
20277         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
20278         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
20279         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
20280         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
20281         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20282         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
20283         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
20284         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
20285         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
20286         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20287         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
20288         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
20289         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
20290         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20291         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
20292         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20293         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
20294         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
20295         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
20296         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20297         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
20298         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
20299         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
20300         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
20301         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
20302         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
20303         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
20304         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
20305         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
20306         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
20307         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
20308         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20309         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20310         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
20311         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20312         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
20313         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
20314         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
20315         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
20316         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
20317         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
20318         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
20319         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
20320         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
20321         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
20322         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
20323         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
20324         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
20325         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
20326         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
20327         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
20328         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
20329         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
20330         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
20331         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
20332         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
20333         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
20334         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20335         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
20336         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
20337         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
20338         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
20339         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
20340         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
20341         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20342         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
20343         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
20344         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
20345         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
20346         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
20347         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
20348         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
20349         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
20350         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
20351         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
20352         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
20353         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
20354         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
20355         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
20356         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
20357         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
20358         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
20359         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20360         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
20361         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
20362         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
20363         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
20364         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20365         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
20366         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
20367         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
20368         * sysdeps/ieee754/k_standard.c: Likewise.
20369         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
20370         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
20371         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20372         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
20373         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
20374         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
20375         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
20376         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
20377         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
20378         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
20379         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
20380         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
20381         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
20382         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
20383         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
20384         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
20385         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
20386         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
20387         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
20388         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
20389         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
20390         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
20391         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
20392         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
20393         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
20394         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
20395         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
20396         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
20397         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
20398         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
20399         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
20400         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
20401         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
20402         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
20403         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
20404         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
20405         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
20406         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
20407         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
20408         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
20409         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
20410         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
20411         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
20412         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
20413         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
20414         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
20415         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
20416         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
20417         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
20418         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
20419         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
20420         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
20421         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
20422         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
20423         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
20424         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
20425         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
20426         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
20427         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
20428         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
20429         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
20430         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
20431         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20432         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
20433         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20434         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20435         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
20436         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
20437         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
20438         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
20439         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
20440         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20441         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
20442         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
20443         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
20444         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
20445         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
20446         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
20447         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20448         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
20449         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
20450         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
20451         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
20452         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
20453         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
20454         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
20455         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
20456         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
20457         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
20458         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
20459         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
20460         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
20461         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
20462         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
20463         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
20464         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
20465         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
20466         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
20467         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
20468         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
20469         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
20470         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
20471         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
20472         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
20473         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
20474         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
20475         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
20476         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
20477         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
20478         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
20479         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
20480         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
20481         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
20482         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20483         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
20484         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
20485         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
20486         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20487         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
20488         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
20489         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
20490         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
20491         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
20492         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
20493         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20494         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
20495         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
20496         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
20497         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
20498         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
20499         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
20500         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
20501         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
20502         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
20503         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
20504         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
20505         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
20506         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
20507         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
20508         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
20509         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
20510         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
20511         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
20512         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
20513         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
20514         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
20515         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
20516         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
20517         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
20518         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
20519         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
20520         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
20521         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
20522         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
20523         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
20524         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
20525         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
20526         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
20527         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
20528         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
20529         * sysdeps/ieee754/s_lib_version.c: Likewise.
20530         * sysdeps/ieee754/s_matherr.c: Likewise.
20531         * sysdeps/ieee754/s_signgam.c: Likewise.
20532         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
20533         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
20534         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
20535         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
20536         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
20537         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
20538         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
20539         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
20540         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
20541         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
20542         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
20543         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
20544         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
20545         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
20546         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
20547         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
20548         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
20549         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
20550         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
20551         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
20552         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
20553
20554 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
20555
20556         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
20557         * sunrpc/rpc_main.c: Likewise.
20558         * sunrpc/rpc_svcout.c: Likewise.
20559
20560 2012-03-09  David S. Miller  <davem@davemloft.net>
20561
20562         * include/math_private.h: New file.
20563
20564 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
20565
20566         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
20567         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
20568         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
20569         from <bits/socket_type.h>.
20570         (enum __socket_type): Don't define here.
20571         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
20572         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20573         bits/socket_type.h.
20574
20575         [BZ #13566]
20576         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
20577         checking __USE_GNU.
20578
20579         * Makerules ($(inst_includedir)/%.h): New rule.
20580         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
20581         (install-others): Remove variable setting.
20582         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
20583
20584 2012-03-08  Richard Henderson  <rth@twiddle.net>
20585
20586         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
20587         from macro to inline function; merge with the
20588         !__LIBC_INTERNAL_MATH_INLINES version.
20589         (__ieee754_sqrtf): Likewise.
20590
20591         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
20592         to inline function.
20593         (__rintf, __floor, __floorf): Likewise.
20594
20595         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
20596         macro to inline function.
20597         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
20598
20599         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
20600         not <math/math_private.h>.
20601
20602 2012-03-08  David S. Miller  <davem@davemloft.net>
20603
20604         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
20605         copyright year.
20606         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
20607
20608 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
20609
20610         * resolv/gai_misc.c (handle_requests): Fix struct timespec
20611         normalization.
20612         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
20613         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
20614
20615 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
20616
20617         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
20618         be defined individually, they must be defined as a block.  Define
20619         S for printing a string instead of hidint the different by using a
20620         macro for adding the 'l'.
20621         * stdio-common/tst-fphex-wide.c: Adjust.
20622
20623 2012-03-07  Marek Polacek  <polacek@redhat.com>
20624
20625         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
20626
20627 2012-03-08  Marek Polacek  <polacek@redhat.com>
20628
20629         [BZ #13806]
20630         * stdio-common/Makefile (tests): Add tst-fphex-wide.
20631         * stdio-common/tst-fphex.c: Define a few macros to make the
20632         test reusable.  Use them.
20633         * stdio-common/tst-fphex-wide.c: New file.
20634
20635 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
20636
20637         [BZ #6911]
20638         * manual/macros.texi (gnusystems): New macro.
20639         (nongnusystems): Likewise.
20640         (gnulinuxhurdsystems): Likewise.
20641         (gnuhurdsystems): Likewise..
20642         (gnulinuxsystems): Likewise.
20643         * manual/charset.texi: Use new macros or @theglibc{} to refer to
20644         variants of the GNU system, not "GNU system".
20645         * manual/conf.texi: Likewise.
20646         * manual/errno.texi: Likewise.  Update example of errno macro
20647         expansion.
20648         * manual/filesys.texi: Likewise.
20649         (getumask): Document as specific to GNU/Hurd.
20650         * manual/install.texi: Likewise.  Reword some references to
20651         GNU/Linux.
20652         * manual/intro.texi: Likewise.
20653         * manual/io.texi: Likewise.
20654         (File Name Portability): Detail which constraints are inapplicable
20655         to all GNU systems and which are only inapplicable to GNU/Hurd.
20656         * manual/job.texi: Likewise.
20657         * manual/llio.texi: Likewise.
20658         (O_NOCTTY): Document as present on GNU/Linux.
20659         * manual/maint.texi: Likewise.
20660         * manual/memory.texi: Likewise.
20661         * manual/pattern.texi: Likewise.
20662         * manual/pipe.texi: Likewise.
20663         * manual/process.texi: Likewise.
20664         * manual/resource.texi: Likewise.
20665         (RUSAGE_CHILDREN): Remove statement about specifying a particular
20666         child on GNU/Hurd.
20667         * manual/setjmp.texi: Likewise.
20668         * manual/signal.texi: Likewise.
20669         * manual/startup.texi: Likewise.
20670         * manual/stdio.texi: Likewise.
20671         * manual/terminal.texi: Likewise.
20672         (ONLCR): Document as POSIX.
20673         (OXTABS): Document availability on GNU/Linux as XTABS.
20674         (ONOEOT): Document availability separately from other bits.
20675         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
20676         * manual/time.texi: Likewise.
20677         * manual/users.texi: Likewise.
20678         * INSTALL: Regenerated.
20679         * sysdeps/gnu/errlist.c: Regenerated.
20680
20681         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
20682         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
20683         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
20684         puts.
20685         * configure: Regenerated.
20686
20687 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
20688
20689         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
20690         default includes instead of AC_HEADER_CHECK.
20691         * sysdeps/i386/configure: Regenerated.
20692
20693         [BZ #10716]
20694         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
20695         * math/s_cacoshf.c (__cacoshf): Likewise.
20696         * math/s_cacoshl.c (__cacoshl): Likewise.
20697         * math/s_casinh.c (__casinh): Set signs of result from argument.
20698         * math/s_casinhf.c (__casinhf): Likewise.
20699         * math/s_casinhl.c (__casinhl): Likewise.
20700         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
20701         (casinh_test): Add more tests.
20702         * sysdeps/i386/fpu/libm-test-ulps: Update.
20703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20704
20705 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
20706
20707         * po/zh_TW.po: Update from translation team.
20708
20709         * login/Makefile (distribute): Remove variable.
20710         * catgets/Makefile: Likewise.
20711         * mach/Makefile: Likewise.
20712         * malloc/Makefile: Likewise.
20713         * misc/Makefile: Likewise.
20714         * iconv/Makefile: Likewise.
20715         * nscd/Makefile: Likewise.
20716         * hurd/Makefile: Likewise.
20717         * manual/Makefile: Likewise.
20718         * locale/Makefile: Likewise.
20719         * intl/Makefile: Likewise.
20720         * conform/Makefile: Likewise.
20721         * nss/Makefile: Likewise.
20722         * time/Makefile: Likewise.
20723         * soft-fp/Makefile: Likewise.
20724         * dirent/Makefile: Likewise.
20725         * gmon/Makefile: Likewise.
20726         * po/Makefile: Likewise.
20727         * rt/Makefile: Likewise.
20728         * socket/Makefile: Likewise.
20729         * math/Makefile: Likewise.
20730         * signal/Makefile: Likewise.
20731         * debug/Makefile: Likewise.
20732         * elf/Makefile: Likewise.
20733         * timezone/Makefile: Likewise.
20734         * stdlib/Makefile: Likewise.
20735         * iconvdata/Makefile: Likewise.
20736         * sunrpc/Makefile: Likewise.
20737         * io/Makefile: Likewise.
20738         * argp/Makefile: Likewise.
20739         * inet/Makefile: Likewise.
20740         * hesiod/Makefile: Likewise.
20741         * grp/Makefile: Likewise.
20742         * csu/Makefile: Likewise.
20743         * wctype/Makefile: Likewise.
20744         * crypt/Makefile: Likewise.
20745         * libio/Makefile: Likewise.
20746         * string/Makefile: Likewise.
20747         * nis/Makefile: Likewise.
20748         * resolv/Makefile: Likewise.
20749         * stdio-common/Makefile: Likewise.
20750         * wcsmbs/Makefile: Likewise.
20751         * dlfcn/Makefile: Likewise.
20752         * posix/Makefile: Likewise.
20753
20754         [BZ #6959]
20755         * timezone/Makefile: Don't install timezone files, just the programs
20756         and scripts.
20757
20758 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
20759
20760         * nss/databases.def: Add missing gshadow entry.
20761
20762         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
20763
20764 2012-03-06  Marek Polacek  <polacek@redhat.com>
20765
20766         [BZ #13726]
20767         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
20768         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
20769         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
20770         * stdio-common/tst-long-dbl-fphex.c: New file.
20771
20772 2012-03-06  David S. Miller  <davem@davemloft.net>
20773
20774         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
20775         (set_obp_int): New function.
20776         (get_obp_int): New function.
20777         (__get_clockfreq_via_dev_openprom): Likewise.
20778         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
20779         Avoid unused variable warnings on 'val' and use builtin_expect.
20780         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
20781         __builtin_expect.
20782         (INLINE_CLONE_SYSCALL): Likewise.
20783
20784 2012-03-05  David S. Miller  <davem@davemloft.net>
20785
20786         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20787
20788 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
20789
20790         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20791
20792         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
20793         only for |x| >= 40.
20794         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20795
20796 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20797
20798         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
20799         Replace gettimeofday with __vdso_gettimeofday.
20800
20801         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20802         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
20803         __vdso_clock_gettime and __vdso_getcpu.
20804
20805         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
20806         time with __vdso_time.
20807
20808 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20809
20810         * manual/lang.texi (size_t): Note types to which size_t may be
20811         equivalent with the GNU C Library, but do not describe when
20812         differences between them are significant.
20813
20814 2012-03-05  Andreas Jaeger  <aj@suse.de>
20815
20816         * sysdeps/i386/fpu/libm-test-ulps: Update.
20817
20818 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20819
20820         [BZ #3976]
20821         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
20822         (__ieee754_pow): Save and restore rounding mode and use
20823         round-to-nearest for main computations.
20824         * math/libm-test.inc (pow_test_tonearest): New function.
20825         (pow_test_towardzero): Likewise.
20826         (pow_test_downward): Likewise.
20827         (pow_test_upward): Likewise.
20828         (main): Call the new functions.
20829         * sysdeps/i386/fpu/libm-test-ulps: Update.
20830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20831
20832         [BZ #3976]
20833         * math/libm-test.inc (cosh_test_tonearest): New function.
20834         (cosh_test_towardzero): Likewise.
20835         (cosh_test_downward): Likewise.
20836         (cosh_test_upward): Likewise.
20837         (sinh_test_tonearest): Likewise.
20838         (sinh_test_towardzero): Likewise.
20839         (sinh_test_downward): Likewise.
20840         (sinh_test_upward): Likewise.
20841         (main): Call the new functions.
20842         * sysdeps/i386/fpu/libm-test-ulps: Update.
20843         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20844
20845 2012-03-05  Tom de Vries  <tom@codesourcery.com>
20846
20847         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
20848         default stack guard is set in last bytes.
20849         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
20850
20851 2012-03-05  Kees Cook  <keescook@chromium.org>
20852
20853         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
20854
20855         [BZ #13656]
20856         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
20857         possibly allocate from heap instead of stack.
20858         * stdio-common/bug-vfprintf-nargs.c: New file.
20859         * stdio-common/Makefile (tests): Add nargs overflow test.
20860
20861 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
20862
20863         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20864
20865 2012-03-03  Marek Polacek  <polacek@redhat.com>
20866
20867         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
20868         * math/math_private.h: Likewise.
20869         * stdlib/tst-strtod.c: Likewise.
20870         * sysdeps/i386/i486/bits/atomic.h: Likewise.
20871         * sysdeps/x86_64/bits/atomic.h: Likewise.
20872
20873 2012-03-02  David S. Miller  <davem@davemloft.net>
20874
20875         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
20876         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
20877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
20878         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
20879         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
20880         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
20881         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
20882         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
20883
20884 2012-03-02  Roland McGrath  <roland@hack.frob.com>
20885
20886         [BZ #13792]
20887         * manual/examples/README: New file, says the example source files
20888         can be used under GPL>=2.
20889         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
20890         line containing just "*/".
20891         * manual/examples/add.c: Add copyright header (GPL>=2).
20892         * manual/examples/argp-ex1.c: Likewise.
20893         * manual/examples/argp-ex2.c: Likewise.
20894         * manual/examples/argp-ex3.c: Likewise.
20895         * manual/examples/argp-ex4.c: Likewise.
20896         * manual/examples/atexit.c: Likewise.
20897         * manual/examples/db.c: Likewise.
20898         * manual/examples/dir.c: Likewise.
20899         * manual/examples/dir2.c: Likewise.
20900         * manual/examples/execinfo.c: Likewise.
20901         * manual/examples/filecli.c: Likewise.
20902         * manual/examples/filesrv.c: Likewise.
20903         * manual/examples/fmtmsgexpl.c: Likewise.
20904         * manual/examples/genpass.c: Likewise.
20905         * manual/examples/inetcli.c: Likewise.
20906         * manual/examples/inetsrv.c: Likewise.
20907         * manual/examples/isockad.c: Likewise.
20908         * manual/examples/longopt.c: Likewise.
20909         * manual/examples/memopen.c: Likewise.
20910         * manual/examples/memstrm.c: Likewise.
20911         * manual/examples/mkfsock.c: Likewise.
20912         * manual/examples/mkisock.c: Likewise.
20913         * manual/examples/mygetpass.c: Likewise.
20914         * manual/examples/pipe.c: Likewise.
20915         * manual/examples/popen.c: Likewise.
20916         * manual/examples/rprintf.c: Likewise.
20917         * manual/examples/search.c: Likewise.
20918         * manual/examples/select.c: Likewise.
20919         * manual/examples/setjmp.c: Likewise.
20920         * manual/examples/sigh1.c: Likewise.
20921         * manual/examples/sigusr.c: Likewise.
20922         * manual/examples/stpcpy.c: Likewise.
20923         * manual/examples/strdupa.c: Likewise.
20924         * manual/examples/strftim.c: Likewise.
20925         * manual/examples/strncat.c: Likewise.
20926         * manual/examples/subopt.c: Likewise.
20927         * manual/examples/swapcontext.c: Likewise.
20928         * manual/examples/termios.c: Likewise.
20929         * manual/examples/testopt.c: Likewise.
20930         * manual/examples/testpass.c: Likewise.
20931         * manual/examples/timeval_subtract.c: Likewise.
20932
20933         [BZ #13792]
20934         * manual/time.texi (Elapsed Time): Move timeval_subtract example
20935         function to ...
20936         * manual/timeval_subtract.c.texi: ... here, new file.
20937
20938 2012-03-02  David S. Miller  <davem@davemloft.net>
20939
20940         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
20941
20942 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
20943
20944         [BZ #3976]
20945         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
20946         (__sin): Save and restore rounding mode and use round-to-nearest
20947         for all computations.
20948         (__cos): Save and restore rounding mode and use round-to-nearest
20949         for all computations.
20950         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
20951         <fenv.h>.
20952         (tan): Save and restore rounding mode and use round-to-nearest for
20953         all computations.
20954         * math/libm-test.inc (cos_test_tonearest): New function.
20955         (cos_test_towardzero): Likewise.
20956         (cos_test_downward): Likewise.
20957         (cos_test_upward): Likewise.
20958         (sin_test_tonearest): Likewise.
20959         (sin_test_towardzero): Likewise.
20960         (sin_test_downward): Likewise.
20961         (sin_test_upward): Likewise.
20962         (tan_test_tonearest): Likewise.
20963         (tan_test_towardzero): Likewise.
20964         (tan_test_downward): Likewise.
20965         (tan_test_upward): Likewise.
20966         (main): Call the new functions.
20967         * sysdeps/i386/fpu/libm-test-ulps: Update.
20968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20969
20970         [BZ #10135]
20971         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
20972         small n, then large n, before computing and testing k+n.
20973         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
20974         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
20975         Likewise.
20976         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
20977         Likewise.
20978         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
20979         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
20980         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
20981         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
20982         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20983         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20984         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
20985         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
20986         * math/libm-test.inc (scalbn_test): Add more tests.
20987         (scalbln_test): Likewise.
20988
20989         * manual/filesys.texi (mode_t): Describe constraints on size and
20990         signedness, not exact equivalence to a particular type.
20991         (ino_t): Likewise.
20992         (ino64_t): Likewise.
20993         (dev_t): Likewise.
20994         (nlink_t): Likewise.
20995         (blkcnt_t): Likewise.
20996         (blkcnt64_t): Likewise.
20997         * manual/llio.texi (off_t): Likewise.
20998
20999         [BZ #3976]
21000         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
21001         (__ieee754_exp): Save and restore rounding mode and use
21002         round-to-nearest for all computations.
21003         * math/libm-test.inc (exp_test_tonearest): New function.
21004         (exp_test_towardzero): Likewise.
21005         (exp_test_downward): Likewise.
21006         (exp_test_upward): Likewise.
21007         (main): Call the new functions.
21008         * sysdeps/i386/fpu/libm-test-ulps: Update.
21009         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21010
21011 2012-03-01  Chris Demetriou  <cgd@google.com>
21012
21013         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
21014         have predictable order.
21015
21016 2012-03-01  David S. Miller  <davem@davemloft.net>
21017
21018         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
21019
21020         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
21021         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
21022         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
21023         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
21024
21025         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
21026         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
21027         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
21028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
21029         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
21030         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
21031         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
21032         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
21033         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
21034
21035         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21036
21037         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
21038         * sysdeps/sparc/fpu/libm-test-ulps: to here.
21039         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
21040
21041         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
21042         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
21043         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
21044         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
21045         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
21046         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
21047         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
21048         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
21049         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
21050         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
21051         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
21052         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21053         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
21054         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
21055         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
21056         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21057         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
21058         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
21059         * sysdeps/sparc/elf/configure: Regenerated.
21060
21061 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
21062
21063         * configure.in (AS, LD): Require binutils 2.20 or later.
21064         * configure: Regenerated.
21065         * manual/install.texi (Tools for Compilation): Give binutils 2.20
21066         as required minimum version.
21067         * INSTALL: Regenerated.
21068
21069         [BZ #2541]
21070         [BZ #4108]
21071         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
21072         before squaring exponent.
21073         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
21074         bottom long double and 27 bits of top long double before squaring
21075         exponent.
21076         * math/libm-test.inc (erfc_test): Add more tests.
21077         * sysdeps/i386/fpu/libm-test-ulps: Update.
21078         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21080
21081 2012-03-01  Kai Tietz  <ktietz@redhat.com>
21082
21083         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
21084         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
21085         containing bit-fields.
21086         * soft-fp/extended.h (_FP_UNION_E): Likewise.
21087         * soft-fp/single.h (_FP_UNION_S): Likewise.
21088         * soft-fp/double.h (_FP_UNION_D): Likewise.
21089
21090 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
21091
21092         [BZ #13786]
21093         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
21094         not include ../strcmp.S.
21095         [USE_AS_STRNCASECMP_L]: Likewise.
21096         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
21097         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
21098         * sysdeps/i386/i686/multiarch/strncase_l-c.c
21099         (__strncasecmp_l_ia32): Define as alias to
21100         __strncasecmp_l_nonascii.
21101
21102         [BZ #5794]
21103         * math/libm-test.inc (expm1_test): Add test for bug 5794.
21104         * sysdeps/i386/fpu/libm-test-ulps: Update.
21105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21106
21107         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
21108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21109
21110 2012-02-29  Jeff Law  <law@redhat.com>
21111
21112         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
21113         out of bounds read.
21114
21115 2012-02-29  Marek Polacek  <polacek@redhat.com>
21116
21117         [BZ #13706]
21118         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
21119         * elf/Makefile: Add rules to run tst-unused-dep.out.
21120
21121 2012-02-28  David S. Miller  <davem@davemloft.net>
21122
21123         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
21124         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
21125         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
21126         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
21127         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
21128         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
21129
21130 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
21131
21132         * math/libm-test.inc (llround_test): Move one test from
21133         lround_test.  Use TEST_f_L in moved test.
21134         (lround_test): Move misplaced test to llround_test.  Add testcase
21135         from bug 2561.
21136
21137 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
21138
21139         * sysdeps/x86_64/fpu/e_expf.S: New file.
21140         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
21141
21142 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
21143
21144         [BZ #13637]
21145         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
21146         of remain_len that may cause incomplete multi-byte character and
21147         false match.
21148         * posix/bug-regex33.c: New file.
21149         * posix/Makefile (tests): Add bug-regex33.
21150
21151 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
21152
21153         * manual/macros.texi: New file.
21154         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
21155         * manual/libc.texinfo: Include macros.texi.
21156         * manual/creatute.texi: Likewise.
21157         * manual/install.texi: Likewise.
21158         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
21159         @glibcadj{} in references to the GNU C Library.
21160         * manual/charset.texi: Likewise.
21161         * manual/conf.texi: Likewise.
21162         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
21163         when not using those macros.
21164         * manual/creature.texi: Likewise.
21165         * manual/crypt.texi: Likewise.
21166         * manual/errno.texi: Likewise.
21167         * manual/filesys.texi: Likewise.
21168         * manual/header.texi: Likewise.
21169         * manual/install.texi: Likewise.
21170         * manual/intro.texi: Likewise.
21171         * manual/io.texi: Likewise.
21172         * manual/job.texi: Likewise.
21173         * manual/lang.texi: Likewise.
21174         * manual/libc.texiinfo: Likewise.
21175         * manual/llio.texi: Likewise.
21176         * manual/locale.texi: Likewise.
21177         * manual/maint.texi: Likewise.
21178         * manual/math.texi: Likewise.
21179         * manual/memory.texi: Likewise.
21180         * manual/message.texi: Likewise.
21181         * manual/nss.texi: Likewise.
21182         * manual/pattern.texi: Likewise.
21183         * manual/process.texi: Likewise.
21184         * manual/resource.texi: Likewise.
21185         * manual/search.texi: Likewise.
21186         * manual/setjmp.texi: Likewise.
21187         * manual/signal.texi: Likewise.
21188         * manual/socket.texi: Likewise.
21189         * manual/startup.texi: Likewise.
21190         * manual/stdio.texi: Likewise.
21191         * manual/string.texi: Likewise.
21192         * manual/sysinfo.texi: Likewise.
21193         * manual/syslog.texi: Likewise.
21194         * manual/terminal.texi: Likewise.
21195         * manual/time.texi: Likewise.
21196         * manual/users.texi: Likewise.
21197         * INSTALL: Regenerated.
21198         * NOTES: Regenerated.
21199         * sysdeps/gnu/errlist.c: Regenerated.
21200
21201 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
21202
21203         * include/dirent.h: Include <dirstream.h> before
21204         <dirent/dirent.h>.
21205
21206 2012-02-28  David S. Miller  <davem@davemloft.net>
21207
21208         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
21209         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
21210         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
21211         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
21212
21213 2012-02-27  David S. Miller  <davem@davemloft.net>
21214
21215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
21216         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
21217         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
21218         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
21219
21220         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
21221         frame pointer instead of stack pointer relative arg slot.
21222         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
21223         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
21224         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
21225
21226 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
21227
21228         [BZ #3992]
21229         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
21230
21231 2012-02-27  David S. Miller  <davem@davemloft.net>
21232
21233         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
21234         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
21235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
21236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
21237         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
21238         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
21239         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
21240         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
21241
21242 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
21243
21244         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
21245         later.  Allow versions 5-9.
21246         * configure: Regenerated.
21247         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
21248         required minimum version and 4.6 as recommended version.  Do not
21249         mention bugs in GCC 2.7 and 2.8.
21250         * INSTALL: Regenerated.
21251
21252 2012-02-27  David S. Miller  <davem@davemloft.net>
21253
21254         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
21255         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
21256         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
21257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
21258         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
21259         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
21260         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
21261         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
21262
21263         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
21264         manipulate bits before adding and subtracting TWO112[sx].
21265         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
21266
21267 2012-02-27  Roland McGrath  <roland@hack.frob.com>
21268
21269         [BZ #13775]
21270         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
21271         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
21272         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
21273         being in POSIX, because they are in 1003.1-2008.
21274
21275         * rt/tst-aio.c: Include <fcntl.h>.
21276         * rt/tst-aio7.c: Likewise.
21277         * rt/tst-aio64.c: Likewise.
21278
21279         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
21280
21281 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
21282
21283         * manual/install.texi (--with-headers): Describe headers as
21284         interface headers, not private headers.
21285         (Specific advice for GNU/Linux systems): Describe use of headers
21286         from "make headers_install", not private headers from older
21287         kernels.
21288         * INSTALL: Regenerated.
21289         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
21290         Change to 2.6.19.
21291         * sysdeps/unix/sysv/linux/configure: Regenerated.
21292
21293         * manual/llio.texi (fclean): Remove documentation.
21294
21295         * manual/Makefile (libc-texi-generated): New variable.  Include
21296         version.texi.
21297         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
21298         $(libc-texi-generated), not duplicated list of files.
21299         (version.texi, stamp-version): New rules.
21300         (realclean): Remove $(libc-texi-generated), not individual files
21301         from that list.  Do not remove dir-add.texinfo.
21302         * manual/libc.texinfo: Comment out uses of edition numbers and
21303         references to printed manual.  Remove last-updated dates.
21304         (EDITION): Comment out.
21305         (ISBN): Likewise.
21306         (VERSION, UPDATED): Remove.
21307         (version.texi): Include.
21308
21309 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
21310
21311         * sysdeps/posix/spawni.c: Include <signal.h>.
21312         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
21313         * sysdeps/pthread/aio_fsync.c: Likewise.
21314
21315 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
21316
21317         * conform/Makefile (tests): Run only when not cross-compiling and
21318         when fast-check is not defined.
21319
21320         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
21321         * conform/data/limits.h-data: Fixes for POSIX2008.
21322         * conform/run-conformtest.sh: Run all tests.
21323         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
21324         headers.
21325         * include/bits/dlfcn.h: Likewise.
21326         * include/langinfo.h: Likewise.
21327         * include/monetary.h: Likewise.
21328         * include/sys/poll.h: Likewise.
21329
21330         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
21331         for __USE_GNU.
21332         * posix/spawn.h: Define __need_sigset_t.
21333         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
21334         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
21335         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
21336         to get sigevent_t only.
21337         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
21338         only for __USE_GNU.
21339         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21340         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
21341         process_vm_writev only for __USE_GNU.
21342         * termios/termios.h: Declare tcgetsid also for POSIX2008.
21343
21344         * conform/Makefile: For now ignore errors from run-conformtest.
21345         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
21346         POSIX to avoid namespace pollution.  Don't prepend headers.
21347         * conform/data/aio.h-data: Fixes for POSIX testing.
21348         * conform/data/fcntl.h-data: Likewise.
21349         * conform/data/glob.h-data: Likewise.
21350         * conform/data/grp.h-data: Likewise.
21351         * conform/data/pthread.h-data: Likewise.
21352         * conform/data/pwd.h-data: Likewise.
21353         * conform/data/signal.h-data: Likewise.
21354         * conform/data/spawn.h-data: Likewise.
21355         * conform/data/stdio.h-data: Likewise.
21356         * conform/data/stdlib.h-data: Likewise.
21357         * conform/data/stropts.h-data: Likewise.
21358         * conform/data/sys/mman.h-data: Likewise.
21359         * conform/data/sys/stat.h-data: Likewise.
21360         * conform/data/sys/types.h-data: Likewise.
21361         * conform/data/sys/wait.h-data: Likewise.
21362         * conform/data/time.h-data: Likewise.
21363         * conform/data/unistd.h-data: Likewise.
21364         * conform/data/utime.h-data: Likewise.
21365
21366         * io/sys/stat.h: fchmod was always in POSIX.
21367         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
21368         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
21369         * rt/aio.h: Define __need_timespec before including <time.h>.
21370         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
21371         struct.  Add forward declaration of pthread_attr_t and use it in
21372         sigevent.
21373         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
21374         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
21375         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
21376         always remove CLK_TCK definition.
21377
21378 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
21379
21380         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
21381
21382 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
21383
21384         * conform/run-conformtest.sh: New file.
21385         * conform/Makefile: Run run-conformtest for tests.
21386         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
21387         support.
21388
21389         * conform/data/uchar.h-data: New file.
21390         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
21391         * conform/data/arpa/inet.h-data: Likewise.
21392         * conform/data/assert.h-data: Likewise.
21393         * conform/data/complex.h-data: Likewise.
21394         * conform/data/cpio.h-data: Likewise.
21395         * conform/data/ctype.h-data: Likewise.
21396         * conform/data/dirent.h-data: Likewise.
21397         * conform/data/dlfcn.h-data: Likewise.
21398         * conform/data/errno.h-data: Likewise.
21399         * conform/data/fcntl.h-data: Likewise.
21400         * conform/data/float.h-data: Likewise.
21401         * conform/data/fmtmsg.h-data: Likewise.
21402         * conform/data/fnmatch.h-data: Likewise.
21403         * conform/data/ftw.h-data: Likewise.
21404         * conform/data/glob.h-data: Likewise.
21405         * conform/data/grp.h-data: Likewise.
21406         * conform/data/iconv.h-data: Likewise.
21407         * conform/data/inttypes.h-data: Likewise.
21408         * conform/data/langinfo.h-data: Likewise.
21409         * conform/data/libgen.h-data: Likewise.
21410         * conform/data/limits.h-data: Likewise.
21411         * conform/data/locale.h-data: Likewise.
21412         * conform/data/math.h-data: Likewise.
21413         * conform/data/monetary.h-data: Likewise.
21414         * conform/data/mqueue.h-data: Likewise.
21415         * conform/data/ndbm.h-data: Likewise.
21416         * conform/data/net/if.h-data: Likewise.
21417         * conform/data/netdb.h-data: Likewise.
21418         * conform/data/netinet/in.h-data: Likewise.
21419         * conform/data/nl_types.h-data: Likewise.
21420         * conform/data/poll.h-data: Likewise.
21421         * conform/data/pthread.h-data: Likewise.
21422         * conform/data/pwd.h-data: Likewise.
21423         * conform/data/regex.h-data: Likewise.
21424         * conform/data/sched.h-data: Likewise.
21425         * conform/data/search.h-data: Likewise.
21426         * conform/data/semaphore.h-data: Likewise.
21427         * conform/data/setjmp.h-data: Likewise.
21428         * conform/data/signal.h-data: Likewise.
21429         * conform/data/spawn.h-data: Likewise.
21430         * conform/data/stdarg.h-data: Likewise.
21431         * conform/data/stdio.h-data: Likewise.
21432         * conform/data/stdlib.h-data: Likewise.
21433         * conform/data/string.h-data: Likewise.
21434         * conform/data/strings.h-data: Likewise.
21435         * conform/data/stropts.h-data: Likewise.
21436         * conform/data/sys/ipc.h-data: Likewise.
21437         * conform/data/sys/mman.h-data: Likewise.
21438         * conform/data/sys/msg.h-data: Likewise.
21439         * conform/data/sys/resource.h-data: Likewise.
21440         * conform/data/sys/select.h-data: Likewise.
21441         * conform/data/sys/sem.h-data: Likewise.
21442         * conform/data/sys/shm.h-data: Likewise.
21443         * conform/data/sys/socket.h-data: Likewise.
21444         * conform/data/sys/stat.h-data: Likewise.
21445         * conform/data/sys/statvfs.h-data: Likewise.
21446         * conform/data/sys/time.h-data: Likewise.
21447         * conform/data/sys/timeb.h-data: Likewise.
21448         * conform/data/sys/times.h-data: Likewise.
21449         * conform/data/sys/types.h-data: Likewise.
21450         * conform/data/sys/uio.h-data: Likewise.
21451         * conform/data/sys/un.h-data: Likewise.
21452         * conform/data/sys/utsname.h-data: Likewise.
21453         * conform/data/sys/wait.h-data: Likewise.
21454         * conform/data/syslog.h-data: Likewise.
21455         * conform/data/tar.h-data: Likewise.
21456         * conform/data/termios.h-data: Likewise.
21457         * conform/data/utime.h-data: Likewise.
21458         * conform/data/utmpx.h-data: Likewise.
21459         * conform/data/varargs.h-data: Likewise.
21460         * conform/data/wchar.h-data: Likewise.
21461         * conform/data/wctype.h-data: Likewise.
21462         * conform/data/wordexp.h-data: Likewise.
21463
21464         * include/stropts.h: New file.
21465         * include/uchar.h: New file.
21466         * include/aio.h: Changes to allow conformtest.pl to use the headers.
21467         * include/assert.h: Likewise.
21468         * include/ctype.h: Likewise.
21469         * include/dirent.h: Likewise.
21470         * include/dlfcn.h: Likewise.
21471         * include/fcntl.h: Likewise.
21472         * include/fnmatch.h: Likewise.
21473         * include/glob.h: Likewise.
21474         * include/grp.h: Likewise.
21475         * include/libio.h: Likewise.
21476         * include/locale.h: Likewise.
21477         * include/math.h: Likewise.
21478         * include/net/if.h: Likewise.
21479         * include/netdb.h: Likewise.
21480         * include/netinet/in.h: Likewise.
21481         * include/pthread.h: Likewise.
21482         * include/pwd.h: Likewise.
21483         * include/regex.h: Likewise.
21484         * include/sched.h: Likewise.
21485         * include/search.h: Likewise.
21486         * include/setjmp.h: Likewise.
21487         * include/signal.h: Likewise.
21488         * include/stdio.h: Likewise.
21489         * include/stdlib.h: Likewise.
21490         * include/string.h: Likewise.
21491         * include/sys/cdefs.h: Likewise.
21492         * include/sys/mman.h: Likewise.
21493         * include/sys/msg.h: Likewise.
21494         * include/sys/resource.h: Likewise.
21495         * include/sys/select.h: Likewise.
21496         * include/sys/socket.h: Likewise.
21497         * include/sys/stat.h: Likewise.
21498         * include/sys/statvfs.h: Likewise.
21499         * include/sys/time.h: Likewise.
21500         * include/sys/times.h: Likewise.
21501         * include/sys/uio.h: Likewise.
21502         * include/sys/utsname.h: Likewise.
21503         * include/sys/wait.h: Likewise.
21504         * include/termios.h: Likewise.
21505         * include/time.h: Likewise.
21506         * include/ulimit.h: Likewise.
21507         * include/unistd.h: Likewise.
21508         * include/utime.h: Likewise.
21509         * include/wchar.h: Likewise.
21510         * include/wctype.h: Likewise.
21511         * include/wordexp.h: Likewise.
21512
21513         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
21514
21515         * time/time.h: TIME_UTC must be a macro.
21516         Make timespec_get available for ISO C11 only as well.
21517
21518 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
21519
21520         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
21521         Reported by Peng Haitao <penght@cn.fujitsu.com>.
21522
21523 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21524
21525         * configure.in: Use -o not -a in test for unsupported multi-arch.
21526
21527 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21528
21529         * manual/texinfo.tex: Update to version 2012-01-19.16.
21530
21531 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21532
21533         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
21534
21535 2012-02-24  Roland McGrath  <roland@hack.frob.com>
21536
21537         [BZ #13738]
21538         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
21539         * manual/fdl-1.3.texi: New file.
21540         * manual/fdl-1.1.texi: File removed.
21541
21542         [BZ #13738]
21543         * manual/libc.texinfo (FDL_VERSION): New @set.
21544         Use it for mention of FDL in cover text.
21545         (Documentation License): Use it in @include file name.
21546
21547 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21548             Roland McGrath  <roland@hack.frob.com>
21549
21550         [BZ #5461]
21551         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
21552         not LONG_LONG_MAX and LONG_LONG_MIN.
21553         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
21554         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
21555         name.
21556         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
21557
21558 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21559
21560         [BZ #2547]
21561         [BZ #11365]
21562         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
21563         manipulate bits before adding and subtracting TWO23[sx].
21564         * math/libm-test.inc (nearbyint_test): Add more tests.
21565
21566 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21567
21568         [BZ #2548]
21569         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
21570         bits before adding and subtracting TWO23[sx].
21571         * math/libm-test.inc (rint_test): Add more tests.
21572         (rint_test_tonearest): Likewise.
21573         (rint_test_towardzero): Likewise.
21574         (rint_test_downward): Likewise.
21575         (rint_test_upward: Likewise.
21576
21577 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21578
21579         [BZ #10110]
21580         * include/stdc-predef.h: New file.  Extracted from features.h.
21581         * include/features.h: Include stdc-predef.h.
21582         * Makefile (headers): Add stdc-predef.h.
21583         * CONFORMANCE (Compiler limitations): Update.
21584
21585 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21586
21587         * manual/libc.texinfo (VERSION, UPDATED): Revert.
21588
21589 2012-02-21  David S. Miller  <davem@davemloft.net>
21590
21591         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
21592         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
21593
21594 2012-02-20  David S. Miller  <davem@davemloft.net>
21595
21596         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
21597         using a normal save/restore sequence, rather than allocating a
21598         dummy stack frame just to store a frame pointer and restore.
21599         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21600
21601 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21602
21603         * manual/install.texi: Fix stray word in line-wrapped comment.
21604
21605 2012-02-20  David S. Miller  <davem@davemloft.net>
21606
21607         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
21608         both binutils and gcc support GOTDATA.
21609
21610         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
21611         "rd %pc" in the PIC register setup sequences.
21612
21613         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
21614         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
21615         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
21616         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
21617         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
21618         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
21619         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21620         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21621         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
21622         (SYSCALL_ERROR_HANDLER): Likewise.
21623         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
21624         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
21625         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
21626         (SYSCALL_ERROR_HANDLER): Likewise.
21627
21628         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
21629         (HAVE_GCC_GOTDATA): New.
21630         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
21631         relocation support in both binutils and gcc.
21632         * sysdeps/sparc/elf/configure: Regenerate.
21633
21634         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
21635         * sysdeps/sparc/sparc32/elf/configure: Delete.
21636         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
21637         * sysdeps/sparc/sparc64/elf/configure: Delete.
21638         * sysdeps/sparc/elf/configure.in: New file.
21639         * sysdeps/sparc/elf/configure: Generate.
21640
21641         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
21642         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
21643         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
21644         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
21645         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
21646
21647 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21648
21649         * manual/install.texi: Do not mention specific glibc version
21650         numbers.
21651         * manual/libc.texinfo (VERSION, UPDATED): Update.
21652         (@copying): Use @copyright{} and range of years.
21653
21654 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21655
21656         [BZ #13695]
21657         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
21658         [crti.S not in sysdirs] (generated): Do not append.
21659         [crti.S not in sysdirs] (omit-deps): Likewise.
21660         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
21661         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
21662         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
21663         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
21664         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
21665         Likewise.
21666         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
21667         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
21668         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
21669         * csu/defs.awk: Remove file.
21670         * sysdeps/generic/initfini.c: Likewise.
21671         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
21672         variable.
21673         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
21674         Likewise.
21675
21676 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21677
21678         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
21679         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
21680         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
21681         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
21682         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21683         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
21684         <bits/epoll.h>.
21685         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
21686         (__EPOLL_PACKED): Define to empty if not defined by
21687         <bits/epoll.h>.
21688         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
21689         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21690         bits/epoll.h.
21691
21692 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21693
21694         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
21695         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
21696         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
21697         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
21698         <bits/timerfd.h>.
21699         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
21700         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21701         bits/timerfd.h.
21702
21703 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21704
21705         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
21706         in C locale.
21707         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21708         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
21709         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
21710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21711
21712 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
21713
21714         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21715         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
21716
21717 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21718
21719         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
21720         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
21721         defined.
21722         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
21723         Likewise.
21724         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
21725         entry for 2.16.
21726
21727 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
21728
21729         * math/w_acos.c: Use non-signaling floating-point comparisons.
21730         * math/w_acosf.c: Likewise.
21731         * math/w_acosh.c: Likewise.
21732         * math/w_acoshf.c: Likewise.
21733         * math/w_acoshl.c: Likewise.
21734         * math/w_acosl.c: Likewise.
21735         * math/w_asin.c: Likewise.
21736         * math/w_asinf.c: Likewise.
21737         * math/w_asinl.c: Likewise.
21738         * math/w_atanh.c: Likewise.
21739         * math/w_atanhf.c: Likewise.
21740         * math/w_atanhl.c: Likewise.
21741         * math/w_exp2.c: Likewise.
21742         * math/w_exp2f.c: Likewise.
21743         * math/w_exp2l.c: Likewise.
21744         * math/w_j0.c: Likewise.
21745         * math/w_j0f.c: Likewise.
21746         * math/w_j0l.c: Likewise.
21747         * math/w_j1.c: Likewise.
21748         * math/w_j1f.c: Likewise.
21749         * math/w_j1l.c: Likewise.
21750         * math/w_jn.c: Likewise.
21751         * math/w_jnf.c: Likewise.
21752         * math/w_log.c: Likewise.
21753         * math/w_log10.c: Likewise.
21754         * math/w_log10f.c: Likewise.
21755         * math/w_log10l.c: Likewise.
21756         * math/w_log2.c: Likewise.
21757         * math/w_log2f.c: Likewise.
21758         * math/w_log2l.c: Likewise.
21759         * math/w_logf.c: Likewise.
21760         * math/w_logl.c: Likewise.
21761         * math/w_sqrt.c: Likewise.
21762         * math/w_sqrtf.c: Likewise.
21763         * math/w_sqrtl.c: Likewise.
21764         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
21765         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
21766         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21767         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
21768         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
21769
21770 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21771
21772         [BZ #9739]
21773         * manual/string.texi (strnlen): Use correct parameter name in
21774         equivalent expression.
21775
21776 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21777
21778         [BZ #11174]
21779         * manual/users.texi (seteuid): Consistently use neweuid for
21780         argument name.
21781
21782 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21783
21784         [BZ #13704]
21785         * manual/nss.texi (Services in the NSS configuration): Correct
21786         list of services in example configuration file.
21787
21788 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
21789
21790         [BZ #11322]
21791         * manual/arith.texi: Remove statements about negative zero
21792         behaving identically to zero.
21793
21794 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21795
21796         [BZ #5993]
21797         * manual/install.texi: Do not document upgrading from libc5.
21798
21799 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21800
21801         [BZ #4596]
21802         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
21803
21804 2012-02-18  David S. Miller  <davem@davemloft.net>
21805
21806         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
21807         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
21808         %o7 across the call.
21809         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
21810         instead.
21811         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
21812         SETUP_PIC_REG_LEAF.
21813         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21814         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
21815         * sysdeps/sparc/crtn.S: Likewise.
21816
21817 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
21818
21819         * aout/Makefile: Remove.
21820
21821 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
21822
21823         [BZ #13058]
21824         * manual/examples/argp-ex1.c (main): Format definition in GNU
21825         style.
21826         * manual/examples/argp-ex2.c (main): Likewise.
21827         * manual/examples/argp-ex3.c (main): Likewise.
21828         * manual/examples/argp-ex4.c (main): Likewise.
21829         * manual/examples/longopt.c (main): Use new-style prototype
21830         definition.
21831         * manual/examples/strncat.c (main): Specify return type and use
21832         (void) for arguments.
21833         * manual/examples/subopt.c (main): Use char **argv argument.
21834
21835 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21836
21837         [BZ #5077]
21838         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
21839         rounding modes.
21840
21841 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
21842
21843         [BZ #6907]
21844         * manual/string.texi (strchr): Change when strchrnul is
21845         recommended.
21846
21847 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
21848
21849         [BZ #174]
21850         * manual/locale.texi (setlocale): Document LOCPATH.
21851
21852 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21853
21854         [BZ #10210]
21855         * manual/process.texi (execle): Move @dots{} before last argument.
21856
21857 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
21858
21859         [BZ #12047]
21860         * manual/charset.texi (Generic Charset Conversion): Fix typo
21861         (LC_TYPE -> LC_CTYPE).
21862
21863 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
21864
21865         [BZ #5805]
21866         * manual/arith.texi (scalbn): Use @var{} on parameter names.
21867         (scalbnf): Likewise.
21868         (scalbnl): Likewise.
21869         (scalbln): Likewise.
21870         (scalblnf): Likewise.
21871         (scalblnl): Likewise.
21872         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
21873         (vwarnx): Likewise.
21874         (verr): Likewise.
21875         (verrx): Likewise.
21876         * manual/filesys.texi (telldir): Use braces around return type.
21877         * manual/llio.texi (mmap): Add space after comma.
21878         (mmap64): Likewise.
21879         * manual/math.texi (jn): Use @var{} on parameter names.
21880         (jnf): Likewise.
21881         (jnl): Likewise.
21882         (yn): Likewise.
21883         (ynf): Likewise.
21884         (ynl): Likewise.
21885         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
21886         line.
21887         * manual/resource.texi (ulimit): Use @dots{} instead of literal
21888         "...".
21889         (sched_get_priority_min): Remove semicolon on @deftypefun line.
21890         (sched_get_priority_max): Likewise.
21891         * manual/signal.texi (sigvec): Add space after comma.
21892         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
21893         names.
21894         (if_indextoname): Likewise.
21895         (if_freenameindex): Likewise.
21896         (sendto): Use ',' instead of '.' in prototype.
21897         * manual/startup.texi (syscall): Use @dots{} instead of literal
21898         "...".
21899         * manual/stdio.texi (__fpending): Separate initial words of
21900         paragraph from @deftypefun line.
21901         * manual/syslog.texi (syslog): Use @dots{} instead of literal
21902         "...".
21903         (vsyslog): Use @var{} on parameter names.
21904         * manual/terminal.texi (stty): Use @var{} on parameter names.
21905         * manual/users.texi (getutmp): Use @var{} on parameter names.
21906         (getutmpx): Likewise.
21907
21908 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21909
21910         [BZ #6884]
21911         * manual/stdio.texi (fopen): Fix typos in description of
21912         ",ccs=STRING".
21913
21914 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
21915
21916         [BZ #4026]
21917         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
21918         get clock_id definition.
21919
21920 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
21921
21922         [BZ #4822]
21923         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
21924         (madvise): Cast every argument to void on its own.
21925
21926 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21927
21928         [BZ #9902]
21929         * manual/startup.texi (Exit Status): Fix typo.
21930
21931 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21932
21933         [BZ #10140]
21934         * manual/examples/argp-ex1.c: Include <stdlib.h>.
21935         * manual/examples/argp-ex2.c: Likewise.
21936         * manual/examples/argp-ex3.c: Likewise.
21937
21938 2012-02-16  Richard Henderson  <rth@redhat.com>
21939
21940         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
21941         * sysdeps/s390/s390-32/initfini.c: Remove.
21942         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
21943         * sysdeps/s390/s390-64/initfini.c: Remove.
21944
21945 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21946
21947         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
21948         compiler output for sysdeps/generic/initfini.c.
21949         * sysdeps/sh/elf/initfini.c: Remove file.
21950
21951 2012-02-16  David S. Miller  <davem@davemloft.net>
21952
21953         [BZ #11494]
21954         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
21955
21956         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
21957         * sysdeps/sparc/crti.S: New file.
21958         * sysdeps/sparc/crtn.S: New file.
21959         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
21960         * sysdeps/sparc/sparc64/Makefile: Likewise.
21961
21962 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
21963
21964         [BZ #3335]
21965         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
21966
21967 2012-02-15  Roland McGrath  <roland@hack.frob.com>
21968
21969         [BZ #4822]
21970         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
21971
21972         * mach/devstream.c (cookie_io_functions_t): Macro removed.
21973         (write, read, close): Likewise.
21974         Patch by Aurelien Jarno <aurelien@aurel32.net>.
21975
21976 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
21977
21978         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
21979         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
21980         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
21981         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
21982         <bits/signalfd.h>.
21983         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
21984         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21985         bits/signalfd.h.
21986
21987 2012-02-14  Marek Polacek  <polacek@redhat.com>
21988
21989         * sysdeps/x86_64/crti.S: New file.
21990         * sysdeps/x86_64/crtn.S: New file.
21991         * sysdeps/x86_64/elf/initfini.c: Remove file.
21992
21993 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21994
21995         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
21996         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
21997         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
21998         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
21999         <bits/inotify.h>.
22000         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
22001         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22002         bits/inotify.h.
22003
22004 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
22005
22006         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
22007         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
22008         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
22009         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
22010         <bits/eventfd.h>.
22011         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
22012         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22013         bits/eventfd.h.
22014
22015 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
22016
22017         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
22018         __feraiseexcept instead of feraiseexcept.
22019
22020         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
22021         nanosleep invocations.
22022         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
22023         strings, and add error checking for a nanosleep invocations.
22024
22025 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22026
22027         Replace FSF snail mail address with URLs, as per GNU coding standards.
22028         Most of the snail mail addresses were wrong anyway, and omitting
22029         them makes the source code easier to maintain.  Almost all of the
22030         changes are to license notices and to locale LC_IDENTIFICATION
22031         addresses, except for this one:
22032         * manual/libc.texinfo: In "Published by", give the FSF's URL,
22033         not its snail mail address.
22034
22035 2012-02-09  Richard Henderson  <rth@twiddle.net>
22036
22037         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
22038         of kernel-features.h.
22039
22040         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
22041
22042 2012-02-08  Marek Polacek  <polacek@redhat.com>
22043
22044         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
22045         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
22046         * sysdeps/gnu/_G_config.h: Likewise.
22047         * sysdeps/generic/_G_config.h: Likewise.
22048
22049 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
22050
22051         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
22052         tests.
22053         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22054
22055         * sysdeps/powerpc/powerpc32/crti.S: New file.
22056         * sysdeps/powerpc/powerpc32/crtn.S: New file.
22057         * sysdeps/powerpc/powerpc64/crti.S: New file.
22058         * sysdeps/powerpc/powerpc64/crtn.S: New file.
22059
22060         * Makeconfig (have-initfini): Don't set.
22061         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
22062         * configure.in (nopic_initfini): Don't substitute.
22063         * config.h.in (HAVE_INITFINI): Don't #undef.
22064         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
22065         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
22066
22067 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
22068
22069         Support crti.S and crtn.S provided directly by architectures.
22070         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
22071         [crti.S in sysdirs] (omit-deps): Likewise.
22072         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
22073         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
22074         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
22075         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
22076         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
22077         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
22078         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
22079         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
22080         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
22081         compiler output for sysdeps/generic/initfini.c.
22082         * sysdeps/i386/elf/Makefile: Remove file.
22083         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
22084
22085 2012-02-07  Marek Polacek  <polacek@redhat.com>
22086
22087         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
22088         * sysdeps/gnu/_G_config.h: Likewise.
22089         * sysdeps/mach/hurd/_G_config.h: Likewise.
22090
22091 2012-02-07  Marek Polacek  <polacek@redhat.com>
22092
22093         * math/Makefile (tests): Add tst-CMPLX2.
22094         * math/tst-CMPLX2.c: New file.
22095
22096 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
22097
22098         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22099
22100         * math/libm-test.inc (jn_test): Add missing L suffix.
22101
22102 2012-02-06  Marek Polacek  <polacek@redhat.com>
22103
22104         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
22105         * sysdeps/i386/fpu/e_powf.S: Likewise.
22106         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
22107         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
22108         * sysdeps/i386/fpu/e_acosh.S: Likewise.
22109         * sysdeps/i386/fpu/e_pow.S: Likewise.
22110         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
22111         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
22112         * sysdeps/i386/fpu/s_expm1.S: Likewise.
22113         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
22114         * sysdeps/i386/fpu/e_log2.S: Likewise.
22115         * sysdeps/i386/fpu/e_log2l.S: Likewise.
22116         * sysdeps/i386/fpu/e_scalb.S: Likewise.
22117         * sysdeps/i386/fpu/e_powl.S: Likewise.
22118         * sysdeps/i386/fpu/s_log1p.S: Likewise.
22119         * sysdeps/i386/fpu/e_log10f.S: Likewise.
22120         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
22121         * sysdeps/i386/fpu/e_logl.S: Likewise.
22122         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
22123         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
22124         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
22125         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
22126         * sysdeps/i386/fpu/e_log2f.S: Likewise.
22127         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
22128         * sysdeps/i386/fpu/e_log.S: Likewise.
22129         * sysdeps/i386/fpu/s_cexp.S: Likewise.
22130         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
22131         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
22132         * sysdeps/i386/fpu/e_logf.S: Likewise.
22133         * sysdeps/i386/fpu/e_log10l.S: Likewise.
22134         * sysdeps/i386/fpu/e_atanh.S: Likewise.
22135         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
22136         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
22137         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
22138         * sysdeps/i386/fpu/e_log10.S: Likewise.
22139         * sysdeps/i386/fpu/s_frexp.S: Likewise.
22140         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
22141         * sysdeps/i386/fpu/s_asinh.S: Likewise.
22142         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
22143         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
22144         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
22145         * sysdeps/i386/asm-syntax.h: Likewise.
22146         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
22147         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
22148         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
22149         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
22150         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
22151         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
22152         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
22153         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
22154         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
22155         * sysdeps/powerpc/sysdep.h: Likewise.
22156         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22157         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
22158
22159 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
22160
22161         [BZ #411]
22162         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
22163
22164 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
22165
22166         * sysdeps/i386/sysdep.h: Include <features.h>.
22167         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
22168         version.
22169
22170 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
22171
22172         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
22173         Define.
22174         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
22175         LOAD_PIC_REG_STR.
22176
22177 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22178
22179         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
22180         (SETUP_PIC_REG): Use GET_PC_THUNK.
22181         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
22182         macro.
22183
22184 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22185
22186         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
22187         for non-PIC compilation.
22188         (SETUP_PIC_REG): Add .p2align directive.
22189         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
22190         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
22191         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
22192         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
22193         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
22194         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
22195         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
22196         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
22197         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22198         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22199         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22200         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22201         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22202         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22203         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
22204         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
22205         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
22206         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
22207         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
22208         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
22209         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
22210         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
22211         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
22212         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
22213         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
22214         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
22215         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22216         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
22217         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
22218         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
22219         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
22220         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22221         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
22222         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
22223         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
22224         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
22225         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
22226         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
22227         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
22228         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
22229         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
22230
22231 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22232
22233         * math/tst-CMPLX.c: Include <stdio.h>.
22234
22235 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
22236
22237         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
22238         float.
22239         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
22240         * sysdeps/sparc/bits/mathdef.h: Likewise.
22241
22242 2012-01-31  Marek Polacek  <polacek@redhat.com>
22243
22244         * libio/libio.h: Don't define _PARAMS.
22245         * locale/programs/config.h: Don't define PARAMS.
22246         * stdlib/strtol_l.c: Likewise.
22247         (__strtol_l): Remove PARAMS from the prototype.
22248
22249 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
22250
22251         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
22252         names.  Just use the correct names.  Remove unnecessary wrapper
22253         functions.
22254         * malloc/arena.c: Likewise.
22255         * malloc/hooks.c: Likewise.
22256
22257         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
22258         ARENA_TEST says not to.  Simplify test for creation of a new arena.
22259         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
22260
22261 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
22262
22263         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
22264         into tail calls.
22265         (update_get_addr): New function.
22266         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
22267         GET_ADDR_MODULE parameter.
22268
22269 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
22270
22271         * crypt/cert.c: Remove __STDC__ conditionals.
22272         * crypt/crypt-entry.c: Likewise.
22273         * crypt/crypt_util.c: Likewise.
22274         * libio/filedoalloc.c: Likewise.
22275         * libio/fileops.c: Likewise.
22276         * libio/genops.c: Likewise.
22277         * libio/iofclose.c: Likewise.
22278         * libio/iofdopen.c: Likewise.
22279         * libio/iofopen.c: Likewise.
22280         * libio/iofopen64.c: Likewise.
22281         * libio/iogetdelim.c: Likewise.
22282         * libio/iopopen.c: Likewise.
22283         * libio/obprintf.c: Likewise.
22284         * libio/oldfileops.c: Likewise.
22285         * libio/oldiofclose.c: Likewise.
22286         * libio/oldiofdopen.c: Likewise.
22287         * libio/oldiofopen.c: Likewise.
22288         * libio/oldiopopen.c: Likewise.
22289         * libio/wfiledoalloc.c: Likewise.
22290         * libio/wgenops.c: Likewise.
22291         * locale/programs/xmalloc.c: Likewise.
22292         * misc/syslog.c: Likewise.
22293         * stdio-common/xbug.c: Likewise.
22294         * string/memchr.c: Likewise.
22295         * string/memcmp.c: Likewise.
22296         * string/memrchr.c: Likewise.
22297         * string/rawmemchr.c: Likewise.
22298         * sysdeps/posix/getcwd.c: Likewise.
22299         * time/strftime_l.c: Likewise.
22300
22301 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
22302
22303         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
22304         * config.make.in (config-cflags-sse2avx): Define.
22305         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
22306         Fix typo.
22307
22308 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
22309
22310         * scripts/config.guess: Update from upstream config git repository.
22311         * scripts/config.sub: Likewise.
22312
22313 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
22314
22315         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
22316         (EM_NUM): Update.
22317         (R_TILEPRO_*, R_TILEGX_*): New macros.
22318
22319         * scripts/firstversions.awk: Fix bug in version range handling.
22320
22321         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
22322
22323         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
22324
22325         * include/sys/epoll.h: New file.
22326         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
22327         libc_hidden_def.
22328
22329 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
22330
22331         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
22332         Avoid unnecessary __WORDSIZE == 64 test.
22333         (fmaxf): Use VEX format if possible.
22334         (fmax): Likewise.
22335         (fminf): Likewise.
22336         (fmin): Likewise.
22337
22338         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
22339         * math/math_private.h: Remove libc_fegetround* and
22340         libc_fesetround*.
22341         * sysdeps/i386/configure.in: Check for -msse2avx.
22342         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
22343         also if SSE2AVX is defined.
22344         Remove libc_fegetround* and libc_fesetround*.
22345         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
22346         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
22347         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
22348         of HAS_YMM_USABLE.
22349         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22350         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22351         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22352         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22353         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22354
22355         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
22356
22357 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22358
22359         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
22360         size is not set.
22361         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
22362
22363 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
22364
22365         [BZ #13618]
22366         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
22367         relocation.
22368         * Makeconfig (libm): Define.
22369         * elf/Makefile: Add rules to build and run tst-relsort1.
22370         * elf/tst-relsort1.c: New file.
22371         * elf/tst-relsort1mod1.c: New file.
22372         * elf/tst-relsort1mod2.c: New file.
22373
22374 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
22375
22376         * math/s_ldexp.c: Remove __STDC__ conditionals.
22377         * math/s_ldexpf.c: Likewise.
22378         * math/s_ldexpl.c: Likewise.
22379         * math/s_nextafter.c: Likewise.
22380         * math/s_nexttowardf.c: Likewise.
22381         * math/s_significand.c: Likewise.
22382         * math/s_significandf.c: Likewise.
22383         * math/s_significandl.c: Likewise.
22384         * math/w_jnl.c: Likewise.
22385         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
22386         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
22387         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
22388         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
22389         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
22390         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
22391         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
22392         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
22393         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
22394         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
22395         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
22396         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22397         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
22398         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
22399         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
22400         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
22401         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
22402         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
22403         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
22404         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
22405         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
22406         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
22407         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
22408         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
22409         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
22410         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
22411         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
22412         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
22413         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
22414         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
22415         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
22416         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
22417         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
22418         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
22419         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
22420         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
22421         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
22422         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
22423         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
22424         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
22425         * sysdeps/ieee754/k_standard.c: Likewise.
22426         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
22427         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
22428         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
22429         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
22430         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
22431         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
22432         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
22433         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
22434         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
22435         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
22436         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
22437         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
22438         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
22439         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
22440         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
22441         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
22442         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
22443         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
22444         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
22445         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
22446         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
22447         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
22448         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
22449         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
22450         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
22451         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
22452         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
22453         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
22454         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
22455         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
22456         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
22457         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
22458         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
22459         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
22460         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
22461         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
22462         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
22463         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
22464         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
22465         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
22466         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
22467         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
22468         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22469         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
22470         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
22471         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
22472         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
22473         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
22474         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
22475         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22476         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
22477         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
22478         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
22479         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
22480         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
22481         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
22482         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
22483         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
22484         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
22485         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
22486         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
22487         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
22488         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
22489         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
22490         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
22491         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
22492         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
22493         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
22494         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
22495         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
22496         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
22497         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
22498         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
22499         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
22500         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
22501         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
22502         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
22503         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
22504         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
22505         * sysdeps/ieee754/s_matherr.c: Likewise.
22506         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
22507         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
22508         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
22509         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
22510
22511 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
22512
22513         * crypt/md5.h: Remove __STDC__ conditionals.
22514         * libio/libioP.h: Likewise.
22515         * locale/programs/config.h: Likewise.
22516         * sysdeps/generic/sysdep.h: Likewise.
22517         * sysdeps/i386/asm-syntax.h: Likewise.
22518         * sysdeps/s390/asm-syntax.h: Likewise.
22519         * sysdeps/unix/sysdep.h: Likewise.
22520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
22521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22522
22523 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
22524
22525         * libio/libio.h: Remove __STDC__ conditionals.
22526         * malloc/obstack.h: Likewise.
22527         * math/complex.h: Likewise.
22528         * math/math.h: Likewise.
22529         * sysdeps/generic/_G_config.h: Likewise.
22530         * sysdeps/gnu/_G_config.h: Likewise.
22531         * sysdeps/mach/hurd/_G_config.h: Likewise.
22532         * sysdeps/powerpc/bits/mathdef.h: Likewise.
22533         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
22534         * sysdeps/sparc/bits/mathdef.h: Likewise.
22535
22536 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
22537
22538         [BZ #13583]
22539         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
22540         Clean up HAS_* macros.
22541         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
22542         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
22543         possible.
22544         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
22545         HAS_AVX.
22546         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22547         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22548         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22549         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22550         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22551
22552 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
22553
22554         * elf/tst-unique3.cc (gets): Remove declaration.
22555         * elf/tst-unique3lib.cc (gets): Likewise.
22556         * elf/tst-unique3lib2.cc (gets): Likewise.
22557         * elf/tst-unique4.cc (gets): Likewise.
22558
22559 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
22560
22561         * include/stdio.h: Add C++ protection.  Add gets declarations and
22562         definitions.
22563         * debug/tst-chk1.c: Don't declare gets here.
22564         * stdio-common/tst-gets.c: Likewise.
22565
22566 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
22567
22568         * posix/glob: Remove directory.
22569
22570 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
22571
22572         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
22573
22574 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
22575
22576         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
22577         of the non-standard EPFNOSUPPORT.
22578
22579 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22580
22581         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
22582         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
22583         ANYWHERE set to 1 only on KERN_NO_SPACE error.
22584
22585 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
22586
22587         * wcsmbs/uchar.h: Test __STDC_VERSION__.
22588
22589 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
22590
22591         * nscd/aicache.c (addhstaiX): Do not cache negative results of
22592         transient errors.
22593         * nscd/grpcache.c (cache_addgr): Likewise.
22594         * nscd/hstcache.c (cache_addhst): Likewise.
22595         * nscd/initgrcache.c (addinitgroupsX): Likewise.
22596         * nscd/pwdcache.c (cache_addpw): Likewise.
22597         * nscd/servicescache.c (cache_addserv): Likewise.
22598
22599 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
22600
22601         * malloc/malloc.c: Various cleanups.
22602         * malloc/hooks.c: Likewise.
22603
22604         * stdlib/Makefile (tests): Add bug-fmtmsg1.
22605         * stdlib/bug-fmtmsg1.c: New file.
22606
22607         * stdlib/fmtmsg.c (init): Add missing unlock.
22608         Patch by Peng Haitao <penght@cn.fujitsu.com>.
22609
22610 2012-01-12  Marek Polacek  <polacek@redhat.com>
22611
22612         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
22613         and _GNU_SOURCE.
22614
22615 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
22616
22617         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
22618         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
22619         macro to ensure uniqueness of label name.
22620         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22621         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22622
22623 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
22624
22625         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
22626
22627         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
22628         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
22629         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
22630         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
22631
22632 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
22633
22634         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
22635
22636         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
22637         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
22638         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
22639
22640         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
22641
22642         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
22643         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
22644         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
22645         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
22646
22647         * math/bits/math-finite.h: Add ldexp support.
22648
22649 2012-01-10  Marek Polacek  <polacek@redhat.com>
22650
22651         * locale/programs/localedef.h (show_archive_content): Add noreturn
22652         attribute.
22653
22654 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
22655
22656         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
22657
22658 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22659
22660         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
22661
22662         * io/Makefile (headers): Add bits/poll2.h.
22663
22664 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
22665
22666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
22667         typo #include statement.
22668
22669 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22670
22671         * include/sys/cdefs.h: Define __attribute_alloc_size.
22672         * catgets/gencat.c: Add alloc_size attribute and apply consistently
22673         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
22674         * elf/pldd.c: Likewise.
22675         * iconv/iconv_charmap.c: Likewise.
22676         * iconv/iconvconfig.c: Likewise.
22677         * iconv/strtab.c: Likewise.
22678         * locale/programs/locale.c: Likewise.
22679         * locale/programs/localedef.h: Likewise.
22680         * locale/programs/simple-hash.c: Likewise.
22681         * nscd/nscd.h: Likewise.
22682         * nss/makedb.c: Likewise.
22683         * sysdeps/generic/ldconfig.h: Likewise.
22684         * locale/programs/localedef.c: Remove xmalloc prototype.
22685         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
22686
22687 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
22688
22689         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
22690         appropriate.
22691
22692 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22693
22694         * math/Makefile (tests): Add tst-CMPLX.
22695         * math/tst-CMPLX.c: New file.
22696
22697         * math/complex.h (CMPLXL): Fix typo.
22698
22699         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
22700         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
22701         GLIBC_2.16.
22702         * debug/tst-chk1.c: Add poll and ppoll tests.
22703         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
22704         * include/sys/poll.h: Add hidden proto for ppoll.
22705         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
22706         * sysdeps/mach/hurd/ppoll.c: Likewise.
22707         * io/ppoll.c: Likewise.
22708         * debug/poll_chk.c: New file.
22709         * debug/ppoll_chk.c: New file.
22710         * include/bits/poll2.h: New file.
22711         * io/bits/poll2.h: New file.
22712
22713         [BZ #1350]
22714         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
22715
22716         * configure.in: static is always set to yes.  Remove.
22717         * config.make.in: Don't set build-static.
22718         * Makeconfig: Remove use of build-static.
22719         * dlfcn/Makefile: Likewise.
22720         * elf/Makefile: Likewise.
22721         * math/Makefile: Likewise.
22722         * misc/Makefile: Likewise.
22723         * nptl/Makefile: Likewise.
22724         * sysdeps/mach/hurd/Makefile: Likewise.
22725
22726         * configure.in: PWD_P is not used anymore.
22727         * config.make.in: Remove PWD_P entry.
22728
22729         * configure.in: Remove last remnants of RANLIB.
22730         No need to check for signed size_t anymore.
22731         Don't set libc_commonpagesize and libc_relro_required here for Alpha
22732         and IA-64.
22733         Remove __builtin_expect test because we require at least gcc 3.4.
22734         * aclocal.m4: Likewise.
22735
22736         * wcsmbs/mbrtoc16.c: Implement using towc function.
22737         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
22738         * wcsmbs/wcsmbsload.c: Likewise.
22739         * iconv/gconv_simple.c: Likewise.
22740         * iconv/gconv_int.h: Likewise.
22741         * iconv/gconv_builtin.h: Likewise.
22742         * iconv/iconv_prog.c: Remove CHAR16 handling.
22743
22744         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
22745
22746         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
22747
22748         * configure.in: Remove --with-elf and --enable-bounded options.
22749         Dont set base_machine for ia64.  More non-ELF conditions removed.
22750         Remove testing and setting of leading underscore information.
22751         * config.make.in (build-bounded): Set to no.
22752         * config.h.in: Remove NO_UNDERSCORES entry.
22753         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
22754         them.
22755         * csu/start.c: Remove !NO_UNDERSCORE code.
22756         * locale/localeinfo.h: Likewise.
22757         * sysdeps/generic/machine-gmon.h: Likewise.
22758         * sysdeps/generic/sysdep.h: Likewise.
22759         * sysdeps/i386/sysdep.h: Likewise.
22760         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22761         * sysdeps/mach/sysdep.h: Likewise.
22762         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22763         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22764         * sysdeps/sh/sysdep.h: Likewise.
22765         * sysdeps/sparc/sparc32/alloca.S: Likewise.
22766         * sysdeps/unix/i386/sysdep.S: Likewise.
22767         * sysdeps/unix/sparc/start.c: Likewise.
22768         * sysdeps/unix/sparc/sysdep.S: Likewise.
22769         * sysdeps/unix/sparc/sysdep.h: Likewise.
22770         * sysdeps/unix/start.c: Likewise.
22771         * sysdeps/unix/x86_64/sysdep.S: Likewise.
22772         * sysdeps/x86_64/sysdep.h: Likewise.
22773
22774 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
22775
22776         [BZ #13553]
22777         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
22778         for non-gcc.
22779         * argp/argp-fmtstream.h: Use const instead __const.
22780         * argp/argp.h: Likewise.
22781         * assert/assert.h: Likewise.
22782         * bits/fenv.h: Likewise.
22783         * bits/sched.h: Likewise.
22784         * bits/sigset.h: Likewise.
22785         * bits/sigthread.h: Likewise.
22786         * catgets/nl_types.h: Likewise.
22787         * conform/data/pthread.h-data: Likewise.
22788         * crypt/crypt-private.h: Likewise.
22789         * crypt/crypt.h: Likewise.
22790         * crypt/crypt_util.c: Likewise.
22791         * ctype/ctype.h: Likewise.
22792         * debug/execinfo.h: Likewise.
22793         * debug/mbsnrtowcs_chk.c: Likewise.
22794         * debug/mbsrtowcs_chk.c: Likewise.
22795         * debug/wcsnrtombs_chk.c: Likewise.
22796         * debug/wcsrtombs_chk.c: Likewise.
22797         * debug/wcstombs_chk.c: Likewise.
22798         * dirent/dirent.h: Likewise.
22799         * dlfcn/dlfcn.h: Likewise.
22800         * elf/neededtest4.c: Likewise.
22801         * grp/grp.h: Likewise.
22802         * gshadow/gshadow.h: Likewise.
22803         * iconv/gconv.h: Likewise.
22804         * iconv/gconv_int.h: Likewise.
22805         * iconv/gconv_simple.c: Likewise.
22806         * iconv/iconv.h: Likewise.
22807         * iconv/loop.c: Likewise.
22808         * iconv/skeleton.c: Likewise.
22809         * include/aio.h: Likewise.
22810         * include/aliases.h: Likewise.
22811         * include/argz.h: Likewise.
22812         * include/arpa/inet.h: Likewise.
22813         * include/assert.h: Likewise.
22814         * include/dirent.h: Likewise.
22815         * include/dlfcn.h: Likewise.
22816         * include/execinfo.h: Likewise.
22817         * include/fcntl.h: Likewise.
22818         * include/fenv.h: Likewise.
22819         * include/glob.h: Likewise.
22820         * include/grp.h: Likewise.
22821         * include/libintl.h: Likewise.
22822         * include/mntent.h: Likewise.
22823         * include/netdb.h: Likewise.
22824         * include/pwd.h: Likewise.
22825         * include/rpc/netdb.h: Likewise.
22826         * include/sched.h: Likewise.
22827         * include/search.h: Likewise.
22828         * include/shadow.h: Likewise.
22829         * include/signal.h: Likewise.
22830         * include/stdio.h: Likewise.
22831         * include/stdlib.h: Likewise.
22832         * include/string.h: Likewise.
22833         * include/sys/socket.h: Likewise.
22834         * include/sys/stat.h: Likewise.
22835         * include/sys/statfs.h: Likewise.
22836         * include/sys/statvfs.h: Likewise.
22837         * include/sys/syslog.h: Likewise.
22838         * include/sys/time.h: Likewise.
22839         * include/sys/uio.h: Likewise.
22840         * include/time.h: Likewise.
22841         * include/unistd.h: Likewise.
22842         * include/utmp.h: Likewise.
22843         * include/wchar.h: Likewise.
22844         * include/wctype.h: Likewise.
22845         * inet/aliases.h: Likewise.
22846         * inet/arpa/inet.h: Likewise.
22847         * inet/netinet/ether.h: Likewise.
22848         * inet/netinet/in.h: Likewise.
22849         * intl/libintl.h: Likewise.
22850         * io/bits/fcntl2.h: Likewise.
22851         * io/fcntl.h: Likewise.
22852         * io/ftw.h: Likewise.
22853         * io/sys/poll.h: Likewise.
22854         * io/sys/stat.h: Likewise.
22855         * io/sys/statfs.h: Likewise.
22856         * io/sys/statvfs.h: Likewise.
22857         * io/utime.h: Likewise.
22858         * libio/bits/stdio.h: Likewise.
22859         * libio/bits/stdio2.h: Likewise.
22860         * libio/libio.h: Likewise.
22861         * libio/libioP.h: Likewise.
22862         * libio/stdio.h: Likewise.
22863         * locale/lc-ctype.c: Likewise.
22864         * locale/locale.h: Likewise.
22865         * login/utmp.h: Likewise.
22866         * malloc/arena.c: Likewise.
22867         * malloc/malloc.c: Likewise.
22868         * malloc/malloc.h: Likewise.
22869         * malloc/mcheck.c: Likewise.
22870         * malloc/mtrace.c: Likewise.
22871         * math/bits/mathcalls.h: Likewise.
22872         * math/fenv.h: Likewise.
22873         * math/math_private.h: Likewise.
22874         * misc/bits/error.h: Likewise.
22875         * misc/bits/syslog.h: Likewise.
22876         * misc/err.h: Likewise.
22877         * misc/error.h: Likewise.
22878         * misc/fstab.h: Likewise.
22879         * misc/mntent.h: Likewise.
22880         * misc/regexp.h: Likewise.
22881         * misc/search.h: Likewise.
22882         * misc/sgtty.h: Likewise.
22883         * misc/sys/mman.h: Likewise.
22884         * misc/sys/syslog.h: Likewise.
22885         * misc/sys/uio.h: Likewise.
22886         * misc/sys/xattr.h: Likewise.
22887         * misc/ttyent.h: Likewise.
22888         * nis/rpcsvc/ypclnt.h: Likewise.
22889         * nss/nss.h: Likewise.
22890         * posix/bits/unistd.h: Likewise.
22891         * posix/fnmatch.h: Likewise.
22892         * posix/glob.h: Likewise.
22893         * posix/sched.h: Likewise.
22894         * posix/spawn.h: Likewise.
22895         * posix/sys/wait.h: Likewise.
22896         * posix/unistd.h: Likewise.
22897         * posix/wordexp.h: Likewise.
22898         * pwd/pwd.h: Likewise.
22899         * resolv/netdb.h: Likewise.
22900         * resource/sys/resource.h: Likewise.
22901         * rt/aio.h: Likewise.
22902         * rt/bits/mqueue2.h: Likewise.
22903         * rt/mqueue.h: Likewise.
22904         * shadow/shadow.h: Likewise.
22905         * signal/signal.h: Likewise.
22906         * socket/send.c: Likewise.
22907         * socket/sendto.c: Likewise.
22908         * socket/sys/socket.h: Likewise.
22909         * stdio-common/printf.h: Likewise.
22910         * stdlib/bits/stdlib.h: Likewise.
22911         * stdlib/fmtmsg.h: Likewise.
22912         * stdlib/monetary.h: Likewise.
22913         * stdlib/stdlib.h: Likewise.
22914         * stdlib/ucontext.h: Likewise.
22915         * streams/stropts.h: Likewise.
22916         * string/argz.h: Likewise.
22917         * string/bits/string2.h: Likewise.
22918         * string/string.h: Likewise.
22919         * string/strings.h: Likewise.
22920         * sunrpc/rpc/auth.h: Likewise.
22921         * sunrpc/rpc/auth_des.h: Likewise.
22922         * sunrpc/rpc/clnt.h: Likewise.
22923         * sunrpc/rpc/netdb.h: Likewise.
22924         * sunrpc/rpc/pmap_clnt.h: Likewise.
22925         * sunrpc/rpc/xdr.h: Likewise.
22926         * sysdeps/generic/inttypes.h: Likewise.
22927         * sysdeps/generic/net/if.h: Likewise.
22928         * sysdeps/generic/sys/swap.h: Likewise.
22929         * sysdeps/gnu/net/if.h: Likewise.
22930         * sysdeps/gnu/utmpx.h: Likewise.
22931         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
22932         * sysdeps/i386/i486/bits/string.h: Likewise.
22933         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
22934         * sysdeps/s390/bits/string.h: Likewise.
22935         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
22936         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
22937         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22938         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
22939         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
22940         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
22941         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
22942         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
22943         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
22944         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
22945         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
22946         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
22947         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
22948         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
22949         * sysdeps/unix/sysv/linux/readv.c: Likewise.
22950         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
22951         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
22952         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22953         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
22954         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
22955         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22956         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
22957         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
22958         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
22959         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
22960         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
22961         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
22962         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22963         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
22964         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
22965         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
22966         * sysvipc/sys/ipc.h: Likewise.
22967         * sysvipc/sys/msg.h: Likewise.
22968         * sysvipc/sys/sem.h: Likewise.
22969         * sysvipc/sys/shm.h: Likewise.
22970         * termios/termios.h: Likewise.
22971         * time/sys/time.h: Likewise.
22972         * time/time.h: Likewise.
22973         * wcsmbs/bits/wchar2.h: Likewise.
22974         * wcsmbs/uchar.h: Likewise.
22975         * wcsmbs/wchar.h: Likewise.
22976         * wctype/wctype.h: Likewise.
22977
22978         [BZ #13551]
22979         * Makeconfig: Remove all but ELF support including AIX support.
22980         * Makerules: Likewise.
22981         * config.h.in: Likewise.
22982         * config.make.in: Likewise.
22983         * configure: Likewise.
22984         * configure.in: Likewise.
22985         * csu/Makefile: Likewise.
22986         * csu/version.c: Likewise.
22987         * debug/Makefile: Likewise.
22988         * dlfcn/Makefile: Likewise.
22989         * elf/Makefile: Likewise.
22990         * extra-lib.mk: Likewise.
22991         * iconv/Makefile: Likewise.
22992         * include/libc-symbols.h: Likewise.
22993         * include/shlib-compat.h: Likewise.
22994         * resolv/Makefile: Likewise.
22995         * resolv/res_libc.c: Likewise.
22996         * rt/Makefile: Likewise.
22997         * sysdeps/i386/asm-syntax.h: Likewise.
22998         * sysdeps/i386/sysdep.h: Likewise.
22999         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
23000         * sysdeps/mach/sysdep.h: Likewise.
23001         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
23002         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
23003         * sysdeps/s390/asm-syntax.h: Likewise.
23004         * sysdeps/s390/s390-32/sysdep.h: Likewise.
23005         * sysdeps/s390/s390-64/sysdep.h: Likewise.
23006         * sysdeps/sh/sysdep.h: Likewise.
23007         * sysdeps/unix/sparc/sysdep.h: Likewise.
23008         * sysdeps/wordsize-32/divdi3.c: Likewise.
23009         * sysdeps/x86_64/sysdep.h: Likewise.
23010
23011         * argp/Versions: Remove _argp_unlock_xxx.
23012
23013         [BZ #13559]
23014         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
23015         * abilist/libBrokenLocale.abilist: Likewise.
23016         * abilist/libanl.abilist: Likewise.
23017         * abilist/libc.abilist: Likewise.
23018         * abilist/libcrypt.abilist: Likewise.
23019         * abilist/libdl.abilist: Likewise.
23020         * abilist/libm.abilist: Likewise.
23021         * abilist/libnsl.abilist: Likewise.
23022         * abilist/libpthread.abilist: Likewise.
23023         * abilist/libresolv.abilist: Likewise.
23024         * abilist/librt.abilist: Likewise.
23025         * abilist/libthread_db.abilist: Likewise.
23026         * abilist/libutil.abilist: Likewise.
23027         * abilist/libnss_db.abilist: New file.
23028
23029         * scripts/abilist.awk: Add support for indirect functions.
23030
23031         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
23032
23033         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
23034
23035         * shlib-versions: Remove entries for ports architectures.
23036
23037         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
23038         files in ports.
23039         * elf/stackguard-macros.h: Remove support for IA-64.
23040         * elf/tst-auditmod1.c: Likewise.
23041         * sysdeps/generic/ldsodefs.h: Likewise.
23042
23043         * sysdeps/unix/sysv/linux/configure.in: Ports should define
23044         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
23045         configure files.
23046
23047         [BZ #13552]
23048         * configure.in: Remove --enable-omitfp support.
23049         * FAQ.in: Adjust.
23050         * config.make.in: Likewise.
23051         * Makeconfig: Likewise.
23052         * manual/install.texi: Likewise.
23053
23054         In case anyone cares, the IA-64 architecture could move to ports.
23055         * sysdeps/ia64/*: Removed.
23056         * sysdeps/unix/sysv/linux/ia64/*: Removed.
23057         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
23058
23059         [BZ #13555]
23060         * configure.in: Remove entries for unsupported architectures.
23061
23062         [BZ #13533]
23063         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
23064         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
23065         routines.
23066         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
23067         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
23068         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
23069         fall back to using wcrtomb.
23070         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
23071         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
23072         renaming.
23073         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
23074         * wcsmbs/tst-c16c32-1.c: New file.
23075
23076         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
23077         local variable.
23078
23079         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
23080
23081         * elf/tst-unique3.cc: Add explicit declaration of gets.
23082         * elf/tst-unique3lib.cc: Likewise.
23083         * elf/tst-unique3lib2.cc: Likewise.
23084         * elf/tst-unique4.cc: Likewise.
23085
23086         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
23087
23088 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
23089
23090         [BZ #13566]
23091         * assert/assert.h (static_assert): Don't define for C++.
23092         * libio/stdio.h (gets): Do declare for C++ <= C++11.
23093         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
23094
23095 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
23096
23097         * iconv/loop.c (single loop): Fix assertion in storing of
23098         remaining bytes.
23099
23100         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
23101
23102 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
23103
23104         * posix/getconf.c: Update copyright year.
23105         * nss/getent.c: Likewise.
23106         * nss/makedb.c: Likewise.
23107         * iconv/iconvconfig.c: Likewise.
23108         * iconv/iconv_prog.c: Likewise.
23109         * elf/ldconfig.c: Likewise.
23110         * elf/pldd.c: Likewise.
23111         * elf/sotruss.ksh: Likewise.
23112         * catgets/gencat.c: Likewise.
23113         * csu/version.c: Likewise.
23114         * elf/ldd.bash.in: Likewise.
23115         * elf/sprof.c (print_version): Likewise.
23116         * locale/programs/locale.c: Likewise.
23117         * locale/programs/localedef.c: Likewise.
23118         * login/programs/pt_chown.c: Likewise.
23119         * nscd/nscd.c (print_version): Likewise.
23120         * debug/xtrace.sh: Likewise.
23121         * malloc/memusage.sh: Likewise.
23122         * malloc/mtrace.pl: Likewise.
23123         * debug/catchsegv.sh: Likewise.
23124
23125 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
23126
23127         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
23128         pure attribute.
23129
23130 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
23131
23132         [BZ #13533]
23133         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
23134         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
23135         transformations.
23136         * iconv/gconv_int.h: Likewise.
23137         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
23138         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
23139         from libc for GLIBC_2.16.
23140         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
23141         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
23142         * wcsmbs/uchar.h: Really define mbstate_t.
23143         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
23144         * wcsmbs/c16rtomb.c: New file.
23145         * wcsmbs/mbrtoc16.c: New file.
23146         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
23147         for C/POSIX locale.
23148         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
23149         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
23150
23151         * wcsmbs/wchar.h: Add missing __restrict.
23152
23153 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
23154
23155         [BZ #13532]
23156         * time/Makefile (routines): Add timespec_get.
23157         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
23158         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
23159         timespec for ISO C11.
23160         * time/timespec_get.c: New file.
23161         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
23162         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
23163
23164         [BZ #13531]
23165         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
23166         * stdlib/stdlib.h: Declare aligned_alloc.
23167         * Versions.def: Add GLIBC_2.16 for libc.
23168         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
23169
23170         [BZ 13527]
23171         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
23172         ISO C11.
23173
23174         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
23175         code.
23176
23177         [BZ #13528]
23178         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
23179
23180         [BZ #13529]
23181         * assert/assert.h (static_assert): Define.
23182
23183         * version.h: Update for 2.16 development version.
23184
23185         [BZ #13526]
23186         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
23187         _ISOC11_SOURCE.
23188
23189         * version.h (RELEASE): Bump for 2.15 release.
23190         * include/features.h (__GLIBC_MINOR__): Bump to 15.
23191
23192         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
23193         Patch by Marek Polacek <mpolacek@redhat.com>.
23194
23195         * bits/byteswap.h: Protect long long constants with __extension__.
23196         * sysdeps/i386/bits/byteswap.h: Likewise.
23197         * sysdeps/ia64/bits/byteswap.h: Likewise.
23198         * sysdeps/s390/bits/byteswap.h: Likewise.
23199         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23200
23201 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23202
23203         [BZ #13540]
23204         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
23205         destination buffer.
23206         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23207
23208 2011-12-23  Marek Polacek  <polacek@redhat.com>
23209
23210         * elf/dl-addr.c (determine_info): Add inline keyword.
23211         * elf/tst-auditmod4b.c (check_avx): Likewise.
23212         * elf/tst-auditmod6b.c (check_avx): Likewise.
23213         * elf/tst-auditmod6c.c (check_avx): Likewise.
23214         * elf/tst-auditmod7b.c (check_avx): Likewise.
23215
23216 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
23217
23218         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
23219         !__SSE_MATH__.
23220
23221 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23222
23223         [BZ #13540]
23224         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
23225         processing for last bytes.
23226
23227 2011-08-06  Bruno Haible  <bruno@clisp.org>
23228
23229         [BZ #13061]
23230         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
23231         U+0385, not to U+1FEE.
23232
23233         [BZ #13062]
23234         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
23235         entry for U+00A5 U+0301.
23236
23237 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
23238
23239         [BZ #13166]
23240         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
23241         buffer for the output is too small.
23242
23243         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
23244         optimization.
23245
23246         [BZ #13185]
23247         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
23248         SSE flags if possible.
23249
23250 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23251
23252         [BZ #13540]
23253         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
23254         processing for last bytes.
23255
23256 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
23257
23258         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
23259         (syscall-list-default-options, syscall-list-default-condition)
23260         (syscall-list-includes): Define.
23261         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
23262         list of ABIs and options and #if conditions for each ABI.  Do not
23263         handle common syscalls between ABIs specially.
23264         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
23265         Remove.
23266         (syscall-list-variants, syscall-list-32bit-options)
23267         (syscall-list-32bit-condition, syscall-list-64bit-options)
23268         (syscall-list-64bit-condition): Define.
23269         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
23270         (syscall-list-variants, syscall-list-32bit-options)
23271         (syscall-list-32bit-condition, syscall-list-64bit-options)
23272         (syscall-list-64bit-condition): Define.
23273         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
23274         Remove.
23275         (syscall-list-variants, syscall-list-32bit-options)
23276         (syscall-list-32bit-condition, syscall-list-64bit-options)
23277         (syscall-list-64bit-condition): Define.
23278         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
23279         Remove.
23280         (syscall-list-variants, syscall-list-32bit-options)
23281         (syscall-list-32bit-condition, syscall-list-64bit-options)
23282         (syscall-list-64bit-condition): Define.
23283
23284 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
23285
23286         * locale/iso-639.def: Add brx entry.
23287
23288         [BZ #13328]
23289         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
23290         Proposed by Mariusz_Cukr <marcukr@op.pl>.
23291
23292         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
23293         __feraiseexcept_renamed.
23294
23295 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
23296
23297         [BZ #13538]
23298         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
23299         EPOLLET with unsigned values.
23300         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
23301         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
23302
23303         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
23304         to large cancellation.
23305         * math/s_cacoshf.c: Likewise.
23306         * math/s_cacoshl.c: Likewise.
23307
23308 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
23309
23310         [BZ #13305]
23311         [BZ #12786]
23312         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
23313         * math/s_cacoshf.c: Likewise.
23314         * math/s_cacoshl.c: Likewise.
23315
23316 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
23317
23318         [BZ #13439]
23319         * iconv/gconv.h: Define __GCONV_SWAP.
23320         * iconvdata/unicode.c: The swap bit must be stored in __flags.
23321         * iconvdata/utf-16.c: Likewise.
23322         * iconvdata/utf-32.c: Likewise.
23323
23324 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
23325
23326         [BZ #13524]
23327         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
23328         numerator after shifting it by one limb.
23329
23330 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
23331
23332         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
23333         under [__USE_EXTERN_INLINES].
23334
23335 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
23336
23337         [BZ #13446]
23338         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
23339
23340 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23341
23342         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
23343         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
23344         optimized code.
23345         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
23346         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
23347         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
23348         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
23349         for strncasecmp/strncasecmp_l compilation.
23350         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
23351         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
23352
23353 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
23354
23355         [BZ #13484]
23356         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
23357         of __asm__.
23358
23359 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
23360
23361         [BZ #13506]
23362         * time/tzfile.c (__tzfile_read): Check values from file header.
23363
23364 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
23365
23366         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
23367         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
23368         * powerpc/powerpc32/dl-start.S: Likewise.
23369         * powerpc/powerpc32/elf/start.S: Likewise.
23370         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23371         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
23372         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
23373         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
23374         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
23375         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
23376         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
23377         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
23378         * powerpc/powerpc32/fpu/s_round.S: Likewise.
23379         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
23380         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
23381         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
23382         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23383         * powerpc/powerpc32/memset.S: Likewise.
23384         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
23385         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23386         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23387         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23388         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23389         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23390         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23391         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23392         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
23393         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
23394         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
23395         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
23396         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
23397
23398 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23399
23400         * math/libm-test.inc: Added more nearbyint tests.
23401         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
23402         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
23403         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
23404         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
23405
23406 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
23407
23408         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
23409         FD_CLOEXEC.
23410
23411 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23412
23413         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
23414         Add wcscpy-ssse3 wcscpy-c.
23415         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
23416         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
23417         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
23418         * sysdeps/x86_64/wcschr.S: New file.
23419         * sysdeps/x86_64/wcsrchr.S: New file.
23420         * string/test-strcmp.c: Remove checking of wcscmp function for
23421         wrong alignments.
23422         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
23423         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
23424         wcsrchr-sse2 wcsrchr-c.
23425         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
23426         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
23427         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
23428         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
23429         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
23430         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
23431         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
23432         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
23433         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
23434         * wcsmbc/wcschr.c (WCSCHR): New macro.
23435
23436 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23437
23438         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
23439         * wcsmbs/test-wcsrchr.c: New file.
23440         * string/test-strrchr.c: Add wcsrchr support.
23441         (WIDE): New macro.
23442         * wcsmbs/test-wcscpy.c: New file.
23443         * string/test-strcpy.c: Add wcscpy support.
23444         (WIDE): New macro.
23445
23446 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
23447
23448         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
23449         the inner loop.
23450
23451 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
23452
23453         [BZ #13472]
23454         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
23455
23456 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
23457
23458         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
23459         Minor optimizations.
23460
23461         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
23462         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
23463         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
23464
23465 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
23466
23467         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
23468         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
23469         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
23470         for gcc to avoid warnings.
23471         * inet/Makefile (tests): Add tst-checks.
23472         * inet/tst-checks.c: New file.
23473
23474         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
23475         warning.
23476
23477         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
23478         __wmemcmp_sse2.
23479
23480         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
23481         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
23482
23483         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
23484
23485 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
23486
23487         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
23488         problem.
23489
23490         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
23491
23492 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
23493
23494         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
23495         conditional on GCC version.
23496         (__arch_compare_and_exchange_val_8_acq)
23497         (__arch_compare_and_exchange_val_16_acq)
23498         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
23499         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
23500         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
23501
23502 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
23503
23504         * sysdeps/sh/backtrace.c: New file.
23505
23506 2011-12-02  Andreas Schwab  <schwab@redhat.com>
23507
23508         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
23509         parenthesis.
23510
23511 2011-12-01  Andreas Schwab  <schwab@redhat.com>
23512
23513         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
23514         falling back to utime.
23515
23516 2011-11-30  Andreas Schwab  <schwab@redhat.com>
23517
23518         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
23519         expectations for float.
23520
23521 2011-11-29  Andreas Schwab  <schwab@redhat.com>
23522
23523         * locale/weight.h (findidx): Add parameter len.
23524         * locale/weightwc.h (findidx): Likewise.
23525         * posix/fnmatch_loop.c (FCT): Adjust caller.
23526         * posix/regcomp.c (build_equiv_class): Likewise.
23527         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
23528         * posix/regexec.c (check_node_accept_bytes): Likewise.
23529         * string/strcoll_l.c (STRCOLL): Likewise.
23530         * string/strxfrm_l.c (STRXFRM): Likewise.
23531
23532 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
23533
23534         * Makefile.in: Remove CVSOPT handling.
23535         * configure.in: Remove use of AC_REVISION.
23536         * iconvdata/Makefile (distribute): No need to filter out CVS.
23537         * scripts/list-sources.sh: Remove CVS, subversion and monotone
23538         handling.
23539
23540 2011-11-16  Andreas Schwab  <schwab@redhat.com>
23541
23542         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
23543         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
23544         [USE_AS_STRNCASECMP_L]: Likewise.
23545         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
23546         NO_TLS_DIRECT_SEG_REFS.
23547         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
23548         Fix argument offsets for non-PIC.
23549         [USE_AS_STRNCASECMP_L]: Likewise.
23550         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
23551         NO_TLS_DIRECT_SEG_REFS.
23552
23553 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
23554
23555         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
23556         O_CLOEXEC.
23557         * locale/loadlocale.c (_nl_load_locale): Likewise.
23558
23559 2011-11-15  Andreas Schwab  <schwab@redhat.com>
23560
23561         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
23562         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
23563         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
23564         (SYSCALL_GETTIME): Set errno on error.
23565
23566         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
23567         count references to noai6ai_cached.
23568
23569 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
23570
23571         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
23572
23573         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
23574         FD_CLOEXEC for /proc/self/maps.
23575
23576         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
23577         FD_CLOEXEC for /proc/meminfo.
23578
23579         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
23580         gai.conf.
23581
23582         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
23583         FD_CLOEXEC for given file.
23584
23585         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
23586
23587         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
23588         FD_CLOEXEC for /etc/hosts.
23589         (_gethtent): Likewise.
23590
23591         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
23592
23593         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
23594         cancellation and set FD_CLOEXEC for /etc/netgroup.
23595
23596         * nss/nss_files/files-key.c (search): Don't allow cancellation when
23597         reading /etc/publickey.
23598
23599         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
23600         allow cancellation when reading /etc/group.
23601
23602         * nss/nss_files/files-alias.c (internal_setent): Don't allow
23603         cancellation.
23604         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
23605
23606         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
23607         when using data file.
23608
23609         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
23610
23611         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
23612         (write_nis_obj): Use "c" and "e" in fopen.
23613
23614         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
23615
23616         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
23617
23618         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
23619
23620         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
23621
23622         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
23623         locale.alias.
23624
23625         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
23626
23627         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
23628
23629         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
23630
23631         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
23632         file parsing and set FD_CLOEXEC.
23633
23634 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
23635
23636         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
23637
23638 2011-11-14  Andreas Schwab  <schwab@redhat.com>
23639
23640         * malloc/arena.c (arena_get2): Don't call reused_arena when
23641         _int_new_arena failed.
23642
23643 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
23644
23645         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
23646         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
23647         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
23648         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23649         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
23650         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
23651         to compile strcasecmp and strncasecmp.
23652         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
23653         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
23654
23655         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
23656
23657 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
23658
23659         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
23660         locale-defines.sym to gen-as-const-headers.
23661         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
23662         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
23663         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
23664         to compile strcasecmp and strncasecmp.
23665         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
23666         strcasecmp_l and strncasecmp_l.
23667         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
23668         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
23669         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
23670         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
23671         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
23672         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
23673         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
23674         * sysdeps/i386/i686/multiarch/strncase.S: New file.
23675         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
23676         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
23677         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
23678
23679 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
23680
23681         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
23682         result of SYSDEP_GETTIME_CPU to retval.
23683         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
23684         parameter list to macro.  Remove trailing semicolon.  Adjust users.
23685
23686         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
23687         variable.
23688
23689         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
23690         mantissa words.
23691         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
23692
23693         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
23694         from unused variable.
23695
23696         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
23697         DWARF definitions.
23698         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
23699         for assembling.
23700
23701         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
23702         over namespaces.
23703
23704         * sunrpc/rpc_prot.c (rejected): Fix case value.
23705
23706         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
23707         unsigned long long int to avoid warnings in shift.
23708
23709         * posix/regex_internal.c (re_string_reconstruct): Actually use result
23710         of use of trans.
23711         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
23712         variable tmp.
23713
23714         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
23715         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23716         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23717
23718         * nis/nis_table.c (nis_list): Use variable of correct type for
23719         result of __follow_path call.
23720
23721 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23722
23723         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
23724         of math functions ceil, trunc, floor, round, and sqrt, when
23725         avaliable on the platform.
23726         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
23727         name clash.
23728         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23729         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23730         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23731
23732 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
23733
23734         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
23735         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
23736
23737 2011-11-11  Roland McGrath  <roland@hack.frob.com>
23738
23739         * include/unistd.h: Fix __readlink return type.
23740         Reported by Chris Metcalf <cmetcalf@tilera.com>.
23741
23742 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
23743
23744         * stdlib/ucontext.h: Undo last change for makecontext.
23745
23746 2011-11-11  Andreas Schwab  <schwab@redhat.com>
23747
23748         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
23749
23750         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
23751         * setjmp/setjmp.h: Mark functions as non-leaf.
23752         * setjmp/bits/setjmp2.h: Likewise.
23753         * stdlib/ucontext.h: Likewise.
23754
23755 2011-11-10  Andreas Schwab  <schwab@redhat.com>
23756
23757         * malloc/arena.c (_int_new_arena): Don't increment narenas.
23758         (reused_arena): Don't check arena limit.
23759         (arena_get2): Atomically check arena limit.
23760
23761 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
23762
23763         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
23764         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
23765
23766         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
23767         instructions.
23768
23769 2011-11-07  Andreas Schwab  <schwab@redhat.com>
23770
23771         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
23772         handler when locking.
23773
23774         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23775         Fix size of allocated buffer.
23776
23777 2011-11-04  Andreas Schwab  <schwab@redhat.com>
23778
23779         [BZ #10103]
23780         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
23781         declarations for long double functions.
23782         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
23783
23784         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
23785
23786 2011-11-03  Andreas Schwab  <schwab@redhat.com>
23787
23788         * nscd/nscd.c (main): Don't start AVC thread until credentials are
23789         installed.
23790
23791         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
23792         is disabled.
23793
23794 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23795
23796         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
23797
23798 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
23799
23800         * include/alloca.h (stackinfo_alloca_round): Define.
23801         (extend_alloca): Use it.
23802         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
23803         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
23804         here.
23805
23806         * scripts/check-local-headers.sh: Ignore libaudit.h.
23807
23808         * nscd/Makefile (extra-objs): Make recursively expanded.
23809
23810 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
23811
23812         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
23813         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
23814
23815         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
23816         * posix/tst-rfc3484-2.c: Likewise.
23817         * posix/tst-rfc3484-3.c: Likewise.
23818
23819         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
23820         process_vm_writev.
23821         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
23822         process_vm_writev.
23823         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
23824         process_vm_writev from libc using GLIBC_2.15 version.
23825
23826         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
23827
23828 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
23829
23830         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
23831         stack usage.
23832
23833 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
23834
23835         [BZ #13367]
23836         * nss/getent.c (initgroups_keys): Show error message in case no group
23837         names are given.
23838
23839         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
23840         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
23841         __bump_nl_timestamp.
23842         * nscd/connections (nscd_init): When host database is served open
23843         netlink socket and request notification about configuration changes.
23844         (main_loop_poll): Track netlink file descriptor and bump timestamp
23845         in case data becomes available.
23846         (main_loop_epoll): Likewise.
23847         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
23848         (database_pers_head): Add extra_data fileds.
23849         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
23850         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
23851         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
23852         Adjust caller.
23853         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
23854         in6ai data, call __free_in6ai.
23855         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
23856         Add -DHAVE_NETLINK.
23857         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
23858         interface information.  Reuse previous data if netlink timestamp
23859         is not changed.
23860         (__bump_nl_timestamp): New function.
23861         (__free_in6ai): New function.
23862
23863 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
23864
23865         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
23866         close_not_cancel_no_status here.
23867         (__check_pf): Reorganize code a bit to not call close twice if OOM.
23868
23869 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23870
23871         [BZ #13276]
23872         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
23873         return value.
23874
23875         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
23876         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
23877         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
23878
23879 2011-07-03  Andreas Jaeger  <aj@suse.de>
23880
23881         [BZ #10709]
23882         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
23883         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
23884         * math/libm-test.inc (sin_test): Add test case.
23885
23886 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23887
23888         [BZ #13337]
23889         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
23890         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23891
23892         * elf/chroot_canon.c (chroot_canon): Cleanups.
23893
23894         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
23895
23896         [BZ #13335]
23897         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
23898         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23899
23900         * string/test-strchr.c: Make usable for strchrnul testing.
23901         * string/test-strchrnul.c: New file.
23902         * string/Makefile (strop-tests): Add strchrnul.
23903
23904         * po/it.po: Update from translation team.
23905         * po/es.po: Likewise.
23906
23907 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
23908
23909         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
23910         the three constants needed as parameters.  Drop the others.
23911         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
23912         __m128i_strloadu_tolower.
23913         Create and initialize variable zero and use it in all the places
23914         where _mm_setzero_si128 was used.
23915
23916         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
23917         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
23918         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
23919         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
23920         anymore.
23921         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
23922         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
23923         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
23924         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
23925         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
23926         __mpranred, __mptan.
23927         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
23928         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
23929         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
23930         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
23931         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
23932         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
23933         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
23934         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
23935         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
23936
23937 2011-10-28  Andreas Schwab  <schwab@redhat.com>
23938
23939         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
23940         redefine if SHARED.
23941         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
23942
23943         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
23944         wide char related routines to wcsmbs subdir.
23945
23946 2011-10-27  Andreas Schwab  <schwab@redhat.com>
23947
23948         [BZ #13344]
23949         * misc/sys/cdefs.h (__THROWNL): Define.
23950         * posix/unistd.h: Use __THREADNL instead of __THREAD
23951         for memory synchronization functions.
23952
23953 2011-10-26  Roland McGrath  <roland@hack.frob.com>
23954
23955         [BZ #13349]
23956         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
23957         doesn't exist.
23958         * manual/stdio.texi (Obstack Streams): Node removed.
23959
23960 2011-10-26  Andreas Schwab  <schwab@redhat.com>
23961
23962         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
23963         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23964         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23965
23966         * math/math_private.h (math_force_eval): Allow non-addressable
23967         arguments.
23968         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
23969
23970 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23971
23972         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
23973         file is not needed.
23974
23975         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
23976         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
23977         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23978         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23979         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23980         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23981         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23982         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
23983         Add AVX variants.
23984         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
23985         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
23986         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
23987         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
23988         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
23989         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
23990         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
23991         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
23992         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
23993         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
23994         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
23995         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
23996         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
23997         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
23998         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
23999         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
24000         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
24001         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
24002         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
24003
24004         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
24005         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
24006
24007         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
24008         place.  Use VEX encoding when compiling for AVX.
24009
24010 2011-10-25  Andreas Schwab  <schwab@redhat.com>
24011
24012         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
24013         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
24014
24015         * string/test-strchr.c (do_test): Don't generate NUL bytes.
24016
24017 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
24018
24019         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
24020         useless if() expression.
24021         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24022         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
24023         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
24024         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24025         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
24026         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
24027         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24028         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24029         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
24030         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24031         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24032         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24033         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
24034         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24035         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
24036         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
24037         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24038         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24039         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
24040
24041         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
24042
24043 2011-10-25  Andreas Schwab  <schwab@redhat.com>
24044
24045         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
24046         condition.
24047         * elf/dl-fini.c (_dl_sort_fini): Likewise.
24048
24049 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
24050
24051         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
24052         .text section.  Avoid duplicate constants.
24053         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
24054         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24055         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24056         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24057         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24058         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24059         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24060         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24061         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
24062         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
24063         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
24064         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
24065         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
24066         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
24067         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
24068         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
24069         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
24070         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
24071         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
24072         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24073         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
24074         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
24075         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
24076         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
24077         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
24078         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
24079         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
24080         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
24081         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
24082         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
24083         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
24084         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
24085         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
24086         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
24087         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
24088         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
24089         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
24090         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
24091         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
24092         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
24093         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
24094         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
24095         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
24096         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24097         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
24098
24099 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
24100
24101         * sysdeps/x86_64/dla.h: Move to ...
24102         * sysdeps/x86_64/fpu/dla.h: ...here.
24103         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
24104         situations.  Use __builtin_fma only for gcc 4.6 and up.
24105
24106         * config.make.in: Add have-mfma4 entry.
24107         * configure.in: Substitute libc_cv_cc_fma4.
24108         * math/Makefile (dbl-only-routines): Add sincostab.
24109         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
24110         Use __sincostab not sincos.
24111         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
24112         name is a macro.
24113         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24114         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24115         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24116         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
24117         using __copysign.
24118         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
24119         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
24120         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
24121         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
24122         and __inv.
24123         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
24124         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
24125         __copysign.
24126         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
24127         define aliases when function name is a macro.
24128         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
24129         sysdeps/ieee754/dbl-64/sincos.tbl.
24130         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
24131         fma4-enabled routines.
24132         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
24133         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
24134         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
24135         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
24136         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
24137         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
24138         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
24139         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
24140         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
24141         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
24142         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
24143         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
24144         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
24145         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
24146         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
24147         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
24148         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
24149         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
24150         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
24151         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
24152         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
24153         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
24154         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
24155         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
24156         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
24157         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
24158         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
24159         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
24160         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
24161         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
24162
24163         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
24164         rename.
24165         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24166         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24167         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24168         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24169         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24170         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24171         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24172         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24173
24174 2011-10-24  Andreas Schwab  <schwab@redhat.com>
24175
24176         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
24177
24178 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24179
24180         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
24181
24182         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
24183         prediction.
24184         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
24185
24186         * string/strnlen.c: Don't define STRNLEN, reverse logic.
24187         Remove unused variable magic_bits.
24188         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
24189
24190         * string/strnlen.c: Define and use STRNLEN macro.
24191         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
24192         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
24193         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
24194         * wcsmbs/wcslen.c: Define and use WCSLEN.
24195         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
24196         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
24197         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
24198         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
24199         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
24200         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
24201         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24202
24203 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24204
24205         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24206         strnlen-sse2-no-bsf.
24207         Rename strlen-no-bsf to strlen-sse2-no-bsf.
24208         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
24209         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
24210         Add strnlen support.
24211         (USE_AS_STRNLEN): New macro.
24212         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
24213         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
24214         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
24215         * sysdeps/x86_64/wcslen.S: New file.
24216
24217 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
24218
24219         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
24220         XMM-moves are used for copying on small sizes.
24221
24222 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24223
24224         * wcsmbs/Makefile (strop-tests): Add wcschr.
24225         * wcsmbs/test-wcschr.c: New file.
24226         * string/test-strchr.c: Update.
24227         Add wcschr support.
24228         (WIDE): New macro.
24229
24230 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24231
24232         * wcsmbs/Makefile (strop-tests): Add wcslen.
24233         * wcsmbs/test-wcslen.c: New file.
24234         * string/test-strlen.c: Update.
24235         Add wcslen support.
24236         (WIDE): New macro.
24237
24238 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24239
24240         * po/it.po: Update from translation team.
24241
24242 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24243
24244         * sysdeps/x86_64/wcscmp.S: Update.
24245         Fix wrong comparison semantics.
24246         wcscmp shall use signed comparison not unsigned.
24247         Don't use substraction to avoid overflow bug.
24248         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24249         * wcsmbc/wcscmp.c: Likewise.
24250         * string/test-strcmp.c: Likewise.
24251         Add new tests to check cases with negative values.
24252
24253 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24254
24255         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
24256         * sysdeps/x86_64/dla.h: ...here.  New file.
24257         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
24258         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24259         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24260         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24261         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24262         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24263         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24264         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24265         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24266
24267 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
24268
24269         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
24270         __ynl_finite aliases.
24271
24272 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
24273
24274         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24275
24276         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
24277         define DLA_FMA.
24278         [DLA_FMA] (EMULV): Use DLA_FMA.
24279         [DLA_FMA] (MUL12): Use EMULV.
24280         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
24281         that are not needed.
24282         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24283         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24284         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24285         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24286         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24287         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24288         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24289
24290 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
24291
24292         * math/s_nan.c: Undef __nan.
24293         * math/s_nanf.c: Undef __nanf.
24294         * math/s_nanl.c: Undef __nanl.
24295         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
24296         "math_private.h".
24297
24298 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
24299
24300         * math/s_catan.c: Add branch predictions.
24301         * math/s_catanf.c: Likewise.
24302         * math/s_catanh.c: Likewise.
24303         * math/s_catanhf.c: Likewise.
24304         * math/s_catanhl.c: Likewise.
24305         * math/s_catanl.c: Likewise.
24306         * math/s_cexp.c: Likewise.
24307         * math/s_cexpf.c: Likewise.
24308         * math/s_cexpl.c: Likewise.
24309         * math/s_clog.c: Likewise.
24310         * math/s_clog10.c: Likewise.
24311         * math/s_clog10f.c: Likewise.
24312         * math/s_clog10l.c: Likewise.
24313         * math/s_clogf.c: Likewise.
24314         * math/s_clogl.c: Likewise.
24315         * math/s_csqrt.c: Likewise.
24316         * math/s_csqrtf.c: Likewise.
24317         * math/s_csqrtl.c: Likewise.
24318         * math/s_ctanf.c: Likewise.
24319         * math/s_ctanh.c: Likewise.
24320         * math/s_ctanhf.c: Likewise.
24321         * math/s_ctanhl.c: Likewise.
24322         * math/s_ctanl.c: Likewise.
24323
24324         * math/math_private.h: Define __nan, __nanf, __nanl.
24325         * math/s_cacosh.c: Include <math_private.h>.
24326         * math/s_cacoshl.c: Likewise.
24327         * math/s_casinh.c: Likewise.
24328         * math/s_casinhf.c: Likewise.
24329         * math/s_casinhl.c: Likewise.
24330         * math/s_ccos.c: Rely entire on ccosh.
24331         * math/s_ccosf.c: Rely entire on ccoshf.
24332         * math/s_ccosl.c: Rely entirely on ccoshl.
24333         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
24334         Remove tests for FE_INVALID.
24335         * math/s_ccoshf.c: Likewise.
24336         * math/s_ccoshl.c: Likewise.
24337         * math/s_csin.c: Likewise.
24338         * math/s_csinf.c: Likewise.
24339         * math/s_csinh.c Likewise.
24340         * math/s_csinhf.c: Likewise.
24341         * math/s_csinhl.c: Likewise.
24342         * math/s_csinl.c: Likewise.
24343         * math/s_ctan.c: Likewise.
24344         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
24345         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
24346         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
24347
24348 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
24349
24350         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
24351         compilation problems.
24352
24353         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
24354         __builtin_expect.
24355
24356 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
24357
24358         * sysdeps/i386/configure.in: Test for -mfma4 option.
24359         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
24360         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
24361         COMMON_CPUID_INDEX_80000001.
24362         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
24363         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
24364         use it if FMA3 is not supported.
24365         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
24366
24367         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
24368         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
24369
24370 2011-10-20  Andreas Schwab  <schwab@redhat.com>
24371
24372         [BZ #12892]
24373         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
24374         it would create a cycle with a link time dependency.
24375
24376 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
24377
24378         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
24379         instruction.
24380         * string/Makefile (strop-tests): Add rawmemchr.
24381         * string/test-rawmemchr.c: New file.
24382
24383         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
24384         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
24385         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
24386         when compiling str{,n}casecmp and when AVX is available.  Hook up
24387         new optimized code in initializers.
24388
24389 2011-10-19  Andreas Schwab  <schwab@redhat.com>
24390
24391         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
24392         __feraiseexcept instead of feraiseexcept.
24393
24394 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
24395
24396         * math/math_private.h: Define defaults for libc_fetestexcept and
24397         libc_feupdateenv.
24398         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
24399         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
24400         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
24401         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
24402         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
24403         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
24404         libc_fetestexcept and libc_feupdateenv.
24405
24406         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
24407         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
24408         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
24409         * sysdeps/x86_64/fpu/math_private.h: Define special version of
24410         libc_feholdexcept_setround.
24411
24412         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
24413         Add s_nearbyint-c and s_nearbyintf-c.
24414         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
24415         nearbyintf inlines.
24416         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
24417         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
24418         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
24419         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
24420
24421         * math/math_private.h: Define defaults for libc_fegetround,
24422         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
24423         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
24424         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
24425         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
24426         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
24427         standard functions.
24428         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
24429         Remove comments and hacks for old compiler versions.
24430         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
24431         libc_fegetround, libc_fesetround, libc_feholdexcept, and
24432         libc_feholdexceptl.
24433
24434 2011-10-18  Andreas Schwab  <schwab@redhat.com>
24435
24436         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
24437         (__feraiseexcept_renamed): Add __NTH.
24438         (feraiseexcept): Add __NTH.  Rename local variables to fix
24439         namespace violations.
24440
24441 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
24442
24443         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
24444
24445         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
24446
24447         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
24448         recently added interfaces.
24449         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
24450
24451         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
24452         about macro parameter expansion.
24453
24454         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
24455         __NO_MATH_INLINES is defined.  Cleanups.
24456
24457         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
24458         and __floorf is target has SSE4.1.
24459         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
24460         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
24461         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
24462         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
24463
24464         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
24465         name.
24466         (floorf): Likewise.
24467
24468         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
24469
24470 2011-10-17  Andreas Schwab  <schwab@redhat.com>
24471
24472         * misc/sys/cdefs.h: Fix last change.
24473
24474         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
24475         database lookup.
24476
24477 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
24478
24479         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
24480
24481         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
24482         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24483         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
24484         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24485         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24486         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
24487         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24488         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24489         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
24490         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
24491         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
24492         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
24493         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
24494         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
24495         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
24496         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
24497         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
24498         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
24499         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
24500         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
24501         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
24502         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
24503
24504         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
24505         ceil, ceilf, floor, floorf.
24506
24507         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
24508         Perform IRELATIVE relocations last.
24509
24510         * elf/do-rel.h: Add another parameter nrelative, replacing the
24511         local variable with the same name.  Change name of the function
24512         to end in Rel or Rela (uppercase).
24513         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
24514         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
24515         elf_dynamic_do_##reloc function.
24516
24517 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
24518
24519         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
24520         is sufficient, at least on modern CPUs.
24521
24522         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
24523
24524         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
24525         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
24526
24527         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
24528         __expl_finite.
24529         * math/bits/math-finite.h: Add entries for exp.
24530         * math/e_expl.c: Add __*_finite alias.
24531         * sysdeps/i386/fpu/e_exp.S: Likewise.
24532         * sysdeps/i386/fpu/e_expf.S: Likewise.
24533         * sysdeps/i386/fpu/e_expl.c: Likewise.
24534         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24535         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
24536         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
24537         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
24538         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
24539         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
24540         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
24541
24542         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
24543         is sufficient, at least on modern CPUs.
24544
24545         * ctype/ctype-info.c (__ctype_init): Define.
24546         * include/ctype.h (__ctype_init): Declare.
24547         (__ctype_b_loc): The variable is always initialized.
24548         (__ctype_toupper_loc): Likewise.
24549         (__ctype_tolower_loc): Likewise.
24550         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
24551         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
24552
24553 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
24554
24555         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
24556
24557         * configure.in: Also look in $cxxmachine/include for C++ system
24558         headers.
24559
24560 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24561
24562         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
24563         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
24564         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
24565         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
24566         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
24567         (USE_AS_WMEMCMP): New macro.
24568         Fixing indents.
24569         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
24570         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
24571         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
24572         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
24573         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24574         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
24575         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
24576         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
24577         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
24578         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
24579         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
24580         (USE_AS_WMEMCMP): New macro.
24581         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
24582         * sysdeps/string/test-memcmp.c: Update.
24583         Fix simple_wmemcmp.
24584         Add new tests.
24585         * wcsmbs/wmemcmp.c: Update.
24586         (WMEMCMP): New macro.
24587         Fix overflow bug.
24588
24589 2011-10-12  Andreas Jaeger  <aj@suse.de>
24590
24591         [BZ #13268]
24592         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
24593
24594 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
24595
24596         * libio/iofwide.c (do_length): Avoid warning.
24597
24598         * ctype/ctype.h (__isctype_f): Add missing __THROW.
24599
24600 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
24601
24602         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
24603
24604         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
24605         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
24606         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
24607         * sysdeps/i386/i686/fpu/e_log.S: New file.
24608         * sysdeps/i386/i686/fpu/e_logf.S: New file.
24609         * sysdeps/i386/i686/fpu/e_logl.S: New file.
24610
24611         * ctype/ctype.h: Add support for inlined isXXX functions when
24612         compiling C++ code.
24613
24614 2011-10-14  Andreas Schwab  <schwab@redhat.com>
24615
24616         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24617
24618         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
24619
24620 2011-10-13  Roland McGrath  <roland@hack.frob.com>
24621
24622         [BZ #13291]
24623         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
24624
24625 2011-10-13  Andreas Schwab  <schwab@redhat.com>
24626
24627         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
24628         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
24629         feraiseexcept.
24630
24631         * sysdeps/x86_64/memrchr.S: Check for zero size.
24632
24633         * string/stratcliff.c: Add memrchr tests.
24634
24635 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24636
24637         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24638         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
24639         rawmemchr-sse2 rawmemchr-sse2-bsf.
24640         * sysdeps/i386/i686/multiarch/memchr.S: New file.
24641         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
24642         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
24643         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
24644         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
24645         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
24646         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
24647         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
24648         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
24649         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
24650         * string/memrchr.c (MEMRCHR): New macro.
24651
24652 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
24653
24654         Add integration with gcc's -ffinite-math-only and optimize wrapper
24655         functions in libm.
24656         * Versions.def: Define GLIBC_2.15 version for libm.
24657         * math/Makefile (headers): Add bits/math-finite.h.
24658         * math/bits/math-finite.h: New file.
24659         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
24660         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
24661         * math/e_acoshl.c: Add __*_finite alias.
24662         * math/e_acosl.c: Likewise.
24663         * math/e_asinl.c: Likewise.
24664         * math/e_atan2l.c: Likewise.
24665         * math/e_atanhl.c: Likewise.
24666         * math/e_coshl.c: Likewise.
24667         * math/e_exp10.c: Likewise.
24668         * math/e_exp10f.c: Likewise.
24669         * math/e_exp10l.c: Likewise.
24670         * math/e_exp2l.c: Likewise.
24671         * math/e_fmodl.c: Likewise.
24672         * math/e_gammal_r.c: Likewise.
24673         * math/e_hypotl.c: Likewise.
24674         * math/e_j0l.c: Likewise.
24675         * math/e_j1l.c: Likewise.
24676         * math/e_jnl.c: Likewise.
24677         * math/e_lgammal_r.c: Likewise.
24678         * math/e_log10l.c: Likewise.
24679         * math/e_log2l.c: Likewise.
24680         * math/e_logl.c: Likewise.
24681         * math/e_powl.c: Likewise.
24682         * math/e_sinhl.c: Likewise.
24683         * math/e_sqrtl.c: Likewise.
24684         * math/e_scalb.c: Completely rewritten and optimized.
24685         * math/e_scalbf.c: Likewise.
24686         * math/e_scalbl.c: Likewise.
24687         * math/w_acos.c: Likewise.
24688         * math/w_acosf.c: Likewise.
24689         * math/w_acosl.c: Likewise.
24690         * math/w_acosh.c: Likewise.
24691         * math/w_acoshf.c: Likewise.
24692         * math/w_acoshl.c: Likewise.
24693         * math/w_asin.c: Likewise.
24694         * math/w_asinf.c: Likewise.
24695         * math/w_asinl.c: Likewise.
24696         * math/w_atan2.c: Likewise.
24697         * math/w_atan2f.c: Likewise.
24698         * math/w_atan2l.c: Likewise.
24699         * math/w_atanh.c: Likewise.
24700         * math/w_atanhf.c: Likewise.
24701         * math/w_atanhl.c: Likewise.
24702         * math/w_exp10.c: Likewise.
24703         * math/w_exp10f.c: Likewise.
24704         * math/w_exp10l.c: Likewise.
24705         * math/w_fmod.c: Likewise.
24706         * math/w_fmodf.c: Likewise.
24707         * math/w_fmodl.c: Likewise.
24708         * math/w_j0.c: Likewise.
24709         * math/w_j0f.c: Likewise.
24710         * math/w_j0l.c: Likewise.
24711         * math/w_j1.c: Likewise.
24712         * math/w_j1f.c: Likewise.
24713         * math/w_j1l.c: Likewise.
24714         * math/w_jn.c: Likewise.
24715         * math/w_jnf.c: Likewise.
24716         * math/w_log.c: Likewise.
24717         * math/w_logf.c: Likewise.
24718         * math/w_logl.c: Likewise.
24719         * math/w_log10.c: Likewise.
24720         * math/w_log10f.c: Likewise.
24721         * math/w_log10l.c: Likewise.
24722         * math/w_log2.c: Likewise.
24723         * math/w_log2f.c: Likewise.
24724         * math/w_log2l.c: Likewise.
24725         * math/w_pow.c: Likewise.
24726         * math/w_powf.c: Likewise.
24727         * math/w_powl.c: Likewise.
24728         * math/w_remainder.c: Likewise.
24729         * math/w_remainderf.c: Likewise.
24730         * math/w_remainderl.c: Likewise.
24731         * math/w_scalb.c: Likewise.
24732         * math/w_scalbf.c: Likewise.
24733         * math/w_scalbl.c: Likewise.
24734         * math/w_sqrt.c: Likewise.
24735         * math/w_sqrtf.c: Likewise.
24736         * math/w_sqrtl.c: Likewise.
24737         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
24738         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
24739         used.
24740         * math/math_private.h: Declare __kernel_standard_f.
24741         * math/w_cosh.c: Remove cruft and optimize a bit.
24742         * math/w_coshf.c: Likewise.
24743         * math/w_coshl.c: Likewise.
24744         * math/w_exp2.c: Likewise.
24745         * math/w_exp2f.c: Likewise.
24746         * math/w_exp2l.c: Likewise.
24747         * math/w_hypot.c: Likewise.
24748         * math/w_hypotf.c: Likewise.
24749         * math/w_hypotl.c: Likewise.
24750         * math/w_lgamma.c: Likewise.
24751         * math/w_lgamma_r.c: Likewise.
24752         * math/w_lgammaf.c: Likewise.
24753         * math/w_lgammaf_r.c: Likewise.
24754         * math/w_lgammal.c: Likewise.
24755         * math/w_lgammal_r.c: Likewise.
24756         * math/w_sinh.c: Likewise.
24757         * math/w_sinhf.c: Likewise.
24758         * math/w_sinhl.c: Likewise.
24759         * math/w_tgamma.c: Likewise.
24760         * math/w_tgammaf.c: Likewise.
24761         * math/w_tgammal.c: Likewise.
24762         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24763         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24764         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
24765         Minor optimizations.  Pretty printing.  Remove cruft.
24766         * sysdeps/i386/fpu/e_acosf.S: Likewise.
24767         * sysdeps/i386/fpu/e_acosh.S: Likewise.
24768         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
24769         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
24770         * sysdeps/i386/fpu/e_acosl.c: Likewise.
24771         * sysdeps/i386/fpu/e_asin.S: Likewise.
24772         * sysdeps/i386/fpu/e_asinf.S: Likewise.
24773         * sysdeps/i386/fpu/e_atan2.S: Likewise.
24774         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
24775         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
24776         * sysdeps/i386/fpu/e_atanh.S: Likewise.
24777         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
24778         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
24779         * sysdeps/i386/fpu/e_exp10.S: Likewise.
24780         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
24781         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
24782         * sysdeps/i386/fpu/e_exp2.S: Likewise.
24783         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
24784         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
24785         * sysdeps/i386/fpu/e_fmod.S: Likewise.
24786         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
24787         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
24788         * sysdeps/i386/fpu/e_hypot.S: Likewise.
24789         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
24790         * sysdeps/i386/fpu/e_log.S: Likewise.
24791         * sysdeps/i386/fpu/e_log10.S: Likewise.
24792         * sysdeps/i386/fpu/e_log10f.S: Likewise.
24793         * sysdeps/i386/fpu/e_log10l.S: Likewise.
24794         * sysdeps/i386/fpu/e_log2.S: Likewise.
24795         * sysdeps/i386/fpu/e_log2f.S: Likewise.
24796         * sysdeps/i386/fpu/e_log2l.S: Likewise.
24797         * sysdeps/i386/fpu/e_logf.S: Likewise.
24798         * sysdeps/i386/fpu/e_logl.S: Likewise.
24799         * sysdeps/i386/fpu/e_pow.S: Likewise.
24800         * sysdeps/i386/fpu/e_powf.S: Likewise.
24801         * sysdeps/i386/fpu/e_powl.S: Likewise.
24802         * sysdeps/i386/fpu/e_remainder.S: Likewise.
24803         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
24804         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
24805         * sysdeps/i386/fpu/e_scalb.S: Likewise.
24806         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
24807         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
24808         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
24809         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
24810         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
24811         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24812         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24813         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24814         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24815         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
24816         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24817         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
24818         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24819         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24820         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24821         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24822         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24823         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24824         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24825         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24826         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24827         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24828         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24829         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24830         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24831         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24832         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
24833         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24834         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24835         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
24836         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
24837         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
24838         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
24839         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
24840         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
24841         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24842         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24843         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24844         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24845         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24846         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24847         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24848         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24849         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24850         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24851         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24852         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24853         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24854         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24855         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24856         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24857         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24858         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24859         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24860         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
24861         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24862         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24863         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24864         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24865         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24866         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24867         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24868         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24869         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24870         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24871         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24872         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24873         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24874         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24875         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24876         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24877         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24878         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24879         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
24880         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24881         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24882         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24883         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24884         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24885         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24886         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24887         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
24888         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24889         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24890         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24891         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24892         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24893         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
24894         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24895         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24896         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24897         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24898         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24899         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24900         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24901         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24902         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24903         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24904         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
24905         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
24906         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
24907         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
24908         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
24909         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
24910         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
24911         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
24912         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
24913         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
24914         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
24915         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
24916         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
24917         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
24918         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
24919         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
24920         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
24921         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
24922         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
24923         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
24924         (__isnanf): Likewise.
24925         (__isinf_ns): Likewise.
24926         (__isinf_nsf): Likewise.
24927         (__finite): Likewise.
24928         (__finitef): Likewise.
24929         (__ieee754_sqrt): Define as macro.
24930         (__ieee754_sqrtf): Define as macro.
24931         (__ieee754_sqrtl): Define as macro.
24932         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
24933         inlined copy.
24934         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
24935         __FINITE_MATH_ONLY__ consistent.
24936         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
24937
24938 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
24939
24940         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
24941         of rawmemchr.
24942
24943         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
24944
24945 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
24946
24947         * po/ja.po: Update from translation team.
24948
24949 2011-10-08  Roland McGrath  <roland@hack.frob.com>
24950
24951         * locale/programs/locarchive.c (prepare_address_space): New function.
24952         (create_archive, enlarge_archive, open_archive): Use it.
24953
24954         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
24955         inside [SHARED], where it is used.
24956
24957         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
24958
24959         * nss/getent.c (netgroup_keys): Remove unused variable.
24960         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24961
24962 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
24963
24964         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
24965         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
24966         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
24967         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
24968         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
24969         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
24970         * math/Makefile (libm-calls): Add s_isinf_ns.
24971         * math/divtc3.c: Use __isinf_nsl instead of isinf.
24972         * math/multc3.c: Likewise.
24973         * math/s_casin.c: Likewise.
24974         * math/s_casinf.c: Likewise.
24975         * math/s_casinl.c: Likewise.
24976         * math/s_ccos.c: Likewise.
24977         * math/s_ccosf.c: Likewise.
24978         * math/s_ccosl.c: Likewise.
24979         * math/s_ctan.c: Likewise.
24980         * math/s_ctanf.c: Likewise.
24981         * math/s_ctanh.c: Likewise.
24982         * math/s_ctanhf.c: Likewise.
24983         * math/s_ctanhl.c: Likewise.
24984         * math/s_ctanl.c: Likewise.
24985         * math/w_fmod.c: Likewise.
24986         * math/w_fmodf.c: Likewise.
24987         * math/w_fmodl.c: Likewise.
24988         * math/w_remainder.c: Likewise.
24989         * math/w_remainderf.c: Likewise.
24990         * math/w_remainderl.c: Likewise.
24991         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
24992         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
24993         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
24994         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
24995         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
24996         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
24997         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
24998         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
24999
25000         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
25001         of the number.
25002         * stdio-common/printf_fphex.c: Likewise.
25003         * stdio-common/printf_size.c: Likewise.
25004
25005         * math/e_exp10.c: Include math_private.h using <...> not "...".
25006         * math/e_exp10f.c: Likewise.
25007         * math/e_exp10l.c: Likewise.
25008         * math/e_exp2l.c: Likewise.
25009         * math/e_j0l.c: Likewise.
25010         * math/e_j1l.c: Likewise.
25011         * math/e_jnl.c: Likewise.
25012         * math/e_lgammal_r.c: Likewise.
25013         * math/e_rem_pio2l.c: Likewise.
25014         * math/e_scalb.c: Likewise.
25015         * math/e_scalbf.c: Likewise.
25016         * math/e_scalbl.c: Likewise.
25017         * math/k_cosl.c: Likewise.
25018         * math/k_sinl.c: Likewise.
25019         * math/k_tanl.c: Likewise.
25020         * math/s_cacoshf.c: Likewise.
25021         * math/s_catan.c: Likewise.
25022         * math/s_catanf.c: Likewise.
25023         * math/s_catanh.c: Likewise.
25024         * math/s_catanhf.c: Likewise.
25025         * math/s_catanhl.c: Likewise.
25026         * math/s_catanl.c: Likewise.
25027         * math/s_ccosh.c: Likewise.
25028         * math/s_ccoshf.c: Likewise.
25029         * math/s_ccoshl.c: Likewise.
25030         * math/s_cexp.c: Likewise.
25031         * math/s_cexpf.c: Likewise.
25032         * math/s_cexpl.c: Likewise.
25033         * math/s_clog.c: Likewise.
25034         * math/s_clog10.c: Likewise.
25035         * math/s_clog10f.c: Likewise.
25036         * math/s_clog10l.c: Likewise.
25037         * math/s_clogf.c: Likewise.
25038         * math/s_clogl.c: Likewise.
25039         * math/s_csin.c: Likewise.
25040         * math/s_csinf.c: Likewise.
25041         * math/s_csinh.c: Likewise.
25042         * math/s_csinhf.c: Likewise.
25043         * math/s_csinhl.c: Likewise.
25044         * math/s_csinl.c: Likewise.
25045         * math/s_csqrt.c: Likewise.
25046         * math/s_csqrtf.c: Likewise.
25047         * math/s_csqrtl.c: Likewise.
25048         * math/s_ctan.c: Likewise.
25049         * math/s_ctanf.c: Likewise.
25050         * math/s_ctanh.c: Likewise.
25051         * math/s_ctanhf.c: Likewise.
25052         * math/s_ctanhl.c: Likewise.
25053         * math/s_ctanl.c: Likewise.
25054         * math/s_ldexp.c: Likewise.
25055         * math/s_ldexpf.c: Likewise.
25056         * math/s_ldexpl.c: Likewise.
25057         * math/s_significand.c: Likewise.
25058         * math/s_significandf.c: Likewise.
25059         * math/s_significandl.c: Likewise.
25060         * math/w_acos.c: Likewise.
25061         * math/w_acosf.c: Likewise.
25062         * math/w_acosh.c: Likewise.
25063         * math/w_acoshf.c: Likewise.
25064         * math/w_acoshl.c: Likewise.
25065         * math/w_acosl.c: Likewise.
25066         * math/w_asin.c: Likewise.
25067         * math/w_asinf.c: Likewise.
25068         * math/w_asinl.c: Likewise.
25069         * math/w_atan2.c: Likewise.
25070         * math/w_atan2f.c: Likewise.
25071         * math/w_atan2l.c: Likewise.
25072         * math/w_atanh.c: Likewise.
25073         * math/w_atanhf.c: Likewise.
25074         * math/w_atanhl.c: Likewise.
25075         * math/w_cosh.c: Likewise.
25076         * math/w_coshf.c: Likewise.
25077         * math/w_coshl.c: Likewise.
25078         * math/w_dremf.c: Likewise.
25079         * math/w_exp10.c: Likewise.
25080         * math/w_exp10f.c: Likewise.
25081         * math/w_exp10l.c: Likewise.
25082         * math/w_exp2.c: Likewise.
25083         * math/w_exp2f.c: Likewise.
25084         * math/w_fmod.c: Likewise.
25085         * math/w_fmodf.c: Likewise.
25086         * math/w_fmodl.c: Likewise.
25087         * math/w_hypot.c: Likewise.
25088         * math/w_hypotf.c: Likewise.
25089         * math/w_hypotl.c: Likewise.
25090         * math/w_j0.c: Likewise.
25091         * math/w_j0f.c: Likewise.
25092         * math/w_j0l.c: Likewise.
25093         * math/w_j1.c: Likewise.
25094         * math/w_j1f.c: Likewise.
25095         * math/w_j1l.c: Likewise.
25096         * math/w_jn.c: Likewise.
25097         * math/w_jnf.c: Likewise.
25098         * math/w_jnl.c: Likewise.
25099         * math/w_lgamma.c: Likewise.
25100         * math/w_lgamma_r.c: Likewise.
25101         * math/w_lgammaf.c: Likewise.
25102         * math/w_lgammaf_r.c: Likewise.
25103         * math/w_lgammal.c: Likewise.
25104         * math/w_lgammal_r.c: Likewise.
25105         * math/w_log.c: Likewise.
25106         * math/w_log10.c: Likewise.
25107         * math/w_log10f.c: Likewise.
25108         * math/w_log10l.c: Likewise.
25109         * math/w_log2.c: Likewise.
25110         * math/w_log2f.c: Likewise.
25111         * math/w_log2l.c: Likewise.
25112         * math/w_logf.c: Likewise.
25113         * math/w_logl.c: Likewise.
25114         * math/w_pow.c: Likewise.
25115         * math/w_powf.c: Likewise.
25116         * math/w_powl.c: Likewise.
25117         * math/w_remainder.c: Likewise.
25118         * math/w_remainderf.c: Likewise.
25119         * math/w_remainderl.c: Likewise.
25120         * math/w_scalb.c: Likewise.
25121         * math/w_scalbf.c: Likewise.
25122         * math/w_scalbl.c: Likewise.
25123         * math/w_sinh.c: Likewise.
25124         * math/w_sinhf.c: Likewise.
25125         * math/w_sinhl.c: Likewise.
25126         * math/w_sqrt.c: Likewise.
25127         * math/w_sqrtf.c: Likewise.
25128         * math/w_sqrtl.c: Likewise.
25129         * math/w_tgamma.c: Likewise.
25130         * math/w_tgammaf.c: Likewise.
25131         * math/w_tgammal.c: Likewise.
25132
25133         * po/ja.po: Update from translation team.
25134
25135 2011-09-29  Andreas Jaeger  <aj@suse.de>
25136
25137         [BZ #13179]
25138         * sunrpc/netname.c (netname2host): Fix logic.
25139
25140         [BZ #6779]
25141         [BZ #6783]
25142         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
25143         correctly.
25144         * math/w_remainder.c (__remainder): Likewise.
25145         * math/w_remainderf.c (__remainderf): Likewise.
25146         * math/libm-test.inc (remainder_test): Add test cases.
25147
25148 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25149
25150         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
25151         sdiv_qrnnd.
25152
25153 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
25154
25155         * string/test-memcmp.c: Avoid unncessary #defines.
25156         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
25157
25158 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25159
25160         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
25161         Use new sse2 version for core i3 - i7 as it's faster
25162         than sse42 version.
25163         (bit_Prefer_PMINUB_for_stringop): New.
25164         * sysdeps/x86_64/rawmemchr.S: Update.
25165         Replace with faster SSE2 version.
25166         * sysdeps/x86_64/memrchr.S: New file.
25167         * sysdeps/x86_64/memchr.S: Update.
25168         Replace with faster SSE2 version.
25169
25170 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
25171
25172         * elf/dl-load.c (lose): Add cast to avoid warning.
25173
25174 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
25175
25176         * po/ca.po: Update from translation team.
25177
25178         * inet/getnetgrent_r.c: Hook up nscd.
25179         * nscd/Makefile (routines): Add nscd_netgroup.
25180         (nscd-modules): Add netgroupcache.
25181         (CFLAGS-netgroupcache.c): Define.
25182         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
25183         (cache_search): Add const to second parameter.
25184         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
25185         INNETGR.
25186         (dbs): Add netgrdb entry.
25187         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
25188         (verify_persistent_db): Handle netgrdb.
25189         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
25190         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
25191         GETFDNETGR.
25192         (netgroup_response_header): Define.
25193         (innetgroup_response_header): Define.
25194         (datahead): Add netgroup_response_header and innetgroup_response_header
25195         elements.
25196         * nscd/nscd.conf: Add entries for netgroup cache.
25197         * nscd/nscd.h (dbtype): Add netgrdb.
25198         (_PATH_NSCD_NETGROUP_DB): Define.
25199         (netgroup_iov_disabled): Declare.
25200         (xmalloc, xcalloc, xrealloc): Move declarations here.
25201         (cache_search): Adjust prototype.
25202         Add netgroup-related prototypes.
25203         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
25204         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
25205         (__nscd_innetgr): Declare.
25206         * nscd/selinux.c (perms): Use access_vector_t as element type and
25207         add netgroup-related initializers.
25208         * nscd/netgroupcache.c: New file.
25209         * nscd/nscd_netgroup.c: New file.
25210         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
25211         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
25212         For four parameters use innetgr.
25213         * nss/nss_files/files-init.c: Add definition and callback for netgr.
25214         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
25215         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
25216         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
25217
25218         * nscd/connections.c (register_traced_file): Don't register file
25219         for disabled databases.
25220
25221 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
25222
25223         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
25224
25225         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
25226         from tree and freeing node.
25227
25228 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
25229
25230         * nss/nsswitch.c (__nss_database_lookup): Handle
25231         nss_parse_service_list out of memory case.
25232
25233 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
25234
25235         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
25236         out of memory case.
25237
25238 2011-10-04  Andreas Schwab  <schwab@redhat.com>
25239
25240         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
25241         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
25242         pass it down.
25243         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
25244         elf_machine_rela, elf_machine_lazy_rel.
25245         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
25246         (ELF_DYNAMIC_DO_REL): Likewise.
25247         (ELF_DYNAMIC_DO_RELA): Likewise.
25248         (ELF_DYNAMIC_RELOCATE): Likewise.
25249         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
25250         to ELF_DYNAMIC_DO_REL.
25251         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
25252         (dl_main): In trace mode always set __RTLD_NOIFUNC.
25253         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
25254         elf_machine_rela.
25255         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
25256         skip_ifunc, don't call ifunc function if non-zero.
25257         (elf_machine_rela): Likewise.
25258         (elf_machine_lazy_rel): Likewise.
25259         (elf_machine_lazy_rela): Likewise.
25260         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
25261         (elf_machine_lazy_rel): Likewise.
25262         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25263         Likewise.
25264         (elf_machine_lazy_rel): Likewise.
25265         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25266         Likewise.
25267         (elf_machine_lazy_rel): Likewise.
25268         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
25269         (elf_machine_lazy_rel): Likewise.
25270         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
25271         (elf_machine_lazy_rel): Likewise.
25272         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
25273         (elf_machine_lazy_rel): Likewise.
25274         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25275         (elf_machine_lazy_rel): Likewise.
25276         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25277         (elf_machine_lazy_rel): Likewise.
25278         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
25279         (elf_machine_lazy_rel): Likewise.
25280
25281 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
25282
25283         * nss/nss_files/files-init.c (_nss_files_init): Use static
25284         initialization for all the *_traced_file variables.
25285
25286 2011-09-28  Andreas Schwab  <schwab@redhat.com>
25287
25288         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25289
25290 2011-09-27  Roland McGrath  <roland@hack.frob.com>
25291
25292         [BZ #13226]
25293         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
25294
25295 2011-09-27  Andreas Schwab  <schwab@redhat.com>
25296
25297         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
25298         Reread the line before reparsing it.
25299
25300 2011-09-26  Andreas Schwab  <schwab@redhat.com>
25301
25302         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
25303
25304 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
25305             Maxim Kuvyrkov  <maxim@codesourcery.com>
25306             Joseph Myers  <joseph@codesourcery.com>
25307
25308         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
25309         if needed for __stack_chk_guard.
25310
25311 2011-09-19  Roland McGrath  <roland@hack.frob.com>
25312
25313         * sysdeps/posix/spawni.c (script_execute): Always define it.
25314         It will be optimized away if unused.
25315         (maybe_script_execute): New function.
25316         (__spawni): Call it.
25317
25318         * Makerules: Don't include tls.make.
25319         (config-tls): Always set to thread.
25320         * tls.make.c: File removed.
25321
25322 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
25323
25324         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
25325         * config.make.in (CPPFLAGS-config): New substituted variable.
25326
25327 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
25328
25329         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
25330
25331         [BZ #13192]
25332         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
25333         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
25334
25335 2011-09-15  Roland McGrath  <roland@hack.frob.com>
25336
25337         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
25338         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
25339         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
25340         (CALL_FAIL): Likewise.
25341         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
25342         (CALL_FAIL): Macro removed.
25343         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
25344
25345 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
25346
25347         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
25348         for __FINITE_MATH_ONLY__ == 1.
25349
25350 2011-09-15  Andreas Schwab  <schwab@redhat.com>
25351
25352         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
25353         __ieee754_sqrt instead of sqrt.
25354         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
25355         __ieee754_sqrtf instead of sqrtf.
25356         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
25357         __floorf instead of floorf.
25358         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
25359         __floorf, __truncf instead of floorf, truncf.
25360
25361 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
25362
25363         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
25364
25365         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
25366         __extern_always_inline.
25367         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
25368         32-bit.
25369
25370 2011-09-14  Andreas Schwab  <schwab@redhat.com>
25371
25372         * elf/rtld.c (dl_main): Also relocate in dependency order when
25373         doing symbol dependency testing.
25374
25375 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
25376
25377         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25378         Always define `refsym'.
25379
25380 2011-09-13  Andreas Schwab  <schwab@redhat.com>
25381
25382         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
25383         (__FD_ELT): Renamed from __FDELT.
25384         * misc/bits/select2.h (__FD_ELT): Likewise.
25385         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
25386         __FD_MASK instead of __FDELT, __FDMASK.
25387         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
25388         Likewise.
25389         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
25390         Likewise.
25391
25392         * elf/Makefile (gen-ldd): Fix pattern.
25393
25394         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
25395         (init_tls): Likewise.
25396
25397 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
25398
25399         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
25400
25401 2011-09-12  Andreas Schwab  <schwab@redhat.com>
25402
25403         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
25404         `struct cmsghdr *' instead of `void *'.
25405         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
25406         Likewise.
25407
25408 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
25409
25410         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
25411         if non-absolute.
25412         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
25413         ldd_rewrite_script.
25414
25415 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
25416
25417         * configure.in: Remove --with-tls option.
25418         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
25419         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
25420         out in case it is missing.
25421         * sysdeps/ia64/elf/configure.in: Likewise.
25422         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
25423         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
25424         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
25425         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
25426         * sysdeps/sh/elf/configure.in: Likewise.
25427         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
25428         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
25429         * sysdeps/x86_64/elf/configure.in: Likewise.
25430         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
25431         * sysdeps/mach/hurd/tls.h: Likewise.
25432
25433         [BZ #13067]
25434         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
25435
25436         [BZ #13090]
25437         * configure.in: Fix use of AC_INIT.
25438
25439         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
25440
25441 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
25442
25443         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
25444         __set_errno.
25445         * malloc/hooks.c: Likewise.
25446
25447         [BZ #11929]
25448         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
25449         variables statically.
25450         (narenas): Initialize.
25451         (list_lock): Initialize.
25452         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
25453         initializtion of main_arena and list_lock.  Small cleanups.
25454         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
25455         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
25456         Add initializers to main_arena and mp_.
25457         (malloc_state): Remove pagesize member.  Change all users to use
25458         GLRO(dl_pagesize).
25459
25460         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
25461         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
25462         is always initialized.
25463
25464         * malloc/malloc.c: Removed unused configurations and dead code.
25465         * malloc/arena.c: Likewise.
25466         * malloc/hooks.c: Likewise.
25467         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
25468
25469         * include/tls.h: Removed.  USE___THREAD must always be defined.
25470         * bits/libc-tsd.h: Don't handle !USE___THREAD.
25471         * elf/dl-libc.c: Likewise.
25472         * elf/dl-tsd.c: Likewise.
25473         * include/errno.h: Likewise.
25474         * include/netdb.h: Likewise.
25475         * include/resolv.h: Likewise.
25476         * inet/herrno-loc.c: Likewise.
25477         * inet/herrno.c: Likewise.
25478         * malloc/arena.c: Likewise.
25479         * malloc/hooks.c: Likewise.
25480         * malloc/malloc.c: Likewise.
25481         * resolv/res-state.c: Likewise.
25482         * resolv/res_libc.c: Likewise.
25483         * sysdeps/i386/dl-machine.h: Likewise.
25484         * sysdeps/ia64/dl-machine.h: Likewise.
25485         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
25486         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
25487         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
25488         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
25489         * sysdeps/sh/dl-machine.h: Likewise.
25490         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25491         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25492         * sysdeps/unix/i386/sysdep.S: Likewise.
25493         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
25494         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
25495         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
25496         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25497         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
25498         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
25499         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
25500         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25501         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25502         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
25503         * sysdeps/unix/x86_64/sysdep.S: Likewise.
25504         * sysdeps/x86_64/dl-machine.h: Likewise.
25505         * tls.make.c: Likewise.
25506
25507         * configure.in: Remove --with-__thread option.  Make tests for
25508         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
25509         tls_model attribute fail if no support is available.  Remove
25510         USE_IN_LIBIO.
25511         * Makeconfig: Adjust for dropped configure option.  All features are
25512         now mandatory.
25513         * Makerules: Likewise.
25514         * Versions.def: Likewise.
25515         * argp/argp-fmtstream.c: Likewise.
25516         * argp/argp-fmtstream.h: Likewise.
25517         * argp/argp-help.c: Likewise.
25518         * assert/assert.c: Likewise.
25519         * config.h.in: Likewise.
25520         * config.make.in: Likewise.
25521         * configure: Likewise.
25522         * configure.in: Likewise.
25523         * csu/Versions: Likewise.
25524         * csu/init.c: Likewise.
25525         * elf/tst-audit2.c: Likewise.
25526         * elf/tst-tls10.c: Likewise.
25527         * elf/tst-tls10.h: Likewise.
25528         * elf/tst-tls11.c: Likewise.
25529         * elf/tst-tls12.c: Likewise.
25530         * elf/tst-tls14.c: Likewise.
25531         * elf/tst-tlsmod11.c: Likewise.
25532         * elf/tst-tlsmod12.c: Likewise.
25533         * elf/tst-tlsmod13.c: Likewise.
25534         * elf/tst-tlsmod13a.c: Likewise.
25535         * elf/tst-tlsmod14a.c: Likewise.
25536         * elf/tst-tlsmod15b.c: Likewise.
25537         * elf/tst-tlsmod16a.c: Likewise.
25538         * elf/tst-tlsmod16b.c: Likewise.
25539         * elf/tst-tlsmod7.c: Likewise.
25540         * elf/tst-tlsmod8.c: Likewise.
25541         * elf/tst-tlsmod9.c: Likewise.
25542         * gmon/gmon.c: Likewise.
25543         * grp/fgetgrent_r.c: Likewise.
25544         * grp/putgrent.c: Likewise.
25545         * hurd/fopenport.c: Likewise.
25546         * include/libc-symbols.h: Likewise.
25547         * include/tls.h: Likewise.
25548         * intl/gettextP.h: Likewise.
25549         * intl/loadinfo.h: Likewise.
25550         * locale/global-locale.c: Likewise.
25551         * locale/localeinfo.h: Likewise.
25552         * mach/devstream.c: Likewise.
25553         * malloc/arena.c: Likewise.
25554         * malloc/set-freeres.c: Likewise.
25555         * misc/err.c: Likewise.
25556         * misc/getttyent.c: Likewise.
25557         * misc/mntent_r.c: Likewise.
25558         * posix/getopt.c: Likewise.
25559         * posix/wordexp.c: Likewise.
25560         * pwd/fgetpwent_r.c: Likewise.
25561         * resolv/Versions: Likewise.
25562         * resolv/res_hconf.c: Likewise.
25563         * shadow/fgetspent_r.c: Likewise.
25564         * shadow/putspent.c: Likewise.
25565         * stdio-common/printf_fphex.c: Likewise.
25566         * stdio-common/tmpfile.c: Likewise.
25567         * stdlib/abort.c: Likewise.
25568         * stdlib/fmtmsg.c: Likewise.
25569         * sunrpc/auth_unix.c: Likewise.
25570         * sunrpc/clnt_perr.c: Likewise.
25571         * sunrpc/clnt_tcp.c: Likewise.
25572         * sunrpc/clnt_udp.c: Likewise.
25573         * sunrpc/clnt_unix.c: Likewise.
25574         * sunrpc/openchild.c: Likewise.
25575         * sunrpc/svc_simple.c: Likewise.
25576         * sunrpc/svc_tcp.c: Likewise.
25577         * sunrpc/svc_udp.c: Likewise.
25578         * sunrpc/svc_unix.c: Likewise.
25579         * sunrpc/xdr.c: Likewise.
25580         * sunrpc/xdr_array.c: Likewise.
25581         * sunrpc/xdr_rec.c: Likewise.
25582         * sunrpc/xdr_ref.c: Likewise.
25583         * sunrpc/xdr_stdio.c: Likewise.
25584
25585 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25586
25587         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25588
25589 2011-07-03  Andreas Jaeger  <aj@suse.de>
25590
25591         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
25592         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
25593         regenerate with gen-libm-tests.pl.
25594
25595 2010-05-12  Petr Baudis  <pasky@suse.cz>
25596
25597         [BZ #11589]
25598         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
25599         around j0() zero points by switching to j1().
25600         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
25601         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
25602         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
25603         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
25604
25605 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25606
25607         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
25608         instead of 0.
25609         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
25610         instead of 0.
25611         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25612         Patch in part by Pavel Roskin <proski@gnu.org>.
25613
25614         [BZ #13138]
25615         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
25616         realloc.
25617         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
25618         Free memory block if necessary.
25619
25620         [BZ #12847]
25621         * libio/genops.c (INTDEF): For string streams the _lock pointer can
25622         be NULL.  Don't lock in this case.
25623
25624 2011-09-09  Roland McGrath  <roland@hack.frob.com>
25625
25626         * elf/elf.h (ELFOSABI_GNU): New macro.
25627         (ELFOSABI_LINUX): Define to that.
25628
25629 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
25630
25631         * string/strncat.c (strncat): Undef the symbol in case it has been
25632         defined in bits/string.h.
25633
25634 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25635
25636         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
25637
25638         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
25639         link map.
25640
25641 2011-08-17  Andreas Jaeger  <aj@suse.de>
25642
25643         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
25644
25645 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
25646             Ian Lance Taylor  <iant@google.com>
25647
25648         * math/libm-test.inc (lround_test): New testcase.
25649         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
25650
25651 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
25652
25653         * Makefile: Remove support for automatic cvs check-ins.
25654         * Makerules: Likewise.
25655         * config.make.in: Likewise.
25656         * configure.in: Likewise.
25657         * intl/Makefile: Likewise.
25658         * locale/Makefile: Likewise.
25659         * po/Makefile: Likewise.
25660         * posix/Makefile: Likewise.
25661         * sysdeps/gnu/Makefile: Likewise.
25662         * sysdeps/mach/hurd/Makefile: Likewise.
25663         * sysdeps/sparc/sparc32/Makefile: Likewise.
25664
25665         [BZ #13118]
25666         * posix/Makefile (bug-regex32-ENV): Define.
25667         Patch by John Stanley <jpsinthemix@verizon.net>.
25668
25669         * misc/Makefile (headers): Add bits/select2.h.
25670         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
25671         * misc/bits/select2.h: New file.
25672         * include/bits/select2.h: New file.
25673         * debug/Makefile (routines): Add fdelt_chk.
25674         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
25675         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
25676         FD_ISSET.
25677         * debug/fdelt_chk.c: New file.
25678
25679         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
25680         * wcsmbs/test-wmemcmp.c: Likewise.
25681         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
25682         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
25683
25684 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25685
25686         * string/Makefile (strop-tests): Add memcmp.
25687         * string/test-wmemcmp.c: New file.
25688         * string/test-memcmp.c: Add wmemcmp support.
25689
25690 2011-09-08  Roland McGrath  <roland@hack.frob.com>
25691
25692         [BZ #13153]
25693         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
25694         2011-07-19 change.
25695
25696         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
25697         garbage value in a __mach_port_mod_refs call in the cases of the
25698         task-self and thread-self ports.
25699
25700 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25701
25702         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
25703
25704 2011-09-08  Andreas Schwab  <schwab@redhat.com>
25705
25706         * elf/dl-load.c (lose): Check for non-null L.
25707
25708 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
25709
25710         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
25711
25712         * elf/dl-libc.c (dlerror_run): Pass back error code from
25713         dl_catch_error.
25714
25715         [BZ #13123]
25716         * elf/dl-load.c (lose): Free l_origin if it is valid.
25717
25718         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
25719         names.
25720         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
25721         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
25722         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25723         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
25724         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
25725         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
25726
25727 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25728
25729         * sysdeps/powerpc/fpu/e_hypot.c: New file.
25730         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
25731         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
25732         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
25733         * sysdeps/powerpc/fpu/k_cosf.c: New file.
25734         * sysdeps/powerpc/fpu/k_sinf.c: New file.
25735         * sysdeps/powerpc/fpu/s_cosf.c: New file.
25736         * sysdeps/powerpc/fpu/s_sinf.c: New file.
25737         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
25738         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
25739
25740 2011-08-15  Alan Modra  <amodra@gmail.com>
25741
25742         [BZ #13092]
25743         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
25744         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
25745         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
25746         ppc_mcount to static-only-routines.
25747         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
25748         __mcount_internal.
25749         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
25750         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
25751
25752 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
25753
25754         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
25755         for finite and infinity parameters.
25756
25757 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
25758
25759         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
25760         and add nop instructions for throughput optimization.
25761         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
25762
25763 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
25764
25765         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
25766         aligned copy for power7 with vector-scalar instructions.
25767         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
25768
25769 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
25770
25771         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
25772         AVX check.
25773
25774 2011-09-07  Andreas Schwab  <schwab@redhat.com>
25775
25776         [BZ #13144]
25777         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
25778         last change.
25779
25780 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
25781
25782         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25783         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
25784         syscall wrapper around clock_gettime in __vdso_clock_gettime.
25785         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
25786         clock_gettime.
25787
25788 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25789
25790         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
25791         Forgot to demangle the pointer.
25792
25793         * sysdeps/i386/sysdep.h: Define atom_text_section.
25794         * sysdeps/x86_64/sysdep.h: Likewise.
25795         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
25796         section with atom_text_section.
25797         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
25798         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
25799         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
25800         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25801         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
25802
25803         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
25804         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
25805         already be defined.  Change to take two parameters and don't assign
25806         result to variable.  Adjust all users.
25807         Define INTERNAL_GETTIME if not already defined.
25808         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
25809         call.
25810         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
25811         HAVE_CLOCK_GETTIME_VSYSCALL.
25812         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
25813
25814         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
25815         gettimeofday vsyscall, just use time.
25816
25817 2011-09-06  Andreas Schwab  <schwab@redhat.com>
25818
25819         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
25820         <errno.h>.
25821
25822 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25823
25824         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
25825         syscall on x86-64.
25826         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
25827         syscall.
25828         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
25829         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
25830         syscall if possible.
25831
25832 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25833
25834         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
25835         e_ident.  Don't pass to find_mapsXX.
25836         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
25837
25838 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25839
25840         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25841         strchr-sse2-no-bsf strrchr-sse2-no-bsf
25842         * sysdeps/x86_64/multiarch/strchr.S: Update.
25843         Check bit_slow_BSF bit.
25844         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
25845         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
25846         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
25847
25848 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25849
25850         [BZ #13134]
25851         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
25852         before glibc 2.15.
25853         (tryshell): Define.
25854         (__spawni): Change last parameter to be flag.  Test
25855         SPAWN_XFLAGS_USE_PATH flag to use path or not.
25856         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
25857         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
25858         * posix/spawni.c: Likewise.
25859         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
25860         * posix/spawnp.c: Likewise.  Change normal version to use
25861         SPAWN_XFLAGS_USE_PATH.
25862         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
25863         SPAWN_XFLAGS_TRY_SHELL.
25864
25865         [BZ #13150]
25866         * posix/glob.h: Remove gcc 1.x support.
25867
25868         [BZ #13068]
25869         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
25870
25871 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25872
25873         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25874         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
25875         strrchr-sse2-bsf
25876         * sysdeps/i386/i686/multiarch/strchr.S: New file.
25877         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
25878         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
25879         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
25880         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
25881         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
25882
25883 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25884
25885         * sysdeps/x86_64/wcscmp.S: New file.
25886
25887         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
25888         wcscmp-c wcscmp-sse2
25889         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
25890         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
25891         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
25892         * wcsmbs/wcscmp.c: Allow renaming.
25893
25894 2011-09-05  David S. Miller  <davem@davemloft.net>
25895
25896         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
25897         stack slot, rather than the struct return pointer slot.
25898         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
25899         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
25900         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
25901         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
25902
25903 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25904
25905         * po/ja.po: Update from translation team.
25906
25907         [BZ #13144]
25908         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
25909         kernel in 64-bit binaries.
25910
25911 2011-09-01  David S. Miller  <davem@davemloft.net>
25912
25913         * elf/elf.h (HWCAP_SPARC_*): Move to..
25914         * sysdeps/sparc/sysdep.h: this new file and add new values.
25915         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
25916         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
25917         _DL_HWCAP_COUNT to 24.
25918         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
25919         entries.
25920         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
25921         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
25922         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
25923         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
25924         instead of magic constants.
25925         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25926
25927 2011-08-31  David S. Miller  <davem@davemloft.net>
25928
25929         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
25930         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
25931         Reimplement to do errno handling inline.
25932         (SYSCALL_ERROR_HANDLER): New macro.
25933         (__SYSCALL_STRING): Do not do errno handling in asm.
25934         (__CLONE_SYSCALL_STRING): Delete.
25935         (__INTERNAL_SYSCALL_STRING): Delete.
25936         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
25937         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
25938         (PSEUDO): Reimplement to do errno handling inline.
25939         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
25940         (SYSCALL_ERROR_HANDLER): New macro.
25941         (__SYSCALL_STRING): Do not do errno handling in asm.
25942         (__CLONE_SYSCALL_STRING): Delete.
25943         (__INTERNAL_SYSCALL_STRING): Delete.
25944         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
25945         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
25946         i386.
25947         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
25948         (inline_syscall*): Add 'err' argument.
25949         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
25950         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
25951         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
25952         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
25953
25954         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
25955         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25956
25957 2011-08-30  Andreas Schwab  <schwab@redhat.com>
25958
25959         * elf/rtld.c (dl_main): Relocate objects in dependency order.
25960
25961 2011-08-29  Jiri Olsa <jolsa@redhat.com>
25962
25963         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
25964         directive.
25965
25966 2011-08-24  David S. Miller  <davem@davemloft.net>
25967
25968         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
25969
25970 2011-08-24  Andreas Schwab  <schwab@redhat.com>
25971
25972         * elf/Makefile: Add rules to build and run unload8 test.
25973         * elf/unload8.c: New file.
25974         * elf/unload8mod1.c: New file.
25975         * elf/unload8mod1x.c: New file.
25976         * elf/unload8mod2.c: New file.
25977         * elf/unload8mod3.c: New file.
25978
25979         * elf/dl-close.c (_dl_close_worker): Reset private search list if
25980         it wasn't used.
25981
25982 2011-08-23  David S. Miller  <davem@davemloft.net>
25983
25984         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
25985         subtract stack bias.
25986         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
25987         %sp not %fp in calculations.
25988         (_JMPBUF_UNWINDS_ADJ): Likewise.
25989
25990         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
25991         (aio_suspend): Call it to force an exception region around the
25992         AIO_MISC_WAIT() invocation.
25993
25994 2011-08-23  Andreas Schwab  <schwab@redhat.com>
25995
25996         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
25997         backslash.
25998
25999 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
26000
26001         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
26002         protection macro.
26003         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
26004         and <dl-machine.h>.
26005         (Elf64_FuncDesc): Remove.
26006
26007 2011-08-22  David S. Miller  <davem@davemloft.net>
26008
26009         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
26010         sigaltstack check, add missing cfi directives.
26011         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
26012         missing cfi directives, and sigaltstack handling.
26013
26014 2011-08-16  Andreas Schwab  <schwab@redhat.com>
26015
26016         [BZ #11724]
26017         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
26018         object is seen twice.
26019         * elf/dl-fini.c (_dl_sort_fini): Likewise.
26020
26021         * elf/Makefile (distribute): Add tst-initorder2.c.
26022         (tests): Add tst-initorder2.
26023         (modules-names): Add tst-initorder2a tst-initorder2b
26024         tst-initorder2c tst-initorder2d.  Add rules to build them.
26025         ($(objpfx)tst-initorder2.out): New rule.
26026         * elf/tst-initorder2.c: New file.
26027         * elf/tst-initorder2.exp: New file.
26028
26029 2011-08-22  Andreas Schwab  <schwab@redhat.com>
26030
26031         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
26032
26033         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
26034         dependencies back to end of function.
26035
26036         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
26037         $(elfobjdir)/ld.so.
26038
26039 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
26040
26041         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
26042         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
26043         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
26044         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
26045         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
26046         of __vdso_gettimeofday.
26047         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
26048         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
26049         attribute_hidden.
26050         (_libc_vdso_platform_setup): Remove initialization of
26051         __vdso_gettimeofday and __vdso_time.
26052
26053 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
26054
26055         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
26056         and fgetc_unlocked.
26057         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
26058         getc_unlocked.
26059
26060         * elf/dl-open.c (add_to_global): Report additions to the global scope
26061         for LD_DEBUG=scopes.
26062         (dl_open_worker): Also print scope of newly loaded dependencies.
26063         (_dl_show_scope): Indicate if there is no scope.
26064
26065         [BZ #13114]
26066         * stdio-common/Makefile (tests): Add bug24.
26067         * stdio-common/bug24.c: New file.
26068
26069 2011-08-19  Andreas Jaeger  <aj@suse.de>
26070
26071         [BZ #13114]
26072         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
26073         non-existant file when using close-on-exec mode.
26074
26075 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
26076
26077         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
26078         the very first instruction.
26079
26080         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
26081         the CFI state in the end.
26082         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
26083         inclusion of dl-trampoline.h.
26084         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
26085
26086 2011-08-19  Andreas Schwab  <schwab@redhat.com>
26087
26088         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
26089         expectations for long double.
26090
26091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
26092         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
26093
26094 2011-08-14  David S. Miller  <davem@davemloft.net>
26095
26096         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
26097         artificual limit depends upon the system page size.
26098
26099 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
26100
26101         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
26102         * resolv/Makefile: Define CFLAGS-libresolv.
26103
26104 2011-08-17  Andreas Schwab  <schwab@redhat.com>
26105
26106         * nss/makedb.c (compute_tables): Make variables used in nested
26107         function static.
26108
26109 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
26110
26111         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
26112         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
26113         if buffer was too small.
26114
26115         * elf/pldd.c (main): Attach to all threads in the process.
26116         Rewrite /proc handling to use *at functions.
26117
26118 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
26119
26120         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
26121         specifies first scope to show.
26122         (dl_open_worker): Update callers.  Move printing scope of new
26123         object to before the relocation.
26124         * elf/rtld.c (dl_main): Update _dl_show_scope call.
26125         * sysdeps/generic/ldsodefs.h: Update declaration.
26126
26127         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
26128         string for the scope number.
26129
26130 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
26131
26132         * nscd/servicescache.c (cache_addserv): Make sure written is always
26133         initialized.
26134
26135 2011-08-14  Roland McGrath  <roland@hack.frob.com>
26136
26137         * sysdeps/i386/i486/bits/atomic.h
26138         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
26139         statement expression, so as to suppress "set but not used" warning.
26140         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
26141
26142         * string/strncat.c (STRNCAT): Use prototype definition.
26143
26144         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
26145         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
26146         -Iprograms here.
26147         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
26148         (localedef-modules): Add localedef.
26149         (locale-modules): Add locale.
26150
26151         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
26152         * elf/rtld.c (dl_main): Invert order of assignment in last change,
26153         to avoid a warning.
26154
26155 2011-08-14  David S. Miller  <davem@davemloft.net>
26156
26157         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
26158         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
26159
26160 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
26161
26162         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
26163         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
26164         * elf/rtld.c (dl_main): Set l_name of vDSO.
26165         Call _dl_show_scope when DL_DEBUG_SCOPES.
26166         (process_dl_debug): Recognize scopes flag and also set it for all.
26167         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
26168         Declare _dl_show_scope.
26169
26170         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
26171         (do_dlopen): Pass caller_dlopen to dl_open.
26172         (__libc_dlopen_mode): Initialize caller_dlopen.
26173
26174         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
26175         of libc.  Make tolower call locale-independent.  Optimize a bit by
26176         using isdigit instead of isalnum.
26177         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
26178
26179 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
26180
26181         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
26182         was a dependency or dynamically loaded.
26183
26184 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
26185
26186         * intl/l10nflist.c: Allow architecture-specific pop function.
26187         * sysdeps/x86_64/l10nflist.c: New file.
26188
26189         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
26190         classification.
26191
26192 2011-08-10  Andreas Schwab  <schwab@redhat.com>
26193
26194         * include/dirent.h: Add libc_hidden_proto for scandirat and
26195         scandirat64.  Don't declare __scandirat64.
26196         * dirent/scandirat.c: Add libc_hidden_def.
26197         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
26198         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
26199
26200 2011-08-10  David S. Miller  <davem@davemloft.net>
26201
26202         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
26203         enum.
26204         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
26205         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
26206         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
26207
26208 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
26209
26210         * Versions.def [libc]: Add GLIBC_2.15.
26211         * dirent/Makefile (routines): Add scandirat and scandirat64.
26212         * dirent/Versions [libc]: Export scandirat and scandirat64 for
26213         GLIBC_2.15.
26214         * dirent/dirent.h: Declare scandirat and scandirat64.
26215         * dirent/scandirat.c: New file.
26216         * dirent/scandirat64.c: New file.
26217         * sysdeps/wordsize-64/scandirat.c: New file.
26218         * sysdeps/wordsize-64/scandirat64.c: New file.
26219         * dirent/opendir.c: Define opendirat.
26220         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
26221         using scandirat.
26222         * dirent/scandir64.c: Adjust for scandir.c change.
26223         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
26224         __scandirat64, and __scandir_cancel_handler.
26225         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
26226         additional parameter and use openat instead of open (outside of ld.so).
26227         Add new __opendir as wrapper around __opendirat.
26228         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
26229         here without requiring old scandirat implementation.
26230
26231 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
26232
26233         * dirent/scandir.c (cancel_handler): Renamed to
26234         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
26235         defined.  Adjust users.
26236         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
26237         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
26238
26239 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
26240
26241         * string/test-string.h (IMPL): Use __STRING to expand name and then
26242         stringify it.
26243
26244         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
26245         of cleanups.
26246
26247 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26248
26249         * string/Makefile: Update.
26250         (strop-tests): Append strncat.
26251         * string/test-wcscmp.c: New file.
26252         New comprehensive test for wcscmp.
26253         * string/test-strcmp.c: Update.
26254         (WIDE): New define.
26255
26256 2011-07-22  Andreas Schwab  <schwab@redhat.com>
26257
26258         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
26259         line.
26260
26261 2011-07-26  Andreas Schwab  <schwab@redhat.com>
26262
26263         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
26264         encoding to ACE if AI_IDN.
26265
26266 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
26267
26268         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
26269         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
26270
26271 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26272
26273         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
26274         Fix overflow bug in strncat.
26275         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
26276
26277         * string/test-strncat.c: Update.
26278         Add new tests for checking overflow bugs.
26279
26280 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26281
26282         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26283         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
26284         * sysdeps/i386/i686/multiarch/strcat.S: New file.
26285         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
26286         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
26287         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
26288         * sysdeps/i386/i686/multiarch/strncat.S: New file.
26289         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
26290         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
26291
26292         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
26293         (USE_AS_STRCAT): Define.
26294         Add strcat and strncat support.
26295         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
26296
26297 2011-07-25  Andreas Schwab  <schwab@redhat.com>
26298
26299         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
26300         __n bigger than INT_MAX+1.
26301         (__strncmp_g): Likewise.
26302
26303 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
26304
26305         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
26306         * libio/stido.h: Likewise.
26307
26308         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
26309         (AF_NFC): Define.
26310         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
26311         (AF_NFC): Define.
26312
26313         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
26314         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
26315         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
26316         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
26317         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
26318
26319         [BZ #13021]
26320         * scripts/test-installation.pl: Don't expect libnss_test1 to be
26321         installed.
26322
26323         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
26324         typo.
26325         (_dl_x86_64_save_sse): Likewise.
26326
26327 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
26328
26329         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
26330         OSXSAVE.
26331         (_dl_x86_64_save_sse): Likewise.
26332
26333         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
26334
26335         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
26336
26337 2011-07-21  Andreas Schwab  <schwab@redhat.com>
26338
26339         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
26340         change.
26341         (_dl_x86_64_save_sse): Use correct AVX check.
26342
26343 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26344
26345         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
26346         bug in strncpy/strncat.
26347         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
26348
26349 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
26350
26351         * string/tester.c (test_strcat): Add tests for different alignments
26352         of source and destination.
26353         (test_strncat): Likewise.
26354
26355 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
26356
26357         [BZ #12852]
26358         * posix/glob.c (glob): Check passed in values before using them in
26359         expressions to avoid some overflows.
26360         (glob_in_dir): Likewise.
26361
26362         [BZ #13007]
26363         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
26364         check for AVX enablement so that we don't crash with old kernels and
26365         new hardware.
26366         * elf/tst-audit4.c: Add same checks here.
26367         * elf/tst-audit6.c: Likewise.
26368
26369         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
26370
26371 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
26372
26373         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
26374
26375 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
26376
26377         * po/cs.po: Update from translation team.
26378         * po/bg.po: Likewise.
26379
26380 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
26381
26382         * misc/sys/cdefs.h: Add support for const attribute.
26383         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
26384         to gnu_dev_{major,minor,makedev} functions.
26385
26386 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
26387
26388         * intl/dcigettext.c (get_output_charset): Add missing bracket.
26389
26390 2011-07-20  Andreas Schwab  <schwab@redhat.com>
26391
26392         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
26393         strlen results.
26394
26395 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26396
26397         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
26398         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
26399         register in order to avoid conflicts with the soft frame pointer
26400         being held in r11 when necessary.
26401         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26402         (INTERNAL_VSYSCALL_NCS): Likewise.
26403
26404 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
26405
26406         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
26407         * elf/dl-fini.c (_dl_fini): Adjust caller.
26408         * elf/dl-close.c (_dl_close_worker): Likewise.
26409         * sysdeps/generic/ldsodefs.h: Adjust declaration.
26410
26411 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
26412
26413         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
26414         "aux_cache->nlibs < 0".
26415
26416         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
26417         in the reload-count case.
26418
26419 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26420
26421         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26422         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
26423         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
26424         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
26425         * sysdeps/x86_64/multiarch/strcat.S: New file.
26426         * sysdeps/x86_64/multiarch/strncat.S: New file.
26427         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
26428         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
26429         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
26430         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
26431         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
26432         (USE_AS_STRCAT): Define.
26433         Add strcat and strncat support.
26434         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
26435         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
26436         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
26437         * string/strncat.c: Update.
26438         (USE_AS_STRNCAT): Define.
26439         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26440         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
26441         and i7.
26442         * sysdeps/x86_64/multiarch/init-arch.h
26443         (bit_Prefer_PMINUB_for_stringop): New.
26444         (index_Prefer_PMINUB_for_stringop): Likewise.
26445         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
26446         bit_Prefer_PMINUB_for_stringop.
26447
26448 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
26449
26450         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
26451         buffer64.
26452         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
26453         of casting of buffer.
26454         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
26455         buffer32 and buffer64.
26456         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
26457         writes instead of casting of buffer.
26458         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
26459         buffer32.
26460         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
26461         casting of buffer.
26462
26463 2011-07-19  Andreas Schwab  <schwab@redhat.com>
26464
26465         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
26466
26467 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
26468
26469         * nscd/nscd.c (termination_handler): Don't do anything for a database
26470         if it has not yet been initialized.
26471
26472 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
26473
26474         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
26475
26476 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
26477
26478         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
26479
26480 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
26481
26482         * po/nl.po: Update from translation team.
26483         * po/sv.po: Likewise.
26484
26485 2011-07-16  Roland McGrath  <roland@hack.frob.com>
26486
26487         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
26488         now disallowed by GCC.
26489
26490         * configure.in (use-default-link): Default to yes if a test -shared
26491         link meets our qualifications.
26492         * configure: Regenerated.
26493
26494         * config.make.in (output-format): New variable.
26495         * configure.in: Check for ld --print-output-format support.
26496         * configure: Regenerated.
26497         * Makerules ($(common-objpfx)format.lds)
26498         [$(output-format) != unknown]: Just use $(output-format),
26499         instead of the linker-script munging.
26500
26501 2011-07-14  Roland McGrath  <roland@hack.frob.com>
26502
26503         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
26504         of $(common-objpfx)shlib.lds.
26505         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
26506
26507         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
26508         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
26509
26510         * configure.in (-z relro check): Adjust test code to add a large
26511         writable data section after it.
26512         * configure: Regenerated.
26513
26514 2011-07-11  Roland McGrath  <roland@hack.frob.com>
26515
26516         * configure.in (-z relro check): Fix test code to make the variable
26517         truly const.
26518         * configure: Regenerated.
26519
26520 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
26521
26522         * nscd/nscd.h (struct traced_file): Define.
26523         (struct database_dyn): Remove inotify_descr, reset_res, and filename
26524         elements.  Add traced_files.
26525         (inotify_fd): Declare.
26526         (register_traced_file): Declare.
26527         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
26528         (inotify_fd): Export.
26529         (resolv_conf_descr): Remove.
26530         (nscd_init): Move inotify descriptor creation to main.
26531         Don't register files for notification here.
26532         (register_traced_file): New function.
26533         (invalidate_cache): Don't use reset_res to determine whether to call
26534         res_init, go through the list of registered files.
26535         (main_loop_poll): The inotify descriptors are now stored in the
26536         structures for the traced files.
26537         (main_loop_epoll): Likewise
26538         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
26539         to __nss_disable_nscd.
26540         * nscd/cache.c (prune_cache): There is no single inotify descriptor
26541         for a database anymore.  Check the records for all the registered
26542         files instead.
26543         * nss/Makefile (libnss_files-routines): Add files-init.
26544         (libnss_db-routines): Add db-init.
26545         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
26546         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
26547         * nss/nss_db/db-init.c: New file.
26548         * nss/nss_files/files-init.c: New file.
26549         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
26550         __nss_lookup_function.
26551         (__nss_lookup_function): Call nss_load_library.
26552         (nss_load_all_libraries): New function.
26553         (__nss_disable_nscd): Take parameter with callback function for files
26554         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
26555         used for the cached services.
26556         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
26557         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
26558         options for features to all the files in nscd.
26559
26560         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
26561
26562 2011-07-10  Roland McGrath  <roland@hack.frob.com>
26563
26564         * csu/elf-init.c (__libc_csu_init): Comment typo.
26565
26566 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
26567
26568         * po/pl.po: Update from translation team.
26569         * po/ja.po: Likewise.
26570         * po/ru.po: Likewise.
26571         * po/ko.po: Likewise.
26572         * po/fr.po: Likewise.
26573
26574 2011-07-09  Roland McGrath  <roland@hack.frob.com>
26575
26576         * configure.in (.ctors/.dtors header and trailer check):
26577         Use an empirical test on a built program.
26578         * configure: Regenerated.
26579
26580         * configure.in (-z relro check): Use an empirical test on a built DSO.
26581         Detect, but do not require, on ia64.
26582         * configure: Regenerated.
26583
26584         * configure.in (READELF): Find it with AC_CHECK_TOOL.
26585         Update tests that use readelf to use $READELF instead.
26586         * configure: Regenerated.
26587
26588 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
26589
26590         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
26591         if the result is not used.
26592
26593 2011-07-05  Andreas Jaeger  <aj@suse.de>
26594
26595         [BZ#9696]
26596         * stdlib/tst-strtod.c: Add testcase.
26597
26598 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
26599
26600         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
26601         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
26602         The latter has a higher limit.  Take additional parameter to pass to
26603         the new function.
26604         (__pathconf): Pass file to __statfs_link_max.
26605         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
26606         __statfs_link_max.
26607         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
26608         __statfs_link_max.
26609
26610         [BZ #12868]
26611         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
26612         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
26613         Handle Lustre.
26614         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
26615         (__statfs_filesize_max): Likewise.
26616         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
26617
26618 2011-07-05  Andreas Jaeger  <aj@suse.de>
26619
26620         * resolv/res_comp.c (dn_skipname): Remove unused variable.
26621
26622 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
26623
26624         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
26625         `status' variable.
26626         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
26627         Likewise.
26628
26629 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
26630
26631         * Makefile (strop-tests): Add strncat.
26632         * string/test-strncat.c: New file.
26633
26634 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
26635
26636         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
26637
26638 2011-06-21  Andreas Jaeger  <aj@suse.de>
26639
26640         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
26641         Copy rule from iconvdata/Makefile.
26642
26643 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
26644
26645         [BZ #12922]
26646         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
26647         but no long options are defined, just return 'W'.
26648
26649 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
26650
26651         [BZ #9696]
26652         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
26653
26654 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
26655
26656         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
26657         netgroups to read.
26658         (innetgr): Likewise.
26659
26660 2011-07-05  Roland McGrath  <roland@hack.frob.com>
26661
26662         * config.make.in (install_root): Default to $(DESTDIR).
26663
26664 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
26665
26666         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
26667
26668 2011-07-02  Roland McGrath  <roland@hack.frob.com>
26669
26670         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
26671
26672         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
26673         containing directory rather than embedding absolute directory names.
26674
26675         * scripts/check-local-headers.sh: Rewritten using awk.
26676         Match by word, not by line.  Print error messages for matches.
26677         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
26678
26679         * Makerules [shlib-lds-flags empty]:
26680         ($(common-objpfx)libc_pic.opts): New target.
26681         ($(common-objpfx)libc_pic.os.clean): New target.
26682         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
26683
26684         * config.make.in (OBJCOPY): New variable.
26685         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
26686         * configure: Regenerated.
26687
26688         * config.make.in (use-default-link): New variable.
26689         * configure.in (use_default_link): Grok --with-default-link to set it.
26690         * configure: Regenerated.
26691         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
26692         (shlib-lds, shlib-lds-flags): Define to empty.
26693
26694         * Makerules (shlib-lds): New variable.
26695         (shlib-lds-flags): New variable.
26696         (build-shlib, build-moduile, build-module-asneeded): Use it.
26697         ($(common-objpfx)libc.so): Use $(shlib-lds).
26698         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
26699         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
26700
26701         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
26702         DT_FLAGS/DT_FLAGS_1 with zero flags.
26703
26704         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
26705         linker script munging.
26706
26707 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
26708
26709         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
26710         as 128-bit value.
26711         * crypt/sha512.c (sha512_process_block): Perform total addition using
26712         128-bit if possible.
26713         (__sha512_finish_ctx): Likewise.
26714         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
26715         as 64-bit value.
26716         * crypt/sha256.c (SWAP64): Define.
26717         (sha256_process_block): Perform total addition using 64-bit if
26718         possible.
26719         (__sha256_finish_ctx): Likewise.
26720
26721 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
26722
26723         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
26724         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26725         * nscd/hstcache.c (cache_addhst): Likewise.
26726         * nscd/grpcache.c (cache_addgr): Likewise.
26727         * nscd/aicache.c (addhstaiX): Likewise
26728         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
26729
26730 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
26731
26732         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
26733         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26734         * nscd/hstcache.c (cache_addhst): Likewise.
26735         * nscd/grpcache.c (cache_addgr): Likewise.
26736         * nscd/aicache.c (addhstaiX): Likewise
26737
26738 2011-07-01  Andreas Schwab  <schwab@redhat.com>
26739
26740         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
26741         domain only when needed.
26742
26743 2011-06-30  Andreas Schwab  <schwab@redhat.com>
26744
26745         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
26746         is always restored.
26747
26748 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
26749
26750         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
26751         are re-adding the entry.
26752         * nscd/servicescache.c (cache_addserv): Likewise.
26753
26754 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
26755
26756         * sysdeps/generic/dl-irel.h: fix protection against multiple
26757         inclusions.
26758         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
26759
26760 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
26761
26762         [BZ #12935]
26763         * malloc/memusage.sh: Fix quoting in message.
26764         * debug/xtrace.sh: Likewise.
26765
26766         * configure.in: Remove support for --experimental-malloc option, make
26767         it the default.
26768         * config.make.in: Likewise.
26769         * malloc/Makefile: Likewise.
26770
26771 2011-06-27  Andreas Schwab  <schwab@redhat.com>
26772
26773         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
26774         two-byte characters.
26775
26776 2011-06-27  Roland McGrath  <roland@hack.frob.com>
26777
26778         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
26779         AC_CACHE_CHECK invocation.
26780         * configure: Regenerated.
26781
26782         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
26783
26784 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
26785
26786         [BZ #12350]
26787         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
26788         bit from old_res_options.
26789
26790         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
26791
26792         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
26793         value type for setfct.
26794
26795 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
26796
26797         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26798         __gettimeofday instead of gettimeofday.
26799
26800 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
26801
26802         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
26803
26804 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
26805
26806         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
26807
26808         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
26809         info.
26810
26811 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26812
26813         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26814         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26815         strcpy-sse2-unaligned strncpy-sse2-unaligned
26816         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
26817         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
26818         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
26819         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
26820         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
26821         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
26822         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
26823         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
26824         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
26825         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
26826         (STRCPY): Support SSE2 and SSSE3 versions.
26827
26828 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
26829
26830         [BZ #12874]
26831         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
26832         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
26833         kernels which artificially limit size of requests.
26834
26835 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26836
26837         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26838         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26839         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
26840         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
26841         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
26842         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
26843         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
26844         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
26845         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
26846         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
26847         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
26848         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
26849         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
26850         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
26851         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
26852         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26853         Enable unaligned load optimization for Intel Core i3, i5 and i7
26854         processors.
26855         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
26856         Define.
26857         (index_Fast_Unaligned_Load): Define.
26858         (HAS_FAST_UNALIGNED_LOAD): Define.
26859
26860 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
26861
26862         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
26863
26864 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26865
26866         [BZ #12907]
26867         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
26868         until it is clear that the information is realy needed.
26869         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
26870
26871 2011-06-22  Andreas Schwab  <schwab@redhat.com>
26872
26873         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
26874
26875 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26876
26877         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26878         /sys/devices/system/cpu/online if it is usable.
26879
26880         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
26881         reading the information from the /proc filesystem to once a second.
26882
26883 2011-06-21  Andreas Jaeger  <aj@suse.de>
26884
26885         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
26886         NULL after inclusion of kernel headers.
26887
26888 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
26889
26890         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
26891         calls to internal_setent.
26892
26893         [BZ #12885]
26894         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
26895         addresses using gethostbyname4_r ignore IPv4 addresses.
26896
26897         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
26898         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
26899
26900         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
26901
26902 2011-06-20  David S. Miller  <davem@davemloft.net>
26903
26904         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
26905         inclusions.
26906         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
26907
26908         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
26909         (elf_irel): Use it.
26910         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
26911         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
26912         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
26913         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
26914         * sysdeps/x86_64/dl-irel.h: Likewise.
26915
26916         * elf/dl-runtime.c: Use elf_ifunc_invoke.
26917         * elf/dl-sym.c: Likewise.
26918
26919 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26920
26921         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
26922         need to dereference resplen2.
26923
26924 2011-06-14  Andreas Schwab  <schwab@redhat.com>
26925
26926         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
26927
26928 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26929
26930         * Makeconfig: Define vardbdir and inst_vardbdir.
26931         * nss/Makefile: Add rules to install db-Makefile.
26932
26933         * nss/nss_db/db-XXX.c: Cleanup.
26934
26935         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
26936         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
26937         GLIBC_PRIVATE.
26938         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
26939         * nss/makedb.c: Implement -g option to specify that value strings
26940         are generated and should not be added to table iterated over for
26941         get*ent calls.
26942         * nss/nss_db/db-initgroups.c: New file.
26943
26944         * nss/getent.c: Add support for initgroups lookups through getgrouplist
26945         interface.
26946
26947         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
26948         (internal_getgrouplist): Adjust to name change.
26949         Update use_initgroups_entry if this is not the first call.
26950         * nss/databases.def: Add initgroups entry.
26951
26952         * nss/makedb.c (compute_tables): Check result of multiple hash table
26953         sizes to minimize maximum chain length.
26954
26955 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
26956
26957         * Versions.def: Add entry for libnss_db.
26958         * shlib-versions: Likewise.
26959         * nss/Makefile: Add rules to build libnss_db.
26960         * nss/Versions: Add libnss_db information.  Organize libnss_files
26961         entries better.
26962         * nss/db-Makefile: Add gshadow support.  Change rules for the new
26963         makedb progra.  Some minor improvements to generate smaller files.
26964         * nss/nss_db/nss_db.h: Move NSS database header data structures to
26965         here from...
26966         * nss/makedb.c: ...here.
26967         Improve database format to be smaller and require less memory at
26968         runtime.
26969         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
26970         db anymore.
26971         * nss/nss_db/db-netgrp.c: Likewise.
26972         * nss/nss_db/db-open.c: Likewise.
26973         * nss/nss_files/flies-XXX.x: Adjust comments.
26974         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
26975         * nss/nss_files/files-grp.c: Likewise.
26976         * nss/nss_files/files-hosts.c: Likewise.
26977         * nss/nss_files/files-network.c: Likewise.
26978         * nss/nss_files/files-proto.c: Likewise.
26979         * nss/nss_files/files-pwd.c: Likewise.
26980         * nss/nss_files/files-rpc.c: Likewise.
26981         * nss/nss_files/files-service.c: Likewise.
26982         * nss/nss_files/files-sgrp.c: Likewise.
26983         * nss/nss_files/files-spwd.c: Likewise.
26984         * nss/nss_db/db-alias.c: Removed.
26985         * nss/nss_db/dummy-db.h: Removed.
26986
26987 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
26988
26989         * nss/makedb.c: Rewritten to not use database library.
26990         * nss/Makefile: Update to build new makedb program.
26991
26992 2011-06-14  Andreas Jaeger  <aj@suse.de>
26993
26994         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
26995         memset declaration.
26996
26997 2011-06-10  Andreas Schwab  <schwab@redhat.com>
26998
26999         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
27000         tmpbuf.
27001
27002 2011-06-10  Roland McGrath  <roland@hack.frob.com>
27003
27004         * Makerules (shlib.lds): Fail if the linker script comes out empty.
27005         * elf/Makefile ($(objpfx)ld.so): Likewise.
27006
27007         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
27008         Don't list ld.so twice in dependencies.
27009
27010         * posix/bug-regex31.c: Include <stdlib.h>.
27011
27012         * nscd/hstcache.c (cache_addhst): Remove unused variable.
27013
27014         * nis/nss_compat/compat-spwd.c
27015         (getspent_next_nss_netgr): Remove unused variable.
27016         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
27017
27018         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
27019         nonmembers" output to use the right array.
27020
27021         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
27022
27023         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
27024
27025         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
27026         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
27027         * catgets/gencat.c (read_input_file): Likewise.
27028         * locale/programs/locarchive.c (enlarge_archive): Likewise.
27029
27030         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
27031         variable definition inside #if's controlling its use.
27032
27033         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
27034
27035         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
27036
27037         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
27038
27039         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
27040         unreachable code.
27041
27042         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
27043
27044         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
27045         * configure: Regenerated.
27046
27047         * Makerules: Revert last change.
27048         * elf/Makefile: Likewise.
27049
27050 2011-06-09  Roland McGrath  <roland@hack.frob.com>
27051
27052         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
27053         * elf/Makefile ($(objpfx)librtld.os): Likewise.
27054         (reloc-link): Likewise.
27055
27056 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
27057
27058         * elf/Makefile: Add rules to build pldd.
27059         * elf/pldd.c: New file.
27060         * elf/pldd-xx.c: New file.
27061
27062 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
27063
27064         * version.h: Update for 2.15 development version.
27065
27066 2011-06-07  David S. Miller  <davem@davemloft.net>
27067
27068         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
27069         ifuncs.
27070         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
27071         elf_machine_lazy_rel): Likewise.
27072         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
27073         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
27074         elf_machine_lazy_rel): Likewise.
27075         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
27076         dl_hwcap via passed in argument.
27077         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
27078         Likewise.
27079
27080 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27081
27082         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
27083
27084 2011-06-06  Roland McGrath  <roland@hack.frob.com>
27085
27086         [BZ #12849]
27087         * manual/fdl-1.1.texi: New file, verbatim from:
27088         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
27089         * manual/lgpl-2.1.texi: New file, verbatim from:
27090         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
27091         * manual/Makefile (licenses): New variable, list those new file names.
27092         (texis): Use it.
27093         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
27094
27095         * manual/fdl.texi: File removed.
27096         * manual/lesser.texi: File removed.
27097         * manual/libc.texinfo (Copying, Documentation License):
27098         Use new @include file names, put @appendix directive before @include.
27099
27100 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
27101
27102         [BZ #12841]
27103         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
27104         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
27105         (mq_open): Add __NTH.
27106
27107 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
27108
27109         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27110         Assume Intel Core i3/i5/i7 processor if AVX is available.
27111
27112 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
27113
27114         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
27115         typo.
27116
27117 2011-05-31  Andreas Schwab  <schwab@redhat.com>
27118
27119         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
27120         memory.  Use alloca_account.  Fix memory leak when retrying.
27121
27122 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
27123
27124         * version.h (RELEASE): Bump for 2.14 release.
27125         * include/features.h (__GLIBC_MINOR__): Bump to 14.
27126
27127         * config.make.in (RANLIB): Remove entry.
27128
27129 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
27130
27131         * po/Makefile (po-sed-cmd): Add ksh to extensions.
27132         (libc.pot): Work around missing support for .ksh extension in xgettext.
27133
27134         [BZ #12684]
27135         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
27136         if both request failed.
27137         (send_dg): In case of server errors clear resplen or *resplen2.
27138
27139         [BZ #12454]
27140         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
27141         when there are multiple maps.
27142         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
27143         (_dl_fini): Remove test here.
27144
27145         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
27146
27147 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
27148
27149         [BZ #12350]
27150         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
27151         bit from old_res_options.
27152         (gaih_inet): Likewise.
27153
27154         [BZ #11099]
27155         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
27156         as signed.
27157
27158         * resolv/res_init.c (res_setoptions): Make the code more compact.
27159
27160         [BZ #11558]
27161         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
27162         set RES_USEVC.
27163
27164         [BZ #11634]
27165         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
27166
27167         * malloc/malloc.h: Mark malloc hook variables as deprecated.
27168
27169         [BZ #11781]
27170         * malloc/malloc.h: Declare malloc hook variables as volatile.
27171
27172         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
27173         in last patch.
27174
27175         [BZ #11799]
27176         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
27177         raise in the comment.
27178         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
27179         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
27180         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
27181
27182 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
27183
27184         [BZ #12811]
27185         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
27186         grow the buffers more if it already has to be sufficient.
27187         (build_wcs_upper_buffer): Likewise.
27188         * posix/regexec.c (check_matching): Likewise.
27189         (clean_state_log_if_needed): Likewise.
27190         (extend_buffers): Don't enlarge buffers beyond size of the input
27191         buffer.
27192         Patches mostly by Emil Wojak <emil@wojak.eu>.
27193         * posix/bug-regex32.c: New file.
27194         * posix/Makefile (tests): Add bug-regex32.
27195
27196         * locale/findlocale.c (_nl_find_locale): Return right away if
27197         _nl_explode_name failed.
27198         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
27199
27200         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
27201
27202         * debug/xtrace.sh: Unify messages.
27203         * malloc/memusage.sh: Likewise.
27204
27205         [BZ #12813]
27206         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
27207         time symbol from vDSO.  Substitute with vsyscall if not available.
27208         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
27209         __vdso_time.
27210
27211         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
27212         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
27213         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
27214         Add sendmmsg and internal_sendmmsg.
27215         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
27216         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
27217         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
27218
27219         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
27220         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
27221         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
27222
27223 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
27224
27225         [BZ #12813]
27226         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
27227         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
27228         available.
27229         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
27230         __vdso_getcpu.
27231
27232         [BZ #12814]
27233         * iconvdata/Makefile (tests): Add bug-iconv9.
27234         * iconvdata/bug-iconv9.c: New file.
27235
27236 2011-05-27  Andreas Schwab  <schwab@redhat.com>
27237
27238         [BZ #12814]
27239         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
27240
27241 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
27242
27243         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
27244         (struct user_regs_struct): Change intcs field back to cs.
27245
27246 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
27247
27248         * po/ja.po: Update from translation team.
27249
27250 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
27251
27252         [BZ #12795]
27253         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
27254         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
27255
27256 2011-05-20  Andreas Schwab  <schwab@redhat.com>
27257
27258         * stdlib/longlong.h: Update from GCC.
27259
27260 2011-05-23  Andreas Schwab  <schwab@redhat.com>
27261
27262         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
27263         parameter name.
27264         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
27265         Add parameter name.
27266         (__sysconf): Pass it down.
27267
27268 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
27269
27270         [BZ #12671]
27271         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
27272         some situations.
27273         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
27274         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
27275         add in in __libc_use_alloca calls.  Adjust callers.
27276         (glob): Use malloc in some situations.
27277
27278         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
27279         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
27280         pltexit.
27281
27282 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
27283
27284         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
27285         and CLOCK_BOOTTIME_ALARM.
27286
27287         [BZ #12782]
27288         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
27289         is returned.
27290
27291         * string/_strerror.c (__strerror_r): Print negative errors as signed
27292         numbers.
27293
27294         [BZ #12777]
27295         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
27296         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
27297         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
27298
27299         * configure.in: Fix typo in redirection and correct removal of test
27300         files in two cases.
27301
27302         [BZ #12788]
27303         * locale/setlocale.c (new_composite_name): Fix test to check for
27304         identical name of all categories.
27305
27306         [BZ #12792]
27307         * libio/filedoalloc.c (local_isatty): New function.
27308         (_IO_file_doallocate): Use local_isatty.
27309         * stdio-common/perror.c (perror): In case a new stream is used
27310         forward the stream error.
27311         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
27312         error flag.
27313
27314 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
27315
27316         [BZ #11869]
27317         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
27318         alloca.
27319         * include/alloca.h (extend_alloca_account): Define.
27320
27321         [BZ #11857]
27322         * posix/regex.h: Fix comments with documentation of user-accessible
27323         fields after compilation and describe correct free'ing of pattern
27324         after re_compile_pattern.
27325         Patch by Reuben Thomas <rrt@sc3d.org>.
27326
27327 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
27328
27329         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
27330         and -mno-altivec to prevent the compiler from using Altivec and/or
27331         VSX instructions when the corresponding registers are not available.
27332
27333 2011-05-19  Andreas Schwab  <schwab@redhat.com>
27334
27335         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
27336
27337 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
27338
27339         * libio/freopen.c (freopen): Use __dup2, not dup2.
27340         * libio/freopen64.c (freopen64): Likewise.
27341
27342 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
27343
27344         [BZ #12775]
27345         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
27346         * math/Makefile (tests): Add test-powl.
27347         (CFLAGS-test-powl.c): Define.
27348         * math/test-powl.c: New file.
27349
27350 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
27351
27352         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
27353
27354 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
27355
27356         [BZ #11837]
27357         * iconvdata/gb18030.c: Update to GB18020-2005.
27358
27359 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
27360
27361         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
27362         RE_SYNTAX_POSIX_AWK): Update to match recent development.
27363         Patch by Aharon Robbins <arnold@skeeve.com>.
27364
27365         [BZ #11892]
27366         * stdlib/putenv.c (putenv): Don't always create copy of the variable
27367         on the stack.
27368
27369         [BZ #11895]
27370         * misc/pselect.c (__pselect): Handle timeout value errors hidden
27371         through underflows.
27372
27373         [BZ #12766]
27374         * misc/error.c (error_at_line): Ensure file_name and old_file_name
27375         point to strings before performing equality test for error_one_per_line
27376         mode.
27377
27378         [BZ #11697]
27379         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
27380
27381         [BZ #11820]
27382         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
27383         (struct user_fpregs_struct): Avoid __uint*_t types.
27384
27385         [BZ #6420]
27386         * malloc/mtrace.c (tr_where): Add additional parameter to point to
27387         symbol info.  Use it instead of calling _dl_addr locally.
27388         (lock_and_info): New function.
27389         (tr_freehook): Call lock_and_info and pass symbol info as additional
27390         parameter to tr_where.
27391         (tr_mallochook): Likewise.
27392         (tr_reallochook): Likewise.
27393         (tr_memalignhook): Likewise.
27394
27395         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
27396         used and couldn't be at all thread-safe.
27397
27398 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
27399
27400         * libio/freopen.c (freopen): Don't close old file descriptor
27401         before the new one is opened.  Instead dup the new file descriptor
27402         to the old one after the new stream is created.
27403         * libio/freopen64.c (freopen64): Likewise.
27404         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
27405         * libio/fileops.c (_IO_new_file_close_it): Handle new
27406         _IO_FLAGS2_NOCLOSE flag.
27407         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
27408         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
27409         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
27410         _IO_FLAGS2_NOCLOSE flag.
27411         * include/unistd.h: Add hidden_proto for dup3.
27412         Define __have_dup3.
27413         * io/dup3.c: Define hidden symbol.
27414         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
27415
27416         [BZ #7101]
27417         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
27418         when an incomplete long option is used.
27419         * posix/tst-getopt_long1.c: New file.
27420         * posix/Makefile (tests): Add tst-getopt_long1.
27421
27422         [BZ #10138]
27423         * scripts/config.guess: Update from autoconf-2.68.
27424         * scripts/config.sub: Likewise.
27425
27426         [BZ #10157]
27427         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
27428         tests into ...
27429         (has_cpuclock): ...this.  New function.
27430         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
27431         macro here based on has_cpuclock code.
27432
27433         [BZ #10149]
27434         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27435         First byte (not low byte) is now always NUL.
27436         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
27437
27438         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27439         Use non-cancelable interfaces.
27440
27441         [BZ #9809]
27442         * locale/iso-639.def: Add entry for Sorani.
27443
27444         [BZ #11901]
27445         * include/stdlib.h: Move include protection to the right place.
27446         Define abort_msg_s.  Declare __abort_msg with it.
27447         * stdlib/abort.c (__abort_msg): Adjust type.
27448         * assert/assert.c (__assert_fail_base): New function.  Majority
27449         of code from __assert_fail.  Allocate memory for __abort_msg with
27450         mmap.
27451         (__assert_fail): Now call __assert_fail_base.
27452         * assert/assert-perr.c: Remove bulk of implementation.  Use
27453         __assert_fail_base.
27454         * include/assert.hL Declare __assert_fail_base.
27455         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
27456         mmap.
27457         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
27458
27459 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
27460
27461         [BZ #11952]
27462         [BZ #12453]
27463         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
27464         until all modules are registered in the DTV.
27465         * elf/Makefile: Add rules to build and run tst-tls19.
27466         * elf/tst-tls19.c: New file.
27467         * elf/tst-tls19mod1.c: New file.
27468         * elf/tst-tls19mod2.c: New file.
27469         * elf/tst-tls19mod3.c: New file.
27470         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
27471
27472         [BZ #12083]
27473         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
27474         correctly.
27475
27476         [BZ #12601]
27477         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
27478         two-byte sequence errors.
27479         * iconvdata/Makefile (tests): Add bug-iconv8.
27480         * iconvdata/bug-iconv8.c: New file.
27481
27482         [BZ #12626]
27483         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
27484         buf2 definition.
27485
27486         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
27487
27488         [BZ #12432]
27489         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
27490         (dummy_getcfa): New function.
27491         (init): Get _Unwind_GetCFA address, use dummy if not found.
27492         (backtrace_helper): In recursion check, also check whether CFA changes.
27493         (__backtrace): Completely initialize arg.
27494
27495         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
27496         storing incomplete byte sequence in state object.  Avoid testing for
27497         guaranteed too small input if we know there is enough data available.
27498
27499 2011-05-11  Andreas Schwab  <schwab@redhat.com>
27500
27501         * Makeconfig (+link-pie): Indent.
27502         * Rules (binaries-pie): Define if $(have-fpie) and
27503         $(build-shared).
27504         (binaries-shared): Also filter out $(binaries-pie).
27505         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
27506         * nscd/Makefile (others-pie): Add nscd.
27507         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
27508         ($(objpfx)nscd): Remove command override.
27509         * login/Makefile (others-pie): Add pt_chown.
27510         ($(objpfx)pt_chown): Remove command override.
27511         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
27512         remove command overrides.
27513
27514 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
27515
27516         * libio/tst_putwc.c: Fix error messages.
27517
27518         [BZ #12724]
27519         * libio/fileops.c (_IO_new_file_close_it): Always flush when
27520         currently writing and seek to current position when not.
27521         * libio/Makefile (tests): Add bug-fclose1.
27522         * libio/bug-fclose1.c: New file.
27523
27524 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
27525
27526         [BZ #12511]
27527         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
27528         don't set DF_1_NODELETE here.
27529         (do_lookup_x): When entering new entry test for copy relocation
27530         and if necessary set DF_1_NODELETE flag.
27531         * elf/tst-unique4.cc: New file.
27532         * elf/tst-unique4.h: New file.
27533         * elf/tst-unique4lib.cc: New file.
27534         * elf/Makefile: Add rules to build and run tst-unique4.
27535         Patch by Piotr Bury <pbury@goahead.com>.
27536
27537 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
27538
27539         [BZ #12052]
27540         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
27541
27542         [BZ #12625]
27543         * misc/mntent_r.c (addmntent): Flush the stream after the output
27544
27545         [BZ #12393]
27546         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
27547         (is_trusted_path_normalize): Skip initial colon.  Append slash
27548         to empty buffer.  Duplicate is_trusted_path code but allow
27549         constructed patch to be prefix.
27550         (is_dst): Allow $ORIGIN followed by /.
27551         (_dl_dst_substitute): Correct clearing of check_for_trusted.
27552         Correct testing of result of is_trusted_path_normalize
27553         (decompose_rpath): Fix warning.
27554
27555 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
27556
27557         [BZ #11257]
27558         * grp/initgroups.c (internal_getgrouplist): When we found the service
27559         list through the initgroups entry in nsswitch.conf do not always
27560         continue on a successful lookup.  Don't always use the
27561         __nss_group_database value if it is set.
27562         * nss/nsswitch.conf (initgroups): Change action for successful db
27563         lookup to continue for compatibility.
27564
27565 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
27566
27567         [BZ #11532]
27568         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
27569         and CP774 modules.
27570         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
27571         and CP774 modules.
27572         * iconvdata/tst-tables.sh: Likewise.
27573         * iconvdata/cp770.c: New file.
27574         * iconvdata/cp771.c: New file.
27575         * iconvdata/cp772.c: New file.
27576         * iconvdata/cp773.c: New file.
27577         * iconvdata/cp774.c: New file.
27578         * iconvdata/testdata/CP770: New file.
27579         * iconvdata/testdata/CP770..UTF8: New file.
27580         * iconvdata/testdata/CP771: New file.
27581         * iconvdata/testdata/CP771..UTF8: New file.
27582         * iconvdata/testdata/CP772: New file.
27583         * iconvdata/testdata/CP772..UTF8: New file.
27584         * iconvdata/testdata/CP773: New file.
27585         * iconvdata/testdata/CP773..UTF8: New file.
27586         * iconvdata/testdata/CP774: New file.
27587         * iconvdata/testdata/CP774..UTF8: New file.
27588
27589         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
27590         END CHARMAP line.
27591         * iconvdata/gen-8bit-gap.sh: Likewise.
27592         * iconvdata/gen-8bit.sh: Likewise.
27593
27594         * locale/iso-639.def: Add ary entry.
27595
27596         [BZ #11258]
27597         * locale/C-translit.h.in: Add U20A1 transliteration.
27598
27599         [BZ #12178]
27600         * locale/iso-639.def: Add wae entry.
27601         Patch by Kevin Bortis <bortis@translate-wae.ch>.
27602
27603         [BZ #12545]
27604         * locale/programs/localedef.c (construct_output_path): Use ssize_t
27605         for n.
27606
27607         [BZ #12711]
27608         * locale/C-translit.h.in: Add entry for U20B9.
27609         Patch by pravin.d.s@gmail.com.
27610
27611 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
27612
27613         [BZ #12713]
27614         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
27615         ENAMETOOLONG use generic getcwd.
27616         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
27617         in rtld.  Use *stat64.
27618         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
27619         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
27620         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
27621         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
27622         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
27623         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
27624         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
27625         __fstatat64 macros.
27626         * include/dirent.h: Add libc_hidden_proto for rewinddir.
27627         * dirent/rewinddir.c: Add libc_hidden_def.
27628         * sysdeps/mach/hurd/rewinddir.c: Likewise.
27629         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
27630
27631         * include/dirent.h (__alloc_dir): Add flags parameter.
27632         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
27633         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
27634         __alloc_dir.
27635         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
27636         from fdopendir if O_CLOEXEC is already set.
27637
27638 2011-03-15  Alan Modra  <amodra@gmail.com>
27639
27640         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
27641         l_tls_firstbyte_offset non-zero.  Save padding offset in
27642         l_tls_firstbyte_offset for later use.
27643         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
27644         freeing static tls block.
27645
27646 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
27647
27648         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
27649         where #ifdef was intended.  The intent is to prevent ARG_MAX from
27650         being defined by the kernel headers.
27651
27652 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
27653
27654         [BZ #12734]
27655         * resolv/resolv.h: Define RES_NOTLDQUERY.
27656         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
27657         no-tld-query and set RES_NOTLDQUERY.
27658         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
27659         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
27660         modern BIND to search name as TLD unless forbidden.
27661
27662 2011-05-07  Petr Baudis  <pasky@suse.cz>
27663             Ulrich Drepper  <drepper@gmail.com>
27664
27665         [BZ #12393]
27666         * elf/dl-load.c (fillin_rpath): Move trusted path check...
27667         (is_trusted_path): ...to here.
27668         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
27669         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
27670         using is_trusted_path_normalize() in setuid scripts.
27671
27672 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27673
27674         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
27675         __BEGIN/__END_DECLS.
27676
27677 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
27678
27679         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
27680         NSS_STATUS_NOTFOUND if no record was found.
27681
27682 2011-05-05  Andreas Schwab  <schwab@redhat.com>
27683
27684         * sunrpc/Makefile (headers): Add rpc/netdb.h.
27685         (headers-not-in-tirpc): Remove rpc/netdb.h
27686         * resolv/netdb.h: Revert last change.
27687
27688 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27689
27690         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
27691         circular dependency between libgcc.a and libc.a.
27692
27693 2011-05-05  Andreas Schwab  <schwab@redhat.com>
27694
27695         * resolv/netdb.h: Don't include <rpc/netdb.h>.
27696         * nis/Makefile: Don't install rpcsvc/*.
27697         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
27698         instead of <rpc/types.h>.
27699         (MAXHOSTNAMELEN): Define.
27700
27701 2011-05-03  Andreas Schwab  <schwab@redhat.com>
27702
27703         * elf/ldconfig.c (add_dir): Don't crash on empty path.
27704
27705 2011-04-28  Maciej Babinski  <mbabinski@google.com>
27706
27707         [BZ #12714]
27708         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
27709         gethostbyname4_r when IPv6 results are possible.
27710
27711 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
27712
27713         [BZ #12723]
27714         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
27715         _PC_PIPE_BUF handling.
27716
27717 2011-04-30  Bruno Haible  <bruno@clisp.org>
27718
27719         [BZ #12717]
27720         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
27721         * resolv/netdb.h (getnameinfo): Change type of flags parameter
27722         to 'int'.
27723         * inet/getnameinfo.c (getnameinfo): Likewise.
27724
27725 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
27726
27727         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
27728         to groups setting in database lookup.
27729         * nss/nsswitch.conf: Add initgroups entry.
27730
27731 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
27732
27733         [BZ #12685]
27734         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
27735         mode string.
27736         Patch by Eric Blake <eblake@redhat.com>.
27737
27738 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
27739
27740         * sunrpc/Makefile (need-export-routines): Add svc_run.
27741         (routines): Remove svc_run.
27742         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
27743         * sunrpc/clnt_perr.c (clnt_perrno): Export.
27744         * sunrpc/svc_run.c (svc_run): Likewise.
27745         * sunrpc/svc_udp.c (svcudp_create): Likewise.
27746
27747 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
27748
27749         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
27750         problem in reallocation in last patch.
27751
27752 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
27753
27754         * sunrpc/Makefile: Move inclusion of Rules.
27755
27756 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
27757
27758         * nss/nss_files/files-initgroups.c: New file.
27759         * nss/Makefile (libnss_files-routines): Add files-initgroups.
27760         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
27761         _nss_files_initgroups_dyn.
27762
27763 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
27764
27765         * elf/elf.h (R_ARM_IRELATIVE): Define.
27766
27767 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
27768
27769         * po/ru.po: Update from translation team.
27770
27771 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27772
27773         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
27774         dependencies.
27775
27776 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
27777
27778         [BZ #12653]
27779         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
27780         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
27781         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27782         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
27783         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
27784
27785 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
27786
27787         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
27788         differing bytes.
27789         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
27790         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
27791         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
27792
27793 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27794
27795         [BZ #12420]
27796         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
27797         storing it.
27798         * stdlib/bug-getcontext.c: New file.
27799         * stdlib/Makefile: Add rules to build and run bug-getcontext.
27800
27801 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27802
27803         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
27804         instructions into .machine "z9-109".
27805         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
27806         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
27807
27808 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27809
27810         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
27811         between environment variables and auxiliary vector.
27812
27813 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
27814
27815         * Makefile: Add rules to build linkobj/libc.so.
27816         * include/libc-symbols.h: Define libc_hidden_nolink.
27817         * include/rpc/auth.h: Mark functions which are to be hidden.
27818         * include/rpc/auth_des.h: Likewise.
27819         * include/rpc/auth_unix.h: Likewise.
27820         * include/rpc/clnt.h: Likewise.
27821         * include/rpc/des_crypt.h: Likewise.
27822         * include/rpc/key_prot.h: Likewise.
27823         * include/rpc/pmap_clnt.h: Likewise.
27824         * include/rpc/pmap_prot.h: Likewise.
27825         * include/rpc/pmap_rmt.h: Likewise.
27826         * include/rpc/rpc_msg.h: Likewise.
27827         * include/rpc/svc.h: Likewise.
27828         * include/rpc/svc_auth.h: Likewise.
27829         * include/rpc/xdr.h: Likewise.
27830         * nis/Makefile: Link all DSOs against linkobj/libc.so.
27831         * nss/Makefile: Likewise.
27832         * sunrpc/Makefile: Don't install headers.  Build library with normal
27833         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
27834         * sunrpc/auth_des.c: Hide exported symbols by default, export some
27835         for the compat linking library.  Remove use of INTDEF/INTUSE.
27836         * sunrpc/auth_none.c: Likewise.
27837         * sunrpc/auth_unix.c: Likewise.
27838         * sunrpc/authdes_prot.c: Likewise.
27839         * sunrpc/authuxprot.c: Likewise.
27840         * sunrpc/clnt_gen.c: Likewise.
27841         * sunrpc/clnt_perr.c: Likewise.
27842         * sunrpc/clnt_raw.c: Likewise.
27843         * sunrpc/clnt_simp.c: Likewise.
27844         * sunrpc/clnt_tcp.c: Likewise.
27845         * sunrpc/clnt_udp.c: Likewise.
27846         * sunrpc/clnt_unix.c: Likewise.
27847         * sunrpc/des_crypt.c: Likewise.
27848         * sunrpc/des_soft.c: Likewise.
27849         * sunrpc/get_myaddr.c: Likewise.
27850         * sunrpc/key_call.c: Likewise.
27851         * sunrpc/key_prot.c: Likewise.
27852         * sunrpc/netname.c: Likewise.
27853         * sunrpc/pm_getmaps.c: Likewise.
27854         * sunrpc/pm_getport.c: Likewise.
27855         * sunrpc/pmap_clnt.c: Likewise.
27856         * sunrpc/pmap_prot.c: Likewise.
27857         * sunrpc/pmap_prot2.c: Likewise.
27858         * sunrpc/pmap_rmt.c: Likewise.
27859         * sunrpc/publickey.c: Likewise.
27860         * sunrpc/rpc_cmsg.c: Likewise.
27861         * sunrpc/rpc_common.c: Likewise.
27862         * sunrpc/rpc_dtable.c: Likewise.
27863         * sunrpc/rpc_prot.c: Likewise.
27864         * sunrpc/rpc_thread.c: Likewise.
27865         * sunrpc/rtime.c: Likewise.
27866         * sunrpc/svc.c: Likewise.
27867         * sunrpc/svc_auth.c: Likewise.
27868         * sunrpc/svc_authux.c: Likewise.
27869         * sunrpc/svc_raw.c: Likewise.
27870         * sunrpc/svc_run.c: Likewise.
27871         * sunrpc/svc_simple.c: Likewise.
27872         * sunrpc/svc_tcp.c: Likewise.
27873         * sunrpc/svc_udp.c: Likewise.
27874         * sunrpc/svc_unix.c: Likewise.
27875         * sunrpc/svcauth_des.c: Likewise.
27876         * sunrpc/xcrypt.c: Likewise.
27877         * sunrpc/xdr.c: Likewise.
27878         * sunrpc/xdr_array.c: Likewise.
27879         * sunrpc/xdr_float.c: Likewise.
27880         * sunrpc/xdr_intXX_t.c: Likewise.
27881         * sunrpc/xdr_mem.c: Likewise.
27882         * sunrpc/xdr_rec.c: Likewise.
27883         * sunrpc/xdr_ref.c: Likewise.
27884         * sunrpc/xdr_sizeof.c: Likewise.
27885         * sunrpc/xdr_stdio.c: Likewise.
27886
27887 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
27888
27889         [BZ #12650]
27890         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
27891         * sysdeps/ia64/dl-tls.h: Likewise.
27892         * sysdeps/powerpc/dl-tls.h: Likewise.
27893         * sysdeps/s390/dl-tls.h: Likewise.
27894         * sysdeps/sh/dl-tls.h: Likewise.
27895         * sysdeps/sparc/dl-tls.h: Likewise.
27896         * sysdeps/x86_64/dl-tls.h: Likewise.
27897         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
27898
27899 2011-03-14  Andreas Schwab  <schwab@redhat.com>
27900
27901         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
27902         rpath element also skip the following colon.
27903         (expand_dynamic_string_token): Add is_path parameter and pass
27904         down to DL_DST_REQUIRED and _dl_dst_substitute.
27905         (decompose_rpath): Call expand_dynamic_string_token with
27906         non-zero is_path.  Ignore empty rpaths.
27907         (_dl_map_object_from_fd): Call expand_dynamic_string_token
27908         with zero is_path.
27909
27910 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
27911
27912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
27913         Make cancelable.
27914
27915 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
27916
27917         [BZ #12655]
27918         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
27919         Patch by Filipe David Manana <fdmanana@apache.org>.
27920
27921 2011-04-07  Andreas Schwab  <schwab@redhat.com>
27922
27923         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
27924         Maintain aligned stack.
27925         (CHECK_RSP): Remove unused macro.
27926
27927 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
27928
27929         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
27930         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
27931
27932 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
27933
27934         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
27935
27936         * include/features.h: Mention __USE_XOPEN2K8 in comment.
27937
27938 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
27939
27940         [BZ #12518]
27941         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
27942         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
27943         * sysdeps/x86_64/memmove.c: New file.
27944         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
27945         (memcpy): Renamed to ...
27946         (__new_memcpy): This.
27947         (memcpy): Provide GLIBC_2_14 memcpy.
27948         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
27949         (memcpy): Provide GLIBC_2_2_5 memcpy.
27950
27951 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27952
27953         [BZ #12631]
27954         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
27955
27956 2011-03-30  Andreas Schwab  <schwab@redhat.com>
27957
27958         * misc/syncfs.c: New file.
27959         * misc/Makefile (routines): Add syncfs.
27960         * posix/unistd.h: Declare syncfs.
27961         * sysdeps/unix/syscalls.list: Add syncfs.
27962
27963 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27964
27965         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
27966         open_by_handle_at.
27967         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27968         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27969         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27970         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27971         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27972         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
27973         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27974
27975 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27976
27977         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
27978         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27979         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27980         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27981         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27982         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27983         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27984
27985         * io/Makefile: Compile fallocate.c, fallocate64.c, and
27986         sync_file_range.c with -fexceptions.
27987         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
27988         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
27989         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
27990         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
27991         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
27992         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27993         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
27994         sync_file_range as cancellation point
27995         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
27996         now a wrapper around __call_sync_file_range with cancellation handling.
27997         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
27998         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
27999         function name to __call_sync_file_range.
28000         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
28001         Add call_sync_file_range.
28002
28003 2011-04-01  Andreas Schwab  <schwab@redhat.com>
28004
28005         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28006         bits/timex.h.
28007
28008 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
28009
28010         * iconv/iconv.h: Fix typo in comment.
28011         * io/fcntl.h: Likewise.
28012         * libio/stdio.h: Likewise.
28013         * posix/spawn.h: Likewise.
28014         * posix/unistd.h: Likewise.
28015         * stdlib/stdlib.h: Likewise.
28016         * time/time.h: Likewise.
28017         * wcsmbs/wchar.h: Likewise.
28018
28019         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
28020         open_by_handle): Add.
28021         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
28022         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
28023         Augment a few comments.
28024         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
28025         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28026         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28027         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28028         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28029         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
28030         open_by_handle.
28031
28032         * io/fcntl.h (AT_EMPTY_PATH): Define.
28033
28034 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
28035
28036         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
28037         * sysdeps/unix/sysv/linux/bits/time.h: New file.
28038         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
28039         to...
28040         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
28041         * Versions.def: Add GLIBC_2.14.
28042         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
28043         Export.
28044
28045 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
28046
28047         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
28048         round counter.
28049         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
28050
28051 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28052
28053         [BZ #12597]
28054         * string/test-strncmp.c (do_page_test): New function.
28055         (check2): Likewise.
28056         (test_main): Call check2.
28057         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
28058
28059 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
28060
28061         [BZ #12587]
28062         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
28063         Handle cache information in CPU leaf 4.
28064         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
28065
28066 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
28067
28068         [BZ #12583]
28069         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
28070         character representation.
28071         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
28072
28073 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
28074
28075         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
28076         END(__isnan) to END(__isnanf) to match function entry point/label
28077         EALIGN(__isnanf,...).
28078
28079 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
28080
28081         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
28082
28083 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
28084
28085         [BZ #12510]
28086         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
28087         copy from the symbol referenced in the relocation to initialize the
28088         used variable.
28089         Patch by Piotr Bury <pbury@goahead.com>.
28090         * elf/Makefile: Add rules to build and tst-unique3.
28091         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
28092         * elf/tst-unique3.cc: New file.
28093         * elf/tst-unique3.h: New file.
28094         * elf/tst-unique3lib.cc: New file.
28095         * elf/tst-unique3lib2.cc: New file.
28096
28097         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
28098
28099 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
28100
28101         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
28102         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
28103         to _start.
28104
28105 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
28106
28107         * elf/dl-load.c (_dl_map_object): If we are looking for the first
28108         to-be-loaded object along a path to loader is ld.so.
28109
28110 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
28111             Ulrich Drepper  <drepper@gmail.com>
28112
28113         * sysdeps/x86_64/memset.S: After aligning destination, code
28114         branches to different locations depending on the value of
28115         misalignment, when multiarch is enabled. Fix this.
28116
28117 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
28118
28119         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
28120         Set _x86_64_preferred_memory_instruction for AMD processsors.
28121         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28122         Set bit_Prefer_SSE_for_memop for AMD processors.
28123
28124 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
28125
28126         * libio/fmemopen.c (fmemopen): Optimize a bit.
28127
28128 2011-03-03  Andreas Schwab  <schwab@redhat.com>
28129
28130         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
28131
28132 2011-03-03  Roland McGrath  <roland@redhat.com>
28133
28134         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
28135
28136 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
28137
28138         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
28139         __bzero_ultra1 instead of __memset_ultra1.
28140
28141 2011-02-23  Andreas Schwab  <schwab@redhat.com>
28142             Ulrich Drepper  <drepper@gmail.com>
28143
28144         [BZ #12509]
28145         * include/link.h (struct link_map): Add l_orig_initfini.
28146         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
28147         returning unsuccessfully.
28148         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
28149         close of a file loaded at startup, restore the original l_initfini
28150         list.
28151         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
28152         list, store the pointer.
28153         * elf/Makefile ($(objpfx)noload-mem): New rule.
28154         (noload-ENV): Define.
28155         (tests): Add $(objpfx)noload-mem.
28156         * elf/noload.c: Include <memcheck.h>.
28157         (main): Call mtrace.  Close all opened handles.
28158
28159 2011-02-17  Andreas Schwab  <schwab@redhat.com>
28160
28161         [BZ #12454]
28162         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
28163         dependencies are missing.
28164
28165 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28166
28167         Fix __if_freereq crash: Unlike the generic version which uses free,
28168         Hurd needs munmap.
28169         * sysdeps/mach/hurd/ifreq.h: New file.
28170
28171 2011-01-27  Petr Baudis  <pasky@suse.cz>
28172             Ulrich Drepper  <drepper@gmail.com>
28173
28174         [BZ 12445]#
28175         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
28176         to extend_alloca().
28177         * stdio-common/bug23.c: New file.
28178         * stdio-common/Makefile (tests): Add bug23.
28179
28180 2010-09-28  Andreas Schwab  <schwab@redhat.com>
28181             Ulrich Drepper  <drepper@gmail.com>
28182
28183         [BZ #12489]
28184         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
28185         before performing relro protection.  At old place add assertion
28186         to make sure nothing changed.
28187
28188 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
28189             Glauber de Oliveira Costa  <glommer@gmail.com>
28190
28191         * elf/elf.h: Add new ARM TLS relocs.
28192
28193 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
28194
28195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
28196         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
28197         cast from r3.
28198         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
28199         'tests' variable.
28200         * sysdeps/wordsize-64/tst-writev.c: New file.
28201
28202 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
28203
28204         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
28205         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
28206         insns in _dl_start to prevent a TOC reference before relocs are
28207         resolved.
28208
28209 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
28210
28211         [BZ #12469]
28212         * Makeconfig: Remove RANLIB definition.
28213         * Makerules: Don't use RANLIB.
28214         * aclocal.m4: Remove ranlib test.
28215         * configure.in: No need to check for ranlib.
28216         * elf/rtld-Rules: Don't use RANLIB.
28217
28218 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28219
28220         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
28221         protection macro.
28222         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
28223         inclusion protection macro.
28224
28225         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
28226         SIGRTMIN and SIGRTMAX and print information in that case only when
28227         SIGRTMIN is defined.
28228
28229 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
28230
28231         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
28232         arginfo fn returning -1.
28233
28234         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
28235         and thousands string is zero terminated.
28236
28237 2011-02-03  Andreas Schwab  <schwab@redhat.com>
28238
28239         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
28240         sysdeps/unix/sysv/linux/bits/socket.h.
28241
28242 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28243
28244         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
28245         (__CPU_COUNT): Remove old macros.
28246         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
28247         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
28248         (__CPU_ALLOC, __CPU_FREE): Add macros.
28249         (__sched_cpualloc, __sched_cpufree): Add declarations.
28250
28251 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
28252
28253         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
28254         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
28255         * nscd/aicache.c (addhstaiX): Return timeout of added value.
28256         (readdhstai): Return value of addhstaiX call.
28257         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
28258         (addgrbyX): Return value returned by cache_addgr.
28259         (readdgrbyname): Return value returned by addgrbyX.
28260         (readdgrbygid): Likewise.
28261         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
28262         (addpwbyX): Return value returned by cache_addpw.
28263         (readdpwbyname): Return value returned by addhstbyX.
28264         (readdpwbyuid): Likewise.
28265         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
28266         (addservbyX): Return value returned by cache_addserv.
28267         (readdservbyname): Return value returned by addservbyX:
28268         (readdservbyport): Likewise.
28269         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
28270         (addhstbyX): Return value returned by cache_addhst.
28271         (readdhstbyname): Return value returned by addhstbyX.
28272         (readdhstbyaddr): Likewise.
28273         (readdhstbynamev6): Likewise.
28274         (readdhstbyaddrv6): Likewise.
28275         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
28276         (readdinitgroups): Return value returned by addinitgroupsX.
28277         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
28278         (prune_cache): Keep track of timeout value of re-added entries.
28279         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
28280         * nscd/nscd.h: Adjust prototypes of readd* functions.
28281
28282 2011-02-04  Roland McGrath  <roland@redhat.com>
28283
28284         * nis/nis_server.c (nis_servstate): Use the right name for 0.
28285         (nis_stats): Likewise.
28286         * nis/nis_modify.c (nis_modify): Likewise.
28287         * nis/nis_remove.c (nis_remove): Likewise.
28288         * nis/nis_add.c (nis_add): Likewise.
28289
28290         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
28291
28292         * posix/fnmatch_loop.c: Add some consts.
28293
28294         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
28295
28296 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
28297
28298         [BZ #12460]
28299         * config.make.in (config-cflags-novzeroupper): Define.
28300         * configure.in: Substitute libc_cv_cc_novzeroupper.
28301         * elf/Makefile (AVX-CFLAGS): Define.
28302         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
28303         (CFLAGS-tst-auditmod4a.c): Likewise.
28304         (CFLAGS-tst-auditmod4b.c): Likewise.
28305         (CFLAGS-tst-auditmod6b.c): Likewise.
28306         (CFLAGS-tst-auditmod6c.c): Likewise.
28307         (CFLAGS-tst-auditmod7b.c): Likewise.
28308         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
28309
28310 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
28311
28312         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
28313         function to the callback.
28314         Patch partly by Jiri Olsa <jolsa@redhat.com>.
28315
28316 2011-02-02  Andreas Schwab  <schwab@redhat.com>
28317
28318         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
28319         of errno.
28320
28321 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
28322
28323         [BZ #11724]
28324         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
28325         of constructors.
28326         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
28327         of destructors.
28328         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
28329
28330         [BZ #11724]
28331         * elf/Makefile: Add rules to build and run new test.
28332         * elf/tst-initorder.c: New file.
28333         * elf/tst-initorder.exp: New file.
28334         * elf/tst-initordera1.c: New file.
28335         * elf/tst-initordera2.c: New file.
28336         * elf/tst-initordera3.c: New file.
28337         * elf/tst-initordera4.c: New file.
28338         * elf/tst-initorderb1.c: New file.
28339         * elf/tst-initorderb2.c: New file.
28340         * elf/tst-order-a1.c: New file.
28341         * elf/tst-order-a2.c: New file.
28342         * elf/tst-order-a3.c: New file.
28343         * elf/tst-order-a4.c: New file.
28344         * elf/tst-order-b1.c: New file.
28345         * elf/tst-order-b2.c: New file.
28346         * elf/tst-order-main.c: New file.
28347         New test case by George Gensure <werkt0@gmail.com>.
28348
28349 2010-10-01  Andreas Schwab  <schwab@redhat.com>
28350
28351         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
28352         decoding ACE if AI_CANONIDN.
28353
28354 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
28355
28356         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
28357
28358 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
28359
28360         * version.h (RELEASE): Bump for 2.13 release.
28361         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
28362
28363         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
28364
28365         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
28366         MADV_NOHUGEPAGE.
28367         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
28368         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
28369         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
28370         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
28371         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
28372         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
28373
28374         * posix/getconf.c: Update copyright year.
28375         * catgets/gencat.c: Likewise.
28376         * csu/version.c: Likewise.
28377         * debug/catchsegv.sh: Likewise.
28378         * debug/xtrace.sh: Likewise.
28379         * elf/ldconfig.c: Likewise.
28380         * elf/ldd.bash.in: Likewise.
28381         * elf/sprof.c (print_version): Likewise.
28382         * iconv/iconv_prog.c: Likewise.
28383         * iconv/iconvconfig.c: Likewise.
28384         * locale/programs/locale.c: Likewise.
28385         * locale/programs/localedef.c: Likewise.
28386         * malloc/memusage.sh: Likewise.
28387         * malloc/mtrace.pl: Likewise.
28388         * nscd/nscd.c (print_version): Likewise.
28389         * nss/getent.c: Likewise.
28390
28391         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
28392         PF_CAIF, and PF_ALG.
28393         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
28394
28395 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
28396
28397         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
28398         (modules-names): Use them.
28399         (ifunc-test-modules, ifunc-pie-tests): Define.
28400         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
28401         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
28402         (test-extras): Likewise.
28403         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
28404         $(compile-command.c).
28405         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
28406         (all-built-dso): Define.
28407         (check-textrel.out, check-execstack.out): Depend on it.
28408
28409         * configure.in: Don't override --enable-multi-arch.
28410
28411 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
28412
28413         [BZ #6812]
28414         * nscd/hstcache.c (tryagain): Define.
28415         (cache_addhst): Return tryagain not notfound for temporary errors.
28416         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
28417         failed.
28418
28419 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
28420
28421         [BZ #10563]
28422         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
28423         to make the syscall.
28424         * sysdeps/unix/sysv/linux/setgroups.c: New file.
28425
28426         [BZ #12378]
28427         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
28428         and fall back to matching as normal character if the string ends before
28429         the matching ']' is found.  This is what POSIX requires.
28430         * posix/testfnm.c: Adjust test result.
28431         * posix/globtest.sh: Adjust test result.  Add new test.
28432         * posix/tst-fnmatch.input: Likewise.
28433         * posix/tst-fnmatch2.c: Add new test.
28434
28435 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
28436
28437         * elf/Makefile (check-execstack): Revert last change.  Depend on
28438         check-execstack.h.
28439         (check-execstack.h): New target.
28440         (generated): Add check-execstack.h.
28441         * elf/check-execstack.c: Include "check-execstack.h".
28442         (main): Revert last change.
28443         (handle_file): Return zero if GNU_STACK is absent and
28444         DEFAULT_STACK_PERMS doesn't include PF_X.
28445
28446 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
28447
28448         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
28449         in child fails because the descriptor is already closed.
28450         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
28451         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
28452         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
28453
28454         [BZ #12397]
28455         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
28456         syscall.
28457
28458         [BZ #10484]
28459         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
28460         temporary buffer used to handle multi lookups locally.
28461         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
28462
28463 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
28464
28465         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
28466         loader is ld.so.
28467
28468 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
28469
28470         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
28471         alignment for SSE2.
28472
28473 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
28474
28475         [BZ #12394]
28476         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
28477         characters.  When rounding increased number of integer digits recompute
28478         number of groups.
28479         * stdio-common/tst-grouping.c: New file.
28480         * stdio-common/Makefile: Add rules to build and run tst-grouping.
28481
28482 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
28483
28484         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
28485         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
28486
28487         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
28488         void.
28489         * bits/select.h: Likewise.
28490
28491 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
28492
28493         * po/ja.po: Update from translation team.
28494
28495 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
28496
28497         [BZ #11155]
28498         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
28499         implementation just like for lxstat, fxstatat, et al.
28500
28501 2010-12-27  Jim Meyering  <meyering@redhat.com>
28502
28503         [BZ #12348]
28504         * posix/regexec.c (build_trtable): Return failure indication upon
28505         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28506
28507 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
28508
28509         [BZ #12201]
28510         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
28511         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
28512         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
28513         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
28514
28515         [BZ #12207]
28516         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
28517
28518         [BZ #12204]
28519         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
28520         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
28521
28522 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
28523
28524         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
28525         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
28526         script has SORT_BY_INIT_PRIORITY.
28527         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
28528         NO_CTORS_DTORS_SECTIONS is defined.
28529         * elf/soinit.c: Likewise.
28530         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
28531         NO_CTORS_DTORS_SECTIONS is defined.
28532         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
28533         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
28534         * sysdeps/sh/init-first.c: Likewise.
28535         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
28536
28537 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
28538
28539         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
28540         always use the slow path.
28541
28542 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
28543
28544         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
28545         similar rule which adds the sysdep directories to the header search in
28546         order to pick up the correct platform stackinfo.h.
28547         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
28548         perform test if it is, otherwise return successfully without testing.
28549         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
28550         DEFAULT_STACK_PERMS define in stackinfo.h.
28551         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
28552         defined in stackinfo.h.
28553         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
28554         DEFAULT_STACK_PERMS defined in stackinfo.h.
28555         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
28556         * sysdeps/ia64/stackinfo.h: Likewise.
28557         * sysdeps/s390/stackinfo.h: Likewise.
28558         * sysdeps/sh/stackinfo.h: Likewise.
28559         * sysdeps/sparc/stackinfo.h: Likewise.
28560         * sysdeps/x86_64/stackinfo.h: Likewise.
28561         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
28562         PF_X for powerpc64.  Retain PF_X for powerpc32.
28563
28564 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
28565
28566         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
28567         accurately.
28568         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
28569         GETDENTS_64BIT_ALIGNED.
28570
28571 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
28572
28573         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
28574
28575 2010-12-10  Andreas Schwab  <schwab@redhat.com>
28576
28577         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
28578         _GNU_SOURCE.
28579
28580         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
28581         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
28582         Remove __restrict.
28583         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
28584         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
28585
28586 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
28587
28588         [BZ #11655]
28589         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
28590         are initialized.
28591
28592 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
28593
28594         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
28595
28596 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
28597
28598         * po/it.po: Update from translation team.
28599
28600 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
28601
28602         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
28603         unused codes.
28604
28605 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
28606
28607         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
28608
28609 2010-11-24  Andreas Schwab  <schwab@redhat.com>
28610
28611         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
28612         specially.
28613         (gaih_getanswer_slice): Likewise.
28614
28615 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
28616
28617         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
28618
28619 2010-05-31  Petr Baudis  <pasky@suse.cz>
28620
28621         [BZ #11149]
28622         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
28623         silently even in the chroot mode.
28624
28625 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
28626
28627         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
28628         last patch a bit.  Pretty printing
28629
28630 2010-05-31  Petr Baudis <pasky@suse.cz>
28631
28632         [BZ #10085]
28633         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
28634         initialization of skip_initgroups_dyn.
28635
28636 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
28637
28638         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
28639         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
28640
28641 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
28642
28643         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
28644
28645 2010-11-11  Andreas Schwab  <schwab@redhat.com>
28646
28647         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
28648         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
28649         (tst-fnmatch-ENV): Set MALLOC_TRACE.
28650         ($(objpfx)tst-fnmatch-mem): New rule.
28651         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
28652         * posix/tst-fnmatch.c (main): Call mtrace.
28653
28654 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
28655
28656         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28657         Support Intel processor model 6 and model 0x2c.
28658
28659 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
28660
28661         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
28662           signed comparison.
28663
28664 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
28665
28666         [BZ #12205]
28667         * string/test-strncasecmp.c (check_result): New function.
28668         (do_one_test): Use it.
28669         (check1): New function.
28670         (test_main): Use it.
28671         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
28672         Support strcasecmp and strncasecmp.
28673
28674 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
28675
28676         [BZ #12194]
28677         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
28678         * sysdeps/x86_64/bits/byteswap.h: Likewise.
28679
28680 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
28681
28682         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
28683         IFUNC support.
28684         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28685         memset-x86-64.
28686         * sysdeps/x86_64/multiarch/bzero.S: New file.
28687         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
28688         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
28689         * sysdeps/x86_64/multiarch/memset.S: New file.
28690         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
28691         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28692         Set bit_Prefer_SSE_for_memop for Intel processors.
28693         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
28694         Define.
28695         (index_Prefer_SSE_for_memop): Define.
28696         (HAS_PREFER_SSE_FOR_MEMOP): Define.
28697
28698 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
28699
28700         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
28701         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
28702
28703 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
28704
28705         [BZ #12191]
28706         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
28707         (__x86_64_raw_data_cache_size_half): Likewise.
28708         (__x86_64_raw_shared_cache_size): Likewise.
28709         (__x86_64_raw_shared_cache_size_half): Likewise.
28710
28711         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
28712         (__x86_64_raw_data_cache_size_half): Likewise.
28713         (__x86_64_raw_shared_cache_size): Likewise.
28714         (__x86_64_raw_shared_cache_size_half): Likewise.
28715         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
28716         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
28717         and __x86_64_raw_shared_cache_size_half.  Round
28718         __x86_64_data_cache_size_half, __x86_64_data_cache_size
28719         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
28720         to multiple of 256 bytes.
28721
28722 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
28723
28724         [BZ #12167]
28725         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
28726         of inacessible symlinks.  Verify result of symlink before returning it.
28727         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
28728         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
28729
28730 2010-10-28  Erich Ritz  <erichritz@gmail.com>
28731
28732         * math/math.h (isinf): Fix typo in comment.
28733
28734 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
28735
28736         * po/da.po: Update from translation team.
28737
28738 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
28739
28740         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
28741         is added to the list.
28742
28743 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28744             Ulrich Drepper  <drepper@gmail.com>
28745
28746         * elf/dl-object.c (_dl_new_object): Don't append the new object to
28747         the global list here.  Move code to...
28748         (_dl_add_to_namespace_list): ...here.  New function.
28749         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
28750         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
28751         * elf/dl-load.c (lose): Don't remove the element from the list.
28752         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
28753         (_dl_map_object): Likewise.
28754
28755 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
28756
28757         [BZ #12159]
28758         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
28759         into all bytes of SSE register.
28760         Patch by Richard Li <richardpku@gmail.com>.
28761
28762 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
28763
28764         [BZ #12140]
28765         * malloc/malloc.c (_int_free): Fill correct number of bytes when
28766         perturbing.
28767
28768 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
28769
28770         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
28771         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
28772         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
28773         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
28774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
28775         submachine.
28776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
28777
28778 2010-10-22  Andreas Schwab  <schwab@redhat.com>
28779
28780         * include/dlfcn.h (__RTLD_SECURE): Define.
28781         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
28782         mode & __RTLD_SECURE instead.
28783         (open_path): Rename preloaded parameter to secure.
28784         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
28785         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
28786         * elf/dl-deps.c (openaux): Likewise.
28787         * elf/rtld.c (struct map_args): Remove is_preloaded.
28788         (map_doit): Don't use it.
28789         (dl_main): Likewise.
28790         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
28791         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
28792
28793 2010-09-09  Andreas Schwab  <schwab@redhat.com>
28794
28795         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
28796         (sysd-rules-targets): Remove duplicates.
28797         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
28798         rtld-%.$o dependency.
28799
28800 2010-10-18  Andreas Schwab  <schwab@redhat.com>
28801
28802         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
28803         _dl_map_object do it.
28804
28805 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
28806
28807         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
28808         fast fma builtins, define the macros in the C99 standard.
28809         (FP_FAST_FMAF): Likewise.
28810         (FP_FAST_FMAL): Likewise.
28811         * sysdeps/x86_64/bits/mathdef.h: Likewise.
28812
28813         * bits/mathdef.h: Update copyright year.
28814         * sysdeps/powerpc/bits/mathdef.h: Likewise.
28815
28816 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
28817
28818         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
28819         builtins, define the macros in the C99 standard.
28820         (FP_FAST_FMAF): Likewise.
28821         (FP_FAST_FMAL): Likewise.
28822         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
28823         multiply/add.
28824         (FP_FAST_FMAF): Likewise.
28825
28826 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
28827
28828         [BZ #3268]
28829         * math/libm-test.inc (fma_test): Some new testcases.
28830         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
28831         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
28832         y and infinite z.  Do multiplication by C already in long double.
28833         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
28834         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
28835         y and infinite z.  Do bitwise or of inexact bit into u.d.
28836         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
28837         * sysdeps/i386/fpu/s_fmaf.S: Removed.
28838         * sysdeps/i386/fpu/s_fma.S: Removed.
28839         * sysdeps/i386/fpu/s_fmal.S: Removed.
28840
28841 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
28842
28843         [BZ #3268]
28844         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
28845         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
28846         computation is not scheduled after fetestexcept.  Fix value
28847         of minimum denormal long double.
28848
28849 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
28850
28851         [BZ #3268]
28852         * math/libm-test.inc (fma_test): Add some more tests.
28853         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
28854         correctly.
28855
28856 2010-10-15  Andreas Schwab  <schwab@redhat.com>
28857
28858         * scripts/data/localplt-s390-linux-gnu.data: New file.
28859         * scripts/data/localplt-s390x-linux-gnu.data: New file.
28860
28861 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
28862
28863         [BZ #3268]
28864         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
28865         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
28866         instead of dbl-64.
28867         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
28868         inlines.
28869         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
28870         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
28871         if one of x and y is very large and the other is subnormal.
28872         * sysdeps/s390/fpu/s_fmaf.c: New file.
28873         * sysdeps/s390/fpu/s_fma.c: New file.
28874         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
28875         * sysdeps/powerpc/fpu/s_fma.S: New file.
28876         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
28877         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
28878         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
28879
28880 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
28881
28882         [BZ #3268]
28883         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
28884         fma tests.
28885         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
28886         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
28887         * sysdeps/i386/i686/multiarch/s_fma.c: Include
28888         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
28889         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
28890         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
28891         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
28892
28893 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
28894
28895         [BZ #12078]
28896         * posix/regcomp.c (parse_branch): One more memory leak plugged.
28897         * posix/bug-regex31.input: Add test case.
28898
28899 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28900
28901         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
28902         * posix/bug-regex31.input: New file.
28903
28904         [BZ #12078]
28905         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
28906         (parse_sub_exp): Fix last change, use postorder.
28907
28908         * posix/bug-regex31.c: New file.
28909         * posix/Makefile: Add rules to build and run bug-regex31.
28910
28911         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
28912
28913         [BZ #12078]
28914         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
28915
28916         [BZ #12108]
28917         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
28918         to have entries in sys_siglist.
28919
28920         [BZ #12093]
28921         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
28922         be NULL.
28923
28924 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
28925
28926         [BZ #3268]
28927         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
28928         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
28929         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
28930         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
28931         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28932         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
28933         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
28934         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
28935         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
28936         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
28937         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
28938         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
28939         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28940         * math/ftestexcept.c (fetestexcept): Likewise.
28941         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
28942         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
28943         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
28944         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
28945         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
28946         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
28947         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28948
28949 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28950
28951         [BZ #12107]
28952         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
28953         newline.
28954
28955 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
28956
28957         * string/bug-strstr1.c: New file.
28958         * string/Makefile: Add rules to build and run bug-strstr1.
28959
28960 2010-10-05  Eric Blake  <eblake@redhat.com>
28961
28962         [BZ #12092]
28963         * string/str-two-way.h (two_way_long_needle): Always clear memory
28964         when skipping input due to the shift table.
28965
28966 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
28967
28968         [BZ #12005]
28969         * malloc/mcheck.c: Handle large requests.
28970
28971         [BZ #12077]
28972         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
28973         for strncmp and strncasecmp.
28974         * string/stratcliff.c: Add tests for strcmp and strncmp.
28975         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
28976
28977 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28978
28979         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
28980         __set_fpscr.
28981
28982 2010-09-30  Andreas Jaeger  <aj@suse.de>
28983
28984         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
28985         (CGROUP_SUPER_MAGIC): Define.
28986         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28987         Handle btrfs and cgroup file systems.
28988         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
28989         Likewise.
28990
28991 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
28992
28993         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
28994         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
28995
28996 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28997
28998         [BZ #12067]
28999         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
29000         trying to locate the ELF header.
29001
29002 2010-09-27  Andreas Schwab  <schwab@redhat.com>
29003
29004         [BZ #11611]
29005         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
29006         Mask out sign-bit copies when constructing f_fsid.
29007
29008 2010-09-24  Petr Baudis <pasky@suse.cz>
29009
29010         * debug/stack_chk_fail_local.c: Add missing licence exception.
29011         * debug/warning-nop.c: Likewise.
29012
29013 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
29014
29015         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
29016         implementing getdents64 using getdents syscall, set d_type if
29017         __ASSUME_GETDENTS32_D_TYPE.
29018
29019 2010-09-16  Andreas Schwab  <schwab@redhat.com>
29020
29021         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
29022         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
29023
29024 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
29025
29026         [BZ #12037]
29027         * posix/unistd.h: Undo change of feature selection for ftruncate from
29028         2010-01-11.
29029
29030 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
29031
29032         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
29033         detection.
29034
29035 2010-09-20  Andreas Schwab  <schwab@redhat.com>
29036
29037         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
29038         fanotify_mark.
29039         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
29040
29041 2010-09-14  Andreas Schwab  <schwab@redhat.com>
29042
29043         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
29044         variables after CHECK_SP call.
29045         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
29046
29047 2010-09-13  Andreas Schwab  <schwab@redhat.com>
29048             Ulrich Drepper  <drepper@redhat.com>
29049
29050         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
29051         re-relocationg ld.so.
29052         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
29053         _dl_init_paths call.
29054         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
29055         here anymore.
29056
29057 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
29058
29059         * resolv/res_init.c (__res_vinit): Count the default server we added.
29060
29061 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
29062             Ulrich Drepper  <drepper@redhat.com>
29063
29064         [BZ #11968]
29065         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
29066         (____longjmp_chk): Use %ebx for saving value across system call.
29067         Add unwind info.
29068
29069 2010-09-06  Andreas Schwab  <schwab@redhat.com>
29070
29071         * manual/Makefile: Don't mix pattern rules with normal rules.
29072
29073 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
29074
29075         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
29076         operation.
29077         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
29078         * libio/iofopncook.c (_IO_cookie_init): Likewise.
29079         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
29080         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
29081         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29082         Likewise.
29083
29084 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
29085
29086         [BZ #11979]
29087         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
29088         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
29089
29090 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
29091
29092         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
29093         * sysdeps/x86_64/addmul_1.S: Likewise.
29094         * sysdeps/x86_64/lshift.S: Likewise.
29095         * sysdeps/x86_64/mul_1.S: Likewise.
29096         * sysdeps/x86_64/rshift.S: Likewise.
29097         * sysdeps/x86_64/sub_n.S: Likewise.
29098         * sysdeps/x86_64/submul_1.S: Likewise.
29099
29100 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29101
29102         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
29103         Define __sched_param instead of SCHED_* and sched_param when
29104         <bits/sched.h> is included with __need_schedparam defined.
29105         * bits/sched.h [__need_schedparam]
29106         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
29107         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
29108         (__defined_schedparam): Define to 1.
29109         (__sched_param): New structure, identical to sched_param.
29110         (__need_schedparam): Undefine.
29111
29112 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
29113
29114         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
29115         (epoll_create1): Declare.
29116
29117         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
29118
29119 2010-08-31  Andreas Schwab  <schwab@redhat.com>
29120
29121         [BZ #7066]
29122         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
29123         shifting retval into place.
29124
29125 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
29126
29127         * nis/rpcsvc/nis.h: Update copyright notice.
29128         * nis/rpcsvc/nis.x: Likewise.
29129         * nis/rpcsvc/nis_callback.h: Likewise.
29130         * nis/rpcsvc/nis_callback.x: Likewise.
29131         * nis/rpcsvc/nis_object.x: Likewise.
29132         * nis/rpcsvc/nis_tags.h: Likewise.
29133         * nis/rpcsvc/yp.h: Likewise.
29134         * nis/rpcsvc/yp.x: Likewise.
29135         * nis/rpcsvc/ypupd.h: Likewise.
29136         * nis/yp_xdr.c: Likewise.
29137         * nis/ypupdate_xdr.c: Likewise.
29138
29139         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
29140         mainly the body of pmap_getport.  Add parameters to specify timeouts.
29141         (pmap_getport): Use __libc_rpc_getport.
29142         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
29143         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
29144         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
29145
29146 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
29147
29148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
29149         fanotify_mark.
29150
29151 2010-08-27  Roland McGrath  <roland@redhat.com>
29152
29153         * sysdeps/i386/i686/multiarch/Makefile
29154         (CFLAGS-varshift.c): New variable.
29155
29156 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
29157
29158         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
29159         * sysdeps/i386/i686/multiarch/varshift.c: New file.
29160
29161         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
29162
29163         * sysdeps/x86_64/strlen.S: Minimal code improvement.
29164
29165 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
29166
29167         * sysdeps/x86_64/strlen.S: Unroll the loop.
29168         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29169         strlen-sse2 strlen-sse2-bsf.
29170         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
29171         __strlen_no_bsf if bit_Slow_BSF is set.
29172         (__strlen_sse42): Removed.
29173         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
29174         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
29175
29176 2010-08-25  Roland McGrath  <roland@redhat.com>
29177
29178         * sysdeps/x86_64/multiarch/varshift.S: File removed.
29179         * sysdeps/x86_64/multiarch/varshift.c: New file.
29180         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
29181         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
29182         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
29183         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
29184
29185 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
29186
29187         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29188         strlen-sse2 strlen-sse2-bsf.
29189         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
29190         __strlen_sse2_bsf if bit_Slow_BSF is unset.
29191         (__strlen_sse2): Removed.
29192         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
29193         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
29194         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
29195         bit_Slow_BSF for Atom.
29196         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
29197         (index_Slow_BSF): Define.
29198         (HAS_SLOW_BSF): Define.
29199
29200 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
29201
29202         [BZ #10851]
29203         * resolv/res_init.c (__res_vinit): When no server address at all
29204         is given default to loopback.
29205
29206 2010-08-24  Roland McGrath  <roland@redhat.com>
29207
29208         * configure.in: Remove config-name.h generation.
29209         * configure: Regenerated.
29210         * config-name.in: File removed.
29211         * scripts/config-uname.sh: New file.
29212         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
29213         ($(objdir)config-name.h): New target.
29214
29215         * sunrpc/rpc_parse.h: Avoid nested comment.
29216
29217 2010-08-24  Richard Henderson  <rth@redhat.com>
29218             Ulrich Drepper  <drepper@redhat.com>
29219             H.J. Lu  <hongjiu.lu@intel.com>
29220
29221         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
29222         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
29223         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
29224         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
29225         _mm_alignr_epi8 with _mm_loadu_si128.
29226         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
29227         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
29228         (__m128i_shift_right): Removed.
29229         * sysdeps/i386/i686/multiarch/varshift.h: New file.
29230         * sysdeps/i386/i686/multiarch/varshift.S: New file.
29231         * sysdeps/x86_64/multiarch/varshift.h: New file.
29232         * sysdeps/x86_64/multiarch/varshift.S: New file.
29233
29234 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
29235
29236         * configure.in: Move assembler checks to before sysdep dir checking.
29237
29238 2010-08-20  Petr Baudis  <pasky@suse.cz>
29239
29240         * LICENSES: Sync the sunrpc license.
29241
29242 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
29243
29244         * sunrpc/auth_des.c: Update copyright notice once again.
29245         * sunrpc/auth_none.c: Likewise.
29246         * sunrpc/auth_unix.c: Likewise.
29247         * sunrpc/authdes_prot.c: Likewise.
29248         * sunrpc/authuxprot.c: Likewise.
29249         * sunrpc/bindrsvprt.c: Likewise.
29250         * sunrpc/clnt_gen.c: Likewise.
29251         * sunrpc/clnt_perr.c: Likewise.
29252         * sunrpc/clnt_raw.c: Likewise.
29253         * sunrpc/clnt_simp.c: Likewise.
29254         * sunrpc/clnt_tcp.c: Likewise.
29255         * sunrpc/clnt_udp.c: Likewise.
29256         * sunrpc/clnt_unix.c: Likewise.
29257         * sunrpc/des_crypt.c: Likewise.
29258         * sunrpc/des_soft.c: Likewise.
29259         * sunrpc/get_myaddr.c: Likewise.
29260         * sunrpc/getrpcport.c: Likewise.
29261         * sunrpc/key_call.c: Likewise.
29262         * sunrpc/key_prot.c: Likewise.
29263         * sunrpc/openchild.c: Likewise.
29264         * sunrpc/pm_getmaps.c: Likewise.
29265         * sunrpc/pm_getport.c: Likewise.
29266         * sunrpc/pmap_clnt.c: Likewise.
29267         * sunrpc/pmap_prot.c: Likewise.
29268         * sunrpc/pmap_prot2.c: Likewise.
29269         * sunrpc/pmap_rmt.c: Likewise.
29270         * sunrpc/rpc/auth.h: Likewise.
29271         * sunrpc/rpc/auth_unix.h: Likewise.
29272         * sunrpc/rpc/clnt.h: Likewise.
29273         * sunrpc/rpc/des_crypt.h: Likewise.
29274         * sunrpc/rpc/key_prot.h: Likewise.
29275         * sunrpc/rpc/netdb.h: Likewise.
29276         * sunrpc/rpc/pmap_clnt.h: Likewise.
29277         * sunrpc/rpc/pmap_prot.h: Likewise.
29278         * sunrpc/rpc/pmap_rmt.h: Likewise.
29279         * sunrpc/rpc/rpc.h: Likewise.
29280         * sunrpc/rpc/rpc_des.h: Likewise.
29281         * sunrpc/rpc/rpc_msg.h: Likewise.
29282         * sunrpc/rpc/svc.h: Likewise.
29283         * sunrpc/rpc/svc_auth.h: Likewise.
29284         * sunrpc/rpc/types.h: Likewise.
29285         * sunrpc/rpc/xdr.h: Likewise.
29286         * sunrpc/rpc_clntout.c: Likewise.
29287         * sunrpc/rpc_cmsg.c: Likewise.
29288         * sunrpc/rpc_common.c: Likewise.
29289         * sunrpc/rpc_cout.c: Likewise.
29290         * sunrpc/rpc_dtable.c: Likewise.
29291         * sunrpc/rpc_hout.c: Likewise.
29292         * sunrpc/rpc_main.c: Likewise.
29293         * sunrpc/rpc_parse.c: Likewise.
29294         * sunrpc/rpc_parse.h: Likewise.
29295         * sunrpc/rpc_prot.c: Likewise.
29296         * sunrpc/rpc_sample.c: Likewise.
29297         * sunrpc/rpc_scan.c: Likewise.
29298         * sunrpc/rpc_scan.h: Likewise.
29299         * sunrpc/rpc_svcout.c: Likewise.
29300         * sunrpc/rpc_tblout.c: Likewise.
29301         * sunrpc/rpc_util.c: Likewise.
29302         * sunrpc/rpc_util.h: Likewise.
29303         * sunrpc/rpcinfo.c: Likewise.
29304         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
29305         * sunrpc/rpcsvc/key_prot.x: Likewise.
29306         * sunrpc/rpcsvc/klm_prot.x: Likewise.
29307         * sunrpc/rpcsvc/mount.x: Likewise.
29308         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
29309         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
29310         * sunrpc/rpcsvc/rex.x: Likewise.
29311         * sunrpc/rpcsvc/rstat.x: Likewise.
29312         * sunrpc/rpcsvc/rusers.x: Likewise.
29313         * sunrpc/rpcsvc/sm_inter.x: Likewise.
29314         * sunrpc/rpcsvc/spray.x: Likewise.
29315         * sunrpc/rpcsvc/yppasswd.x: Likewise.
29316         * sunrpc/rtime.c: Likewise.
29317         * sunrpc/svc.c: Likewise.
29318         * sunrpc/svc_auth.c: Likewise.
29319         * sunrpc/svc_authux.c: Likewise.
29320         * sunrpc/svc_raw.c: Likewise.
29321         * sunrpc/svc_run.c: Likewise.
29322         * sunrpc/svc_simple.c: Likewise.
29323         * sunrpc/svc_tcp.c: Likewise.
29324         * sunrpc/svc_udp.c: Likewise.
29325         * sunrpc/svc_unix.c: Likewise.
29326         * sunrpc/svcauth_des.c: Likewise.
29327         * sunrpc/xcrypt.c: Likewise.
29328         * sunrpc/xdr.c: Likewise.
29329         * sunrpc/xdr_array.c: Likewise.
29330         * sunrpc/xdr_float.c: Likewise.
29331         * sunrpc/xdr_mem.c: Likewise.
29332         * sunrpc/xdr_rec.c: Likewise.
29333         * sunrpc/xdr_ref.c: Likewise.
29334         * sunrpc/xdr_sizeof.c: Likewise.
29335         * sunrpc/xdr_stdio.c: Likewise.
29336
29337         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
29338         handling.
29339
29340 2010-08-19  Andreas Schwab  <schwab@redhat.com>
29341
29342         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
29343
29344 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
29345
29346         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
29347         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
29348         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
29349         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
29350         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
29351         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
29352         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
29353         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
29354         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
29355         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
29356         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
29357         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
29358         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
29359         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
29360
29361 2010-07-26  Anton Blanchard  <anton@samba.org>
29362
29363         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
29364         * malloc/arena.c (heap_trim): Likewise.
29365
29366 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
29367
29368         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
29369         here.  Not...
29370         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
29371         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
29372
29373 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
29374
29375         * sysdeps/i386/elf/Makefile: New file.
29376
29377 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
29378
29379         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
29380         from fanotify_init.
29381         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
29382         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
29383
29384 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
29385
29386         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
29387         of strncasecmp_l.
29388         * sysdeps/multiarch/strcmp.S: Likewise.
29389
29390 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
29391
29392         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
29393         strncase_l-nonascii.
29394         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
29395         Add strncase_l-ssse3.
29396         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
29397         * sysdeps/x86_64/strcmp.S: Likewise.
29398         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
29399         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
29400         * sysdeps/x86_64/strncase.S: New file.
29401         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
29402         * sysdeps/x86_64/strncase_l.S: New file.
29403         * string/Makefile (strop-tests): Add strncasecmp.
29404         * string/test-strncasecmp.c: New file.
29405
29406         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
29407         warning.
29408
29409         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
29410         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
29411
29412 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
29413
29414         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
29415
29416 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
29417
29418         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
29419         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
29420         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
29421
29422 2010-05-01  Alan Modra  <amodra@gmail.com>
29423
29424         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
29425         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
29426         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
29427         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
29428         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
29429         tidying.  Don't tail-call __sigjmp_save for static lib.
29430         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
29431         save location.
29432         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
29433         (CALL_MCOUNT): Add eh info, and nop after bl.
29434         (TAIL_CALL_SYSCALL_ERROR): New macro.
29435         (PSEUDO_RET): Use it.
29436         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
29437         Correct save location of integer regs and cr.
29438         (_dl_profile_resolve): Correct cr save location.  Delete nops
29439         after bl when SHARED.  Reduce cfi size a little by better
29440         placement of cfi directives.
29441         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
29442         make a stack frame.  Instead use parm save area as a temp.
29443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
29444         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
29445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
29446         Don't make a stack frame for parent, use parm save area.
29447         Increase child stack frame to 112 bytes.  Don't save unused reg,
29448         and adjust reg usage.  Set up cfi on error recovery and
29449         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
29450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29451         (__makecontext): Add dummy nop after jump to exit.
29452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
29453         Use correct parm save area and cr save, reduce stack frame.
29454         Correct cfi for possible PSEUDO_RET frame setup.
29455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
29456         Branch to local label emitted by PSEUDO_RET rather than
29457         __syscall_error.
29458
29459 2010-08-12  Andreas Schwab  <schwab@redhat.com>
29460
29461         [BZ #11904]
29462         * locale/programs/locale.c (print_assignment): New function.
29463         (show_locale_vars): Use it.
29464
29465 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
29466
29467         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
29468         field.
29469         (struct statfs64): Likewise.
29470         (_STATFS_F_FLAGS): Define.
29471         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
29472         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
29473         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
29474         (ST_VALID): Define locally.
29475         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
29476         __statvfs_getflags, use the provided value.
29477         * sysdeps/unix/sysv/linux/kernel-features.h: Define
29478         __ASSUME_STATFS_F_FLAGS.
29479
29480         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
29481
29482         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
29483         Add sys/fanotify.h.
29484         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
29485         fanotify_mask for GLIBC_2.13.
29486         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
29487         fanotify_init and fanotify_mark.
29488         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
29489         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
29490
29491         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
29492         Add prlimit.
29493         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
29494         prlimit64 for GLIBC_2.13.
29495         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
29496         prlimit64.
29497         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
29498         syscall.
29499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
29500         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
29501         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
29502         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
29503         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
29504         add prlimit alias.
29505         * sysdeps/unix/sysv/linux/prlimit.c: New file.
29506
29507         [BZ #11903]
29508         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
29509         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
29510
29511         * nss/Makefile: Add rules to build and run tst-nss-test1.
29512         * shlib-versions: Add entry for libnss_test1.
29513         * nss/nss_test1.c: New file.
29514         * nss/tst-nss-test1.c: New file.
29515
29516         * nss/nsswitch.c (__nss_database_custom): Define new variable.
29517         (__nss_configure_lookup): Set appropriate entry in
29518         __nss_configure_lookup to true.
29519         * nss/nsswitch.h: Define enum with indeces of databases in
29520         databases and __nss_database_custom arrays.  Declare
29521         __nss_database_custom.
29522         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
29523         to avoid using nscd when custom rules are installed.
29524         * nss/getXXbyYY_r.c: Likewise.
29525         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
29526
29527         * nss/nss_files/files-parse.c: Whitespace fixes.
29528
29529 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
29530
29531         [BZ #11883]
29532         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
29533         * posix/fnmatch_loop.c: Likewise.
29534
29535 2010-07-17  Andi Kleen  <ak@linux.intel.com>
29536
29537         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
29538         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
29539         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
29540         * Versions.def [GLIBC_2.13]: Add.
29541
29542 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
29543
29544         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
29545         Also fail if tpwd after pwuid call is NULL.
29546
29547 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29548
29549         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
29550         when converting to ms.
29551
29552 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29553
29554         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
29555         EOPNOTSUPP errors with ENOTTY.
29556         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
29557         EOPNOTSUPP errors with ENOTTY.
29558
29559 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
29560
29561         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
29562         Add strcasecmp_l-ssse3.
29563         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
29564         strcasecmp.
29565         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
29566         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
29567         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
29568
29569 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
29570
29571         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
29572
29573         * string/Makefile (strop-tests): Add strcasecmp.
29574         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
29575         strcasecmp_l-nonascii.
29576         (gen-as-const-headers): Add locale-defines.sym.
29577         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
29578         * sysdeps/x86_64/strcasecmp.S: New file.
29579         * sysdeps/x86_64/strcasecmp_l.S: New file.
29580         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
29581         * sysdeps/x86_64/locale-defines.sym: New file.
29582         * string/test-strcasecmp.c: New file.
29583
29584         * string/test-strcasestr.c: Test both ends of the range of characters.
29585         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
29586
29587 2010-07-29  Roland McGrath  <roland@redhat.com>
29588
29589         [BZ #11856]
29590         * manual/locale.texi (Yes-or-No Questions): Fix example code.
29591
29592 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
29593
29594         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
29595         for ld.so.
29596
29597 2010-07-27  Andreas Schwab  <schwab@redhat.com>
29598
29599         * manual/memory.texi (Malloc Tunable Parameters): Document
29600         M_PERTURB.
29601
29602 2010-07-26  Roland McGrath  <roland@redhat.com>
29603
29604         [BZ #11840]
29605         * configure.in (-fgnu89-inline check): Set and substitute
29606         gnu89_inline, not libc_cv_gnu89_inline.
29607         * configure: Regenerated.
29608         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
29609
29610 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
29611
29612         * string/test-strnlen.c: New file.
29613         * string/Makefile (strop-tests): Add strnlen.
29614         * string/tester.c (test_strnlen): Add a few more test cases.
29615         * string/tst-strlen.c: Better error reporting.
29616
29617         * sysdeps/x86_64/strnlen.S: New file.
29618
29619 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
29620
29621         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
29622         lower-latency instructions.
29623
29624 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
29625
29626         * string/test-strcasestr.c: New file.
29627         * string/test-strstr.c: New file.
29628         * string/Makefile (strop-tests): Add strstr and strcasestr.
29629         * string/str-two-way.h: Don't undefine MAX.
29630         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
29631
29632 2010-07-21  Andreas Schwab  <schwab@redhat.com>
29633
29634         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29635         strcasestr-nonascii.
29636         (CFLAGS-strcasestr-nonascii.c): Define.
29637         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
29638         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
29639         Remove unused attribute.
29640
29641 2010-07-20  Roland McGrath  <roland@redhat.com>
29642
29643         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
29644         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
29645         ld.so.cache was broken.  With it, there is no way to disable dsocaps
29646         like LD_HWCAP_MASK can disable hwcaps.
29647
29648 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
29649
29650         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
29651
29652 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
29653
29654         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
29655         call in strcasestr.
29656         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
29657         __strcasestr_sse42_nonascii.
29658         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
29659         strcasestr-nonascii.c.
29660         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
29661
29662 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
29663
29664         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
29665         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
29666         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
29667         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
29668
29669 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
29670
29671         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
29672         fcntl.
29673
29674 2010-07-06  Andreas Schwab  <schwab@redhat.com>
29675
29676         [BZ #11577]
29677         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
29678         dl_signal_cerror.
29679
29680 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
29681
29682         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
29683         _PC_PIPE_BUF using F_GETPIPE_SZ.
29684
29685 2010-07-05  Roland McGrath  <roland@redhat.com>
29686
29687         * manual/arith.texi (Rounding Functions): Fix rint description
29688         implicit in round description.
29689
29690 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
29691
29692         * elf/Makefile: Fix linking for a few tests to make recent linker
29693         happy.
29694
29695 2010-06-30  Andreas Schwab  <schwab@redhat.com>
29696
29697         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
29698         $(common-objpfx)libc_nonshared.a.
29699
29700 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
29701
29702         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
29703         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
29704         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
29705         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
29706         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
29707         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
29708         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
29709         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
29710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
29711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
29712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
29713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
29714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
29715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
29716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
29717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
29718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
29719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
29720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
29721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
29722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
29723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
29724         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
29725         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
29726         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
29727         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
29728         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
29729         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
29730         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
29731         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
29732         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
29733         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
29734         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
29735         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
29736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
29737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
29738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
29739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
29740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
29741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
29742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
29743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
29744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
29745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
29746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
29747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
29748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
29749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
29750
29751 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
29752
29753         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
29754         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
29755         * string/memmove.c (memmove): Renamed to ...
29756         (MEMMOVE): ...this.  Default to memmove.
29757         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
29758         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
29759         (END_CHK): Define.
29760         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29761         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
29762         mempcpy-ssse3-back memmove-ssse3-back.
29763         * sysdeps/x86_64/multiarch/bcopy.S: New file .
29764         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
29765         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
29766         * sysdeps/x86_64/multiarch/memcpy.S: New file.
29767         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
29768         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
29769         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
29770         * sysdeps/x86_64/multiarch/memmove.c: New file.
29771         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
29772         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
29773         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
29774         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
29775         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
29776         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
29777         Define.
29778         (index_Fast_Copy_Backward): Define.
29779         (HAS_ARCH_FEATURE): Define.
29780         (HAS_FAST_REP_STRING): Define.
29781         (HAS_FAST_COPY_BACKWARD): Define.
29782
29783 2010-06-21  Andreas Schwab  <schwab@redhat.com>
29784
29785         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
29786         Restore proper fallback handling.
29787
29788 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
29789
29790         [BZ #11701]
29791         * posix/group_member.c (__group_member): Correct checking loop.
29792
29793         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
29794         OOM in getpwuid_r correctly.  Return error number when the caller
29795         should return, otherwise -1.
29796         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
29797         call returning > 0 value.
29798         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
29799
29800 2010-06-07  Andreas Schwab  <schwab@redhat.com>
29801
29802         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
29803         libc_nonshared.a from targets in modules-names.
29804
29805 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
29806
29807         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
29808         requires it.
29809
29810 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
29811
29812         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
29813         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
29814         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
29815         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
29816
29817 2010-06-02  Andreas Schwab  <schwab@redhat.com>
29818
29819         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
29820
29821 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
29822
29823         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
29824         and F_GETPIPE_SZ.
29825         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
29826         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
29827         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
29828         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
29829         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
29830         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
29831
29832 2010-06-14  Roland McGrath  <roland@redhat.com>
29833
29834         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
29835
29836 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
29837
29838         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
29839         __REDIRECT followed by __THROW.
29840         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
29841         * posix/getopt.h (getopt): Likewise.
29842
29843 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
29844
29845         * hurd/lookup-at.c (__file_name_lookup_at): Accept
29846         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
29847         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
29848         in AT_FLAGS.
29849         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
29850         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
29851
29852 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
29853
29854         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
29855
29856 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
29857
29858         [BZ #11640]
29859         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29860         Properly check family and model.
29861
29862 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
29863
29864         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
29865
29866 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
29867
29868         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
29869
29870 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
29871
29872         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
29873         symbol reference.
29874
29875 2010-05-19  Andreas Schwab  <schwab@redhat.com>
29876
29877         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
29878         symbol reference.
29879
29880 2010-05-21  Andreas Schwab  <schwab@redhat.com>
29881
29882         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
29883         and internal_recvmmsg.
29884         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
29885         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
29886         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
29887         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
29888
29889         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
29890         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
29891         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
29892
29893 2010-05-20  Andreas Schwab  <schwab@redhat.com>
29894
29895         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
29896
29897 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
29898
29899         POWER7 optimizations.
29900         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
29901         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
29902
29903 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
29904
29905         * version.h: Update for 2.13 development version.
29906
29907 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
29908
29909         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
29910         exceptions.  Return 0.
29911
29912 2010-05-07  Roland McGrath  <roland@redhat.com>
29913
29914         * elf/ldconfig.c (main): Add a const.
29915
29916 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
29917
29918         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
29919         (args_options): Add no-idn option.
29920         (ahosts_keys_int): Add idn_flags to ai_flags.
29921         (parse_option): Handle 'i' option to clear idn_flags.
29922
29923         * malloc/malloc.c (_int_free): Possible race in the most recently
29924         added check.  Only act on the data if no current modification
29925         happened.
29926
29927 See ChangeLog.17 for earlier changes.